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

     1  // Code generated by ent, DO NOT EDIT.
     2  
     3  package coinbase
     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.CoinBase {
    14  	return predicate.CoinBase(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.CoinBase {
    21  	return predicate.CoinBase(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.CoinBase {
    28  	return predicate.CoinBase(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.CoinBase {
    35  	return predicate.CoinBase(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.CoinBase {
    46  	return predicate.CoinBase(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.CoinBase {
    57  	return predicate.CoinBase(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.CoinBase {
    64  	return predicate.CoinBase(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.CoinBase {
    71  	return predicate.CoinBase(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.CoinBase {
    78  	return predicate.CoinBase(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.CoinBase {
    85  	return predicate.CoinBase(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.CoinBase {
    92  	return predicate.CoinBase(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.CoinBase {
    99  	return predicate.CoinBase(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.CoinBase {
   106  	return predicate.CoinBase(func(s *sql.Selector) {
   107  		s.Where(sql.EQ(s.C(FieldEntID), v))
   108  	})
   109  }
   110  
   111  // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
   112  func Name(v string) predicate.CoinBase {
   113  	return predicate.CoinBase(func(s *sql.Selector) {
   114  		s.Where(sql.EQ(s.C(FieldName), v))
   115  	})
   116  }
   117  
   118  // Logo applies equality check predicate on the "logo" field. It's identical to LogoEQ.
   119  func Logo(v string) predicate.CoinBase {
   120  	return predicate.CoinBase(func(s *sql.Selector) {
   121  		s.Where(sql.EQ(s.C(FieldLogo), v))
   122  	})
   123  }
   124  
   125  // Presale applies equality check predicate on the "presale" field. It's identical to PresaleEQ.
   126  func Presale(v bool) predicate.CoinBase {
   127  	return predicate.CoinBase(func(s *sql.Selector) {
   128  		s.Where(sql.EQ(s.C(FieldPresale), v))
   129  	})
   130  }
   131  
   132  // Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ.
   133  func Unit(v string) predicate.CoinBase {
   134  	return predicate.CoinBase(func(s *sql.Selector) {
   135  		s.Where(sql.EQ(s.C(FieldUnit), v))
   136  	})
   137  }
   138  
   139  // Env applies equality check predicate on the "env" field. It's identical to EnvEQ.
   140  func Env(v string) predicate.CoinBase {
   141  	return predicate.CoinBase(func(s *sql.Selector) {
   142  		s.Where(sql.EQ(s.C(FieldEnv), v))
   143  	})
   144  }
   145  
   146  // ReservedAmount applies equality check predicate on the "reserved_amount" field. It's identical to ReservedAmountEQ.
   147  func ReservedAmount(v decimal.Decimal) predicate.CoinBase {
   148  	return predicate.CoinBase(func(s *sql.Selector) {
   149  		s.Where(sql.EQ(s.C(FieldReservedAmount), v))
   150  	})
   151  }
   152  
   153  // ForPay applies equality check predicate on the "for_pay" field. It's identical to ForPayEQ.
   154  func ForPay(v bool) predicate.CoinBase {
   155  	return predicate.CoinBase(func(s *sql.Selector) {
   156  		s.Where(sql.EQ(s.C(FieldForPay), v))
   157  	})
   158  }
   159  
   160  // Disabled applies equality check predicate on the "disabled" field. It's identical to DisabledEQ.
   161  func Disabled(v bool) predicate.CoinBase {
   162  	return predicate.CoinBase(func(s *sql.Selector) {
   163  		s.Where(sql.EQ(s.C(FieldDisabled), v))
   164  	})
   165  }
   166  
   167  // CreatedAtEQ applies the EQ predicate on the "created_at" field.
   168  func CreatedAtEQ(v uint32) predicate.CoinBase {
   169  	return predicate.CoinBase(func(s *sql.Selector) {
   170  		s.Where(sql.EQ(s.C(FieldCreatedAt), v))
   171  	})
   172  }
   173  
   174  // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
   175  func CreatedAtNEQ(v uint32) predicate.CoinBase {
   176  	return predicate.CoinBase(func(s *sql.Selector) {
   177  		s.Where(sql.NEQ(s.C(FieldCreatedAt), v))
   178  	})
   179  }
   180  
   181  // CreatedAtIn applies the In predicate on the "created_at" field.
   182  func CreatedAtIn(vs ...uint32) predicate.CoinBase {
   183  	v := make([]interface{}, len(vs))
   184  	for i := range v {
   185  		v[i] = vs[i]
   186  	}
   187  	return predicate.CoinBase(func(s *sql.Selector) {
   188  		s.Where(sql.In(s.C(FieldCreatedAt), v...))
   189  	})
   190  }
   191  
   192  // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
   193  func CreatedAtNotIn(vs ...uint32) predicate.CoinBase {
   194  	v := make([]interface{}, len(vs))
   195  	for i := range v {
   196  		v[i] = vs[i]
   197  	}
   198  	return predicate.CoinBase(func(s *sql.Selector) {
   199  		s.Where(sql.NotIn(s.C(FieldCreatedAt), v...))
   200  	})
   201  }
   202  
   203  // CreatedAtGT applies the GT predicate on the "created_at" field.
   204  func CreatedAtGT(v uint32) predicate.CoinBase {
   205  	return predicate.CoinBase(func(s *sql.Selector) {
   206  		s.Where(sql.GT(s.C(FieldCreatedAt), v))
   207  	})
   208  }
   209  
   210  // CreatedAtGTE applies the GTE predicate on the "created_at" field.
   211  func CreatedAtGTE(v uint32) predicate.CoinBase {
   212  	return predicate.CoinBase(func(s *sql.Selector) {
   213  		s.Where(sql.GTE(s.C(FieldCreatedAt), v))
   214  	})
   215  }
   216  
   217  // CreatedAtLT applies the LT predicate on the "created_at" field.
   218  func CreatedAtLT(v uint32) predicate.CoinBase {
   219  	return predicate.CoinBase(func(s *sql.Selector) {
   220  		s.Where(sql.LT(s.C(FieldCreatedAt), v))
   221  	})
   222  }
   223  
   224  // CreatedAtLTE applies the LTE predicate on the "created_at" field.
   225  func CreatedAtLTE(v uint32) predicate.CoinBase {
   226  	return predicate.CoinBase(func(s *sql.Selector) {
   227  		s.Where(sql.LTE(s.C(FieldCreatedAt), v))
   228  	})
   229  }
   230  
   231  // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
   232  func UpdatedAtEQ(v uint32) predicate.CoinBase {
   233  	return predicate.CoinBase(func(s *sql.Selector) {
   234  		s.Where(sql.EQ(s.C(FieldUpdatedAt), v))
   235  	})
   236  }
   237  
   238  // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
   239  func UpdatedAtNEQ(v uint32) predicate.CoinBase {
   240  	return predicate.CoinBase(func(s *sql.Selector) {
   241  		s.Where(sql.NEQ(s.C(FieldUpdatedAt), v))
   242  	})
   243  }
   244  
   245  // UpdatedAtIn applies the In predicate on the "updated_at" field.
   246  func UpdatedAtIn(vs ...uint32) predicate.CoinBase {
   247  	v := make([]interface{}, len(vs))
   248  	for i := range v {
   249  		v[i] = vs[i]
   250  	}
   251  	return predicate.CoinBase(func(s *sql.Selector) {
   252  		s.Where(sql.In(s.C(FieldUpdatedAt), v...))
   253  	})
   254  }
   255  
   256  // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
   257  func UpdatedAtNotIn(vs ...uint32) predicate.CoinBase {
   258  	v := make([]interface{}, len(vs))
   259  	for i := range v {
   260  		v[i] = vs[i]
   261  	}
   262  	return predicate.CoinBase(func(s *sql.Selector) {
   263  		s.Where(sql.NotIn(s.C(FieldUpdatedAt), v...))
   264  	})
   265  }
   266  
   267  // UpdatedAtGT applies the GT predicate on the "updated_at" field.
   268  func UpdatedAtGT(v uint32) predicate.CoinBase {
   269  	return predicate.CoinBase(func(s *sql.Selector) {
   270  		s.Where(sql.GT(s.C(FieldUpdatedAt), v))
   271  	})
   272  }
   273  
   274  // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
   275  func UpdatedAtGTE(v uint32) predicate.CoinBase {
   276  	return predicate.CoinBase(func(s *sql.Selector) {
   277  		s.Where(sql.GTE(s.C(FieldUpdatedAt), v))
   278  	})
   279  }
   280  
   281  // UpdatedAtLT applies the LT predicate on the "updated_at" field.
   282  func UpdatedAtLT(v uint32) predicate.CoinBase {
   283  	return predicate.CoinBase(func(s *sql.Selector) {
   284  		s.Where(sql.LT(s.C(FieldUpdatedAt), v))
   285  	})
   286  }
   287  
   288  // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
   289  func UpdatedAtLTE(v uint32) predicate.CoinBase {
   290  	return predicate.CoinBase(func(s *sql.Selector) {
   291  		s.Where(sql.LTE(s.C(FieldUpdatedAt), v))
   292  	})
   293  }
   294  
   295  // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
   296  func DeletedAtEQ(v uint32) predicate.CoinBase {
   297  	return predicate.CoinBase(func(s *sql.Selector) {
   298  		s.Where(sql.EQ(s.C(FieldDeletedAt), v))
   299  	})
   300  }
   301  
   302  // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
   303  func DeletedAtNEQ(v uint32) predicate.CoinBase {
   304  	return predicate.CoinBase(func(s *sql.Selector) {
   305  		s.Where(sql.NEQ(s.C(FieldDeletedAt), v))
   306  	})
   307  }
   308  
   309  // DeletedAtIn applies the In predicate on the "deleted_at" field.
   310  func DeletedAtIn(vs ...uint32) predicate.CoinBase {
   311  	v := make([]interface{}, len(vs))
   312  	for i := range v {
   313  		v[i] = vs[i]
   314  	}
   315  	return predicate.CoinBase(func(s *sql.Selector) {
   316  		s.Where(sql.In(s.C(FieldDeletedAt), v...))
   317  	})
   318  }
   319  
   320  // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
   321  func DeletedAtNotIn(vs ...uint32) predicate.CoinBase {
   322  	v := make([]interface{}, len(vs))
   323  	for i := range v {
   324  		v[i] = vs[i]
   325  	}
   326  	return predicate.CoinBase(func(s *sql.Selector) {
   327  		s.Where(sql.NotIn(s.C(FieldDeletedAt), v...))
   328  	})
   329  }
   330  
   331  // DeletedAtGT applies the GT predicate on the "deleted_at" field.
   332  func DeletedAtGT(v uint32) predicate.CoinBase {
   333  	return predicate.CoinBase(func(s *sql.Selector) {
   334  		s.Where(sql.GT(s.C(FieldDeletedAt), v))
   335  	})
   336  }
   337  
   338  // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
   339  func DeletedAtGTE(v uint32) predicate.CoinBase {
   340  	return predicate.CoinBase(func(s *sql.Selector) {
   341  		s.Where(sql.GTE(s.C(FieldDeletedAt), v))
   342  	})
   343  }
   344  
   345  // DeletedAtLT applies the LT predicate on the "deleted_at" field.
   346  func DeletedAtLT(v uint32) predicate.CoinBase {
   347  	return predicate.CoinBase(func(s *sql.Selector) {
   348  		s.Where(sql.LT(s.C(FieldDeletedAt), v))
   349  	})
   350  }
   351  
   352  // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
   353  func DeletedAtLTE(v uint32) predicate.CoinBase {
   354  	return predicate.CoinBase(func(s *sql.Selector) {
   355  		s.Where(sql.LTE(s.C(FieldDeletedAt), v))
   356  	})
   357  }
   358  
   359  // EntIDEQ applies the EQ predicate on the "ent_id" field.
   360  func EntIDEQ(v uuid.UUID) predicate.CoinBase {
   361  	return predicate.CoinBase(func(s *sql.Selector) {
   362  		s.Where(sql.EQ(s.C(FieldEntID), v))
   363  	})
   364  }
   365  
   366  // EntIDNEQ applies the NEQ predicate on the "ent_id" field.
   367  func EntIDNEQ(v uuid.UUID) predicate.CoinBase {
   368  	return predicate.CoinBase(func(s *sql.Selector) {
   369  		s.Where(sql.NEQ(s.C(FieldEntID), v))
   370  	})
   371  }
   372  
   373  // EntIDIn applies the In predicate on the "ent_id" field.
   374  func EntIDIn(vs ...uuid.UUID) predicate.CoinBase {
   375  	v := make([]interface{}, len(vs))
   376  	for i := range v {
   377  		v[i] = vs[i]
   378  	}
   379  	return predicate.CoinBase(func(s *sql.Selector) {
   380  		s.Where(sql.In(s.C(FieldEntID), v...))
   381  	})
   382  }
   383  
   384  // EntIDNotIn applies the NotIn predicate on the "ent_id" field.
   385  func EntIDNotIn(vs ...uuid.UUID) predicate.CoinBase {
   386  	v := make([]interface{}, len(vs))
   387  	for i := range v {
   388  		v[i] = vs[i]
   389  	}
   390  	return predicate.CoinBase(func(s *sql.Selector) {
   391  		s.Where(sql.NotIn(s.C(FieldEntID), v...))
   392  	})
   393  }
   394  
   395  // EntIDGT applies the GT predicate on the "ent_id" field.
   396  func EntIDGT(v uuid.UUID) predicate.CoinBase {
   397  	return predicate.CoinBase(func(s *sql.Selector) {
   398  		s.Where(sql.GT(s.C(FieldEntID), v))
   399  	})
   400  }
   401  
   402  // EntIDGTE applies the GTE predicate on the "ent_id" field.
   403  func EntIDGTE(v uuid.UUID) predicate.CoinBase {
   404  	return predicate.CoinBase(func(s *sql.Selector) {
   405  		s.Where(sql.GTE(s.C(FieldEntID), v))
   406  	})
   407  }
   408  
   409  // EntIDLT applies the LT predicate on the "ent_id" field.
   410  func EntIDLT(v uuid.UUID) predicate.CoinBase {
   411  	return predicate.CoinBase(func(s *sql.Selector) {
   412  		s.Where(sql.LT(s.C(FieldEntID), v))
   413  	})
   414  }
   415  
   416  // EntIDLTE applies the LTE predicate on the "ent_id" field.
   417  func EntIDLTE(v uuid.UUID) predicate.CoinBase {
   418  	return predicate.CoinBase(func(s *sql.Selector) {
   419  		s.Where(sql.LTE(s.C(FieldEntID), v))
   420  	})
   421  }
   422  
   423  // NameEQ applies the EQ predicate on the "name" field.
   424  func NameEQ(v string) predicate.CoinBase {
   425  	return predicate.CoinBase(func(s *sql.Selector) {
   426  		s.Where(sql.EQ(s.C(FieldName), v))
   427  	})
   428  }
   429  
   430  // NameNEQ applies the NEQ predicate on the "name" field.
   431  func NameNEQ(v string) predicate.CoinBase {
   432  	return predicate.CoinBase(func(s *sql.Selector) {
   433  		s.Where(sql.NEQ(s.C(FieldName), v))
   434  	})
   435  }
   436  
   437  // NameIn applies the In predicate on the "name" field.
   438  func NameIn(vs ...string) predicate.CoinBase {
   439  	v := make([]interface{}, len(vs))
   440  	for i := range v {
   441  		v[i] = vs[i]
   442  	}
   443  	return predicate.CoinBase(func(s *sql.Selector) {
   444  		s.Where(sql.In(s.C(FieldName), v...))
   445  	})
   446  }
   447  
   448  // NameNotIn applies the NotIn predicate on the "name" field.
   449  func NameNotIn(vs ...string) predicate.CoinBase {
   450  	v := make([]interface{}, len(vs))
   451  	for i := range v {
   452  		v[i] = vs[i]
   453  	}
   454  	return predicate.CoinBase(func(s *sql.Selector) {
   455  		s.Where(sql.NotIn(s.C(FieldName), v...))
   456  	})
   457  }
   458  
   459  // NameGT applies the GT predicate on the "name" field.
   460  func NameGT(v string) predicate.CoinBase {
   461  	return predicate.CoinBase(func(s *sql.Selector) {
   462  		s.Where(sql.GT(s.C(FieldName), v))
   463  	})
   464  }
   465  
   466  // NameGTE applies the GTE predicate on the "name" field.
   467  func NameGTE(v string) predicate.CoinBase {
   468  	return predicate.CoinBase(func(s *sql.Selector) {
   469  		s.Where(sql.GTE(s.C(FieldName), v))
   470  	})
   471  }
   472  
   473  // NameLT applies the LT predicate on the "name" field.
   474  func NameLT(v string) predicate.CoinBase {
   475  	return predicate.CoinBase(func(s *sql.Selector) {
   476  		s.Where(sql.LT(s.C(FieldName), v))
   477  	})
   478  }
   479  
   480  // NameLTE applies the LTE predicate on the "name" field.
   481  func NameLTE(v string) predicate.CoinBase {
   482  	return predicate.CoinBase(func(s *sql.Selector) {
   483  		s.Where(sql.LTE(s.C(FieldName), v))
   484  	})
   485  }
   486  
   487  // NameContains applies the Contains predicate on the "name" field.
   488  func NameContains(v string) predicate.CoinBase {
   489  	return predicate.CoinBase(func(s *sql.Selector) {
   490  		s.Where(sql.Contains(s.C(FieldName), v))
   491  	})
   492  }
   493  
   494  // NameHasPrefix applies the HasPrefix predicate on the "name" field.
   495  func NameHasPrefix(v string) predicate.CoinBase {
   496  	return predicate.CoinBase(func(s *sql.Selector) {
   497  		s.Where(sql.HasPrefix(s.C(FieldName), v))
   498  	})
   499  }
   500  
   501  // NameHasSuffix applies the HasSuffix predicate on the "name" field.
   502  func NameHasSuffix(v string) predicate.CoinBase {
   503  	return predicate.CoinBase(func(s *sql.Selector) {
   504  		s.Where(sql.HasSuffix(s.C(FieldName), v))
   505  	})
   506  }
   507  
   508  // NameIsNil applies the IsNil predicate on the "name" field.
   509  func NameIsNil() predicate.CoinBase {
   510  	return predicate.CoinBase(func(s *sql.Selector) {
   511  		s.Where(sql.IsNull(s.C(FieldName)))
   512  	})
   513  }
   514  
   515  // NameNotNil applies the NotNil predicate on the "name" field.
   516  func NameNotNil() predicate.CoinBase {
   517  	return predicate.CoinBase(func(s *sql.Selector) {
   518  		s.Where(sql.NotNull(s.C(FieldName)))
   519  	})
   520  }
   521  
   522  // NameEqualFold applies the EqualFold predicate on the "name" field.
   523  func NameEqualFold(v string) predicate.CoinBase {
   524  	return predicate.CoinBase(func(s *sql.Selector) {
   525  		s.Where(sql.EqualFold(s.C(FieldName), v))
   526  	})
   527  }
   528  
   529  // NameContainsFold applies the ContainsFold predicate on the "name" field.
   530  func NameContainsFold(v string) predicate.CoinBase {
   531  	return predicate.CoinBase(func(s *sql.Selector) {
   532  		s.Where(sql.ContainsFold(s.C(FieldName), v))
   533  	})
   534  }
   535  
   536  // LogoEQ applies the EQ predicate on the "logo" field.
   537  func LogoEQ(v string) predicate.CoinBase {
   538  	return predicate.CoinBase(func(s *sql.Selector) {
   539  		s.Where(sql.EQ(s.C(FieldLogo), v))
   540  	})
   541  }
   542  
   543  // LogoNEQ applies the NEQ predicate on the "logo" field.
   544  func LogoNEQ(v string) predicate.CoinBase {
   545  	return predicate.CoinBase(func(s *sql.Selector) {
   546  		s.Where(sql.NEQ(s.C(FieldLogo), v))
   547  	})
   548  }
   549  
   550  // LogoIn applies the In predicate on the "logo" field.
   551  func LogoIn(vs ...string) predicate.CoinBase {
   552  	v := make([]interface{}, len(vs))
   553  	for i := range v {
   554  		v[i] = vs[i]
   555  	}
   556  	return predicate.CoinBase(func(s *sql.Selector) {
   557  		s.Where(sql.In(s.C(FieldLogo), v...))
   558  	})
   559  }
   560  
   561  // LogoNotIn applies the NotIn predicate on the "logo" field.
   562  func LogoNotIn(vs ...string) predicate.CoinBase {
   563  	v := make([]interface{}, len(vs))
   564  	for i := range v {
   565  		v[i] = vs[i]
   566  	}
   567  	return predicate.CoinBase(func(s *sql.Selector) {
   568  		s.Where(sql.NotIn(s.C(FieldLogo), v...))
   569  	})
   570  }
   571  
   572  // LogoGT applies the GT predicate on the "logo" field.
   573  func LogoGT(v string) predicate.CoinBase {
   574  	return predicate.CoinBase(func(s *sql.Selector) {
   575  		s.Where(sql.GT(s.C(FieldLogo), v))
   576  	})
   577  }
   578  
   579  // LogoGTE applies the GTE predicate on the "logo" field.
   580  func LogoGTE(v string) predicate.CoinBase {
   581  	return predicate.CoinBase(func(s *sql.Selector) {
   582  		s.Where(sql.GTE(s.C(FieldLogo), v))
   583  	})
   584  }
   585  
   586  // LogoLT applies the LT predicate on the "logo" field.
   587  func LogoLT(v string) predicate.CoinBase {
   588  	return predicate.CoinBase(func(s *sql.Selector) {
   589  		s.Where(sql.LT(s.C(FieldLogo), v))
   590  	})
   591  }
   592  
   593  // LogoLTE applies the LTE predicate on the "logo" field.
   594  func LogoLTE(v string) predicate.CoinBase {
   595  	return predicate.CoinBase(func(s *sql.Selector) {
   596  		s.Where(sql.LTE(s.C(FieldLogo), v))
   597  	})
   598  }
   599  
   600  // LogoContains applies the Contains predicate on the "logo" field.
   601  func LogoContains(v string) predicate.CoinBase {
   602  	return predicate.CoinBase(func(s *sql.Selector) {
   603  		s.Where(sql.Contains(s.C(FieldLogo), v))
   604  	})
   605  }
   606  
   607  // LogoHasPrefix applies the HasPrefix predicate on the "logo" field.
   608  func LogoHasPrefix(v string) predicate.CoinBase {
   609  	return predicate.CoinBase(func(s *sql.Selector) {
   610  		s.Where(sql.HasPrefix(s.C(FieldLogo), v))
   611  	})
   612  }
   613  
   614  // LogoHasSuffix applies the HasSuffix predicate on the "logo" field.
   615  func LogoHasSuffix(v string) predicate.CoinBase {
   616  	return predicate.CoinBase(func(s *sql.Selector) {
   617  		s.Where(sql.HasSuffix(s.C(FieldLogo), v))
   618  	})
   619  }
   620  
   621  // LogoIsNil applies the IsNil predicate on the "logo" field.
   622  func LogoIsNil() predicate.CoinBase {
   623  	return predicate.CoinBase(func(s *sql.Selector) {
   624  		s.Where(sql.IsNull(s.C(FieldLogo)))
   625  	})
   626  }
   627  
   628  // LogoNotNil applies the NotNil predicate on the "logo" field.
   629  func LogoNotNil() predicate.CoinBase {
   630  	return predicate.CoinBase(func(s *sql.Selector) {
   631  		s.Where(sql.NotNull(s.C(FieldLogo)))
   632  	})
   633  }
   634  
   635  // LogoEqualFold applies the EqualFold predicate on the "logo" field.
   636  func LogoEqualFold(v string) predicate.CoinBase {
   637  	return predicate.CoinBase(func(s *sql.Selector) {
   638  		s.Where(sql.EqualFold(s.C(FieldLogo), v))
   639  	})
   640  }
   641  
   642  // LogoContainsFold applies the ContainsFold predicate on the "logo" field.
   643  func LogoContainsFold(v string) predicate.CoinBase {
   644  	return predicate.CoinBase(func(s *sql.Selector) {
   645  		s.Where(sql.ContainsFold(s.C(FieldLogo), v))
   646  	})
   647  }
   648  
   649  // PresaleEQ applies the EQ predicate on the "presale" field.
   650  func PresaleEQ(v bool) predicate.CoinBase {
   651  	return predicate.CoinBase(func(s *sql.Selector) {
   652  		s.Where(sql.EQ(s.C(FieldPresale), v))
   653  	})
   654  }
   655  
   656  // PresaleNEQ applies the NEQ predicate on the "presale" field.
   657  func PresaleNEQ(v bool) predicate.CoinBase {
   658  	return predicate.CoinBase(func(s *sql.Selector) {
   659  		s.Where(sql.NEQ(s.C(FieldPresale), v))
   660  	})
   661  }
   662  
   663  // PresaleIsNil applies the IsNil predicate on the "presale" field.
   664  func PresaleIsNil() predicate.CoinBase {
   665  	return predicate.CoinBase(func(s *sql.Selector) {
   666  		s.Where(sql.IsNull(s.C(FieldPresale)))
   667  	})
   668  }
   669  
   670  // PresaleNotNil applies the NotNil predicate on the "presale" field.
   671  func PresaleNotNil() predicate.CoinBase {
   672  	return predicate.CoinBase(func(s *sql.Selector) {
   673  		s.Where(sql.NotNull(s.C(FieldPresale)))
   674  	})
   675  }
   676  
   677  // UnitEQ applies the EQ predicate on the "unit" field.
   678  func UnitEQ(v string) predicate.CoinBase {
   679  	return predicate.CoinBase(func(s *sql.Selector) {
   680  		s.Where(sql.EQ(s.C(FieldUnit), v))
   681  	})
   682  }
   683  
   684  // UnitNEQ applies the NEQ predicate on the "unit" field.
   685  func UnitNEQ(v string) predicate.CoinBase {
   686  	return predicate.CoinBase(func(s *sql.Selector) {
   687  		s.Where(sql.NEQ(s.C(FieldUnit), v))
   688  	})
   689  }
   690  
   691  // UnitIn applies the In predicate on the "unit" field.
   692  func UnitIn(vs ...string) predicate.CoinBase {
   693  	v := make([]interface{}, len(vs))
   694  	for i := range v {
   695  		v[i] = vs[i]
   696  	}
   697  	return predicate.CoinBase(func(s *sql.Selector) {
   698  		s.Where(sql.In(s.C(FieldUnit), v...))
   699  	})
   700  }
   701  
   702  // UnitNotIn applies the NotIn predicate on the "unit" field.
   703  func UnitNotIn(vs ...string) predicate.CoinBase {
   704  	v := make([]interface{}, len(vs))
   705  	for i := range v {
   706  		v[i] = vs[i]
   707  	}
   708  	return predicate.CoinBase(func(s *sql.Selector) {
   709  		s.Where(sql.NotIn(s.C(FieldUnit), v...))
   710  	})
   711  }
   712  
   713  // UnitGT applies the GT predicate on the "unit" field.
   714  func UnitGT(v string) predicate.CoinBase {
   715  	return predicate.CoinBase(func(s *sql.Selector) {
   716  		s.Where(sql.GT(s.C(FieldUnit), v))
   717  	})
   718  }
   719  
   720  // UnitGTE applies the GTE predicate on the "unit" field.
   721  func UnitGTE(v string) predicate.CoinBase {
   722  	return predicate.CoinBase(func(s *sql.Selector) {
   723  		s.Where(sql.GTE(s.C(FieldUnit), v))
   724  	})
   725  }
   726  
   727  // UnitLT applies the LT predicate on the "unit" field.
   728  func UnitLT(v string) predicate.CoinBase {
   729  	return predicate.CoinBase(func(s *sql.Selector) {
   730  		s.Where(sql.LT(s.C(FieldUnit), v))
   731  	})
   732  }
   733  
   734  // UnitLTE applies the LTE predicate on the "unit" field.
   735  func UnitLTE(v string) predicate.CoinBase {
   736  	return predicate.CoinBase(func(s *sql.Selector) {
   737  		s.Where(sql.LTE(s.C(FieldUnit), v))
   738  	})
   739  }
   740  
   741  // UnitContains applies the Contains predicate on the "unit" field.
   742  func UnitContains(v string) predicate.CoinBase {
   743  	return predicate.CoinBase(func(s *sql.Selector) {
   744  		s.Where(sql.Contains(s.C(FieldUnit), v))
   745  	})
   746  }
   747  
   748  // UnitHasPrefix applies the HasPrefix predicate on the "unit" field.
   749  func UnitHasPrefix(v string) predicate.CoinBase {
   750  	return predicate.CoinBase(func(s *sql.Selector) {
   751  		s.Where(sql.HasPrefix(s.C(FieldUnit), v))
   752  	})
   753  }
   754  
   755  // UnitHasSuffix applies the HasSuffix predicate on the "unit" field.
   756  func UnitHasSuffix(v string) predicate.CoinBase {
   757  	return predicate.CoinBase(func(s *sql.Selector) {
   758  		s.Where(sql.HasSuffix(s.C(FieldUnit), v))
   759  	})
   760  }
   761  
   762  // UnitIsNil applies the IsNil predicate on the "unit" field.
   763  func UnitIsNil() predicate.CoinBase {
   764  	return predicate.CoinBase(func(s *sql.Selector) {
   765  		s.Where(sql.IsNull(s.C(FieldUnit)))
   766  	})
   767  }
   768  
   769  // UnitNotNil applies the NotNil predicate on the "unit" field.
   770  func UnitNotNil() predicate.CoinBase {
   771  	return predicate.CoinBase(func(s *sql.Selector) {
   772  		s.Where(sql.NotNull(s.C(FieldUnit)))
   773  	})
   774  }
   775  
   776  // UnitEqualFold applies the EqualFold predicate on the "unit" field.
   777  func UnitEqualFold(v string) predicate.CoinBase {
   778  	return predicate.CoinBase(func(s *sql.Selector) {
   779  		s.Where(sql.EqualFold(s.C(FieldUnit), v))
   780  	})
   781  }
   782  
   783  // UnitContainsFold applies the ContainsFold predicate on the "unit" field.
   784  func UnitContainsFold(v string) predicate.CoinBase {
   785  	return predicate.CoinBase(func(s *sql.Selector) {
   786  		s.Where(sql.ContainsFold(s.C(FieldUnit), v))
   787  	})
   788  }
   789  
   790  // EnvEQ applies the EQ predicate on the "env" field.
   791  func EnvEQ(v string) predicate.CoinBase {
   792  	return predicate.CoinBase(func(s *sql.Selector) {
   793  		s.Where(sql.EQ(s.C(FieldEnv), v))
   794  	})
   795  }
   796  
   797  // EnvNEQ applies the NEQ predicate on the "env" field.
   798  func EnvNEQ(v string) predicate.CoinBase {
   799  	return predicate.CoinBase(func(s *sql.Selector) {
   800  		s.Where(sql.NEQ(s.C(FieldEnv), v))
   801  	})
   802  }
   803  
   804  // EnvIn applies the In predicate on the "env" field.
   805  func EnvIn(vs ...string) predicate.CoinBase {
   806  	v := make([]interface{}, len(vs))
   807  	for i := range v {
   808  		v[i] = vs[i]
   809  	}
   810  	return predicate.CoinBase(func(s *sql.Selector) {
   811  		s.Where(sql.In(s.C(FieldEnv), v...))
   812  	})
   813  }
   814  
   815  // EnvNotIn applies the NotIn predicate on the "env" field.
   816  func EnvNotIn(vs ...string) predicate.CoinBase {
   817  	v := make([]interface{}, len(vs))
   818  	for i := range v {
   819  		v[i] = vs[i]
   820  	}
   821  	return predicate.CoinBase(func(s *sql.Selector) {
   822  		s.Where(sql.NotIn(s.C(FieldEnv), v...))
   823  	})
   824  }
   825  
   826  // EnvGT applies the GT predicate on the "env" field.
   827  func EnvGT(v string) predicate.CoinBase {
   828  	return predicate.CoinBase(func(s *sql.Selector) {
   829  		s.Where(sql.GT(s.C(FieldEnv), v))
   830  	})
   831  }
   832  
   833  // EnvGTE applies the GTE predicate on the "env" field.
   834  func EnvGTE(v string) predicate.CoinBase {
   835  	return predicate.CoinBase(func(s *sql.Selector) {
   836  		s.Where(sql.GTE(s.C(FieldEnv), v))
   837  	})
   838  }
   839  
   840  // EnvLT applies the LT predicate on the "env" field.
   841  func EnvLT(v string) predicate.CoinBase {
   842  	return predicate.CoinBase(func(s *sql.Selector) {
   843  		s.Where(sql.LT(s.C(FieldEnv), v))
   844  	})
   845  }
   846  
   847  // EnvLTE applies the LTE predicate on the "env" field.
   848  func EnvLTE(v string) predicate.CoinBase {
   849  	return predicate.CoinBase(func(s *sql.Selector) {
   850  		s.Where(sql.LTE(s.C(FieldEnv), v))
   851  	})
   852  }
   853  
   854  // EnvContains applies the Contains predicate on the "env" field.
   855  func EnvContains(v string) predicate.CoinBase {
   856  	return predicate.CoinBase(func(s *sql.Selector) {
   857  		s.Where(sql.Contains(s.C(FieldEnv), v))
   858  	})
   859  }
   860  
   861  // EnvHasPrefix applies the HasPrefix predicate on the "env" field.
   862  func EnvHasPrefix(v string) predicate.CoinBase {
   863  	return predicate.CoinBase(func(s *sql.Selector) {
   864  		s.Where(sql.HasPrefix(s.C(FieldEnv), v))
   865  	})
   866  }
   867  
   868  // EnvHasSuffix applies the HasSuffix predicate on the "env" field.
   869  func EnvHasSuffix(v string) predicate.CoinBase {
   870  	return predicate.CoinBase(func(s *sql.Selector) {
   871  		s.Where(sql.HasSuffix(s.C(FieldEnv), v))
   872  	})
   873  }
   874  
   875  // EnvIsNil applies the IsNil predicate on the "env" field.
   876  func EnvIsNil() predicate.CoinBase {
   877  	return predicate.CoinBase(func(s *sql.Selector) {
   878  		s.Where(sql.IsNull(s.C(FieldEnv)))
   879  	})
   880  }
   881  
   882  // EnvNotNil applies the NotNil predicate on the "env" field.
   883  func EnvNotNil() predicate.CoinBase {
   884  	return predicate.CoinBase(func(s *sql.Selector) {
   885  		s.Where(sql.NotNull(s.C(FieldEnv)))
   886  	})
   887  }
   888  
   889  // EnvEqualFold applies the EqualFold predicate on the "env" field.
   890  func EnvEqualFold(v string) predicate.CoinBase {
   891  	return predicate.CoinBase(func(s *sql.Selector) {
   892  		s.Where(sql.EqualFold(s.C(FieldEnv), v))
   893  	})
   894  }
   895  
   896  // EnvContainsFold applies the ContainsFold predicate on the "env" field.
   897  func EnvContainsFold(v string) predicate.CoinBase {
   898  	return predicate.CoinBase(func(s *sql.Selector) {
   899  		s.Where(sql.ContainsFold(s.C(FieldEnv), v))
   900  	})
   901  }
   902  
   903  // ReservedAmountEQ applies the EQ predicate on the "reserved_amount" field.
   904  func ReservedAmountEQ(v decimal.Decimal) predicate.CoinBase {
   905  	return predicate.CoinBase(func(s *sql.Selector) {
   906  		s.Where(sql.EQ(s.C(FieldReservedAmount), v))
   907  	})
   908  }
   909  
   910  // ReservedAmountNEQ applies the NEQ predicate on the "reserved_amount" field.
   911  func ReservedAmountNEQ(v decimal.Decimal) predicate.CoinBase {
   912  	return predicate.CoinBase(func(s *sql.Selector) {
   913  		s.Where(sql.NEQ(s.C(FieldReservedAmount), v))
   914  	})
   915  }
   916  
   917  // ReservedAmountIn applies the In predicate on the "reserved_amount" field.
   918  func ReservedAmountIn(vs ...decimal.Decimal) predicate.CoinBase {
   919  	v := make([]interface{}, len(vs))
   920  	for i := range v {
   921  		v[i] = vs[i]
   922  	}
   923  	return predicate.CoinBase(func(s *sql.Selector) {
   924  		s.Where(sql.In(s.C(FieldReservedAmount), v...))
   925  	})
   926  }
   927  
   928  // ReservedAmountNotIn applies the NotIn predicate on the "reserved_amount" field.
   929  func ReservedAmountNotIn(vs ...decimal.Decimal) predicate.CoinBase {
   930  	v := make([]interface{}, len(vs))
   931  	for i := range v {
   932  		v[i] = vs[i]
   933  	}
   934  	return predicate.CoinBase(func(s *sql.Selector) {
   935  		s.Where(sql.NotIn(s.C(FieldReservedAmount), v...))
   936  	})
   937  }
   938  
   939  // ReservedAmountGT applies the GT predicate on the "reserved_amount" field.
   940  func ReservedAmountGT(v decimal.Decimal) predicate.CoinBase {
   941  	return predicate.CoinBase(func(s *sql.Selector) {
   942  		s.Where(sql.GT(s.C(FieldReservedAmount), v))
   943  	})
   944  }
   945  
   946  // ReservedAmountGTE applies the GTE predicate on the "reserved_amount" field.
   947  func ReservedAmountGTE(v decimal.Decimal) predicate.CoinBase {
   948  	return predicate.CoinBase(func(s *sql.Selector) {
   949  		s.Where(sql.GTE(s.C(FieldReservedAmount), v))
   950  	})
   951  }
   952  
   953  // ReservedAmountLT applies the LT predicate on the "reserved_amount" field.
   954  func ReservedAmountLT(v decimal.Decimal) predicate.CoinBase {
   955  	return predicate.CoinBase(func(s *sql.Selector) {
   956  		s.Where(sql.LT(s.C(FieldReservedAmount), v))
   957  	})
   958  }
   959  
   960  // ReservedAmountLTE applies the LTE predicate on the "reserved_amount" field.
   961  func ReservedAmountLTE(v decimal.Decimal) predicate.CoinBase {
   962  	return predicate.CoinBase(func(s *sql.Selector) {
   963  		s.Where(sql.LTE(s.C(FieldReservedAmount), v))
   964  	})
   965  }
   966  
   967  // ReservedAmountIsNil applies the IsNil predicate on the "reserved_amount" field.
   968  func ReservedAmountIsNil() predicate.CoinBase {
   969  	return predicate.CoinBase(func(s *sql.Selector) {
   970  		s.Where(sql.IsNull(s.C(FieldReservedAmount)))
   971  	})
   972  }
   973  
   974  // ReservedAmountNotNil applies the NotNil predicate on the "reserved_amount" field.
   975  func ReservedAmountNotNil() predicate.CoinBase {
   976  	return predicate.CoinBase(func(s *sql.Selector) {
   977  		s.Where(sql.NotNull(s.C(FieldReservedAmount)))
   978  	})
   979  }
   980  
   981  // ForPayEQ applies the EQ predicate on the "for_pay" field.
   982  func ForPayEQ(v bool) predicate.CoinBase {
   983  	return predicate.CoinBase(func(s *sql.Selector) {
   984  		s.Where(sql.EQ(s.C(FieldForPay), v))
   985  	})
   986  }
   987  
   988  // ForPayNEQ applies the NEQ predicate on the "for_pay" field.
   989  func ForPayNEQ(v bool) predicate.CoinBase {
   990  	return predicate.CoinBase(func(s *sql.Selector) {
   991  		s.Where(sql.NEQ(s.C(FieldForPay), v))
   992  	})
   993  }
   994  
   995  // ForPayIsNil applies the IsNil predicate on the "for_pay" field.
   996  func ForPayIsNil() predicate.CoinBase {
   997  	return predicate.CoinBase(func(s *sql.Selector) {
   998  		s.Where(sql.IsNull(s.C(FieldForPay)))
   999  	})
  1000  }
  1001  
  1002  // ForPayNotNil applies the NotNil predicate on the "for_pay" field.
  1003  func ForPayNotNil() predicate.CoinBase {
  1004  	return predicate.CoinBase(func(s *sql.Selector) {
  1005  		s.Where(sql.NotNull(s.C(FieldForPay)))
  1006  	})
  1007  }
  1008  
  1009  // DisabledEQ applies the EQ predicate on the "disabled" field.
  1010  func DisabledEQ(v bool) predicate.CoinBase {
  1011  	return predicate.CoinBase(func(s *sql.Selector) {
  1012  		s.Where(sql.EQ(s.C(FieldDisabled), v))
  1013  	})
  1014  }
  1015  
  1016  // DisabledNEQ applies the NEQ predicate on the "disabled" field.
  1017  func DisabledNEQ(v bool) predicate.CoinBase {
  1018  	return predicate.CoinBase(func(s *sql.Selector) {
  1019  		s.Where(sql.NEQ(s.C(FieldDisabled), v))
  1020  	})
  1021  }
  1022  
  1023  // DisabledIsNil applies the IsNil predicate on the "disabled" field.
  1024  func DisabledIsNil() predicate.CoinBase {
  1025  	return predicate.CoinBase(func(s *sql.Selector) {
  1026  		s.Where(sql.IsNull(s.C(FieldDisabled)))
  1027  	})
  1028  }
  1029  
  1030  // DisabledNotNil applies the NotNil predicate on the "disabled" field.
  1031  func DisabledNotNil() predicate.CoinBase {
  1032  	return predicate.CoinBase(func(s *sql.Selector) {
  1033  		s.Where(sql.NotNull(s.C(FieldDisabled)))
  1034  	})
  1035  }
  1036  
  1037  // And groups predicates with the AND operator between them.
  1038  func And(predicates ...predicate.CoinBase) predicate.CoinBase {
  1039  	return predicate.CoinBase(func(s *sql.Selector) {
  1040  		s1 := s.Clone().SetP(nil)
  1041  		for _, p := range predicates {
  1042  			p(s1)
  1043  		}
  1044  		s.Where(s1.P())
  1045  	})
  1046  }
  1047  
  1048  // Or groups predicates with the OR operator between them.
  1049  func Or(predicates ...predicate.CoinBase) predicate.CoinBase {
  1050  	return predicate.CoinBase(func(s *sql.Selector) {
  1051  		s1 := s.Clone().SetP(nil)
  1052  		for i, p := range predicates {
  1053  			if i > 0 {
  1054  				s1.Or()
  1055  			}
  1056  			p(s1)
  1057  		}
  1058  		s.Where(s1.P())
  1059  	})
  1060  }
  1061  
  1062  // Not applies the not operator on the given predicate.
  1063  func Not(p predicate.CoinBase) predicate.CoinBase {
  1064  	return predicate.CoinBase(func(s *sql.Selector) {
  1065  		p(s.Not())
  1066  	})
  1067  }