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

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