github.com/NpoolPlatform/chain-middleware@v0.0.0-20240228100535-eb1bcf896eb9/pkg/db/ent/tran/where.go (about)

     1  // Code generated by ent, DO NOT EDIT.
     2  
     3  package tran
     4  
     5  import (
     6  	"entgo.io/ent/dialect/sql"
     7  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/predicate"
     8  	"github.com/google/uuid"
     9  	"github.com/shopspring/decimal"
    10  )
    11  
    12  // ID filters vertices based on their ID field.
    13  func ID(id uint32) predicate.Tran {
    14  	return predicate.Tran(func(s *sql.Selector) {
    15  		s.Where(sql.EQ(s.C(FieldID), id))
    16  	})
    17  }
    18  
    19  // IDEQ applies the EQ predicate on the ID field.
    20  func IDEQ(id uint32) predicate.Tran {
    21  	return predicate.Tran(func(s *sql.Selector) {
    22  		s.Where(sql.EQ(s.C(FieldID), id))
    23  	})
    24  }
    25  
    26  // IDNEQ applies the NEQ predicate on the ID field.
    27  func IDNEQ(id uint32) predicate.Tran {
    28  	return predicate.Tran(func(s *sql.Selector) {
    29  		s.Where(sql.NEQ(s.C(FieldID), id))
    30  	})
    31  }
    32  
    33  // IDIn applies the In predicate on the ID field.
    34  func IDIn(ids ...uint32) predicate.Tran {
    35  	return predicate.Tran(func(s *sql.Selector) {
    36  		v := make([]interface{}, len(ids))
    37  		for i := range v {
    38  			v[i] = ids[i]
    39  		}
    40  		s.Where(sql.In(s.C(FieldID), v...))
    41  	})
    42  }
    43  
    44  // IDNotIn applies the NotIn predicate on the ID field.
    45  func IDNotIn(ids ...uint32) predicate.Tran {
    46  	return predicate.Tran(func(s *sql.Selector) {
    47  		v := make([]interface{}, len(ids))
    48  		for i := range v {
    49  			v[i] = ids[i]
    50  		}
    51  		s.Where(sql.NotIn(s.C(FieldID), v...))
    52  	})
    53  }
    54  
    55  // IDGT applies the GT predicate on the ID field.
    56  func IDGT(id uint32) predicate.Tran {
    57  	return predicate.Tran(func(s *sql.Selector) {
    58  		s.Where(sql.GT(s.C(FieldID), id))
    59  	})
    60  }
    61  
    62  // IDGTE applies the GTE predicate on the ID field.
    63  func IDGTE(id uint32) predicate.Tran {
    64  	return predicate.Tran(func(s *sql.Selector) {
    65  		s.Where(sql.GTE(s.C(FieldID), id))
    66  	})
    67  }
    68  
    69  // IDLT applies the LT predicate on the ID field.
    70  func IDLT(id uint32) predicate.Tran {
    71  	return predicate.Tran(func(s *sql.Selector) {
    72  		s.Where(sql.LT(s.C(FieldID), id))
    73  	})
    74  }
    75  
    76  // IDLTE applies the LTE predicate on the ID field.
    77  func IDLTE(id uint32) predicate.Tran {
    78  	return predicate.Tran(func(s *sql.Selector) {
    79  		s.Where(sql.LTE(s.C(FieldID), id))
    80  	})
    81  }
    82  
    83  // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
    84  func CreatedAt(v uint32) predicate.Tran {
    85  	return predicate.Tran(func(s *sql.Selector) {
    86  		s.Where(sql.EQ(s.C(FieldCreatedAt), v))
    87  	})
    88  }
    89  
    90  // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
    91  func UpdatedAt(v uint32) predicate.Tran {
    92  	return predicate.Tran(func(s *sql.Selector) {
    93  		s.Where(sql.EQ(s.C(FieldUpdatedAt), v))
    94  	})
    95  }
    96  
    97  // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
    98  func DeletedAt(v uint32) predicate.Tran {
    99  	return predicate.Tran(func(s *sql.Selector) {
   100  		s.Where(sql.EQ(s.C(FieldDeletedAt), v))
   101  	})
   102  }
   103  
   104  // EntID applies equality check predicate on the "ent_id" field. It's identical to EntIDEQ.
   105  func EntID(v uuid.UUID) predicate.Tran {
   106  	return predicate.Tran(func(s *sql.Selector) {
   107  		s.Where(sql.EQ(s.C(FieldEntID), v))
   108  	})
   109  }
   110  
   111  // CoinTypeID applies equality check predicate on the "coin_type_id" field. It's identical to CoinTypeIDEQ.
   112  func CoinTypeID(v uuid.UUID) predicate.Tran {
   113  	return predicate.Tran(func(s *sql.Selector) {
   114  		s.Where(sql.EQ(s.C(FieldCoinTypeID), v))
   115  	})
   116  }
   117  
   118  // FromAccountID applies equality check predicate on the "from_account_id" field. It's identical to FromAccountIDEQ.
   119  func FromAccountID(v uuid.UUID) predicate.Tran {
   120  	return predicate.Tran(func(s *sql.Selector) {
   121  		s.Where(sql.EQ(s.C(FieldFromAccountID), v))
   122  	})
   123  }
   124  
   125  // ToAccountID applies equality check predicate on the "to_account_id" field. It's identical to ToAccountIDEQ.
   126  func ToAccountID(v uuid.UUID) predicate.Tran {
   127  	return predicate.Tran(func(s *sql.Selector) {
   128  		s.Where(sql.EQ(s.C(FieldToAccountID), v))
   129  	})
   130  }
   131  
   132  // Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.
   133  func Amount(v decimal.Decimal) predicate.Tran {
   134  	return predicate.Tran(func(s *sql.Selector) {
   135  		s.Where(sql.EQ(s.C(FieldAmount), v))
   136  	})
   137  }
   138  
   139  // FeeAmount applies equality check predicate on the "fee_amount" field. It's identical to FeeAmountEQ.
   140  func FeeAmount(v decimal.Decimal) predicate.Tran {
   141  	return predicate.Tran(func(s *sql.Selector) {
   142  		s.Where(sql.EQ(s.C(FieldFeeAmount), v))
   143  	})
   144  }
   145  
   146  // ChainTxID applies equality check predicate on the "chain_tx_id" field. It's identical to ChainTxIDEQ.
   147  func ChainTxID(v string) predicate.Tran {
   148  	return predicate.Tran(func(s *sql.Selector) {
   149  		s.Where(sql.EQ(s.C(FieldChainTxID), v))
   150  	})
   151  }
   152  
   153  // State applies equality check predicate on the "state" field. It's identical to StateEQ.
   154  func State(v string) predicate.Tran {
   155  	return predicate.Tran(func(s *sql.Selector) {
   156  		s.Where(sql.EQ(s.C(FieldState), v))
   157  	})
   158  }
   159  
   160  // Extra applies equality check predicate on the "extra" field. It's identical to ExtraEQ.
   161  func Extra(v string) predicate.Tran {
   162  	return predicate.Tran(func(s *sql.Selector) {
   163  		s.Where(sql.EQ(s.C(FieldExtra), v))
   164  	})
   165  }
   166  
   167  // Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
   168  func Type(v string) predicate.Tran {
   169  	return predicate.Tran(func(s *sql.Selector) {
   170  		s.Where(sql.EQ(s.C(FieldType), v))
   171  	})
   172  }
   173  
   174  // CreatedAtEQ applies the EQ predicate on the "created_at" field.
   175  func CreatedAtEQ(v uint32) predicate.Tran {
   176  	return predicate.Tran(func(s *sql.Selector) {
   177  		s.Where(sql.EQ(s.C(FieldCreatedAt), v))
   178  	})
   179  }
   180  
   181  // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
   182  func CreatedAtNEQ(v uint32) predicate.Tran {
   183  	return predicate.Tran(func(s *sql.Selector) {
   184  		s.Where(sql.NEQ(s.C(FieldCreatedAt), v))
   185  	})
   186  }
   187  
   188  // CreatedAtIn applies the In predicate on the "created_at" field.
   189  func CreatedAtIn(vs ...uint32) predicate.Tran {
   190  	v := make([]interface{}, len(vs))
   191  	for i := range v {
   192  		v[i] = vs[i]
   193  	}
   194  	return predicate.Tran(func(s *sql.Selector) {
   195  		s.Where(sql.In(s.C(FieldCreatedAt), v...))
   196  	})
   197  }
   198  
   199  // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
   200  func CreatedAtNotIn(vs ...uint32) predicate.Tran {
   201  	v := make([]interface{}, len(vs))
   202  	for i := range v {
   203  		v[i] = vs[i]
   204  	}
   205  	return predicate.Tran(func(s *sql.Selector) {
   206  		s.Where(sql.NotIn(s.C(FieldCreatedAt), v...))
   207  	})
   208  }
   209  
   210  // CreatedAtGT applies the GT predicate on the "created_at" field.
   211  func CreatedAtGT(v uint32) predicate.Tran {
   212  	return predicate.Tran(func(s *sql.Selector) {
   213  		s.Where(sql.GT(s.C(FieldCreatedAt), v))
   214  	})
   215  }
   216  
   217  // CreatedAtGTE applies the GTE predicate on the "created_at" field.
   218  func CreatedAtGTE(v uint32) predicate.Tran {
   219  	return predicate.Tran(func(s *sql.Selector) {
   220  		s.Where(sql.GTE(s.C(FieldCreatedAt), v))
   221  	})
   222  }
   223  
   224  // CreatedAtLT applies the LT predicate on the "created_at" field.
   225  func CreatedAtLT(v uint32) predicate.Tran {
   226  	return predicate.Tran(func(s *sql.Selector) {
   227  		s.Where(sql.LT(s.C(FieldCreatedAt), v))
   228  	})
   229  }
   230  
   231  // CreatedAtLTE applies the LTE predicate on the "created_at" field.
   232  func CreatedAtLTE(v uint32) predicate.Tran {
   233  	return predicate.Tran(func(s *sql.Selector) {
   234  		s.Where(sql.LTE(s.C(FieldCreatedAt), v))
   235  	})
   236  }
   237  
   238  // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
   239  func UpdatedAtEQ(v uint32) predicate.Tran {
   240  	return predicate.Tran(func(s *sql.Selector) {
   241  		s.Where(sql.EQ(s.C(FieldUpdatedAt), v))
   242  	})
   243  }
   244  
   245  // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
   246  func UpdatedAtNEQ(v uint32) predicate.Tran {
   247  	return predicate.Tran(func(s *sql.Selector) {
   248  		s.Where(sql.NEQ(s.C(FieldUpdatedAt), v))
   249  	})
   250  }
   251  
   252  // UpdatedAtIn applies the In predicate on the "updated_at" field.
   253  func UpdatedAtIn(vs ...uint32) predicate.Tran {
   254  	v := make([]interface{}, len(vs))
   255  	for i := range v {
   256  		v[i] = vs[i]
   257  	}
   258  	return predicate.Tran(func(s *sql.Selector) {
   259  		s.Where(sql.In(s.C(FieldUpdatedAt), v...))
   260  	})
   261  }
   262  
   263  // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
   264  func UpdatedAtNotIn(vs ...uint32) predicate.Tran {
   265  	v := make([]interface{}, len(vs))
   266  	for i := range v {
   267  		v[i] = vs[i]
   268  	}
   269  	return predicate.Tran(func(s *sql.Selector) {
   270  		s.Where(sql.NotIn(s.C(FieldUpdatedAt), v...))
   271  	})
   272  }
   273  
   274  // UpdatedAtGT applies the GT predicate on the "updated_at" field.
   275  func UpdatedAtGT(v uint32) predicate.Tran {
   276  	return predicate.Tran(func(s *sql.Selector) {
   277  		s.Where(sql.GT(s.C(FieldUpdatedAt), v))
   278  	})
   279  }
   280  
   281  // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
   282  func UpdatedAtGTE(v uint32) predicate.Tran {
   283  	return predicate.Tran(func(s *sql.Selector) {
   284  		s.Where(sql.GTE(s.C(FieldUpdatedAt), v))
   285  	})
   286  }
   287  
   288  // UpdatedAtLT applies the LT predicate on the "updated_at" field.
   289  func UpdatedAtLT(v uint32) predicate.Tran {
   290  	return predicate.Tran(func(s *sql.Selector) {
   291  		s.Where(sql.LT(s.C(FieldUpdatedAt), v))
   292  	})
   293  }
   294  
   295  // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
   296  func UpdatedAtLTE(v uint32) predicate.Tran {
   297  	return predicate.Tran(func(s *sql.Selector) {
   298  		s.Where(sql.LTE(s.C(FieldUpdatedAt), v))
   299  	})
   300  }
   301  
   302  // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
   303  func DeletedAtEQ(v uint32) predicate.Tran {
   304  	return predicate.Tran(func(s *sql.Selector) {
   305  		s.Where(sql.EQ(s.C(FieldDeletedAt), v))
   306  	})
   307  }
   308  
   309  // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
   310  func DeletedAtNEQ(v uint32) predicate.Tran {
   311  	return predicate.Tran(func(s *sql.Selector) {
   312  		s.Where(sql.NEQ(s.C(FieldDeletedAt), v))
   313  	})
   314  }
   315  
   316  // DeletedAtIn applies the In predicate on the "deleted_at" field.
   317  func DeletedAtIn(vs ...uint32) predicate.Tran {
   318  	v := make([]interface{}, len(vs))
   319  	for i := range v {
   320  		v[i] = vs[i]
   321  	}
   322  	return predicate.Tran(func(s *sql.Selector) {
   323  		s.Where(sql.In(s.C(FieldDeletedAt), v...))
   324  	})
   325  }
   326  
   327  // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
   328  func DeletedAtNotIn(vs ...uint32) predicate.Tran {
   329  	v := make([]interface{}, len(vs))
   330  	for i := range v {
   331  		v[i] = vs[i]
   332  	}
   333  	return predicate.Tran(func(s *sql.Selector) {
   334  		s.Where(sql.NotIn(s.C(FieldDeletedAt), v...))
   335  	})
   336  }
   337  
   338  // DeletedAtGT applies the GT predicate on the "deleted_at" field.
   339  func DeletedAtGT(v uint32) predicate.Tran {
   340  	return predicate.Tran(func(s *sql.Selector) {
   341  		s.Where(sql.GT(s.C(FieldDeletedAt), v))
   342  	})
   343  }
   344  
   345  // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
   346  func DeletedAtGTE(v uint32) predicate.Tran {
   347  	return predicate.Tran(func(s *sql.Selector) {
   348  		s.Where(sql.GTE(s.C(FieldDeletedAt), v))
   349  	})
   350  }
   351  
   352  // DeletedAtLT applies the LT predicate on the "deleted_at" field.
   353  func DeletedAtLT(v uint32) predicate.Tran {
   354  	return predicate.Tran(func(s *sql.Selector) {
   355  		s.Where(sql.LT(s.C(FieldDeletedAt), v))
   356  	})
   357  }
   358  
   359  // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
   360  func DeletedAtLTE(v uint32) predicate.Tran {
   361  	return predicate.Tran(func(s *sql.Selector) {
   362  		s.Where(sql.LTE(s.C(FieldDeletedAt), v))
   363  	})
   364  }
   365  
   366  // EntIDEQ applies the EQ predicate on the "ent_id" field.
   367  func EntIDEQ(v uuid.UUID) predicate.Tran {
   368  	return predicate.Tran(func(s *sql.Selector) {
   369  		s.Where(sql.EQ(s.C(FieldEntID), v))
   370  	})
   371  }
   372  
   373  // EntIDNEQ applies the NEQ predicate on the "ent_id" field.
   374  func EntIDNEQ(v uuid.UUID) predicate.Tran {
   375  	return predicate.Tran(func(s *sql.Selector) {
   376  		s.Where(sql.NEQ(s.C(FieldEntID), v))
   377  	})
   378  }
   379  
   380  // EntIDIn applies the In predicate on the "ent_id" field.
   381  func EntIDIn(vs ...uuid.UUID) predicate.Tran {
   382  	v := make([]interface{}, len(vs))
   383  	for i := range v {
   384  		v[i] = vs[i]
   385  	}
   386  	return predicate.Tran(func(s *sql.Selector) {
   387  		s.Where(sql.In(s.C(FieldEntID), v...))
   388  	})
   389  }
   390  
   391  // EntIDNotIn applies the NotIn predicate on the "ent_id" field.
   392  func EntIDNotIn(vs ...uuid.UUID) predicate.Tran {
   393  	v := make([]interface{}, len(vs))
   394  	for i := range v {
   395  		v[i] = vs[i]
   396  	}
   397  	return predicate.Tran(func(s *sql.Selector) {
   398  		s.Where(sql.NotIn(s.C(FieldEntID), v...))
   399  	})
   400  }
   401  
   402  // EntIDGT applies the GT predicate on the "ent_id" field.
   403  func EntIDGT(v uuid.UUID) predicate.Tran {
   404  	return predicate.Tran(func(s *sql.Selector) {
   405  		s.Where(sql.GT(s.C(FieldEntID), v))
   406  	})
   407  }
   408  
   409  // EntIDGTE applies the GTE predicate on the "ent_id" field.
   410  func EntIDGTE(v uuid.UUID) predicate.Tran {
   411  	return predicate.Tran(func(s *sql.Selector) {
   412  		s.Where(sql.GTE(s.C(FieldEntID), v))
   413  	})
   414  }
   415  
   416  // EntIDLT applies the LT predicate on the "ent_id" field.
   417  func EntIDLT(v uuid.UUID) predicate.Tran {
   418  	return predicate.Tran(func(s *sql.Selector) {
   419  		s.Where(sql.LT(s.C(FieldEntID), v))
   420  	})
   421  }
   422  
   423  // EntIDLTE applies the LTE predicate on the "ent_id" field.
   424  func EntIDLTE(v uuid.UUID) predicate.Tran {
   425  	return predicate.Tran(func(s *sql.Selector) {
   426  		s.Where(sql.LTE(s.C(FieldEntID), v))
   427  	})
   428  }
   429  
   430  // CoinTypeIDEQ applies the EQ predicate on the "coin_type_id" field.
   431  func CoinTypeIDEQ(v uuid.UUID) predicate.Tran {
   432  	return predicate.Tran(func(s *sql.Selector) {
   433  		s.Where(sql.EQ(s.C(FieldCoinTypeID), v))
   434  	})
   435  }
   436  
   437  // CoinTypeIDNEQ applies the NEQ predicate on the "coin_type_id" field.
   438  func CoinTypeIDNEQ(v uuid.UUID) predicate.Tran {
   439  	return predicate.Tran(func(s *sql.Selector) {
   440  		s.Where(sql.NEQ(s.C(FieldCoinTypeID), v))
   441  	})
   442  }
   443  
   444  // CoinTypeIDIn applies the In predicate on the "coin_type_id" field.
   445  func CoinTypeIDIn(vs ...uuid.UUID) predicate.Tran {
   446  	v := make([]interface{}, len(vs))
   447  	for i := range v {
   448  		v[i] = vs[i]
   449  	}
   450  	return predicate.Tran(func(s *sql.Selector) {
   451  		s.Where(sql.In(s.C(FieldCoinTypeID), v...))
   452  	})
   453  }
   454  
   455  // CoinTypeIDNotIn applies the NotIn predicate on the "coin_type_id" field.
   456  func CoinTypeIDNotIn(vs ...uuid.UUID) predicate.Tran {
   457  	v := make([]interface{}, len(vs))
   458  	for i := range v {
   459  		v[i] = vs[i]
   460  	}
   461  	return predicate.Tran(func(s *sql.Selector) {
   462  		s.Where(sql.NotIn(s.C(FieldCoinTypeID), v...))
   463  	})
   464  }
   465  
   466  // CoinTypeIDGT applies the GT predicate on the "coin_type_id" field.
   467  func CoinTypeIDGT(v uuid.UUID) predicate.Tran {
   468  	return predicate.Tran(func(s *sql.Selector) {
   469  		s.Where(sql.GT(s.C(FieldCoinTypeID), v))
   470  	})
   471  }
   472  
   473  // CoinTypeIDGTE applies the GTE predicate on the "coin_type_id" field.
   474  func CoinTypeIDGTE(v uuid.UUID) predicate.Tran {
   475  	return predicate.Tran(func(s *sql.Selector) {
   476  		s.Where(sql.GTE(s.C(FieldCoinTypeID), v))
   477  	})
   478  }
   479  
   480  // CoinTypeIDLT applies the LT predicate on the "coin_type_id" field.
   481  func CoinTypeIDLT(v uuid.UUID) predicate.Tran {
   482  	return predicate.Tran(func(s *sql.Selector) {
   483  		s.Where(sql.LT(s.C(FieldCoinTypeID), v))
   484  	})
   485  }
   486  
   487  // CoinTypeIDLTE applies the LTE predicate on the "coin_type_id" field.
   488  func CoinTypeIDLTE(v uuid.UUID) predicate.Tran {
   489  	return predicate.Tran(func(s *sql.Selector) {
   490  		s.Where(sql.LTE(s.C(FieldCoinTypeID), v))
   491  	})
   492  }
   493  
   494  // CoinTypeIDIsNil applies the IsNil predicate on the "coin_type_id" field.
   495  func CoinTypeIDIsNil() predicate.Tran {
   496  	return predicate.Tran(func(s *sql.Selector) {
   497  		s.Where(sql.IsNull(s.C(FieldCoinTypeID)))
   498  	})
   499  }
   500  
   501  // CoinTypeIDNotNil applies the NotNil predicate on the "coin_type_id" field.
   502  func CoinTypeIDNotNil() predicate.Tran {
   503  	return predicate.Tran(func(s *sql.Selector) {
   504  		s.Where(sql.NotNull(s.C(FieldCoinTypeID)))
   505  	})
   506  }
   507  
   508  // FromAccountIDEQ applies the EQ predicate on the "from_account_id" field.
   509  func FromAccountIDEQ(v uuid.UUID) predicate.Tran {
   510  	return predicate.Tran(func(s *sql.Selector) {
   511  		s.Where(sql.EQ(s.C(FieldFromAccountID), v))
   512  	})
   513  }
   514  
   515  // FromAccountIDNEQ applies the NEQ predicate on the "from_account_id" field.
   516  func FromAccountIDNEQ(v uuid.UUID) predicate.Tran {
   517  	return predicate.Tran(func(s *sql.Selector) {
   518  		s.Where(sql.NEQ(s.C(FieldFromAccountID), v))
   519  	})
   520  }
   521  
   522  // FromAccountIDIn applies the In predicate on the "from_account_id" field.
   523  func FromAccountIDIn(vs ...uuid.UUID) predicate.Tran {
   524  	v := make([]interface{}, len(vs))
   525  	for i := range v {
   526  		v[i] = vs[i]
   527  	}
   528  	return predicate.Tran(func(s *sql.Selector) {
   529  		s.Where(sql.In(s.C(FieldFromAccountID), v...))
   530  	})
   531  }
   532  
   533  // FromAccountIDNotIn applies the NotIn predicate on the "from_account_id" field.
   534  func FromAccountIDNotIn(vs ...uuid.UUID) predicate.Tran {
   535  	v := make([]interface{}, len(vs))
   536  	for i := range v {
   537  		v[i] = vs[i]
   538  	}
   539  	return predicate.Tran(func(s *sql.Selector) {
   540  		s.Where(sql.NotIn(s.C(FieldFromAccountID), v...))
   541  	})
   542  }
   543  
   544  // FromAccountIDGT applies the GT predicate on the "from_account_id" field.
   545  func FromAccountIDGT(v uuid.UUID) predicate.Tran {
   546  	return predicate.Tran(func(s *sql.Selector) {
   547  		s.Where(sql.GT(s.C(FieldFromAccountID), v))
   548  	})
   549  }
   550  
   551  // FromAccountIDGTE applies the GTE predicate on the "from_account_id" field.
   552  func FromAccountIDGTE(v uuid.UUID) predicate.Tran {
   553  	return predicate.Tran(func(s *sql.Selector) {
   554  		s.Where(sql.GTE(s.C(FieldFromAccountID), v))
   555  	})
   556  }
   557  
   558  // FromAccountIDLT applies the LT predicate on the "from_account_id" field.
   559  func FromAccountIDLT(v uuid.UUID) predicate.Tran {
   560  	return predicate.Tran(func(s *sql.Selector) {
   561  		s.Where(sql.LT(s.C(FieldFromAccountID), v))
   562  	})
   563  }
   564  
   565  // FromAccountIDLTE applies the LTE predicate on the "from_account_id" field.
   566  func FromAccountIDLTE(v uuid.UUID) predicate.Tran {
   567  	return predicate.Tran(func(s *sql.Selector) {
   568  		s.Where(sql.LTE(s.C(FieldFromAccountID), v))
   569  	})
   570  }
   571  
   572  // FromAccountIDIsNil applies the IsNil predicate on the "from_account_id" field.
   573  func FromAccountIDIsNil() predicate.Tran {
   574  	return predicate.Tran(func(s *sql.Selector) {
   575  		s.Where(sql.IsNull(s.C(FieldFromAccountID)))
   576  	})
   577  }
   578  
   579  // FromAccountIDNotNil applies the NotNil predicate on the "from_account_id" field.
   580  func FromAccountIDNotNil() predicate.Tran {
   581  	return predicate.Tran(func(s *sql.Selector) {
   582  		s.Where(sql.NotNull(s.C(FieldFromAccountID)))
   583  	})
   584  }
   585  
   586  // ToAccountIDEQ applies the EQ predicate on the "to_account_id" field.
   587  func ToAccountIDEQ(v uuid.UUID) predicate.Tran {
   588  	return predicate.Tran(func(s *sql.Selector) {
   589  		s.Where(sql.EQ(s.C(FieldToAccountID), v))
   590  	})
   591  }
   592  
   593  // ToAccountIDNEQ applies the NEQ predicate on the "to_account_id" field.
   594  func ToAccountIDNEQ(v uuid.UUID) predicate.Tran {
   595  	return predicate.Tran(func(s *sql.Selector) {
   596  		s.Where(sql.NEQ(s.C(FieldToAccountID), v))
   597  	})
   598  }
   599  
   600  // ToAccountIDIn applies the In predicate on the "to_account_id" field.
   601  func ToAccountIDIn(vs ...uuid.UUID) predicate.Tran {
   602  	v := make([]interface{}, len(vs))
   603  	for i := range v {
   604  		v[i] = vs[i]
   605  	}
   606  	return predicate.Tran(func(s *sql.Selector) {
   607  		s.Where(sql.In(s.C(FieldToAccountID), v...))
   608  	})
   609  }
   610  
   611  // ToAccountIDNotIn applies the NotIn predicate on the "to_account_id" field.
   612  func ToAccountIDNotIn(vs ...uuid.UUID) predicate.Tran {
   613  	v := make([]interface{}, len(vs))
   614  	for i := range v {
   615  		v[i] = vs[i]
   616  	}
   617  	return predicate.Tran(func(s *sql.Selector) {
   618  		s.Where(sql.NotIn(s.C(FieldToAccountID), v...))
   619  	})
   620  }
   621  
   622  // ToAccountIDGT applies the GT predicate on the "to_account_id" field.
   623  func ToAccountIDGT(v uuid.UUID) predicate.Tran {
   624  	return predicate.Tran(func(s *sql.Selector) {
   625  		s.Where(sql.GT(s.C(FieldToAccountID), v))
   626  	})
   627  }
   628  
   629  // ToAccountIDGTE applies the GTE predicate on the "to_account_id" field.
   630  func ToAccountIDGTE(v uuid.UUID) predicate.Tran {
   631  	return predicate.Tran(func(s *sql.Selector) {
   632  		s.Where(sql.GTE(s.C(FieldToAccountID), v))
   633  	})
   634  }
   635  
   636  // ToAccountIDLT applies the LT predicate on the "to_account_id" field.
   637  func ToAccountIDLT(v uuid.UUID) predicate.Tran {
   638  	return predicate.Tran(func(s *sql.Selector) {
   639  		s.Where(sql.LT(s.C(FieldToAccountID), v))
   640  	})
   641  }
   642  
   643  // ToAccountIDLTE applies the LTE predicate on the "to_account_id" field.
   644  func ToAccountIDLTE(v uuid.UUID) predicate.Tran {
   645  	return predicate.Tran(func(s *sql.Selector) {
   646  		s.Where(sql.LTE(s.C(FieldToAccountID), v))
   647  	})
   648  }
   649  
   650  // ToAccountIDIsNil applies the IsNil predicate on the "to_account_id" field.
   651  func ToAccountIDIsNil() predicate.Tran {
   652  	return predicate.Tran(func(s *sql.Selector) {
   653  		s.Where(sql.IsNull(s.C(FieldToAccountID)))
   654  	})
   655  }
   656  
   657  // ToAccountIDNotNil applies the NotNil predicate on the "to_account_id" field.
   658  func ToAccountIDNotNil() predicate.Tran {
   659  	return predicate.Tran(func(s *sql.Selector) {
   660  		s.Where(sql.NotNull(s.C(FieldToAccountID)))
   661  	})
   662  }
   663  
   664  // AmountEQ applies the EQ predicate on the "amount" field.
   665  func AmountEQ(v decimal.Decimal) predicate.Tran {
   666  	return predicate.Tran(func(s *sql.Selector) {
   667  		s.Where(sql.EQ(s.C(FieldAmount), v))
   668  	})
   669  }
   670  
   671  // AmountNEQ applies the NEQ predicate on the "amount" field.
   672  func AmountNEQ(v decimal.Decimal) predicate.Tran {
   673  	return predicate.Tran(func(s *sql.Selector) {
   674  		s.Where(sql.NEQ(s.C(FieldAmount), v))
   675  	})
   676  }
   677  
   678  // AmountIn applies the In predicate on the "amount" field.
   679  func AmountIn(vs ...decimal.Decimal) predicate.Tran {
   680  	v := make([]interface{}, len(vs))
   681  	for i := range v {
   682  		v[i] = vs[i]
   683  	}
   684  	return predicate.Tran(func(s *sql.Selector) {
   685  		s.Where(sql.In(s.C(FieldAmount), v...))
   686  	})
   687  }
   688  
   689  // AmountNotIn applies the NotIn predicate on the "amount" field.
   690  func AmountNotIn(vs ...decimal.Decimal) predicate.Tran {
   691  	v := make([]interface{}, len(vs))
   692  	for i := range v {
   693  		v[i] = vs[i]
   694  	}
   695  	return predicate.Tran(func(s *sql.Selector) {
   696  		s.Where(sql.NotIn(s.C(FieldAmount), v...))
   697  	})
   698  }
   699  
   700  // AmountGT applies the GT predicate on the "amount" field.
   701  func AmountGT(v decimal.Decimal) predicate.Tran {
   702  	return predicate.Tran(func(s *sql.Selector) {
   703  		s.Where(sql.GT(s.C(FieldAmount), v))
   704  	})
   705  }
   706  
   707  // AmountGTE applies the GTE predicate on the "amount" field.
   708  func AmountGTE(v decimal.Decimal) predicate.Tran {
   709  	return predicate.Tran(func(s *sql.Selector) {
   710  		s.Where(sql.GTE(s.C(FieldAmount), v))
   711  	})
   712  }
   713  
   714  // AmountLT applies the LT predicate on the "amount" field.
   715  func AmountLT(v decimal.Decimal) predicate.Tran {
   716  	return predicate.Tran(func(s *sql.Selector) {
   717  		s.Where(sql.LT(s.C(FieldAmount), v))
   718  	})
   719  }
   720  
   721  // AmountLTE applies the LTE predicate on the "amount" field.
   722  func AmountLTE(v decimal.Decimal) predicate.Tran {
   723  	return predicate.Tran(func(s *sql.Selector) {
   724  		s.Where(sql.LTE(s.C(FieldAmount), v))
   725  	})
   726  }
   727  
   728  // AmountIsNil applies the IsNil predicate on the "amount" field.
   729  func AmountIsNil() predicate.Tran {
   730  	return predicate.Tran(func(s *sql.Selector) {
   731  		s.Where(sql.IsNull(s.C(FieldAmount)))
   732  	})
   733  }
   734  
   735  // AmountNotNil applies the NotNil predicate on the "amount" field.
   736  func AmountNotNil() predicate.Tran {
   737  	return predicate.Tran(func(s *sql.Selector) {
   738  		s.Where(sql.NotNull(s.C(FieldAmount)))
   739  	})
   740  }
   741  
   742  // FeeAmountEQ applies the EQ predicate on the "fee_amount" field.
   743  func FeeAmountEQ(v decimal.Decimal) predicate.Tran {
   744  	return predicate.Tran(func(s *sql.Selector) {
   745  		s.Where(sql.EQ(s.C(FieldFeeAmount), v))
   746  	})
   747  }
   748  
   749  // FeeAmountNEQ applies the NEQ predicate on the "fee_amount" field.
   750  func FeeAmountNEQ(v decimal.Decimal) predicate.Tran {
   751  	return predicate.Tran(func(s *sql.Selector) {
   752  		s.Where(sql.NEQ(s.C(FieldFeeAmount), v))
   753  	})
   754  }
   755  
   756  // FeeAmountIn applies the In predicate on the "fee_amount" field.
   757  func FeeAmountIn(vs ...decimal.Decimal) predicate.Tran {
   758  	v := make([]interface{}, len(vs))
   759  	for i := range v {
   760  		v[i] = vs[i]
   761  	}
   762  	return predicate.Tran(func(s *sql.Selector) {
   763  		s.Where(sql.In(s.C(FieldFeeAmount), v...))
   764  	})
   765  }
   766  
   767  // FeeAmountNotIn applies the NotIn predicate on the "fee_amount" field.
   768  func FeeAmountNotIn(vs ...decimal.Decimal) predicate.Tran {
   769  	v := make([]interface{}, len(vs))
   770  	for i := range v {
   771  		v[i] = vs[i]
   772  	}
   773  	return predicate.Tran(func(s *sql.Selector) {
   774  		s.Where(sql.NotIn(s.C(FieldFeeAmount), v...))
   775  	})
   776  }
   777  
   778  // FeeAmountGT applies the GT predicate on the "fee_amount" field.
   779  func FeeAmountGT(v decimal.Decimal) predicate.Tran {
   780  	return predicate.Tran(func(s *sql.Selector) {
   781  		s.Where(sql.GT(s.C(FieldFeeAmount), v))
   782  	})
   783  }
   784  
   785  // FeeAmountGTE applies the GTE predicate on the "fee_amount" field.
   786  func FeeAmountGTE(v decimal.Decimal) predicate.Tran {
   787  	return predicate.Tran(func(s *sql.Selector) {
   788  		s.Where(sql.GTE(s.C(FieldFeeAmount), v))
   789  	})
   790  }
   791  
   792  // FeeAmountLT applies the LT predicate on the "fee_amount" field.
   793  func FeeAmountLT(v decimal.Decimal) predicate.Tran {
   794  	return predicate.Tran(func(s *sql.Selector) {
   795  		s.Where(sql.LT(s.C(FieldFeeAmount), v))
   796  	})
   797  }
   798  
   799  // FeeAmountLTE applies the LTE predicate on the "fee_amount" field.
   800  func FeeAmountLTE(v decimal.Decimal) predicate.Tran {
   801  	return predicate.Tran(func(s *sql.Selector) {
   802  		s.Where(sql.LTE(s.C(FieldFeeAmount), v))
   803  	})
   804  }
   805  
   806  // FeeAmountIsNil applies the IsNil predicate on the "fee_amount" field.
   807  func FeeAmountIsNil() predicate.Tran {
   808  	return predicate.Tran(func(s *sql.Selector) {
   809  		s.Where(sql.IsNull(s.C(FieldFeeAmount)))
   810  	})
   811  }
   812  
   813  // FeeAmountNotNil applies the NotNil predicate on the "fee_amount" field.
   814  func FeeAmountNotNil() predicate.Tran {
   815  	return predicate.Tran(func(s *sql.Selector) {
   816  		s.Where(sql.NotNull(s.C(FieldFeeAmount)))
   817  	})
   818  }
   819  
   820  // ChainTxIDEQ applies the EQ predicate on the "chain_tx_id" field.
   821  func ChainTxIDEQ(v string) predicate.Tran {
   822  	return predicate.Tran(func(s *sql.Selector) {
   823  		s.Where(sql.EQ(s.C(FieldChainTxID), v))
   824  	})
   825  }
   826  
   827  // ChainTxIDNEQ applies the NEQ predicate on the "chain_tx_id" field.
   828  func ChainTxIDNEQ(v string) predicate.Tran {
   829  	return predicate.Tran(func(s *sql.Selector) {
   830  		s.Where(sql.NEQ(s.C(FieldChainTxID), v))
   831  	})
   832  }
   833  
   834  // ChainTxIDIn applies the In predicate on the "chain_tx_id" field.
   835  func ChainTxIDIn(vs ...string) predicate.Tran {
   836  	v := make([]interface{}, len(vs))
   837  	for i := range v {
   838  		v[i] = vs[i]
   839  	}
   840  	return predicate.Tran(func(s *sql.Selector) {
   841  		s.Where(sql.In(s.C(FieldChainTxID), v...))
   842  	})
   843  }
   844  
   845  // ChainTxIDNotIn applies the NotIn predicate on the "chain_tx_id" field.
   846  func ChainTxIDNotIn(vs ...string) predicate.Tran {
   847  	v := make([]interface{}, len(vs))
   848  	for i := range v {
   849  		v[i] = vs[i]
   850  	}
   851  	return predicate.Tran(func(s *sql.Selector) {
   852  		s.Where(sql.NotIn(s.C(FieldChainTxID), v...))
   853  	})
   854  }
   855  
   856  // ChainTxIDGT applies the GT predicate on the "chain_tx_id" field.
   857  func ChainTxIDGT(v string) predicate.Tran {
   858  	return predicate.Tran(func(s *sql.Selector) {
   859  		s.Where(sql.GT(s.C(FieldChainTxID), v))
   860  	})
   861  }
   862  
   863  // ChainTxIDGTE applies the GTE predicate on the "chain_tx_id" field.
   864  func ChainTxIDGTE(v string) predicate.Tran {
   865  	return predicate.Tran(func(s *sql.Selector) {
   866  		s.Where(sql.GTE(s.C(FieldChainTxID), v))
   867  	})
   868  }
   869  
   870  // ChainTxIDLT applies the LT predicate on the "chain_tx_id" field.
   871  func ChainTxIDLT(v string) predicate.Tran {
   872  	return predicate.Tran(func(s *sql.Selector) {
   873  		s.Where(sql.LT(s.C(FieldChainTxID), v))
   874  	})
   875  }
   876  
   877  // ChainTxIDLTE applies the LTE predicate on the "chain_tx_id" field.
   878  func ChainTxIDLTE(v string) predicate.Tran {
   879  	return predicate.Tran(func(s *sql.Selector) {
   880  		s.Where(sql.LTE(s.C(FieldChainTxID), v))
   881  	})
   882  }
   883  
   884  // ChainTxIDContains applies the Contains predicate on the "chain_tx_id" field.
   885  func ChainTxIDContains(v string) predicate.Tran {
   886  	return predicate.Tran(func(s *sql.Selector) {
   887  		s.Where(sql.Contains(s.C(FieldChainTxID), v))
   888  	})
   889  }
   890  
   891  // ChainTxIDHasPrefix applies the HasPrefix predicate on the "chain_tx_id" field.
   892  func ChainTxIDHasPrefix(v string) predicate.Tran {
   893  	return predicate.Tran(func(s *sql.Selector) {
   894  		s.Where(sql.HasPrefix(s.C(FieldChainTxID), v))
   895  	})
   896  }
   897  
   898  // ChainTxIDHasSuffix applies the HasSuffix predicate on the "chain_tx_id" field.
   899  func ChainTxIDHasSuffix(v string) predicate.Tran {
   900  	return predicate.Tran(func(s *sql.Selector) {
   901  		s.Where(sql.HasSuffix(s.C(FieldChainTxID), v))
   902  	})
   903  }
   904  
   905  // ChainTxIDIsNil applies the IsNil predicate on the "chain_tx_id" field.
   906  func ChainTxIDIsNil() predicate.Tran {
   907  	return predicate.Tran(func(s *sql.Selector) {
   908  		s.Where(sql.IsNull(s.C(FieldChainTxID)))
   909  	})
   910  }
   911  
   912  // ChainTxIDNotNil applies the NotNil predicate on the "chain_tx_id" field.
   913  func ChainTxIDNotNil() predicate.Tran {
   914  	return predicate.Tran(func(s *sql.Selector) {
   915  		s.Where(sql.NotNull(s.C(FieldChainTxID)))
   916  	})
   917  }
   918  
   919  // ChainTxIDEqualFold applies the EqualFold predicate on the "chain_tx_id" field.
   920  func ChainTxIDEqualFold(v string) predicate.Tran {
   921  	return predicate.Tran(func(s *sql.Selector) {
   922  		s.Where(sql.EqualFold(s.C(FieldChainTxID), v))
   923  	})
   924  }
   925  
   926  // ChainTxIDContainsFold applies the ContainsFold predicate on the "chain_tx_id" field.
   927  func ChainTxIDContainsFold(v string) predicate.Tran {
   928  	return predicate.Tran(func(s *sql.Selector) {
   929  		s.Where(sql.ContainsFold(s.C(FieldChainTxID), v))
   930  	})
   931  }
   932  
   933  // StateEQ applies the EQ predicate on the "state" field.
   934  func StateEQ(v string) predicate.Tran {
   935  	return predicate.Tran(func(s *sql.Selector) {
   936  		s.Where(sql.EQ(s.C(FieldState), v))
   937  	})
   938  }
   939  
   940  // StateNEQ applies the NEQ predicate on the "state" field.
   941  func StateNEQ(v string) predicate.Tran {
   942  	return predicate.Tran(func(s *sql.Selector) {
   943  		s.Where(sql.NEQ(s.C(FieldState), v))
   944  	})
   945  }
   946  
   947  // StateIn applies the In predicate on the "state" field.
   948  func StateIn(vs ...string) predicate.Tran {
   949  	v := make([]interface{}, len(vs))
   950  	for i := range v {
   951  		v[i] = vs[i]
   952  	}
   953  	return predicate.Tran(func(s *sql.Selector) {
   954  		s.Where(sql.In(s.C(FieldState), v...))
   955  	})
   956  }
   957  
   958  // StateNotIn applies the NotIn predicate on the "state" field.
   959  func StateNotIn(vs ...string) predicate.Tran {
   960  	v := make([]interface{}, len(vs))
   961  	for i := range v {
   962  		v[i] = vs[i]
   963  	}
   964  	return predicate.Tran(func(s *sql.Selector) {
   965  		s.Where(sql.NotIn(s.C(FieldState), v...))
   966  	})
   967  }
   968  
   969  // StateGT applies the GT predicate on the "state" field.
   970  func StateGT(v string) predicate.Tran {
   971  	return predicate.Tran(func(s *sql.Selector) {
   972  		s.Where(sql.GT(s.C(FieldState), v))
   973  	})
   974  }
   975  
   976  // StateGTE applies the GTE predicate on the "state" field.
   977  func StateGTE(v string) predicate.Tran {
   978  	return predicate.Tran(func(s *sql.Selector) {
   979  		s.Where(sql.GTE(s.C(FieldState), v))
   980  	})
   981  }
   982  
   983  // StateLT applies the LT predicate on the "state" field.
   984  func StateLT(v string) predicate.Tran {
   985  	return predicate.Tran(func(s *sql.Selector) {
   986  		s.Where(sql.LT(s.C(FieldState), v))
   987  	})
   988  }
   989  
   990  // StateLTE applies the LTE predicate on the "state" field.
   991  func StateLTE(v string) predicate.Tran {
   992  	return predicate.Tran(func(s *sql.Selector) {
   993  		s.Where(sql.LTE(s.C(FieldState), v))
   994  	})
   995  }
   996  
   997  // StateContains applies the Contains predicate on the "state" field.
   998  func StateContains(v string) predicate.Tran {
   999  	return predicate.Tran(func(s *sql.Selector) {
  1000  		s.Where(sql.Contains(s.C(FieldState), v))
  1001  	})
  1002  }
  1003  
  1004  // StateHasPrefix applies the HasPrefix predicate on the "state" field.
  1005  func StateHasPrefix(v string) predicate.Tran {
  1006  	return predicate.Tran(func(s *sql.Selector) {
  1007  		s.Where(sql.HasPrefix(s.C(FieldState), v))
  1008  	})
  1009  }
  1010  
  1011  // StateHasSuffix applies the HasSuffix predicate on the "state" field.
  1012  func StateHasSuffix(v string) predicate.Tran {
  1013  	return predicate.Tran(func(s *sql.Selector) {
  1014  		s.Where(sql.HasSuffix(s.C(FieldState), v))
  1015  	})
  1016  }
  1017  
  1018  // StateIsNil applies the IsNil predicate on the "state" field.
  1019  func StateIsNil() predicate.Tran {
  1020  	return predicate.Tran(func(s *sql.Selector) {
  1021  		s.Where(sql.IsNull(s.C(FieldState)))
  1022  	})
  1023  }
  1024  
  1025  // StateNotNil applies the NotNil predicate on the "state" field.
  1026  func StateNotNil() predicate.Tran {
  1027  	return predicate.Tran(func(s *sql.Selector) {
  1028  		s.Where(sql.NotNull(s.C(FieldState)))
  1029  	})
  1030  }
  1031  
  1032  // StateEqualFold applies the EqualFold predicate on the "state" field.
  1033  func StateEqualFold(v string) predicate.Tran {
  1034  	return predicate.Tran(func(s *sql.Selector) {
  1035  		s.Where(sql.EqualFold(s.C(FieldState), v))
  1036  	})
  1037  }
  1038  
  1039  // StateContainsFold applies the ContainsFold predicate on the "state" field.
  1040  func StateContainsFold(v string) predicate.Tran {
  1041  	return predicate.Tran(func(s *sql.Selector) {
  1042  		s.Where(sql.ContainsFold(s.C(FieldState), v))
  1043  	})
  1044  }
  1045  
  1046  // ExtraEQ applies the EQ predicate on the "extra" field.
  1047  func ExtraEQ(v string) predicate.Tran {
  1048  	return predicate.Tran(func(s *sql.Selector) {
  1049  		s.Where(sql.EQ(s.C(FieldExtra), v))
  1050  	})
  1051  }
  1052  
  1053  // ExtraNEQ applies the NEQ predicate on the "extra" field.
  1054  func ExtraNEQ(v string) predicate.Tran {
  1055  	return predicate.Tran(func(s *sql.Selector) {
  1056  		s.Where(sql.NEQ(s.C(FieldExtra), v))
  1057  	})
  1058  }
  1059  
  1060  // ExtraIn applies the In predicate on the "extra" field.
  1061  func ExtraIn(vs ...string) predicate.Tran {
  1062  	v := make([]interface{}, len(vs))
  1063  	for i := range v {
  1064  		v[i] = vs[i]
  1065  	}
  1066  	return predicate.Tran(func(s *sql.Selector) {
  1067  		s.Where(sql.In(s.C(FieldExtra), v...))
  1068  	})
  1069  }
  1070  
  1071  // ExtraNotIn applies the NotIn predicate on the "extra" field.
  1072  func ExtraNotIn(vs ...string) predicate.Tran {
  1073  	v := make([]interface{}, len(vs))
  1074  	for i := range v {
  1075  		v[i] = vs[i]
  1076  	}
  1077  	return predicate.Tran(func(s *sql.Selector) {
  1078  		s.Where(sql.NotIn(s.C(FieldExtra), v...))
  1079  	})
  1080  }
  1081  
  1082  // ExtraGT applies the GT predicate on the "extra" field.
  1083  func ExtraGT(v string) predicate.Tran {
  1084  	return predicate.Tran(func(s *sql.Selector) {
  1085  		s.Where(sql.GT(s.C(FieldExtra), v))
  1086  	})
  1087  }
  1088  
  1089  // ExtraGTE applies the GTE predicate on the "extra" field.
  1090  func ExtraGTE(v string) predicate.Tran {
  1091  	return predicate.Tran(func(s *sql.Selector) {
  1092  		s.Where(sql.GTE(s.C(FieldExtra), v))
  1093  	})
  1094  }
  1095  
  1096  // ExtraLT applies the LT predicate on the "extra" field.
  1097  func ExtraLT(v string) predicate.Tran {
  1098  	return predicate.Tran(func(s *sql.Selector) {
  1099  		s.Where(sql.LT(s.C(FieldExtra), v))
  1100  	})
  1101  }
  1102  
  1103  // ExtraLTE applies the LTE predicate on the "extra" field.
  1104  func ExtraLTE(v string) predicate.Tran {
  1105  	return predicate.Tran(func(s *sql.Selector) {
  1106  		s.Where(sql.LTE(s.C(FieldExtra), v))
  1107  	})
  1108  }
  1109  
  1110  // ExtraContains applies the Contains predicate on the "extra" field.
  1111  func ExtraContains(v string) predicate.Tran {
  1112  	return predicate.Tran(func(s *sql.Selector) {
  1113  		s.Where(sql.Contains(s.C(FieldExtra), v))
  1114  	})
  1115  }
  1116  
  1117  // ExtraHasPrefix applies the HasPrefix predicate on the "extra" field.
  1118  func ExtraHasPrefix(v string) predicate.Tran {
  1119  	return predicate.Tran(func(s *sql.Selector) {
  1120  		s.Where(sql.HasPrefix(s.C(FieldExtra), v))
  1121  	})
  1122  }
  1123  
  1124  // ExtraHasSuffix applies the HasSuffix predicate on the "extra" field.
  1125  func ExtraHasSuffix(v string) predicate.Tran {
  1126  	return predicate.Tran(func(s *sql.Selector) {
  1127  		s.Where(sql.HasSuffix(s.C(FieldExtra), v))
  1128  	})
  1129  }
  1130  
  1131  // ExtraIsNil applies the IsNil predicate on the "extra" field.
  1132  func ExtraIsNil() predicate.Tran {
  1133  	return predicate.Tran(func(s *sql.Selector) {
  1134  		s.Where(sql.IsNull(s.C(FieldExtra)))
  1135  	})
  1136  }
  1137  
  1138  // ExtraNotNil applies the NotNil predicate on the "extra" field.
  1139  func ExtraNotNil() predicate.Tran {
  1140  	return predicate.Tran(func(s *sql.Selector) {
  1141  		s.Where(sql.NotNull(s.C(FieldExtra)))
  1142  	})
  1143  }
  1144  
  1145  // ExtraEqualFold applies the EqualFold predicate on the "extra" field.
  1146  func ExtraEqualFold(v string) predicate.Tran {
  1147  	return predicate.Tran(func(s *sql.Selector) {
  1148  		s.Where(sql.EqualFold(s.C(FieldExtra), v))
  1149  	})
  1150  }
  1151  
  1152  // ExtraContainsFold applies the ContainsFold predicate on the "extra" field.
  1153  func ExtraContainsFold(v string) predicate.Tran {
  1154  	return predicate.Tran(func(s *sql.Selector) {
  1155  		s.Where(sql.ContainsFold(s.C(FieldExtra), v))
  1156  	})
  1157  }
  1158  
  1159  // TypeEQ applies the EQ predicate on the "type" field.
  1160  func TypeEQ(v string) predicate.Tran {
  1161  	return predicate.Tran(func(s *sql.Selector) {
  1162  		s.Where(sql.EQ(s.C(FieldType), v))
  1163  	})
  1164  }
  1165  
  1166  // TypeNEQ applies the NEQ predicate on the "type" field.
  1167  func TypeNEQ(v string) predicate.Tran {
  1168  	return predicate.Tran(func(s *sql.Selector) {
  1169  		s.Where(sql.NEQ(s.C(FieldType), v))
  1170  	})
  1171  }
  1172  
  1173  // TypeIn applies the In predicate on the "type" field.
  1174  func TypeIn(vs ...string) predicate.Tran {
  1175  	v := make([]interface{}, len(vs))
  1176  	for i := range v {
  1177  		v[i] = vs[i]
  1178  	}
  1179  	return predicate.Tran(func(s *sql.Selector) {
  1180  		s.Where(sql.In(s.C(FieldType), v...))
  1181  	})
  1182  }
  1183  
  1184  // TypeNotIn applies the NotIn predicate on the "type" field.
  1185  func TypeNotIn(vs ...string) predicate.Tran {
  1186  	v := make([]interface{}, len(vs))
  1187  	for i := range v {
  1188  		v[i] = vs[i]
  1189  	}
  1190  	return predicate.Tran(func(s *sql.Selector) {
  1191  		s.Where(sql.NotIn(s.C(FieldType), v...))
  1192  	})
  1193  }
  1194  
  1195  // TypeGT applies the GT predicate on the "type" field.
  1196  func TypeGT(v string) predicate.Tran {
  1197  	return predicate.Tran(func(s *sql.Selector) {
  1198  		s.Where(sql.GT(s.C(FieldType), v))
  1199  	})
  1200  }
  1201  
  1202  // TypeGTE applies the GTE predicate on the "type" field.
  1203  func TypeGTE(v string) predicate.Tran {
  1204  	return predicate.Tran(func(s *sql.Selector) {
  1205  		s.Where(sql.GTE(s.C(FieldType), v))
  1206  	})
  1207  }
  1208  
  1209  // TypeLT applies the LT predicate on the "type" field.
  1210  func TypeLT(v string) predicate.Tran {
  1211  	return predicate.Tran(func(s *sql.Selector) {
  1212  		s.Where(sql.LT(s.C(FieldType), v))
  1213  	})
  1214  }
  1215  
  1216  // TypeLTE applies the LTE predicate on the "type" field.
  1217  func TypeLTE(v string) predicate.Tran {
  1218  	return predicate.Tran(func(s *sql.Selector) {
  1219  		s.Where(sql.LTE(s.C(FieldType), v))
  1220  	})
  1221  }
  1222  
  1223  // TypeContains applies the Contains predicate on the "type" field.
  1224  func TypeContains(v string) predicate.Tran {
  1225  	return predicate.Tran(func(s *sql.Selector) {
  1226  		s.Where(sql.Contains(s.C(FieldType), v))
  1227  	})
  1228  }
  1229  
  1230  // TypeHasPrefix applies the HasPrefix predicate on the "type" field.
  1231  func TypeHasPrefix(v string) predicate.Tran {
  1232  	return predicate.Tran(func(s *sql.Selector) {
  1233  		s.Where(sql.HasPrefix(s.C(FieldType), v))
  1234  	})
  1235  }
  1236  
  1237  // TypeHasSuffix applies the HasSuffix predicate on the "type" field.
  1238  func TypeHasSuffix(v string) predicate.Tran {
  1239  	return predicate.Tran(func(s *sql.Selector) {
  1240  		s.Where(sql.HasSuffix(s.C(FieldType), v))
  1241  	})
  1242  }
  1243  
  1244  // TypeIsNil applies the IsNil predicate on the "type" field.
  1245  func TypeIsNil() predicate.Tran {
  1246  	return predicate.Tran(func(s *sql.Selector) {
  1247  		s.Where(sql.IsNull(s.C(FieldType)))
  1248  	})
  1249  }
  1250  
  1251  // TypeNotNil applies the NotNil predicate on the "type" field.
  1252  func TypeNotNil() predicate.Tran {
  1253  	return predicate.Tran(func(s *sql.Selector) {
  1254  		s.Where(sql.NotNull(s.C(FieldType)))
  1255  	})
  1256  }
  1257  
  1258  // TypeEqualFold applies the EqualFold predicate on the "type" field.
  1259  func TypeEqualFold(v string) predicate.Tran {
  1260  	return predicate.Tran(func(s *sql.Selector) {
  1261  		s.Where(sql.EqualFold(s.C(FieldType), v))
  1262  	})
  1263  }
  1264  
  1265  // TypeContainsFold applies the ContainsFold predicate on the "type" field.
  1266  func TypeContainsFold(v string) predicate.Tran {
  1267  	return predicate.Tran(func(s *sql.Selector) {
  1268  		s.Where(sql.ContainsFold(s.C(FieldType), v))
  1269  	})
  1270  }
  1271  
  1272  // And groups predicates with the AND operator between them.
  1273  func And(predicates ...predicate.Tran) predicate.Tran {
  1274  	return predicate.Tran(func(s *sql.Selector) {
  1275  		s1 := s.Clone().SetP(nil)
  1276  		for _, p := range predicates {
  1277  			p(s1)
  1278  		}
  1279  		s.Where(s1.P())
  1280  	})
  1281  }
  1282  
  1283  // Or groups predicates with the OR operator between them.
  1284  func Or(predicates ...predicate.Tran) predicate.Tran {
  1285  	return predicate.Tran(func(s *sql.Selector) {
  1286  		s1 := s.Clone().SetP(nil)
  1287  		for i, p := range predicates {
  1288  			if i > 0 {
  1289  				s1.Or()
  1290  			}
  1291  			p(s1)
  1292  		}
  1293  		s.Where(s1.P())
  1294  	})
  1295  }
  1296  
  1297  // Not applies the not operator on the given predicate.
  1298  func Not(p predicate.Tran) predicate.Tran {
  1299  	return predicate.Tran(func(s *sql.Selector) {
  1300  		p(s.Not())
  1301  	})
  1302  }