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

     1  // Code generated by ent, DO NOT EDIT.
     2  
     3  package coinfiat
     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.CoinFiat {
    13  	return predicate.CoinFiat(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.CoinFiat {
    20  	return predicate.CoinFiat(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.CoinFiat {
    27  	return predicate.CoinFiat(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.CoinFiat {
    34  	return predicate.CoinFiat(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.CoinFiat {
    45  	return predicate.CoinFiat(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.CoinFiat {
    56  	return predicate.CoinFiat(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.CoinFiat {
    63  	return predicate.CoinFiat(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.CoinFiat {
    70  	return predicate.CoinFiat(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.CoinFiat {
    77  	return predicate.CoinFiat(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.CoinFiat {
    84  	return predicate.CoinFiat(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.CoinFiat {
    91  	return predicate.CoinFiat(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.CoinFiat {
    98  	return predicate.CoinFiat(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.CoinFiat {
   105  	return predicate.CoinFiat(func(s *sql.Selector) {
   106  		s.Where(sql.EQ(s.C(FieldEntID), v))
   107  	})
   108  }
   109  
   110  // CoinTypeID applies equality check predicate on the "coin_type_id" field. It's identical to CoinTypeIDEQ.
   111  func CoinTypeID(v uuid.UUID) predicate.CoinFiat {
   112  	return predicate.CoinFiat(func(s *sql.Selector) {
   113  		s.Where(sql.EQ(s.C(FieldCoinTypeID), v))
   114  	})
   115  }
   116  
   117  // FiatID applies equality check predicate on the "fiat_id" field. It's identical to FiatIDEQ.
   118  func FiatID(v uuid.UUID) predicate.CoinFiat {
   119  	return predicate.CoinFiat(func(s *sql.Selector) {
   120  		s.Where(sql.EQ(s.C(FieldFiatID), v))
   121  	})
   122  }
   123  
   124  // FeedType applies equality check predicate on the "feed_type" field. It's identical to FeedTypeEQ.
   125  func FeedType(v string) predicate.CoinFiat {
   126  	return predicate.CoinFiat(func(s *sql.Selector) {
   127  		s.Where(sql.EQ(s.C(FieldFeedType), v))
   128  	})
   129  }
   130  
   131  // CreatedAtEQ applies the EQ predicate on the "created_at" field.
   132  func CreatedAtEQ(v uint32) predicate.CoinFiat {
   133  	return predicate.CoinFiat(func(s *sql.Selector) {
   134  		s.Where(sql.EQ(s.C(FieldCreatedAt), v))
   135  	})
   136  }
   137  
   138  // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
   139  func CreatedAtNEQ(v uint32) predicate.CoinFiat {
   140  	return predicate.CoinFiat(func(s *sql.Selector) {
   141  		s.Where(sql.NEQ(s.C(FieldCreatedAt), v))
   142  	})
   143  }
   144  
   145  // CreatedAtIn applies the In predicate on the "created_at" field.
   146  func CreatedAtIn(vs ...uint32) predicate.CoinFiat {
   147  	v := make([]interface{}, len(vs))
   148  	for i := range v {
   149  		v[i] = vs[i]
   150  	}
   151  	return predicate.CoinFiat(func(s *sql.Selector) {
   152  		s.Where(sql.In(s.C(FieldCreatedAt), v...))
   153  	})
   154  }
   155  
   156  // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
   157  func CreatedAtNotIn(vs ...uint32) predicate.CoinFiat {
   158  	v := make([]interface{}, len(vs))
   159  	for i := range v {
   160  		v[i] = vs[i]
   161  	}
   162  	return predicate.CoinFiat(func(s *sql.Selector) {
   163  		s.Where(sql.NotIn(s.C(FieldCreatedAt), v...))
   164  	})
   165  }
   166  
   167  // CreatedAtGT applies the GT predicate on the "created_at" field.
   168  func CreatedAtGT(v uint32) predicate.CoinFiat {
   169  	return predicate.CoinFiat(func(s *sql.Selector) {
   170  		s.Where(sql.GT(s.C(FieldCreatedAt), v))
   171  	})
   172  }
   173  
   174  // CreatedAtGTE applies the GTE predicate on the "created_at" field.
   175  func CreatedAtGTE(v uint32) predicate.CoinFiat {
   176  	return predicate.CoinFiat(func(s *sql.Selector) {
   177  		s.Where(sql.GTE(s.C(FieldCreatedAt), v))
   178  	})
   179  }
   180  
   181  // CreatedAtLT applies the LT predicate on the "created_at" field.
   182  func CreatedAtLT(v uint32) predicate.CoinFiat {
   183  	return predicate.CoinFiat(func(s *sql.Selector) {
   184  		s.Where(sql.LT(s.C(FieldCreatedAt), v))
   185  	})
   186  }
   187  
   188  // CreatedAtLTE applies the LTE predicate on the "created_at" field.
   189  func CreatedAtLTE(v uint32) predicate.CoinFiat {
   190  	return predicate.CoinFiat(func(s *sql.Selector) {
   191  		s.Where(sql.LTE(s.C(FieldCreatedAt), v))
   192  	})
   193  }
   194  
   195  // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
   196  func UpdatedAtEQ(v uint32) predicate.CoinFiat {
   197  	return predicate.CoinFiat(func(s *sql.Selector) {
   198  		s.Where(sql.EQ(s.C(FieldUpdatedAt), v))
   199  	})
   200  }
   201  
   202  // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
   203  func UpdatedAtNEQ(v uint32) predicate.CoinFiat {
   204  	return predicate.CoinFiat(func(s *sql.Selector) {
   205  		s.Where(sql.NEQ(s.C(FieldUpdatedAt), v))
   206  	})
   207  }
   208  
   209  // UpdatedAtIn applies the In predicate on the "updated_at" field.
   210  func UpdatedAtIn(vs ...uint32) predicate.CoinFiat {
   211  	v := make([]interface{}, len(vs))
   212  	for i := range v {
   213  		v[i] = vs[i]
   214  	}
   215  	return predicate.CoinFiat(func(s *sql.Selector) {
   216  		s.Where(sql.In(s.C(FieldUpdatedAt), v...))
   217  	})
   218  }
   219  
   220  // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
   221  func UpdatedAtNotIn(vs ...uint32) predicate.CoinFiat {
   222  	v := make([]interface{}, len(vs))
   223  	for i := range v {
   224  		v[i] = vs[i]
   225  	}
   226  	return predicate.CoinFiat(func(s *sql.Selector) {
   227  		s.Where(sql.NotIn(s.C(FieldUpdatedAt), v...))
   228  	})
   229  }
   230  
   231  // UpdatedAtGT applies the GT predicate on the "updated_at" field.
   232  func UpdatedAtGT(v uint32) predicate.CoinFiat {
   233  	return predicate.CoinFiat(func(s *sql.Selector) {
   234  		s.Where(sql.GT(s.C(FieldUpdatedAt), v))
   235  	})
   236  }
   237  
   238  // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
   239  func UpdatedAtGTE(v uint32) predicate.CoinFiat {
   240  	return predicate.CoinFiat(func(s *sql.Selector) {
   241  		s.Where(sql.GTE(s.C(FieldUpdatedAt), v))
   242  	})
   243  }
   244  
   245  // UpdatedAtLT applies the LT predicate on the "updated_at" field.
   246  func UpdatedAtLT(v uint32) predicate.CoinFiat {
   247  	return predicate.CoinFiat(func(s *sql.Selector) {
   248  		s.Where(sql.LT(s.C(FieldUpdatedAt), v))
   249  	})
   250  }
   251  
   252  // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
   253  func UpdatedAtLTE(v uint32) predicate.CoinFiat {
   254  	return predicate.CoinFiat(func(s *sql.Selector) {
   255  		s.Where(sql.LTE(s.C(FieldUpdatedAt), v))
   256  	})
   257  }
   258  
   259  // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
   260  func DeletedAtEQ(v uint32) predicate.CoinFiat {
   261  	return predicate.CoinFiat(func(s *sql.Selector) {
   262  		s.Where(sql.EQ(s.C(FieldDeletedAt), v))
   263  	})
   264  }
   265  
   266  // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
   267  func DeletedAtNEQ(v uint32) predicate.CoinFiat {
   268  	return predicate.CoinFiat(func(s *sql.Selector) {
   269  		s.Where(sql.NEQ(s.C(FieldDeletedAt), v))
   270  	})
   271  }
   272  
   273  // DeletedAtIn applies the In predicate on the "deleted_at" field.
   274  func DeletedAtIn(vs ...uint32) predicate.CoinFiat {
   275  	v := make([]interface{}, len(vs))
   276  	for i := range v {
   277  		v[i] = vs[i]
   278  	}
   279  	return predicate.CoinFiat(func(s *sql.Selector) {
   280  		s.Where(sql.In(s.C(FieldDeletedAt), v...))
   281  	})
   282  }
   283  
   284  // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
   285  func DeletedAtNotIn(vs ...uint32) predicate.CoinFiat {
   286  	v := make([]interface{}, len(vs))
   287  	for i := range v {
   288  		v[i] = vs[i]
   289  	}
   290  	return predicate.CoinFiat(func(s *sql.Selector) {
   291  		s.Where(sql.NotIn(s.C(FieldDeletedAt), v...))
   292  	})
   293  }
   294  
   295  // DeletedAtGT applies the GT predicate on the "deleted_at" field.
   296  func DeletedAtGT(v uint32) predicate.CoinFiat {
   297  	return predicate.CoinFiat(func(s *sql.Selector) {
   298  		s.Where(sql.GT(s.C(FieldDeletedAt), v))
   299  	})
   300  }
   301  
   302  // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
   303  func DeletedAtGTE(v uint32) predicate.CoinFiat {
   304  	return predicate.CoinFiat(func(s *sql.Selector) {
   305  		s.Where(sql.GTE(s.C(FieldDeletedAt), v))
   306  	})
   307  }
   308  
   309  // DeletedAtLT applies the LT predicate on the "deleted_at" field.
   310  func DeletedAtLT(v uint32) predicate.CoinFiat {
   311  	return predicate.CoinFiat(func(s *sql.Selector) {
   312  		s.Where(sql.LT(s.C(FieldDeletedAt), v))
   313  	})
   314  }
   315  
   316  // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
   317  func DeletedAtLTE(v uint32) predicate.CoinFiat {
   318  	return predicate.CoinFiat(func(s *sql.Selector) {
   319  		s.Where(sql.LTE(s.C(FieldDeletedAt), v))
   320  	})
   321  }
   322  
   323  // EntIDEQ applies the EQ predicate on the "ent_id" field.
   324  func EntIDEQ(v uuid.UUID) predicate.CoinFiat {
   325  	return predicate.CoinFiat(func(s *sql.Selector) {
   326  		s.Where(sql.EQ(s.C(FieldEntID), v))
   327  	})
   328  }
   329  
   330  // EntIDNEQ applies the NEQ predicate on the "ent_id" field.
   331  func EntIDNEQ(v uuid.UUID) predicate.CoinFiat {
   332  	return predicate.CoinFiat(func(s *sql.Selector) {
   333  		s.Where(sql.NEQ(s.C(FieldEntID), v))
   334  	})
   335  }
   336  
   337  // EntIDIn applies the In predicate on the "ent_id" field.
   338  func EntIDIn(vs ...uuid.UUID) predicate.CoinFiat {
   339  	v := make([]interface{}, len(vs))
   340  	for i := range v {
   341  		v[i] = vs[i]
   342  	}
   343  	return predicate.CoinFiat(func(s *sql.Selector) {
   344  		s.Where(sql.In(s.C(FieldEntID), v...))
   345  	})
   346  }
   347  
   348  // EntIDNotIn applies the NotIn predicate on the "ent_id" field.
   349  func EntIDNotIn(vs ...uuid.UUID) predicate.CoinFiat {
   350  	v := make([]interface{}, len(vs))
   351  	for i := range v {
   352  		v[i] = vs[i]
   353  	}
   354  	return predicate.CoinFiat(func(s *sql.Selector) {
   355  		s.Where(sql.NotIn(s.C(FieldEntID), v...))
   356  	})
   357  }
   358  
   359  // EntIDGT applies the GT predicate on the "ent_id" field.
   360  func EntIDGT(v uuid.UUID) predicate.CoinFiat {
   361  	return predicate.CoinFiat(func(s *sql.Selector) {
   362  		s.Where(sql.GT(s.C(FieldEntID), v))
   363  	})
   364  }
   365  
   366  // EntIDGTE applies the GTE predicate on the "ent_id" field.
   367  func EntIDGTE(v uuid.UUID) predicate.CoinFiat {
   368  	return predicate.CoinFiat(func(s *sql.Selector) {
   369  		s.Where(sql.GTE(s.C(FieldEntID), v))
   370  	})
   371  }
   372  
   373  // EntIDLT applies the LT predicate on the "ent_id" field.
   374  func EntIDLT(v uuid.UUID) predicate.CoinFiat {
   375  	return predicate.CoinFiat(func(s *sql.Selector) {
   376  		s.Where(sql.LT(s.C(FieldEntID), v))
   377  	})
   378  }
   379  
   380  // EntIDLTE applies the LTE predicate on the "ent_id" field.
   381  func EntIDLTE(v uuid.UUID) predicate.CoinFiat {
   382  	return predicate.CoinFiat(func(s *sql.Selector) {
   383  		s.Where(sql.LTE(s.C(FieldEntID), v))
   384  	})
   385  }
   386  
   387  // CoinTypeIDEQ applies the EQ predicate on the "coin_type_id" field.
   388  func CoinTypeIDEQ(v uuid.UUID) predicate.CoinFiat {
   389  	return predicate.CoinFiat(func(s *sql.Selector) {
   390  		s.Where(sql.EQ(s.C(FieldCoinTypeID), v))
   391  	})
   392  }
   393  
   394  // CoinTypeIDNEQ applies the NEQ predicate on the "coin_type_id" field.
   395  func CoinTypeIDNEQ(v uuid.UUID) predicate.CoinFiat {
   396  	return predicate.CoinFiat(func(s *sql.Selector) {
   397  		s.Where(sql.NEQ(s.C(FieldCoinTypeID), v))
   398  	})
   399  }
   400  
   401  // CoinTypeIDIn applies the In predicate on the "coin_type_id" field.
   402  func CoinTypeIDIn(vs ...uuid.UUID) predicate.CoinFiat {
   403  	v := make([]interface{}, len(vs))
   404  	for i := range v {
   405  		v[i] = vs[i]
   406  	}
   407  	return predicate.CoinFiat(func(s *sql.Selector) {
   408  		s.Where(sql.In(s.C(FieldCoinTypeID), v...))
   409  	})
   410  }
   411  
   412  // CoinTypeIDNotIn applies the NotIn predicate on the "coin_type_id" field.
   413  func CoinTypeIDNotIn(vs ...uuid.UUID) predicate.CoinFiat {
   414  	v := make([]interface{}, len(vs))
   415  	for i := range v {
   416  		v[i] = vs[i]
   417  	}
   418  	return predicate.CoinFiat(func(s *sql.Selector) {
   419  		s.Where(sql.NotIn(s.C(FieldCoinTypeID), v...))
   420  	})
   421  }
   422  
   423  // CoinTypeIDGT applies the GT predicate on the "coin_type_id" field.
   424  func CoinTypeIDGT(v uuid.UUID) predicate.CoinFiat {
   425  	return predicate.CoinFiat(func(s *sql.Selector) {
   426  		s.Where(sql.GT(s.C(FieldCoinTypeID), v))
   427  	})
   428  }
   429  
   430  // CoinTypeIDGTE applies the GTE predicate on the "coin_type_id" field.
   431  func CoinTypeIDGTE(v uuid.UUID) predicate.CoinFiat {
   432  	return predicate.CoinFiat(func(s *sql.Selector) {
   433  		s.Where(sql.GTE(s.C(FieldCoinTypeID), v))
   434  	})
   435  }
   436  
   437  // CoinTypeIDLT applies the LT predicate on the "coin_type_id" field.
   438  func CoinTypeIDLT(v uuid.UUID) predicate.CoinFiat {
   439  	return predicate.CoinFiat(func(s *sql.Selector) {
   440  		s.Where(sql.LT(s.C(FieldCoinTypeID), v))
   441  	})
   442  }
   443  
   444  // CoinTypeIDLTE applies the LTE predicate on the "coin_type_id" field.
   445  func CoinTypeIDLTE(v uuid.UUID) predicate.CoinFiat {
   446  	return predicate.CoinFiat(func(s *sql.Selector) {
   447  		s.Where(sql.LTE(s.C(FieldCoinTypeID), v))
   448  	})
   449  }
   450  
   451  // CoinTypeIDIsNil applies the IsNil predicate on the "coin_type_id" field.
   452  func CoinTypeIDIsNil() predicate.CoinFiat {
   453  	return predicate.CoinFiat(func(s *sql.Selector) {
   454  		s.Where(sql.IsNull(s.C(FieldCoinTypeID)))
   455  	})
   456  }
   457  
   458  // CoinTypeIDNotNil applies the NotNil predicate on the "coin_type_id" field.
   459  func CoinTypeIDNotNil() predicate.CoinFiat {
   460  	return predicate.CoinFiat(func(s *sql.Selector) {
   461  		s.Where(sql.NotNull(s.C(FieldCoinTypeID)))
   462  	})
   463  }
   464  
   465  // FiatIDEQ applies the EQ predicate on the "fiat_id" field.
   466  func FiatIDEQ(v uuid.UUID) predicate.CoinFiat {
   467  	return predicate.CoinFiat(func(s *sql.Selector) {
   468  		s.Where(sql.EQ(s.C(FieldFiatID), v))
   469  	})
   470  }
   471  
   472  // FiatIDNEQ applies the NEQ predicate on the "fiat_id" field.
   473  func FiatIDNEQ(v uuid.UUID) predicate.CoinFiat {
   474  	return predicate.CoinFiat(func(s *sql.Selector) {
   475  		s.Where(sql.NEQ(s.C(FieldFiatID), v))
   476  	})
   477  }
   478  
   479  // FiatIDIn applies the In predicate on the "fiat_id" field.
   480  func FiatIDIn(vs ...uuid.UUID) predicate.CoinFiat {
   481  	v := make([]interface{}, len(vs))
   482  	for i := range v {
   483  		v[i] = vs[i]
   484  	}
   485  	return predicate.CoinFiat(func(s *sql.Selector) {
   486  		s.Where(sql.In(s.C(FieldFiatID), v...))
   487  	})
   488  }
   489  
   490  // FiatIDNotIn applies the NotIn predicate on the "fiat_id" field.
   491  func FiatIDNotIn(vs ...uuid.UUID) predicate.CoinFiat {
   492  	v := make([]interface{}, len(vs))
   493  	for i := range v {
   494  		v[i] = vs[i]
   495  	}
   496  	return predicate.CoinFiat(func(s *sql.Selector) {
   497  		s.Where(sql.NotIn(s.C(FieldFiatID), v...))
   498  	})
   499  }
   500  
   501  // FiatIDGT applies the GT predicate on the "fiat_id" field.
   502  func FiatIDGT(v uuid.UUID) predicate.CoinFiat {
   503  	return predicate.CoinFiat(func(s *sql.Selector) {
   504  		s.Where(sql.GT(s.C(FieldFiatID), v))
   505  	})
   506  }
   507  
   508  // FiatIDGTE applies the GTE predicate on the "fiat_id" field.
   509  func FiatIDGTE(v uuid.UUID) predicate.CoinFiat {
   510  	return predicate.CoinFiat(func(s *sql.Selector) {
   511  		s.Where(sql.GTE(s.C(FieldFiatID), v))
   512  	})
   513  }
   514  
   515  // FiatIDLT applies the LT predicate on the "fiat_id" field.
   516  func FiatIDLT(v uuid.UUID) predicate.CoinFiat {
   517  	return predicate.CoinFiat(func(s *sql.Selector) {
   518  		s.Where(sql.LT(s.C(FieldFiatID), v))
   519  	})
   520  }
   521  
   522  // FiatIDLTE applies the LTE predicate on the "fiat_id" field.
   523  func FiatIDLTE(v uuid.UUID) predicate.CoinFiat {
   524  	return predicate.CoinFiat(func(s *sql.Selector) {
   525  		s.Where(sql.LTE(s.C(FieldFiatID), v))
   526  	})
   527  }
   528  
   529  // FiatIDIsNil applies the IsNil predicate on the "fiat_id" field.
   530  func FiatIDIsNil() predicate.CoinFiat {
   531  	return predicate.CoinFiat(func(s *sql.Selector) {
   532  		s.Where(sql.IsNull(s.C(FieldFiatID)))
   533  	})
   534  }
   535  
   536  // FiatIDNotNil applies the NotNil predicate on the "fiat_id" field.
   537  func FiatIDNotNil() predicate.CoinFiat {
   538  	return predicate.CoinFiat(func(s *sql.Selector) {
   539  		s.Where(sql.NotNull(s.C(FieldFiatID)))
   540  	})
   541  }
   542  
   543  // FeedTypeEQ applies the EQ predicate on the "feed_type" field.
   544  func FeedTypeEQ(v string) predicate.CoinFiat {
   545  	return predicate.CoinFiat(func(s *sql.Selector) {
   546  		s.Where(sql.EQ(s.C(FieldFeedType), v))
   547  	})
   548  }
   549  
   550  // FeedTypeNEQ applies the NEQ predicate on the "feed_type" field.
   551  func FeedTypeNEQ(v string) predicate.CoinFiat {
   552  	return predicate.CoinFiat(func(s *sql.Selector) {
   553  		s.Where(sql.NEQ(s.C(FieldFeedType), v))
   554  	})
   555  }
   556  
   557  // FeedTypeIn applies the In predicate on the "feed_type" field.
   558  func FeedTypeIn(vs ...string) predicate.CoinFiat {
   559  	v := make([]interface{}, len(vs))
   560  	for i := range v {
   561  		v[i] = vs[i]
   562  	}
   563  	return predicate.CoinFiat(func(s *sql.Selector) {
   564  		s.Where(sql.In(s.C(FieldFeedType), v...))
   565  	})
   566  }
   567  
   568  // FeedTypeNotIn applies the NotIn predicate on the "feed_type" field.
   569  func FeedTypeNotIn(vs ...string) predicate.CoinFiat {
   570  	v := make([]interface{}, len(vs))
   571  	for i := range v {
   572  		v[i] = vs[i]
   573  	}
   574  	return predicate.CoinFiat(func(s *sql.Selector) {
   575  		s.Where(sql.NotIn(s.C(FieldFeedType), v...))
   576  	})
   577  }
   578  
   579  // FeedTypeGT applies the GT predicate on the "feed_type" field.
   580  func FeedTypeGT(v string) predicate.CoinFiat {
   581  	return predicate.CoinFiat(func(s *sql.Selector) {
   582  		s.Where(sql.GT(s.C(FieldFeedType), v))
   583  	})
   584  }
   585  
   586  // FeedTypeGTE applies the GTE predicate on the "feed_type" field.
   587  func FeedTypeGTE(v string) predicate.CoinFiat {
   588  	return predicate.CoinFiat(func(s *sql.Selector) {
   589  		s.Where(sql.GTE(s.C(FieldFeedType), v))
   590  	})
   591  }
   592  
   593  // FeedTypeLT applies the LT predicate on the "feed_type" field.
   594  func FeedTypeLT(v string) predicate.CoinFiat {
   595  	return predicate.CoinFiat(func(s *sql.Selector) {
   596  		s.Where(sql.LT(s.C(FieldFeedType), v))
   597  	})
   598  }
   599  
   600  // FeedTypeLTE applies the LTE predicate on the "feed_type" field.
   601  func FeedTypeLTE(v string) predicate.CoinFiat {
   602  	return predicate.CoinFiat(func(s *sql.Selector) {
   603  		s.Where(sql.LTE(s.C(FieldFeedType), v))
   604  	})
   605  }
   606  
   607  // FeedTypeContains applies the Contains predicate on the "feed_type" field.
   608  func FeedTypeContains(v string) predicate.CoinFiat {
   609  	return predicate.CoinFiat(func(s *sql.Selector) {
   610  		s.Where(sql.Contains(s.C(FieldFeedType), v))
   611  	})
   612  }
   613  
   614  // FeedTypeHasPrefix applies the HasPrefix predicate on the "feed_type" field.
   615  func FeedTypeHasPrefix(v string) predicate.CoinFiat {
   616  	return predicate.CoinFiat(func(s *sql.Selector) {
   617  		s.Where(sql.HasPrefix(s.C(FieldFeedType), v))
   618  	})
   619  }
   620  
   621  // FeedTypeHasSuffix applies the HasSuffix predicate on the "feed_type" field.
   622  func FeedTypeHasSuffix(v string) predicate.CoinFiat {
   623  	return predicate.CoinFiat(func(s *sql.Selector) {
   624  		s.Where(sql.HasSuffix(s.C(FieldFeedType), v))
   625  	})
   626  }
   627  
   628  // FeedTypeIsNil applies the IsNil predicate on the "feed_type" field.
   629  func FeedTypeIsNil() predicate.CoinFiat {
   630  	return predicate.CoinFiat(func(s *sql.Selector) {
   631  		s.Where(sql.IsNull(s.C(FieldFeedType)))
   632  	})
   633  }
   634  
   635  // FeedTypeNotNil applies the NotNil predicate on the "feed_type" field.
   636  func FeedTypeNotNil() predicate.CoinFiat {
   637  	return predicate.CoinFiat(func(s *sql.Selector) {
   638  		s.Where(sql.NotNull(s.C(FieldFeedType)))
   639  	})
   640  }
   641  
   642  // FeedTypeEqualFold applies the EqualFold predicate on the "feed_type" field.
   643  func FeedTypeEqualFold(v string) predicate.CoinFiat {
   644  	return predicate.CoinFiat(func(s *sql.Selector) {
   645  		s.Where(sql.EqualFold(s.C(FieldFeedType), v))
   646  	})
   647  }
   648  
   649  // FeedTypeContainsFold applies the ContainsFold predicate on the "feed_type" field.
   650  func FeedTypeContainsFold(v string) predicate.CoinFiat {
   651  	return predicate.CoinFiat(func(s *sql.Selector) {
   652  		s.Where(sql.ContainsFold(s.C(FieldFeedType), v))
   653  	})
   654  }
   655  
   656  // And groups predicates with the AND operator between them.
   657  func And(predicates ...predicate.CoinFiat) predicate.CoinFiat {
   658  	return predicate.CoinFiat(func(s *sql.Selector) {
   659  		s1 := s.Clone().SetP(nil)
   660  		for _, p := range predicates {
   661  			p(s1)
   662  		}
   663  		s.Where(s1.P())
   664  	})
   665  }
   666  
   667  // Or groups predicates with the OR operator between them.
   668  func Or(predicates ...predicate.CoinFiat) predicate.CoinFiat {
   669  	return predicate.CoinFiat(func(s *sql.Selector) {
   670  		s1 := s.Clone().SetP(nil)
   671  		for i, p := range predicates {
   672  			if i > 0 {
   673  				s1.Or()
   674  			}
   675  			p(s1)
   676  		}
   677  		s.Where(s1.P())
   678  	})
   679  }
   680  
   681  // Not applies the not operator on the given predicate.
   682  func Not(p predicate.CoinFiat) predicate.CoinFiat {
   683  	return predicate.CoinFiat(func(s *sql.Selector) {
   684  		p(s.Not())
   685  	})
   686  }