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

     1  // Code generated by ent, DO NOT EDIT.
     2  
     3  package coindescription
     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  )
    10  
    11  // ID filters vertices based on their ID field.
    12  func ID(id uint32) predicate.CoinDescription {
    13  	return predicate.CoinDescription(func(s *sql.Selector) {
    14  		s.Where(sql.EQ(s.C(FieldID), id))
    15  	})
    16  }
    17  
    18  // IDEQ applies the EQ predicate on the ID field.
    19  func IDEQ(id uint32) predicate.CoinDescription {
    20  	return predicate.CoinDescription(func(s *sql.Selector) {
    21  		s.Where(sql.EQ(s.C(FieldID), id))
    22  	})
    23  }
    24  
    25  // IDNEQ applies the NEQ predicate on the ID field.
    26  func IDNEQ(id uint32) predicate.CoinDescription {
    27  	return predicate.CoinDescription(func(s *sql.Selector) {
    28  		s.Where(sql.NEQ(s.C(FieldID), id))
    29  	})
    30  }
    31  
    32  // IDIn applies the In predicate on the ID field.
    33  func IDIn(ids ...uint32) predicate.CoinDescription {
    34  	return predicate.CoinDescription(func(s *sql.Selector) {
    35  		v := make([]interface{}, len(ids))
    36  		for i := range v {
    37  			v[i] = ids[i]
    38  		}
    39  		s.Where(sql.In(s.C(FieldID), v...))
    40  	})
    41  }
    42  
    43  // IDNotIn applies the NotIn predicate on the ID field.
    44  func IDNotIn(ids ...uint32) predicate.CoinDescription {
    45  	return predicate.CoinDescription(func(s *sql.Selector) {
    46  		v := make([]interface{}, len(ids))
    47  		for i := range v {
    48  			v[i] = ids[i]
    49  		}
    50  		s.Where(sql.NotIn(s.C(FieldID), v...))
    51  	})
    52  }
    53  
    54  // IDGT applies the GT predicate on the ID field.
    55  func IDGT(id uint32) predicate.CoinDescription {
    56  	return predicate.CoinDescription(func(s *sql.Selector) {
    57  		s.Where(sql.GT(s.C(FieldID), id))
    58  	})
    59  }
    60  
    61  // IDGTE applies the GTE predicate on the ID field.
    62  func IDGTE(id uint32) predicate.CoinDescription {
    63  	return predicate.CoinDescription(func(s *sql.Selector) {
    64  		s.Where(sql.GTE(s.C(FieldID), id))
    65  	})
    66  }
    67  
    68  // IDLT applies the LT predicate on the ID field.
    69  func IDLT(id uint32) predicate.CoinDescription {
    70  	return predicate.CoinDescription(func(s *sql.Selector) {
    71  		s.Where(sql.LT(s.C(FieldID), id))
    72  	})
    73  }
    74  
    75  // IDLTE applies the LTE predicate on the ID field.
    76  func IDLTE(id uint32) predicate.CoinDescription {
    77  	return predicate.CoinDescription(func(s *sql.Selector) {
    78  		s.Where(sql.LTE(s.C(FieldID), id))
    79  	})
    80  }
    81  
    82  // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
    83  func CreatedAt(v uint32) predicate.CoinDescription {
    84  	return predicate.CoinDescription(func(s *sql.Selector) {
    85  		s.Where(sql.EQ(s.C(FieldCreatedAt), v))
    86  	})
    87  }
    88  
    89  // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
    90  func UpdatedAt(v uint32) predicate.CoinDescription {
    91  	return predicate.CoinDescription(func(s *sql.Selector) {
    92  		s.Where(sql.EQ(s.C(FieldUpdatedAt), v))
    93  	})
    94  }
    95  
    96  // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
    97  func DeletedAt(v uint32) predicate.CoinDescription {
    98  	return predicate.CoinDescription(func(s *sql.Selector) {
    99  		s.Where(sql.EQ(s.C(FieldDeletedAt), v))
   100  	})
   101  }
   102  
   103  // EntID applies equality check predicate on the "ent_id" field. It's identical to EntIDEQ.
   104  func EntID(v uuid.UUID) predicate.CoinDescription {
   105  	return predicate.CoinDescription(func(s *sql.Selector) {
   106  		s.Where(sql.EQ(s.C(FieldEntID), v))
   107  	})
   108  }
   109  
   110  // AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.
   111  func AppID(v uuid.UUID) predicate.CoinDescription {
   112  	return predicate.CoinDescription(func(s *sql.Selector) {
   113  		s.Where(sql.EQ(s.C(FieldAppID), v))
   114  	})
   115  }
   116  
   117  // CoinTypeID applies equality check predicate on the "coin_type_id" field. It's identical to CoinTypeIDEQ.
   118  func CoinTypeID(v uuid.UUID) predicate.CoinDescription {
   119  	return predicate.CoinDescription(func(s *sql.Selector) {
   120  		s.Where(sql.EQ(s.C(FieldCoinTypeID), v))
   121  	})
   122  }
   123  
   124  // UsedFor applies equality check predicate on the "used_for" field. It's identical to UsedForEQ.
   125  func UsedFor(v string) predicate.CoinDescription {
   126  	return predicate.CoinDescription(func(s *sql.Selector) {
   127  		s.Where(sql.EQ(s.C(FieldUsedFor), v))
   128  	})
   129  }
   130  
   131  // Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
   132  func Title(v string) predicate.CoinDescription {
   133  	return predicate.CoinDescription(func(s *sql.Selector) {
   134  		s.Where(sql.EQ(s.C(FieldTitle), v))
   135  	})
   136  }
   137  
   138  // Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
   139  func Message(v string) predicate.CoinDescription {
   140  	return predicate.CoinDescription(func(s *sql.Selector) {
   141  		s.Where(sql.EQ(s.C(FieldMessage), v))
   142  	})
   143  }
   144  
   145  // CreatedAtEQ applies the EQ predicate on the "created_at" field.
   146  func CreatedAtEQ(v uint32) predicate.CoinDescription {
   147  	return predicate.CoinDescription(func(s *sql.Selector) {
   148  		s.Where(sql.EQ(s.C(FieldCreatedAt), v))
   149  	})
   150  }
   151  
   152  // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
   153  func CreatedAtNEQ(v uint32) predicate.CoinDescription {
   154  	return predicate.CoinDescription(func(s *sql.Selector) {
   155  		s.Where(sql.NEQ(s.C(FieldCreatedAt), v))
   156  	})
   157  }
   158  
   159  // CreatedAtIn applies the In predicate on the "created_at" field.
   160  func CreatedAtIn(vs ...uint32) predicate.CoinDescription {
   161  	v := make([]interface{}, len(vs))
   162  	for i := range v {
   163  		v[i] = vs[i]
   164  	}
   165  	return predicate.CoinDescription(func(s *sql.Selector) {
   166  		s.Where(sql.In(s.C(FieldCreatedAt), v...))
   167  	})
   168  }
   169  
   170  // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
   171  func CreatedAtNotIn(vs ...uint32) predicate.CoinDescription {
   172  	v := make([]interface{}, len(vs))
   173  	for i := range v {
   174  		v[i] = vs[i]
   175  	}
   176  	return predicate.CoinDescription(func(s *sql.Selector) {
   177  		s.Where(sql.NotIn(s.C(FieldCreatedAt), v...))
   178  	})
   179  }
   180  
   181  // CreatedAtGT applies the GT predicate on the "created_at" field.
   182  func CreatedAtGT(v uint32) predicate.CoinDescription {
   183  	return predicate.CoinDescription(func(s *sql.Selector) {
   184  		s.Where(sql.GT(s.C(FieldCreatedAt), v))
   185  	})
   186  }
   187  
   188  // CreatedAtGTE applies the GTE predicate on the "created_at" field.
   189  func CreatedAtGTE(v uint32) predicate.CoinDescription {
   190  	return predicate.CoinDescription(func(s *sql.Selector) {
   191  		s.Where(sql.GTE(s.C(FieldCreatedAt), v))
   192  	})
   193  }
   194  
   195  // CreatedAtLT applies the LT predicate on the "created_at" field.
   196  func CreatedAtLT(v uint32) predicate.CoinDescription {
   197  	return predicate.CoinDescription(func(s *sql.Selector) {
   198  		s.Where(sql.LT(s.C(FieldCreatedAt), v))
   199  	})
   200  }
   201  
   202  // CreatedAtLTE applies the LTE predicate on the "created_at" field.
   203  func CreatedAtLTE(v uint32) predicate.CoinDescription {
   204  	return predicate.CoinDescription(func(s *sql.Selector) {
   205  		s.Where(sql.LTE(s.C(FieldCreatedAt), v))
   206  	})
   207  }
   208  
   209  // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
   210  func UpdatedAtEQ(v uint32) predicate.CoinDescription {
   211  	return predicate.CoinDescription(func(s *sql.Selector) {
   212  		s.Where(sql.EQ(s.C(FieldUpdatedAt), v))
   213  	})
   214  }
   215  
   216  // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
   217  func UpdatedAtNEQ(v uint32) predicate.CoinDescription {
   218  	return predicate.CoinDescription(func(s *sql.Selector) {
   219  		s.Where(sql.NEQ(s.C(FieldUpdatedAt), v))
   220  	})
   221  }
   222  
   223  // UpdatedAtIn applies the In predicate on the "updated_at" field.
   224  func UpdatedAtIn(vs ...uint32) predicate.CoinDescription {
   225  	v := make([]interface{}, len(vs))
   226  	for i := range v {
   227  		v[i] = vs[i]
   228  	}
   229  	return predicate.CoinDescription(func(s *sql.Selector) {
   230  		s.Where(sql.In(s.C(FieldUpdatedAt), v...))
   231  	})
   232  }
   233  
   234  // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
   235  func UpdatedAtNotIn(vs ...uint32) predicate.CoinDescription {
   236  	v := make([]interface{}, len(vs))
   237  	for i := range v {
   238  		v[i] = vs[i]
   239  	}
   240  	return predicate.CoinDescription(func(s *sql.Selector) {
   241  		s.Where(sql.NotIn(s.C(FieldUpdatedAt), v...))
   242  	})
   243  }
   244  
   245  // UpdatedAtGT applies the GT predicate on the "updated_at" field.
   246  func UpdatedAtGT(v uint32) predicate.CoinDescription {
   247  	return predicate.CoinDescription(func(s *sql.Selector) {
   248  		s.Where(sql.GT(s.C(FieldUpdatedAt), v))
   249  	})
   250  }
   251  
   252  // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
   253  func UpdatedAtGTE(v uint32) predicate.CoinDescription {
   254  	return predicate.CoinDescription(func(s *sql.Selector) {
   255  		s.Where(sql.GTE(s.C(FieldUpdatedAt), v))
   256  	})
   257  }
   258  
   259  // UpdatedAtLT applies the LT predicate on the "updated_at" field.
   260  func UpdatedAtLT(v uint32) predicate.CoinDescription {
   261  	return predicate.CoinDescription(func(s *sql.Selector) {
   262  		s.Where(sql.LT(s.C(FieldUpdatedAt), v))
   263  	})
   264  }
   265  
   266  // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
   267  func UpdatedAtLTE(v uint32) predicate.CoinDescription {
   268  	return predicate.CoinDescription(func(s *sql.Selector) {
   269  		s.Where(sql.LTE(s.C(FieldUpdatedAt), v))
   270  	})
   271  }
   272  
   273  // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
   274  func DeletedAtEQ(v uint32) predicate.CoinDescription {
   275  	return predicate.CoinDescription(func(s *sql.Selector) {
   276  		s.Where(sql.EQ(s.C(FieldDeletedAt), v))
   277  	})
   278  }
   279  
   280  // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
   281  func DeletedAtNEQ(v uint32) predicate.CoinDescription {
   282  	return predicate.CoinDescription(func(s *sql.Selector) {
   283  		s.Where(sql.NEQ(s.C(FieldDeletedAt), v))
   284  	})
   285  }
   286  
   287  // DeletedAtIn applies the In predicate on the "deleted_at" field.
   288  func DeletedAtIn(vs ...uint32) predicate.CoinDescription {
   289  	v := make([]interface{}, len(vs))
   290  	for i := range v {
   291  		v[i] = vs[i]
   292  	}
   293  	return predicate.CoinDescription(func(s *sql.Selector) {
   294  		s.Where(sql.In(s.C(FieldDeletedAt), v...))
   295  	})
   296  }
   297  
   298  // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
   299  func DeletedAtNotIn(vs ...uint32) predicate.CoinDescription {
   300  	v := make([]interface{}, len(vs))
   301  	for i := range v {
   302  		v[i] = vs[i]
   303  	}
   304  	return predicate.CoinDescription(func(s *sql.Selector) {
   305  		s.Where(sql.NotIn(s.C(FieldDeletedAt), v...))
   306  	})
   307  }
   308  
   309  // DeletedAtGT applies the GT predicate on the "deleted_at" field.
   310  func DeletedAtGT(v uint32) predicate.CoinDescription {
   311  	return predicate.CoinDescription(func(s *sql.Selector) {
   312  		s.Where(sql.GT(s.C(FieldDeletedAt), v))
   313  	})
   314  }
   315  
   316  // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
   317  func DeletedAtGTE(v uint32) predicate.CoinDescription {
   318  	return predicate.CoinDescription(func(s *sql.Selector) {
   319  		s.Where(sql.GTE(s.C(FieldDeletedAt), v))
   320  	})
   321  }
   322  
   323  // DeletedAtLT applies the LT predicate on the "deleted_at" field.
   324  func DeletedAtLT(v uint32) predicate.CoinDescription {
   325  	return predicate.CoinDescription(func(s *sql.Selector) {
   326  		s.Where(sql.LT(s.C(FieldDeletedAt), v))
   327  	})
   328  }
   329  
   330  // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
   331  func DeletedAtLTE(v uint32) predicate.CoinDescription {
   332  	return predicate.CoinDescription(func(s *sql.Selector) {
   333  		s.Where(sql.LTE(s.C(FieldDeletedAt), v))
   334  	})
   335  }
   336  
   337  // EntIDEQ applies the EQ predicate on the "ent_id" field.
   338  func EntIDEQ(v uuid.UUID) predicate.CoinDescription {
   339  	return predicate.CoinDescription(func(s *sql.Selector) {
   340  		s.Where(sql.EQ(s.C(FieldEntID), v))
   341  	})
   342  }
   343  
   344  // EntIDNEQ applies the NEQ predicate on the "ent_id" field.
   345  func EntIDNEQ(v uuid.UUID) predicate.CoinDescription {
   346  	return predicate.CoinDescription(func(s *sql.Selector) {
   347  		s.Where(sql.NEQ(s.C(FieldEntID), v))
   348  	})
   349  }
   350  
   351  // EntIDIn applies the In predicate on the "ent_id" field.
   352  func EntIDIn(vs ...uuid.UUID) predicate.CoinDescription {
   353  	v := make([]interface{}, len(vs))
   354  	for i := range v {
   355  		v[i] = vs[i]
   356  	}
   357  	return predicate.CoinDescription(func(s *sql.Selector) {
   358  		s.Where(sql.In(s.C(FieldEntID), v...))
   359  	})
   360  }
   361  
   362  // EntIDNotIn applies the NotIn predicate on the "ent_id" field.
   363  func EntIDNotIn(vs ...uuid.UUID) predicate.CoinDescription {
   364  	v := make([]interface{}, len(vs))
   365  	for i := range v {
   366  		v[i] = vs[i]
   367  	}
   368  	return predicate.CoinDescription(func(s *sql.Selector) {
   369  		s.Where(sql.NotIn(s.C(FieldEntID), v...))
   370  	})
   371  }
   372  
   373  // EntIDGT applies the GT predicate on the "ent_id" field.
   374  func EntIDGT(v uuid.UUID) predicate.CoinDescription {
   375  	return predicate.CoinDescription(func(s *sql.Selector) {
   376  		s.Where(sql.GT(s.C(FieldEntID), v))
   377  	})
   378  }
   379  
   380  // EntIDGTE applies the GTE predicate on the "ent_id" field.
   381  func EntIDGTE(v uuid.UUID) predicate.CoinDescription {
   382  	return predicate.CoinDescription(func(s *sql.Selector) {
   383  		s.Where(sql.GTE(s.C(FieldEntID), v))
   384  	})
   385  }
   386  
   387  // EntIDLT applies the LT predicate on the "ent_id" field.
   388  func EntIDLT(v uuid.UUID) predicate.CoinDescription {
   389  	return predicate.CoinDescription(func(s *sql.Selector) {
   390  		s.Where(sql.LT(s.C(FieldEntID), v))
   391  	})
   392  }
   393  
   394  // EntIDLTE applies the LTE predicate on the "ent_id" field.
   395  func EntIDLTE(v uuid.UUID) predicate.CoinDescription {
   396  	return predicate.CoinDescription(func(s *sql.Selector) {
   397  		s.Where(sql.LTE(s.C(FieldEntID), v))
   398  	})
   399  }
   400  
   401  // AppIDEQ applies the EQ predicate on the "app_id" field.
   402  func AppIDEQ(v uuid.UUID) predicate.CoinDescription {
   403  	return predicate.CoinDescription(func(s *sql.Selector) {
   404  		s.Where(sql.EQ(s.C(FieldAppID), v))
   405  	})
   406  }
   407  
   408  // AppIDNEQ applies the NEQ predicate on the "app_id" field.
   409  func AppIDNEQ(v uuid.UUID) predicate.CoinDescription {
   410  	return predicate.CoinDescription(func(s *sql.Selector) {
   411  		s.Where(sql.NEQ(s.C(FieldAppID), v))
   412  	})
   413  }
   414  
   415  // AppIDIn applies the In predicate on the "app_id" field.
   416  func AppIDIn(vs ...uuid.UUID) predicate.CoinDescription {
   417  	v := make([]interface{}, len(vs))
   418  	for i := range v {
   419  		v[i] = vs[i]
   420  	}
   421  	return predicate.CoinDescription(func(s *sql.Selector) {
   422  		s.Where(sql.In(s.C(FieldAppID), v...))
   423  	})
   424  }
   425  
   426  // AppIDNotIn applies the NotIn predicate on the "app_id" field.
   427  func AppIDNotIn(vs ...uuid.UUID) predicate.CoinDescription {
   428  	v := make([]interface{}, len(vs))
   429  	for i := range v {
   430  		v[i] = vs[i]
   431  	}
   432  	return predicate.CoinDescription(func(s *sql.Selector) {
   433  		s.Where(sql.NotIn(s.C(FieldAppID), v...))
   434  	})
   435  }
   436  
   437  // AppIDGT applies the GT predicate on the "app_id" field.
   438  func AppIDGT(v uuid.UUID) predicate.CoinDescription {
   439  	return predicate.CoinDescription(func(s *sql.Selector) {
   440  		s.Where(sql.GT(s.C(FieldAppID), v))
   441  	})
   442  }
   443  
   444  // AppIDGTE applies the GTE predicate on the "app_id" field.
   445  func AppIDGTE(v uuid.UUID) predicate.CoinDescription {
   446  	return predicate.CoinDescription(func(s *sql.Selector) {
   447  		s.Where(sql.GTE(s.C(FieldAppID), v))
   448  	})
   449  }
   450  
   451  // AppIDLT applies the LT predicate on the "app_id" field.
   452  func AppIDLT(v uuid.UUID) predicate.CoinDescription {
   453  	return predicate.CoinDescription(func(s *sql.Selector) {
   454  		s.Where(sql.LT(s.C(FieldAppID), v))
   455  	})
   456  }
   457  
   458  // AppIDLTE applies the LTE predicate on the "app_id" field.
   459  func AppIDLTE(v uuid.UUID) predicate.CoinDescription {
   460  	return predicate.CoinDescription(func(s *sql.Selector) {
   461  		s.Where(sql.LTE(s.C(FieldAppID), v))
   462  	})
   463  }
   464  
   465  // AppIDIsNil applies the IsNil predicate on the "app_id" field.
   466  func AppIDIsNil() predicate.CoinDescription {
   467  	return predicate.CoinDescription(func(s *sql.Selector) {
   468  		s.Where(sql.IsNull(s.C(FieldAppID)))
   469  	})
   470  }
   471  
   472  // AppIDNotNil applies the NotNil predicate on the "app_id" field.
   473  func AppIDNotNil() predicate.CoinDescription {
   474  	return predicate.CoinDescription(func(s *sql.Selector) {
   475  		s.Where(sql.NotNull(s.C(FieldAppID)))
   476  	})
   477  }
   478  
   479  // CoinTypeIDEQ applies the EQ predicate on the "coin_type_id" field.
   480  func CoinTypeIDEQ(v uuid.UUID) predicate.CoinDescription {
   481  	return predicate.CoinDescription(func(s *sql.Selector) {
   482  		s.Where(sql.EQ(s.C(FieldCoinTypeID), v))
   483  	})
   484  }
   485  
   486  // CoinTypeIDNEQ applies the NEQ predicate on the "coin_type_id" field.
   487  func CoinTypeIDNEQ(v uuid.UUID) predicate.CoinDescription {
   488  	return predicate.CoinDescription(func(s *sql.Selector) {
   489  		s.Where(sql.NEQ(s.C(FieldCoinTypeID), v))
   490  	})
   491  }
   492  
   493  // CoinTypeIDIn applies the In predicate on the "coin_type_id" field.
   494  func CoinTypeIDIn(vs ...uuid.UUID) predicate.CoinDescription {
   495  	v := make([]interface{}, len(vs))
   496  	for i := range v {
   497  		v[i] = vs[i]
   498  	}
   499  	return predicate.CoinDescription(func(s *sql.Selector) {
   500  		s.Where(sql.In(s.C(FieldCoinTypeID), v...))
   501  	})
   502  }
   503  
   504  // CoinTypeIDNotIn applies the NotIn predicate on the "coin_type_id" field.
   505  func CoinTypeIDNotIn(vs ...uuid.UUID) predicate.CoinDescription {
   506  	v := make([]interface{}, len(vs))
   507  	for i := range v {
   508  		v[i] = vs[i]
   509  	}
   510  	return predicate.CoinDescription(func(s *sql.Selector) {
   511  		s.Where(sql.NotIn(s.C(FieldCoinTypeID), v...))
   512  	})
   513  }
   514  
   515  // CoinTypeIDGT applies the GT predicate on the "coin_type_id" field.
   516  func CoinTypeIDGT(v uuid.UUID) predicate.CoinDescription {
   517  	return predicate.CoinDescription(func(s *sql.Selector) {
   518  		s.Where(sql.GT(s.C(FieldCoinTypeID), v))
   519  	})
   520  }
   521  
   522  // CoinTypeIDGTE applies the GTE predicate on the "coin_type_id" field.
   523  func CoinTypeIDGTE(v uuid.UUID) predicate.CoinDescription {
   524  	return predicate.CoinDescription(func(s *sql.Selector) {
   525  		s.Where(sql.GTE(s.C(FieldCoinTypeID), v))
   526  	})
   527  }
   528  
   529  // CoinTypeIDLT applies the LT predicate on the "coin_type_id" field.
   530  func CoinTypeIDLT(v uuid.UUID) predicate.CoinDescription {
   531  	return predicate.CoinDescription(func(s *sql.Selector) {
   532  		s.Where(sql.LT(s.C(FieldCoinTypeID), v))
   533  	})
   534  }
   535  
   536  // CoinTypeIDLTE applies the LTE predicate on the "coin_type_id" field.
   537  func CoinTypeIDLTE(v uuid.UUID) predicate.CoinDescription {
   538  	return predicate.CoinDescription(func(s *sql.Selector) {
   539  		s.Where(sql.LTE(s.C(FieldCoinTypeID), v))
   540  	})
   541  }
   542  
   543  // CoinTypeIDIsNil applies the IsNil predicate on the "coin_type_id" field.
   544  func CoinTypeIDIsNil() predicate.CoinDescription {
   545  	return predicate.CoinDescription(func(s *sql.Selector) {
   546  		s.Where(sql.IsNull(s.C(FieldCoinTypeID)))
   547  	})
   548  }
   549  
   550  // CoinTypeIDNotNil applies the NotNil predicate on the "coin_type_id" field.
   551  func CoinTypeIDNotNil() predicate.CoinDescription {
   552  	return predicate.CoinDescription(func(s *sql.Selector) {
   553  		s.Where(sql.NotNull(s.C(FieldCoinTypeID)))
   554  	})
   555  }
   556  
   557  // UsedForEQ applies the EQ predicate on the "used_for" field.
   558  func UsedForEQ(v string) predicate.CoinDescription {
   559  	return predicate.CoinDescription(func(s *sql.Selector) {
   560  		s.Where(sql.EQ(s.C(FieldUsedFor), v))
   561  	})
   562  }
   563  
   564  // UsedForNEQ applies the NEQ predicate on the "used_for" field.
   565  func UsedForNEQ(v string) predicate.CoinDescription {
   566  	return predicate.CoinDescription(func(s *sql.Selector) {
   567  		s.Where(sql.NEQ(s.C(FieldUsedFor), v))
   568  	})
   569  }
   570  
   571  // UsedForIn applies the In predicate on the "used_for" field.
   572  func UsedForIn(vs ...string) predicate.CoinDescription {
   573  	v := make([]interface{}, len(vs))
   574  	for i := range v {
   575  		v[i] = vs[i]
   576  	}
   577  	return predicate.CoinDescription(func(s *sql.Selector) {
   578  		s.Where(sql.In(s.C(FieldUsedFor), v...))
   579  	})
   580  }
   581  
   582  // UsedForNotIn applies the NotIn predicate on the "used_for" field.
   583  func UsedForNotIn(vs ...string) predicate.CoinDescription {
   584  	v := make([]interface{}, len(vs))
   585  	for i := range v {
   586  		v[i] = vs[i]
   587  	}
   588  	return predicate.CoinDescription(func(s *sql.Selector) {
   589  		s.Where(sql.NotIn(s.C(FieldUsedFor), v...))
   590  	})
   591  }
   592  
   593  // UsedForGT applies the GT predicate on the "used_for" field.
   594  func UsedForGT(v string) predicate.CoinDescription {
   595  	return predicate.CoinDescription(func(s *sql.Selector) {
   596  		s.Where(sql.GT(s.C(FieldUsedFor), v))
   597  	})
   598  }
   599  
   600  // UsedForGTE applies the GTE predicate on the "used_for" field.
   601  func UsedForGTE(v string) predicate.CoinDescription {
   602  	return predicate.CoinDescription(func(s *sql.Selector) {
   603  		s.Where(sql.GTE(s.C(FieldUsedFor), v))
   604  	})
   605  }
   606  
   607  // UsedForLT applies the LT predicate on the "used_for" field.
   608  func UsedForLT(v string) predicate.CoinDescription {
   609  	return predicate.CoinDescription(func(s *sql.Selector) {
   610  		s.Where(sql.LT(s.C(FieldUsedFor), v))
   611  	})
   612  }
   613  
   614  // UsedForLTE applies the LTE predicate on the "used_for" field.
   615  func UsedForLTE(v string) predicate.CoinDescription {
   616  	return predicate.CoinDescription(func(s *sql.Selector) {
   617  		s.Where(sql.LTE(s.C(FieldUsedFor), v))
   618  	})
   619  }
   620  
   621  // UsedForContains applies the Contains predicate on the "used_for" field.
   622  func UsedForContains(v string) predicate.CoinDescription {
   623  	return predicate.CoinDescription(func(s *sql.Selector) {
   624  		s.Where(sql.Contains(s.C(FieldUsedFor), v))
   625  	})
   626  }
   627  
   628  // UsedForHasPrefix applies the HasPrefix predicate on the "used_for" field.
   629  func UsedForHasPrefix(v string) predicate.CoinDescription {
   630  	return predicate.CoinDescription(func(s *sql.Selector) {
   631  		s.Where(sql.HasPrefix(s.C(FieldUsedFor), v))
   632  	})
   633  }
   634  
   635  // UsedForHasSuffix applies the HasSuffix predicate on the "used_for" field.
   636  func UsedForHasSuffix(v string) predicate.CoinDescription {
   637  	return predicate.CoinDescription(func(s *sql.Selector) {
   638  		s.Where(sql.HasSuffix(s.C(FieldUsedFor), v))
   639  	})
   640  }
   641  
   642  // UsedForIsNil applies the IsNil predicate on the "used_for" field.
   643  func UsedForIsNil() predicate.CoinDescription {
   644  	return predicate.CoinDescription(func(s *sql.Selector) {
   645  		s.Where(sql.IsNull(s.C(FieldUsedFor)))
   646  	})
   647  }
   648  
   649  // UsedForNotNil applies the NotNil predicate on the "used_for" field.
   650  func UsedForNotNil() predicate.CoinDescription {
   651  	return predicate.CoinDescription(func(s *sql.Selector) {
   652  		s.Where(sql.NotNull(s.C(FieldUsedFor)))
   653  	})
   654  }
   655  
   656  // UsedForEqualFold applies the EqualFold predicate on the "used_for" field.
   657  func UsedForEqualFold(v string) predicate.CoinDescription {
   658  	return predicate.CoinDescription(func(s *sql.Selector) {
   659  		s.Where(sql.EqualFold(s.C(FieldUsedFor), v))
   660  	})
   661  }
   662  
   663  // UsedForContainsFold applies the ContainsFold predicate on the "used_for" field.
   664  func UsedForContainsFold(v string) predicate.CoinDescription {
   665  	return predicate.CoinDescription(func(s *sql.Selector) {
   666  		s.Where(sql.ContainsFold(s.C(FieldUsedFor), v))
   667  	})
   668  }
   669  
   670  // TitleEQ applies the EQ predicate on the "title" field.
   671  func TitleEQ(v string) predicate.CoinDescription {
   672  	return predicate.CoinDescription(func(s *sql.Selector) {
   673  		s.Where(sql.EQ(s.C(FieldTitle), v))
   674  	})
   675  }
   676  
   677  // TitleNEQ applies the NEQ predicate on the "title" field.
   678  func TitleNEQ(v string) predicate.CoinDescription {
   679  	return predicate.CoinDescription(func(s *sql.Selector) {
   680  		s.Where(sql.NEQ(s.C(FieldTitle), v))
   681  	})
   682  }
   683  
   684  // TitleIn applies the In predicate on the "title" field.
   685  func TitleIn(vs ...string) predicate.CoinDescription {
   686  	v := make([]interface{}, len(vs))
   687  	for i := range v {
   688  		v[i] = vs[i]
   689  	}
   690  	return predicate.CoinDescription(func(s *sql.Selector) {
   691  		s.Where(sql.In(s.C(FieldTitle), v...))
   692  	})
   693  }
   694  
   695  // TitleNotIn applies the NotIn predicate on the "title" field.
   696  func TitleNotIn(vs ...string) predicate.CoinDescription {
   697  	v := make([]interface{}, len(vs))
   698  	for i := range v {
   699  		v[i] = vs[i]
   700  	}
   701  	return predicate.CoinDescription(func(s *sql.Selector) {
   702  		s.Where(sql.NotIn(s.C(FieldTitle), v...))
   703  	})
   704  }
   705  
   706  // TitleGT applies the GT predicate on the "title" field.
   707  func TitleGT(v string) predicate.CoinDescription {
   708  	return predicate.CoinDescription(func(s *sql.Selector) {
   709  		s.Where(sql.GT(s.C(FieldTitle), v))
   710  	})
   711  }
   712  
   713  // TitleGTE applies the GTE predicate on the "title" field.
   714  func TitleGTE(v string) predicate.CoinDescription {
   715  	return predicate.CoinDescription(func(s *sql.Selector) {
   716  		s.Where(sql.GTE(s.C(FieldTitle), v))
   717  	})
   718  }
   719  
   720  // TitleLT applies the LT predicate on the "title" field.
   721  func TitleLT(v string) predicate.CoinDescription {
   722  	return predicate.CoinDescription(func(s *sql.Selector) {
   723  		s.Where(sql.LT(s.C(FieldTitle), v))
   724  	})
   725  }
   726  
   727  // TitleLTE applies the LTE predicate on the "title" field.
   728  func TitleLTE(v string) predicate.CoinDescription {
   729  	return predicate.CoinDescription(func(s *sql.Selector) {
   730  		s.Where(sql.LTE(s.C(FieldTitle), v))
   731  	})
   732  }
   733  
   734  // TitleContains applies the Contains predicate on the "title" field.
   735  func TitleContains(v string) predicate.CoinDescription {
   736  	return predicate.CoinDescription(func(s *sql.Selector) {
   737  		s.Where(sql.Contains(s.C(FieldTitle), v))
   738  	})
   739  }
   740  
   741  // TitleHasPrefix applies the HasPrefix predicate on the "title" field.
   742  func TitleHasPrefix(v string) predicate.CoinDescription {
   743  	return predicate.CoinDescription(func(s *sql.Selector) {
   744  		s.Where(sql.HasPrefix(s.C(FieldTitle), v))
   745  	})
   746  }
   747  
   748  // TitleHasSuffix applies the HasSuffix predicate on the "title" field.
   749  func TitleHasSuffix(v string) predicate.CoinDescription {
   750  	return predicate.CoinDescription(func(s *sql.Selector) {
   751  		s.Where(sql.HasSuffix(s.C(FieldTitle), v))
   752  	})
   753  }
   754  
   755  // TitleIsNil applies the IsNil predicate on the "title" field.
   756  func TitleIsNil() predicate.CoinDescription {
   757  	return predicate.CoinDescription(func(s *sql.Selector) {
   758  		s.Where(sql.IsNull(s.C(FieldTitle)))
   759  	})
   760  }
   761  
   762  // TitleNotNil applies the NotNil predicate on the "title" field.
   763  func TitleNotNil() predicate.CoinDescription {
   764  	return predicate.CoinDescription(func(s *sql.Selector) {
   765  		s.Where(sql.NotNull(s.C(FieldTitle)))
   766  	})
   767  }
   768  
   769  // TitleEqualFold applies the EqualFold predicate on the "title" field.
   770  func TitleEqualFold(v string) predicate.CoinDescription {
   771  	return predicate.CoinDescription(func(s *sql.Selector) {
   772  		s.Where(sql.EqualFold(s.C(FieldTitle), v))
   773  	})
   774  }
   775  
   776  // TitleContainsFold applies the ContainsFold predicate on the "title" field.
   777  func TitleContainsFold(v string) predicate.CoinDescription {
   778  	return predicate.CoinDescription(func(s *sql.Selector) {
   779  		s.Where(sql.ContainsFold(s.C(FieldTitle), v))
   780  	})
   781  }
   782  
   783  // MessageEQ applies the EQ predicate on the "message" field.
   784  func MessageEQ(v string) predicate.CoinDescription {
   785  	return predicate.CoinDescription(func(s *sql.Selector) {
   786  		s.Where(sql.EQ(s.C(FieldMessage), v))
   787  	})
   788  }
   789  
   790  // MessageNEQ applies the NEQ predicate on the "message" field.
   791  func MessageNEQ(v string) predicate.CoinDescription {
   792  	return predicate.CoinDescription(func(s *sql.Selector) {
   793  		s.Where(sql.NEQ(s.C(FieldMessage), v))
   794  	})
   795  }
   796  
   797  // MessageIn applies the In predicate on the "message" field.
   798  func MessageIn(vs ...string) predicate.CoinDescription {
   799  	v := make([]interface{}, len(vs))
   800  	for i := range v {
   801  		v[i] = vs[i]
   802  	}
   803  	return predicate.CoinDescription(func(s *sql.Selector) {
   804  		s.Where(sql.In(s.C(FieldMessage), v...))
   805  	})
   806  }
   807  
   808  // MessageNotIn applies the NotIn predicate on the "message" field.
   809  func MessageNotIn(vs ...string) predicate.CoinDescription {
   810  	v := make([]interface{}, len(vs))
   811  	for i := range v {
   812  		v[i] = vs[i]
   813  	}
   814  	return predicate.CoinDescription(func(s *sql.Selector) {
   815  		s.Where(sql.NotIn(s.C(FieldMessage), v...))
   816  	})
   817  }
   818  
   819  // MessageGT applies the GT predicate on the "message" field.
   820  func MessageGT(v string) predicate.CoinDescription {
   821  	return predicate.CoinDescription(func(s *sql.Selector) {
   822  		s.Where(sql.GT(s.C(FieldMessage), v))
   823  	})
   824  }
   825  
   826  // MessageGTE applies the GTE predicate on the "message" field.
   827  func MessageGTE(v string) predicate.CoinDescription {
   828  	return predicate.CoinDescription(func(s *sql.Selector) {
   829  		s.Where(sql.GTE(s.C(FieldMessage), v))
   830  	})
   831  }
   832  
   833  // MessageLT applies the LT predicate on the "message" field.
   834  func MessageLT(v string) predicate.CoinDescription {
   835  	return predicate.CoinDescription(func(s *sql.Selector) {
   836  		s.Where(sql.LT(s.C(FieldMessage), v))
   837  	})
   838  }
   839  
   840  // MessageLTE applies the LTE predicate on the "message" field.
   841  func MessageLTE(v string) predicate.CoinDescription {
   842  	return predicate.CoinDescription(func(s *sql.Selector) {
   843  		s.Where(sql.LTE(s.C(FieldMessage), v))
   844  	})
   845  }
   846  
   847  // MessageContains applies the Contains predicate on the "message" field.
   848  func MessageContains(v string) predicate.CoinDescription {
   849  	return predicate.CoinDescription(func(s *sql.Selector) {
   850  		s.Where(sql.Contains(s.C(FieldMessage), v))
   851  	})
   852  }
   853  
   854  // MessageHasPrefix applies the HasPrefix predicate on the "message" field.
   855  func MessageHasPrefix(v string) predicate.CoinDescription {
   856  	return predicate.CoinDescription(func(s *sql.Selector) {
   857  		s.Where(sql.HasPrefix(s.C(FieldMessage), v))
   858  	})
   859  }
   860  
   861  // MessageHasSuffix applies the HasSuffix predicate on the "message" field.
   862  func MessageHasSuffix(v string) predicate.CoinDescription {
   863  	return predicate.CoinDescription(func(s *sql.Selector) {
   864  		s.Where(sql.HasSuffix(s.C(FieldMessage), v))
   865  	})
   866  }
   867  
   868  // MessageIsNil applies the IsNil predicate on the "message" field.
   869  func MessageIsNil() predicate.CoinDescription {
   870  	return predicate.CoinDescription(func(s *sql.Selector) {
   871  		s.Where(sql.IsNull(s.C(FieldMessage)))
   872  	})
   873  }
   874  
   875  // MessageNotNil applies the NotNil predicate on the "message" field.
   876  func MessageNotNil() predicate.CoinDescription {
   877  	return predicate.CoinDescription(func(s *sql.Selector) {
   878  		s.Where(sql.NotNull(s.C(FieldMessage)))
   879  	})
   880  }
   881  
   882  // MessageEqualFold applies the EqualFold predicate on the "message" field.
   883  func MessageEqualFold(v string) predicate.CoinDescription {
   884  	return predicate.CoinDescription(func(s *sql.Selector) {
   885  		s.Where(sql.EqualFold(s.C(FieldMessage), v))
   886  	})
   887  }
   888  
   889  // MessageContainsFold applies the ContainsFold predicate on the "message" field.
   890  func MessageContainsFold(v string) predicate.CoinDescription {
   891  	return predicate.CoinDescription(func(s *sql.Selector) {
   892  		s.Where(sql.ContainsFold(s.C(FieldMessage), v))
   893  	})
   894  }
   895  
   896  // And groups predicates with the AND operator between them.
   897  func And(predicates ...predicate.CoinDescription) predicate.CoinDescription {
   898  	return predicate.CoinDescription(func(s *sql.Selector) {
   899  		s1 := s.Clone().SetP(nil)
   900  		for _, p := range predicates {
   901  			p(s1)
   902  		}
   903  		s.Where(s1.P())
   904  	})
   905  }
   906  
   907  // Or groups predicates with the OR operator between them.
   908  func Or(predicates ...predicate.CoinDescription) predicate.CoinDescription {
   909  	return predicate.CoinDescription(func(s *sql.Selector) {
   910  		s1 := s.Clone().SetP(nil)
   911  		for i, p := range predicates {
   912  			if i > 0 {
   913  				s1.Or()
   914  			}
   915  			p(s1)
   916  		}
   917  		s.Where(s1.P())
   918  	})
   919  }
   920  
   921  // Not applies the not operator on the given predicate.
   922  func Not(p predicate.CoinDescription) predicate.CoinDescription {
   923  	return predicate.CoinDescription(func(s *sql.Selector) {
   924  		p(s.Not())
   925  	})
   926  }