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

     1  // Code generated by ent, DO NOT EDIT.
     2  
     3  package appcoin
     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.AppCoin {
    14  	return predicate.AppCoin(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.AppCoin {
    21  	return predicate.AppCoin(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.AppCoin {
    28  	return predicate.AppCoin(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.AppCoin {
    35  	return predicate.AppCoin(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.AppCoin {
    46  	return predicate.AppCoin(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.AppCoin {
    57  	return predicate.AppCoin(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.AppCoin {
    64  	return predicate.AppCoin(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.AppCoin {
    71  	return predicate.AppCoin(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.AppCoin {
    78  	return predicate.AppCoin(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.AppCoin {
    85  	return predicate.AppCoin(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.AppCoin {
    92  	return predicate.AppCoin(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.AppCoin {
    99  	return predicate.AppCoin(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.AppCoin {
   106  	return predicate.AppCoin(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.AppCoin {
   113  	return predicate.AppCoin(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.AppCoin {
   120  	return predicate.AppCoin(func(s *sql.Selector) {
   121  		s.Where(sql.EQ(s.C(FieldCoinTypeID), v))
   122  	})
   123  }
   124  
   125  // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
   126  func Name(v string) predicate.AppCoin {
   127  	return predicate.AppCoin(func(s *sql.Selector) {
   128  		s.Where(sql.EQ(s.C(FieldName), v))
   129  	})
   130  }
   131  
   132  // Logo applies equality check predicate on the "logo" field. It's identical to LogoEQ.
   133  func Logo(v string) predicate.AppCoin {
   134  	return predicate.AppCoin(func(s *sql.Selector) {
   135  		s.Where(sql.EQ(s.C(FieldLogo), v))
   136  	})
   137  }
   138  
   139  // ForPay applies equality check predicate on the "for_pay" field. It's identical to ForPayEQ.
   140  func ForPay(v bool) predicate.AppCoin {
   141  	return predicate.AppCoin(func(s *sql.Selector) {
   142  		s.Where(sql.EQ(s.C(FieldForPay), v))
   143  	})
   144  }
   145  
   146  // WithdrawAutoReviewAmount applies equality check predicate on the "withdraw_auto_review_amount" field. It's identical to WithdrawAutoReviewAmountEQ.
   147  func WithdrawAutoReviewAmount(v decimal.Decimal) predicate.AppCoin {
   148  	return predicate.AppCoin(func(s *sql.Selector) {
   149  		s.Where(sql.EQ(s.C(FieldWithdrawAutoReviewAmount), v))
   150  	})
   151  }
   152  
   153  // ProductPage applies equality check predicate on the "product_page" field. It's identical to ProductPageEQ.
   154  func ProductPage(v string) predicate.AppCoin {
   155  	return predicate.AppCoin(func(s *sql.Selector) {
   156  		s.Where(sql.EQ(s.C(FieldProductPage), v))
   157  	})
   158  }
   159  
   160  // Disabled applies equality check predicate on the "disabled" field. It's identical to DisabledEQ.
   161  func Disabled(v bool) predicate.AppCoin {
   162  	return predicate.AppCoin(func(s *sql.Selector) {
   163  		s.Where(sql.EQ(s.C(FieldDisabled), v))
   164  	})
   165  }
   166  
   167  // DailyRewardAmount applies equality check predicate on the "daily_reward_amount" field. It's identical to DailyRewardAmountEQ.
   168  func DailyRewardAmount(v decimal.Decimal) predicate.AppCoin {
   169  	return predicate.AppCoin(func(s *sql.Selector) {
   170  		s.Where(sql.EQ(s.C(FieldDailyRewardAmount), v))
   171  	})
   172  }
   173  
   174  // Display applies equality check predicate on the "display" field. It's identical to DisplayEQ.
   175  func Display(v bool) predicate.AppCoin {
   176  	return predicate.AppCoin(func(s *sql.Selector) {
   177  		s.Where(sql.EQ(s.C(FieldDisplay), v))
   178  	})
   179  }
   180  
   181  // DisplayIndex applies equality check predicate on the "display_index" field. It's identical to DisplayIndexEQ.
   182  func DisplayIndex(v uint32) predicate.AppCoin {
   183  	return predicate.AppCoin(func(s *sql.Selector) {
   184  		s.Where(sql.EQ(s.C(FieldDisplayIndex), v))
   185  	})
   186  }
   187  
   188  // MaxAmountPerWithdraw applies equality check predicate on the "max_amount_per_withdraw" field. It's identical to MaxAmountPerWithdrawEQ.
   189  func MaxAmountPerWithdraw(v decimal.Decimal) predicate.AppCoin {
   190  	return predicate.AppCoin(func(s *sql.Selector) {
   191  		s.Where(sql.EQ(s.C(FieldMaxAmountPerWithdraw), v))
   192  	})
   193  }
   194  
   195  // CreatedAtEQ applies the EQ predicate on the "created_at" field.
   196  func CreatedAtEQ(v uint32) predicate.AppCoin {
   197  	return predicate.AppCoin(func(s *sql.Selector) {
   198  		s.Where(sql.EQ(s.C(FieldCreatedAt), v))
   199  	})
   200  }
   201  
   202  // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
   203  func CreatedAtNEQ(v uint32) predicate.AppCoin {
   204  	return predicate.AppCoin(func(s *sql.Selector) {
   205  		s.Where(sql.NEQ(s.C(FieldCreatedAt), v))
   206  	})
   207  }
   208  
   209  // CreatedAtIn applies the In predicate on the "created_at" field.
   210  func CreatedAtIn(vs ...uint32) predicate.AppCoin {
   211  	v := make([]interface{}, len(vs))
   212  	for i := range v {
   213  		v[i] = vs[i]
   214  	}
   215  	return predicate.AppCoin(func(s *sql.Selector) {
   216  		s.Where(sql.In(s.C(FieldCreatedAt), v...))
   217  	})
   218  }
   219  
   220  // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
   221  func CreatedAtNotIn(vs ...uint32) predicate.AppCoin {
   222  	v := make([]interface{}, len(vs))
   223  	for i := range v {
   224  		v[i] = vs[i]
   225  	}
   226  	return predicate.AppCoin(func(s *sql.Selector) {
   227  		s.Where(sql.NotIn(s.C(FieldCreatedAt), v...))
   228  	})
   229  }
   230  
   231  // CreatedAtGT applies the GT predicate on the "created_at" field.
   232  func CreatedAtGT(v uint32) predicate.AppCoin {
   233  	return predicate.AppCoin(func(s *sql.Selector) {
   234  		s.Where(sql.GT(s.C(FieldCreatedAt), v))
   235  	})
   236  }
   237  
   238  // CreatedAtGTE applies the GTE predicate on the "created_at" field.
   239  func CreatedAtGTE(v uint32) predicate.AppCoin {
   240  	return predicate.AppCoin(func(s *sql.Selector) {
   241  		s.Where(sql.GTE(s.C(FieldCreatedAt), v))
   242  	})
   243  }
   244  
   245  // CreatedAtLT applies the LT predicate on the "created_at" field.
   246  func CreatedAtLT(v uint32) predicate.AppCoin {
   247  	return predicate.AppCoin(func(s *sql.Selector) {
   248  		s.Where(sql.LT(s.C(FieldCreatedAt), v))
   249  	})
   250  }
   251  
   252  // CreatedAtLTE applies the LTE predicate on the "created_at" field.
   253  func CreatedAtLTE(v uint32) predicate.AppCoin {
   254  	return predicate.AppCoin(func(s *sql.Selector) {
   255  		s.Where(sql.LTE(s.C(FieldCreatedAt), v))
   256  	})
   257  }
   258  
   259  // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
   260  func UpdatedAtEQ(v uint32) predicate.AppCoin {
   261  	return predicate.AppCoin(func(s *sql.Selector) {
   262  		s.Where(sql.EQ(s.C(FieldUpdatedAt), v))
   263  	})
   264  }
   265  
   266  // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
   267  func UpdatedAtNEQ(v uint32) predicate.AppCoin {
   268  	return predicate.AppCoin(func(s *sql.Selector) {
   269  		s.Where(sql.NEQ(s.C(FieldUpdatedAt), v))
   270  	})
   271  }
   272  
   273  // UpdatedAtIn applies the In predicate on the "updated_at" field.
   274  func UpdatedAtIn(vs ...uint32) predicate.AppCoin {
   275  	v := make([]interface{}, len(vs))
   276  	for i := range v {
   277  		v[i] = vs[i]
   278  	}
   279  	return predicate.AppCoin(func(s *sql.Selector) {
   280  		s.Where(sql.In(s.C(FieldUpdatedAt), v...))
   281  	})
   282  }
   283  
   284  // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
   285  func UpdatedAtNotIn(vs ...uint32) predicate.AppCoin {
   286  	v := make([]interface{}, len(vs))
   287  	for i := range v {
   288  		v[i] = vs[i]
   289  	}
   290  	return predicate.AppCoin(func(s *sql.Selector) {
   291  		s.Where(sql.NotIn(s.C(FieldUpdatedAt), v...))
   292  	})
   293  }
   294  
   295  // UpdatedAtGT applies the GT predicate on the "updated_at" field.
   296  func UpdatedAtGT(v uint32) predicate.AppCoin {
   297  	return predicate.AppCoin(func(s *sql.Selector) {
   298  		s.Where(sql.GT(s.C(FieldUpdatedAt), v))
   299  	})
   300  }
   301  
   302  // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
   303  func UpdatedAtGTE(v uint32) predicate.AppCoin {
   304  	return predicate.AppCoin(func(s *sql.Selector) {
   305  		s.Where(sql.GTE(s.C(FieldUpdatedAt), v))
   306  	})
   307  }
   308  
   309  // UpdatedAtLT applies the LT predicate on the "updated_at" field.
   310  func UpdatedAtLT(v uint32) predicate.AppCoin {
   311  	return predicate.AppCoin(func(s *sql.Selector) {
   312  		s.Where(sql.LT(s.C(FieldUpdatedAt), v))
   313  	})
   314  }
   315  
   316  // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
   317  func UpdatedAtLTE(v uint32) predicate.AppCoin {
   318  	return predicate.AppCoin(func(s *sql.Selector) {
   319  		s.Where(sql.LTE(s.C(FieldUpdatedAt), v))
   320  	})
   321  }
   322  
   323  // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
   324  func DeletedAtEQ(v uint32) predicate.AppCoin {
   325  	return predicate.AppCoin(func(s *sql.Selector) {
   326  		s.Where(sql.EQ(s.C(FieldDeletedAt), v))
   327  	})
   328  }
   329  
   330  // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
   331  func DeletedAtNEQ(v uint32) predicate.AppCoin {
   332  	return predicate.AppCoin(func(s *sql.Selector) {
   333  		s.Where(sql.NEQ(s.C(FieldDeletedAt), v))
   334  	})
   335  }
   336  
   337  // DeletedAtIn applies the In predicate on the "deleted_at" field.
   338  func DeletedAtIn(vs ...uint32) predicate.AppCoin {
   339  	v := make([]interface{}, len(vs))
   340  	for i := range v {
   341  		v[i] = vs[i]
   342  	}
   343  	return predicate.AppCoin(func(s *sql.Selector) {
   344  		s.Where(sql.In(s.C(FieldDeletedAt), v...))
   345  	})
   346  }
   347  
   348  // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
   349  func DeletedAtNotIn(vs ...uint32) predicate.AppCoin {
   350  	v := make([]interface{}, len(vs))
   351  	for i := range v {
   352  		v[i] = vs[i]
   353  	}
   354  	return predicate.AppCoin(func(s *sql.Selector) {
   355  		s.Where(sql.NotIn(s.C(FieldDeletedAt), v...))
   356  	})
   357  }
   358  
   359  // DeletedAtGT applies the GT predicate on the "deleted_at" field.
   360  func DeletedAtGT(v uint32) predicate.AppCoin {
   361  	return predicate.AppCoin(func(s *sql.Selector) {
   362  		s.Where(sql.GT(s.C(FieldDeletedAt), v))
   363  	})
   364  }
   365  
   366  // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
   367  func DeletedAtGTE(v uint32) predicate.AppCoin {
   368  	return predicate.AppCoin(func(s *sql.Selector) {
   369  		s.Where(sql.GTE(s.C(FieldDeletedAt), v))
   370  	})
   371  }
   372  
   373  // DeletedAtLT applies the LT predicate on the "deleted_at" field.
   374  func DeletedAtLT(v uint32) predicate.AppCoin {
   375  	return predicate.AppCoin(func(s *sql.Selector) {
   376  		s.Where(sql.LT(s.C(FieldDeletedAt), v))
   377  	})
   378  }
   379  
   380  // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
   381  func DeletedAtLTE(v uint32) predicate.AppCoin {
   382  	return predicate.AppCoin(func(s *sql.Selector) {
   383  		s.Where(sql.LTE(s.C(FieldDeletedAt), v))
   384  	})
   385  }
   386  
   387  // EntIDEQ applies the EQ predicate on the "ent_id" field.
   388  func EntIDEQ(v uuid.UUID) predicate.AppCoin {
   389  	return predicate.AppCoin(func(s *sql.Selector) {
   390  		s.Where(sql.EQ(s.C(FieldEntID), v))
   391  	})
   392  }
   393  
   394  // EntIDNEQ applies the NEQ predicate on the "ent_id" field.
   395  func EntIDNEQ(v uuid.UUID) predicate.AppCoin {
   396  	return predicate.AppCoin(func(s *sql.Selector) {
   397  		s.Where(sql.NEQ(s.C(FieldEntID), v))
   398  	})
   399  }
   400  
   401  // EntIDIn applies the In predicate on the "ent_id" field.
   402  func EntIDIn(vs ...uuid.UUID) predicate.AppCoin {
   403  	v := make([]interface{}, len(vs))
   404  	for i := range v {
   405  		v[i] = vs[i]
   406  	}
   407  	return predicate.AppCoin(func(s *sql.Selector) {
   408  		s.Where(sql.In(s.C(FieldEntID), v...))
   409  	})
   410  }
   411  
   412  // EntIDNotIn applies the NotIn predicate on the "ent_id" field.
   413  func EntIDNotIn(vs ...uuid.UUID) predicate.AppCoin {
   414  	v := make([]interface{}, len(vs))
   415  	for i := range v {
   416  		v[i] = vs[i]
   417  	}
   418  	return predicate.AppCoin(func(s *sql.Selector) {
   419  		s.Where(sql.NotIn(s.C(FieldEntID), v...))
   420  	})
   421  }
   422  
   423  // EntIDGT applies the GT predicate on the "ent_id" field.
   424  func EntIDGT(v uuid.UUID) predicate.AppCoin {
   425  	return predicate.AppCoin(func(s *sql.Selector) {
   426  		s.Where(sql.GT(s.C(FieldEntID), v))
   427  	})
   428  }
   429  
   430  // EntIDGTE applies the GTE predicate on the "ent_id" field.
   431  func EntIDGTE(v uuid.UUID) predicate.AppCoin {
   432  	return predicate.AppCoin(func(s *sql.Selector) {
   433  		s.Where(sql.GTE(s.C(FieldEntID), v))
   434  	})
   435  }
   436  
   437  // EntIDLT applies the LT predicate on the "ent_id" field.
   438  func EntIDLT(v uuid.UUID) predicate.AppCoin {
   439  	return predicate.AppCoin(func(s *sql.Selector) {
   440  		s.Where(sql.LT(s.C(FieldEntID), v))
   441  	})
   442  }
   443  
   444  // EntIDLTE applies the LTE predicate on the "ent_id" field.
   445  func EntIDLTE(v uuid.UUID) predicate.AppCoin {
   446  	return predicate.AppCoin(func(s *sql.Selector) {
   447  		s.Where(sql.LTE(s.C(FieldEntID), v))
   448  	})
   449  }
   450  
   451  // AppIDEQ applies the EQ predicate on the "app_id" field.
   452  func AppIDEQ(v uuid.UUID) predicate.AppCoin {
   453  	return predicate.AppCoin(func(s *sql.Selector) {
   454  		s.Where(sql.EQ(s.C(FieldAppID), v))
   455  	})
   456  }
   457  
   458  // AppIDNEQ applies the NEQ predicate on the "app_id" field.
   459  func AppIDNEQ(v uuid.UUID) predicate.AppCoin {
   460  	return predicate.AppCoin(func(s *sql.Selector) {
   461  		s.Where(sql.NEQ(s.C(FieldAppID), v))
   462  	})
   463  }
   464  
   465  // AppIDIn applies the In predicate on the "app_id" field.
   466  func AppIDIn(vs ...uuid.UUID) predicate.AppCoin {
   467  	v := make([]interface{}, len(vs))
   468  	for i := range v {
   469  		v[i] = vs[i]
   470  	}
   471  	return predicate.AppCoin(func(s *sql.Selector) {
   472  		s.Where(sql.In(s.C(FieldAppID), v...))
   473  	})
   474  }
   475  
   476  // AppIDNotIn applies the NotIn predicate on the "app_id" field.
   477  func AppIDNotIn(vs ...uuid.UUID) predicate.AppCoin {
   478  	v := make([]interface{}, len(vs))
   479  	for i := range v {
   480  		v[i] = vs[i]
   481  	}
   482  	return predicate.AppCoin(func(s *sql.Selector) {
   483  		s.Where(sql.NotIn(s.C(FieldAppID), v...))
   484  	})
   485  }
   486  
   487  // AppIDGT applies the GT predicate on the "app_id" field.
   488  func AppIDGT(v uuid.UUID) predicate.AppCoin {
   489  	return predicate.AppCoin(func(s *sql.Selector) {
   490  		s.Where(sql.GT(s.C(FieldAppID), v))
   491  	})
   492  }
   493  
   494  // AppIDGTE applies the GTE predicate on the "app_id" field.
   495  func AppIDGTE(v uuid.UUID) predicate.AppCoin {
   496  	return predicate.AppCoin(func(s *sql.Selector) {
   497  		s.Where(sql.GTE(s.C(FieldAppID), v))
   498  	})
   499  }
   500  
   501  // AppIDLT applies the LT predicate on the "app_id" field.
   502  func AppIDLT(v uuid.UUID) predicate.AppCoin {
   503  	return predicate.AppCoin(func(s *sql.Selector) {
   504  		s.Where(sql.LT(s.C(FieldAppID), v))
   505  	})
   506  }
   507  
   508  // AppIDLTE applies the LTE predicate on the "app_id" field.
   509  func AppIDLTE(v uuid.UUID) predicate.AppCoin {
   510  	return predicate.AppCoin(func(s *sql.Selector) {
   511  		s.Where(sql.LTE(s.C(FieldAppID), v))
   512  	})
   513  }
   514  
   515  // AppIDIsNil applies the IsNil predicate on the "app_id" field.
   516  func AppIDIsNil() predicate.AppCoin {
   517  	return predicate.AppCoin(func(s *sql.Selector) {
   518  		s.Where(sql.IsNull(s.C(FieldAppID)))
   519  	})
   520  }
   521  
   522  // AppIDNotNil applies the NotNil predicate on the "app_id" field.
   523  func AppIDNotNil() predicate.AppCoin {
   524  	return predicate.AppCoin(func(s *sql.Selector) {
   525  		s.Where(sql.NotNull(s.C(FieldAppID)))
   526  	})
   527  }
   528  
   529  // CoinTypeIDEQ applies the EQ predicate on the "coin_type_id" field.
   530  func CoinTypeIDEQ(v uuid.UUID) predicate.AppCoin {
   531  	return predicate.AppCoin(func(s *sql.Selector) {
   532  		s.Where(sql.EQ(s.C(FieldCoinTypeID), v))
   533  	})
   534  }
   535  
   536  // CoinTypeIDNEQ applies the NEQ predicate on the "coin_type_id" field.
   537  func CoinTypeIDNEQ(v uuid.UUID) predicate.AppCoin {
   538  	return predicate.AppCoin(func(s *sql.Selector) {
   539  		s.Where(sql.NEQ(s.C(FieldCoinTypeID), v))
   540  	})
   541  }
   542  
   543  // CoinTypeIDIn applies the In predicate on the "coin_type_id" field.
   544  func CoinTypeIDIn(vs ...uuid.UUID) predicate.AppCoin {
   545  	v := make([]interface{}, len(vs))
   546  	for i := range v {
   547  		v[i] = vs[i]
   548  	}
   549  	return predicate.AppCoin(func(s *sql.Selector) {
   550  		s.Where(sql.In(s.C(FieldCoinTypeID), v...))
   551  	})
   552  }
   553  
   554  // CoinTypeIDNotIn applies the NotIn predicate on the "coin_type_id" field.
   555  func CoinTypeIDNotIn(vs ...uuid.UUID) predicate.AppCoin {
   556  	v := make([]interface{}, len(vs))
   557  	for i := range v {
   558  		v[i] = vs[i]
   559  	}
   560  	return predicate.AppCoin(func(s *sql.Selector) {
   561  		s.Where(sql.NotIn(s.C(FieldCoinTypeID), v...))
   562  	})
   563  }
   564  
   565  // CoinTypeIDGT applies the GT predicate on the "coin_type_id" field.
   566  func CoinTypeIDGT(v uuid.UUID) predicate.AppCoin {
   567  	return predicate.AppCoin(func(s *sql.Selector) {
   568  		s.Where(sql.GT(s.C(FieldCoinTypeID), v))
   569  	})
   570  }
   571  
   572  // CoinTypeIDGTE applies the GTE predicate on the "coin_type_id" field.
   573  func CoinTypeIDGTE(v uuid.UUID) predicate.AppCoin {
   574  	return predicate.AppCoin(func(s *sql.Selector) {
   575  		s.Where(sql.GTE(s.C(FieldCoinTypeID), v))
   576  	})
   577  }
   578  
   579  // CoinTypeIDLT applies the LT predicate on the "coin_type_id" field.
   580  func CoinTypeIDLT(v uuid.UUID) predicate.AppCoin {
   581  	return predicate.AppCoin(func(s *sql.Selector) {
   582  		s.Where(sql.LT(s.C(FieldCoinTypeID), v))
   583  	})
   584  }
   585  
   586  // CoinTypeIDLTE applies the LTE predicate on the "coin_type_id" field.
   587  func CoinTypeIDLTE(v uuid.UUID) predicate.AppCoin {
   588  	return predicate.AppCoin(func(s *sql.Selector) {
   589  		s.Where(sql.LTE(s.C(FieldCoinTypeID), v))
   590  	})
   591  }
   592  
   593  // CoinTypeIDIsNil applies the IsNil predicate on the "coin_type_id" field.
   594  func CoinTypeIDIsNil() predicate.AppCoin {
   595  	return predicate.AppCoin(func(s *sql.Selector) {
   596  		s.Where(sql.IsNull(s.C(FieldCoinTypeID)))
   597  	})
   598  }
   599  
   600  // CoinTypeIDNotNil applies the NotNil predicate on the "coin_type_id" field.
   601  func CoinTypeIDNotNil() predicate.AppCoin {
   602  	return predicate.AppCoin(func(s *sql.Selector) {
   603  		s.Where(sql.NotNull(s.C(FieldCoinTypeID)))
   604  	})
   605  }
   606  
   607  // NameEQ applies the EQ predicate on the "name" field.
   608  func NameEQ(v string) predicate.AppCoin {
   609  	return predicate.AppCoin(func(s *sql.Selector) {
   610  		s.Where(sql.EQ(s.C(FieldName), v))
   611  	})
   612  }
   613  
   614  // NameNEQ applies the NEQ predicate on the "name" field.
   615  func NameNEQ(v string) predicate.AppCoin {
   616  	return predicate.AppCoin(func(s *sql.Selector) {
   617  		s.Where(sql.NEQ(s.C(FieldName), v))
   618  	})
   619  }
   620  
   621  // NameIn applies the In predicate on the "name" field.
   622  func NameIn(vs ...string) predicate.AppCoin {
   623  	v := make([]interface{}, len(vs))
   624  	for i := range v {
   625  		v[i] = vs[i]
   626  	}
   627  	return predicate.AppCoin(func(s *sql.Selector) {
   628  		s.Where(sql.In(s.C(FieldName), v...))
   629  	})
   630  }
   631  
   632  // NameNotIn applies the NotIn predicate on the "name" field.
   633  func NameNotIn(vs ...string) predicate.AppCoin {
   634  	v := make([]interface{}, len(vs))
   635  	for i := range v {
   636  		v[i] = vs[i]
   637  	}
   638  	return predicate.AppCoin(func(s *sql.Selector) {
   639  		s.Where(sql.NotIn(s.C(FieldName), v...))
   640  	})
   641  }
   642  
   643  // NameGT applies the GT predicate on the "name" field.
   644  func NameGT(v string) predicate.AppCoin {
   645  	return predicate.AppCoin(func(s *sql.Selector) {
   646  		s.Where(sql.GT(s.C(FieldName), v))
   647  	})
   648  }
   649  
   650  // NameGTE applies the GTE predicate on the "name" field.
   651  func NameGTE(v string) predicate.AppCoin {
   652  	return predicate.AppCoin(func(s *sql.Selector) {
   653  		s.Where(sql.GTE(s.C(FieldName), v))
   654  	})
   655  }
   656  
   657  // NameLT applies the LT predicate on the "name" field.
   658  func NameLT(v string) predicate.AppCoin {
   659  	return predicate.AppCoin(func(s *sql.Selector) {
   660  		s.Where(sql.LT(s.C(FieldName), v))
   661  	})
   662  }
   663  
   664  // NameLTE applies the LTE predicate on the "name" field.
   665  func NameLTE(v string) predicate.AppCoin {
   666  	return predicate.AppCoin(func(s *sql.Selector) {
   667  		s.Where(sql.LTE(s.C(FieldName), v))
   668  	})
   669  }
   670  
   671  // NameContains applies the Contains predicate on the "name" field.
   672  func NameContains(v string) predicate.AppCoin {
   673  	return predicate.AppCoin(func(s *sql.Selector) {
   674  		s.Where(sql.Contains(s.C(FieldName), v))
   675  	})
   676  }
   677  
   678  // NameHasPrefix applies the HasPrefix predicate on the "name" field.
   679  func NameHasPrefix(v string) predicate.AppCoin {
   680  	return predicate.AppCoin(func(s *sql.Selector) {
   681  		s.Where(sql.HasPrefix(s.C(FieldName), v))
   682  	})
   683  }
   684  
   685  // NameHasSuffix applies the HasSuffix predicate on the "name" field.
   686  func NameHasSuffix(v string) predicate.AppCoin {
   687  	return predicate.AppCoin(func(s *sql.Selector) {
   688  		s.Where(sql.HasSuffix(s.C(FieldName), v))
   689  	})
   690  }
   691  
   692  // NameIsNil applies the IsNil predicate on the "name" field.
   693  func NameIsNil() predicate.AppCoin {
   694  	return predicate.AppCoin(func(s *sql.Selector) {
   695  		s.Where(sql.IsNull(s.C(FieldName)))
   696  	})
   697  }
   698  
   699  // NameNotNil applies the NotNil predicate on the "name" field.
   700  func NameNotNil() predicate.AppCoin {
   701  	return predicate.AppCoin(func(s *sql.Selector) {
   702  		s.Where(sql.NotNull(s.C(FieldName)))
   703  	})
   704  }
   705  
   706  // NameEqualFold applies the EqualFold predicate on the "name" field.
   707  func NameEqualFold(v string) predicate.AppCoin {
   708  	return predicate.AppCoin(func(s *sql.Selector) {
   709  		s.Where(sql.EqualFold(s.C(FieldName), v))
   710  	})
   711  }
   712  
   713  // NameContainsFold applies the ContainsFold predicate on the "name" field.
   714  func NameContainsFold(v string) predicate.AppCoin {
   715  	return predicate.AppCoin(func(s *sql.Selector) {
   716  		s.Where(sql.ContainsFold(s.C(FieldName), v))
   717  	})
   718  }
   719  
   720  // DisplayNamesIsNil applies the IsNil predicate on the "display_names" field.
   721  func DisplayNamesIsNil() predicate.AppCoin {
   722  	return predicate.AppCoin(func(s *sql.Selector) {
   723  		s.Where(sql.IsNull(s.C(FieldDisplayNames)))
   724  	})
   725  }
   726  
   727  // DisplayNamesNotNil applies the NotNil predicate on the "display_names" field.
   728  func DisplayNamesNotNil() predicate.AppCoin {
   729  	return predicate.AppCoin(func(s *sql.Selector) {
   730  		s.Where(sql.NotNull(s.C(FieldDisplayNames)))
   731  	})
   732  }
   733  
   734  // LogoEQ applies the EQ predicate on the "logo" field.
   735  func LogoEQ(v string) predicate.AppCoin {
   736  	return predicate.AppCoin(func(s *sql.Selector) {
   737  		s.Where(sql.EQ(s.C(FieldLogo), v))
   738  	})
   739  }
   740  
   741  // LogoNEQ applies the NEQ predicate on the "logo" field.
   742  func LogoNEQ(v string) predicate.AppCoin {
   743  	return predicate.AppCoin(func(s *sql.Selector) {
   744  		s.Where(sql.NEQ(s.C(FieldLogo), v))
   745  	})
   746  }
   747  
   748  // LogoIn applies the In predicate on the "logo" field.
   749  func LogoIn(vs ...string) predicate.AppCoin {
   750  	v := make([]interface{}, len(vs))
   751  	for i := range v {
   752  		v[i] = vs[i]
   753  	}
   754  	return predicate.AppCoin(func(s *sql.Selector) {
   755  		s.Where(sql.In(s.C(FieldLogo), v...))
   756  	})
   757  }
   758  
   759  // LogoNotIn applies the NotIn predicate on the "logo" field.
   760  func LogoNotIn(vs ...string) predicate.AppCoin {
   761  	v := make([]interface{}, len(vs))
   762  	for i := range v {
   763  		v[i] = vs[i]
   764  	}
   765  	return predicate.AppCoin(func(s *sql.Selector) {
   766  		s.Where(sql.NotIn(s.C(FieldLogo), v...))
   767  	})
   768  }
   769  
   770  // LogoGT applies the GT predicate on the "logo" field.
   771  func LogoGT(v string) predicate.AppCoin {
   772  	return predicate.AppCoin(func(s *sql.Selector) {
   773  		s.Where(sql.GT(s.C(FieldLogo), v))
   774  	})
   775  }
   776  
   777  // LogoGTE applies the GTE predicate on the "logo" field.
   778  func LogoGTE(v string) predicate.AppCoin {
   779  	return predicate.AppCoin(func(s *sql.Selector) {
   780  		s.Where(sql.GTE(s.C(FieldLogo), v))
   781  	})
   782  }
   783  
   784  // LogoLT applies the LT predicate on the "logo" field.
   785  func LogoLT(v string) predicate.AppCoin {
   786  	return predicate.AppCoin(func(s *sql.Selector) {
   787  		s.Where(sql.LT(s.C(FieldLogo), v))
   788  	})
   789  }
   790  
   791  // LogoLTE applies the LTE predicate on the "logo" field.
   792  func LogoLTE(v string) predicate.AppCoin {
   793  	return predicate.AppCoin(func(s *sql.Selector) {
   794  		s.Where(sql.LTE(s.C(FieldLogo), v))
   795  	})
   796  }
   797  
   798  // LogoContains applies the Contains predicate on the "logo" field.
   799  func LogoContains(v string) predicate.AppCoin {
   800  	return predicate.AppCoin(func(s *sql.Selector) {
   801  		s.Where(sql.Contains(s.C(FieldLogo), v))
   802  	})
   803  }
   804  
   805  // LogoHasPrefix applies the HasPrefix predicate on the "logo" field.
   806  func LogoHasPrefix(v string) predicate.AppCoin {
   807  	return predicate.AppCoin(func(s *sql.Selector) {
   808  		s.Where(sql.HasPrefix(s.C(FieldLogo), v))
   809  	})
   810  }
   811  
   812  // LogoHasSuffix applies the HasSuffix predicate on the "logo" field.
   813  func LogoHasSuffix(v string) predicate.AppCoin {
   814  	return predicate.AppCoin(func(s *sql.Selector) {
   815  		s.Where(sql.HasSuffix(s.C(FieldLogo), v))
   816  	})
   817  }
   818  
   819  // LogoIsNil applies the IsNil predicate on the "logo" field.
   820  func LogoIsNil() predicate.AppCoin {
   821  	return predicate.AppCoin(func(s *sql.Selector) {
   822  		s.Where(sql.IsNull(s.C(FieldLogo)))
   823  	})
   824  }
   825  
   826  // LogoNotNil applies the NotNil predicate on the "logo" field.
   827  func LogoNotNil() predicate.AppCoin {
   828  	return predicate.AppCoin(func(s *sql.Selector) {
   829  		s.Where(sql.NotNull(s.C(FieldLogo)))
   830  	})
   831  }
   832  
   833  // LogoEqualFold applies the EqualFold predicate on the "logo" field.
   834  func LogoEqualFold(v string) predicate.AppCoin {
   835  	return predicate.AppCoin(func(s *sql.Selector) {
   836  		s.Where(sql.EqualFold(s.C(FieldLogo), v))
   837  	})
   838  }
   839  
   840  // LogoContainsFold applies the ContainsFold predicate on the "logo" field.
   841  func LogoContainsFold(v string) predicate.AppCoin {
   842  	return predicate.AppCoin(func(s *sql.Selector) {
   843  		s.Where(sql.ContainsFold(s.C(FieldLogo), v))
   844  	})
   845  }
   846  
   847  // ForPayEQ applies the EQ predicate on the "for_pay" field.
   848  func ForPayEQ(v bool) predicate.AppCoin {
   849  	return predicate.AppCoin(func(s *sql.Selector) {
   850  		s.Where(sql.EQ(s.C(FieldForPay), v))
   851  	})
   852  }
   853  
   854  // ForPayNEQ applies the NEQ predicate on the "for_pay" field.
   855  func ForPayNEQ(v bool) predicate.AppCoin {
   856  	return predicate.AppCoin(func(s *sql.Selector) {
   857  		s.Where(sql.NEQ(s.C(FieldForPay), v))
   858  	})
   859  }
   860  
   861  // ForPayIsNil applies the IsNil predicate on the "for_pay" field.
   862  func ForPayIsNil() predicate.AppCoin {
   863  	return predicate.AppCoin(func(s *sql.Selector) {
   864  		s.Where(sql.IsNull(s.C(FieldForPay)))
   865  	})
   866  }
   867  
   868  // ForPayNotNil applies the NotNil predicate on the "for_pay" field.
   869  func ForPayNotNil() predicate.AppCoin {
   870  	return predicate.AppCoin(func(s *sql.Selector) {
   871  		s.Where(sql.NotNull(s.C(FieldForPay)))
   872  	})
   873  }
   874  
   875  // WithdrawAutoReviewAmountEQ applies the EQ predicate on the "withdraw_auto_review_amount" field.
   876  func WithdrawAutoReviewAmountEQ(v decimal.Decimal) predicate.AppCoin {
   877  	return predicate.AppCoin(func(s *sql.Selector) {
   878  		s.Where(sql.EQ(s.C(FieldWithdrawAutoReviewAmount), v))
   879  	})
   880  }
   881  
   882  // WithdrawAutoReviewAmountNEQ applies the NEQ predicate on the "withdraw_auto_review_amount" field.
   883  func WithdrawAutoReviewAmountNEQ(v decimal.Decimal) predicate.AppCoin {
   884  	return predicate.AppCoin(func(s *sql.Selector) {
   885  		s.Where(sql.NEQ(s.C(FieldWithdrawAutoReviewAmount), v))
   886  	})
   887  }
   888  
   889  // WithdrawAutoReviewAmountIn applies the In predicate on the "withdraw_auto_review_amount" field.
   890  func WithdrawAutoReviewAmountIn(vs ...decimal.Decimal) predicate.AppCoin {
   891  	v := make([]interface{}, len(vs))
   892  	for i := range v {
   893  		v[i] = vs[i]
   894  	}
   895  	return predicate.AppCoin(func(s *sql.Selector) {
   896  		s.Where(sql.In(s.C(FieldWithdrawAutoReviewAmount), v...))
   897  	})
   898  }
   899  
   900  // WithdrawAutoReviewAmountNotIn applies the NotIn predicate on the "withdraw_auto_review_amount" field.
   901  func WithdrawAutoReviewAmountNotIn(vs ...decimal.Decimal) predicate.AppCoin {
   902  	v := make([]interface{}, len(vs))
   903  	for i := range v {
   904  		v[i] = vs[i]
   905  	}
   906  	return predicate.AppCoin(func(s *sql.Selector) {
   907  		s.Where(sql.NotIn(s.C(FieldWithdrawAutoReviewAmount), v...))
   908  	})
   909  }
   910  
   911  // WithdrawAutoReviewAmountGT applies the GT predicate on the "withdraw_auto_review_amount" field.
   912  func WithdrawAutoReviewAmountGT(v decimal.Decimal) predicate.AppCoin {
   913  	return predicate.AppCoin(func(s *sql.Selector) {
   914  		s.Where(sql.GT(s.C(FieldWithdrawAutoReviewAmount), v))
   915  	})
   916  }
   917  
   918  // WithdrawAutoReviewAmountGTE applies the GTE predicate on the "withdraw_auto_review_amount" field.
   919  func WithdrawAutoReviewAmountGTE(v decimal.Decimal) predicate.AppCoin {
   920  	return predicate.AppCoin(func(s *sql.Selector) {
   921  		s.Where(sql.GTE(s.C(FieldWithdrawAutoReviewAmount), v))
   922  	})
   923  }
   924  
   925  // WithdrawAutoReviewAmountLT applies the LT predicate on the "withdraw_auto_review_amount" field.
   926  func WithdrawAutoReviewAmountLT(v decimal.Decimal) predicate.AppCoin {
   927  	return predicate.AppCoin(func(s *sql.Selector) {
   928  		s.Where(sql.LT(s.C(FieldWithdrawAutoReviewAmount), v))
   929  	})
   930  }
   931  
   932  // WithdrawAutoReviewAmountLTE applies the LTE predicate on the "withdraw_auto_review_amount" field.
   933  func WithdrawAutoReviewAmountLTE(v decimal.Decimal) predicate.AppCoin {
   934  	return predicate.AppCoin(func(s *sql.Selector) {
   935  		s.Where(sql.LTE(s.C(FieldWithdrawAutoReviewAmount), v))
   936  	})
   937  }
   938  
   939  // WithdrawAutoReviewAmountIsNil applies the IsNil predicate on the "withdraw_auto_review_amount" field.
   940  func WithdrawAutoReviewAmountIsNil() predicate.AppCoin {
   941  	return predicate.AppCoin(func(s *sql.Selector) {
   942  		s.Where(sql.IsNull(s.C(FieldWithdrawAutoReviewAmount)))
   943  	})
   944  }
   945  
   946  // WithdrawAutoReviewAmountNotNil applies the NotNil predicate on the "withdraw_auto_review_amount" field.
   947  func WithdrawAutoReviewAmountNotNil() predicate.AppCoin {
   948  	return predicate.AppCoin(func(s *sql.Selector) {
   949  		s.Where(sql.NotNull(s.C(FieldWithdrawAutoReviewAmount)))
   950  	})
   951  }
   952  
   953  // ProductPageEQ applies the EQ predicate on the "product_page" field.
   954  func ProductPageEQ(v string) predicate.AppCoin {
   955  	return predicate.AppCoin(func(s *sql.Selector) {
   956  		s.Where(sql.EQ(s.C(FieldProductPage), v))
   957  	})
   958  }
   959  
   960  // ProductPageNEQ applies the NEQ predicate on the "product_page" field.
   961  func ProductPageNEQ(v string) predicate.AppCoin {
   962  	return predicate.AppCoin(func(s *sql.Selector) {
   963  		s.Where(sql.NEQ(s.C(FieldProductPage), v))
   964  	})
   965  }
   966  
   967  // ProductPageIn applies the In predicate on the "product_page" field.
   968  func ProductPageIn(vs ...string) predicate.AppCoin {
   969  	v := make([]interface{}, len(vs))
   970  	for i := range v {
   971  		v[i] = vs[i]
   972  	}
   973  	return predicate.AppCoin(func(s *sql.Selector) {
   974  		s.Where(sql.In(s.C(FieldProductPage), v...))
   975  	})
   976  }
   977  
   978  // ProductPageNotIn applies the NotIn predicate on the "product_page" field.
   979  func ProductPageNotIn(vs ...string) predicate.AppCoin {
   980  	v := make([]interface{}, len(vs))
   981  	for i := range v {
   982  		v[i] = vs[i]
   983  	}
   984  	return predicate.AppCoin(func(s *sql.Selector) {
   985  		s.Where(sql.NotIn(s.C(FieldProductPage), v...))
   986  	})
   987  }
   988  
   989  // ProductPageGT applies the GT predicate on the "product_page" field.
   990  func ProductPageGT(v string) predicate.AppCoin {
   991  	return predicate.AppCoin(func(s *sql.Selector) {
   992  		s.Where(sql.GT(s.C(FieldProductPage), v))
   993  	})
   994  }
   995  
   996  // ProductPageGTE applies the GTE predicate on the "product_page" field.
   997  func ProductPageGTE(v string) predicate.AppCoin {
   998  	return predicate.AppCoin(func(s *sql.Selector) {
   999  		s.Where(sql.GTE(s.C(FieldProductPage), v))
  1000  	})
  1001  }
  1002  
  1003  // ProductPageLT applies the LT predicate on the "product_page" field.
  1004  func ProductPageLT(v string) predicate.AppCoin {
  1005  	return predicate.AppCoin(func(s *sql.Selector) {
  1006  		s.Where(sql.LT(s.C(FieldProductPage), v))
  1007  	})
  1008  }
  1009  
  1010  // ProductPageLTE applies the LTE predicate on the "product_page" field.
  1011  func ProductPageLTE(v string) predicate.AppCoin {
  1012  	return predicate.AppCoin(func(s *sql.Selector) {
  1013  		s.Where(sql.LTE(s.C(FieldProductPage), v))
  1014  	})
  1015  }
  1016  
  1017  // ProductPageContains applies the Contains predicate on the "product_page" field.
  1018  func ProductPageContains(v string) predicate.AppCoin {
  1019  	return predicate.AppCoin(func(s *sql.Selector) {
  1020  		s.Where(sql.Contains(s.C(FieldProductPage), v))
  1021  	})
  1022  }
  1023  
  1024  // ProductPageHasPrefix applies the HasPrefix predicate on the "product_page" field.
  1025  func ProductPageHasPrefix(v string) predicate.AppCoin {
  1026  	return predicate.AppCoin(func(s *sql.Selector) {
  1027  		s.Where(sql.HasPrefix(s.C(FieldProductPage), v))
  1028  	})
  1029  }
  1030  
  1031  // ProductPageHasSuffix applies the HasSuffix predicate on the "product_page" field.
  1032  func ProductPageHasSuffix(v string) predicate.AppCoin {
  1033  	return predicate.AppCoin(func(s *sql.Selector) {
  1034  		s.Where(sql.HasSuffix(s.C(FieldProductPage), v))
  1035  	})
  1036  }
  1037  
  1038  // ProductPageIsNil applies the IsNil predicate on the "product_page" field.
  1039  func ProductPageIsNil() predicate.AppCoin {
  1040  	return predicate.AppCoin(func(s *sql.Selector) {
  1041  		s.Where(sql.IsNull(s.C(FieldProductPage)))
  1042  	})
  1043  }
  1044  
  1045  // ProductPageNotNil applies the NotNil predicate on the "product_page" field.
  1046  func ProductPageNotNil() predicate.AppCoin {
  1047  	return predicate.AppCoin(func(s *sql.Selector) {
  1048  		s.Where(sql.NotNull(s.C(FieldProductPage)))
  1049  	})
  1050  }
  1051  
  1052  // ProductPageEqualFold applies the EqualFold predicate on the "product_page" field.
  1053  func ProductPageEqualFold(v string) predicate.AppCoin {
  1054  	return predicate.AppCoin(func(s *sql.Selector) {
  1055  		s.Where(sql.EqualFold(s.C(FieldProductPage), v))
  1056  	})
  1057  }
  1058  
  1059  // ProductPageContainsFold applies the ContainsFold predicate on the "product_page" field.
  1060  func ProductPageContainsFold(v string) predicate.AppCoin {
  1061  	return predicate.AppCoin(func(s *sql.Selector) {
  1062  		s.Where(sql.ContainsFold(s.C(FieldProductPage), v))
  1063  	})
  1064  }
  1065  
  1066  // DisabledEQ applies the EQ predicate on the "disabled" field.
  1067  func DisabledEQ(v bool) predicate.AppCoin {
  1068  	return predicate.AppCoin(func(s *sql.Selector) {
  1069  		s.Where(sql.EQ(s.C(FieldDisabled), v))
  1070  	})
  1071  }
  1072  
  1073  // DisabledNEQ applies the NEQ predicate on the "disabled" field.
  1074  func DisabledNEQ(v bool) predicate.AppCoin {
  1075  	return predicate.AppCoin(func(s *sql.Selector) {
  1076  		s.Where(sql.NEQ(s.C(FieldDisabled), v))
  1077  	})
  1078  }
  1079  
  1080  // DisabledIsNil applies the IsNil predicate on the "disabled" field.
  1081  func DisabledIsNil() predicate.AppCoin {
  1082  	return predicate.AppCoin(func(s *sql.Selector) {
  1083  		s.Where(sql.IsNull(s.C(FieldDisabled)))
  1084  	})
  1085  }
  1086  
  1087  // DisabledNotNil applies the NotNil predicate on the "disabled" field.
  1088  func DisabledNotNil() predicate.AppCoin {
  1089  	return predicate.AppCoin(func(s *sql.Selector) {
  1090  		s.Where(sql.NotNull(s.C(FieldDisabled)))
  1091  	})
  1092  }
  1093  
  1094  // DailyRewardAmountEQ applies the EQ predicate on the "daily_reward_amount" field.
  1095  func DailyRewardAmountEQ(v decimal.Decimal) predicate.AppCoin {
  1096  	return predicate.AppCoin(func(s *sql.Selector) {
  1097  		s.Where(sql.EQ(s.C(FieldDailyRewardAmount), v))
  1098  	})
  1099  }
  1100  
  1101  // DailyRewardAmountNEQ applies the NEQ predicate on the "daily_reward_amount" field.
  1102  func DailyRewardAmountNEQ(v decimal.Decimal) predicate.AppCoin {
  1103  	return predicate.AppCoin(func(s *sql.Selector) {
  1104  		s.Where(sql.NEQ(s.C(FieldDailyRewardAmount), v))
  1105  	})
  1106  }
  1107  
  1108  // DailyRewardAmountIn applies the In predicate on the "daily_reward_amount" field.
  1109  func DailyRewardAmountIn(vs ...decimal.Decimal) predicate.AppCoin {
  1110  	v := make([]interface{}, len(vs))
  1111  	for i := range v {
  1112  		v[i] = vs[i]
  1113  	}
  1114  	return predicate.AppCoin(func(s *sql.Selector) {
  1115  		s.Where(sql.In(s.C(FieldDailyRewardAmount), v...))
  1116  	})
  1117  }
  1118  
  1119  // DailyRewardAmountNotIn applies the NotIn predicate on the "daily_reward_amount" field.
  1120  func DailyRewardAmountNotIn(vs ...decimal.Decimal) predicate.AppCoin {
  1121  	v := make([]interface{}, len(vs))
  1122  	for i := range v {
  1123  		v[i] = vs[i]
  1124  	}
  1125  	return predicate.AppCoin(func(s *sql.Selector) {
  1126  		s.Where(sql.NotIn(s.C(FieldDailyRewardAmount), v...))
  1127  	})
  1128  }
  1129  
  1130  // DailyRewardAmountGT applies the GT predicate on the "daily_reward_amount" field.
  1131  func DailyRewardAmountGT(v decimal.Decimal) predicate.AppCoin {
  1132  	return predicate.AppCoin(func(s *sql.Selector) {
  1133  		s.Where(sql.GT(s.C(FieldDailyRewardAmount), v))
  1134  	})
  1135  }
  1136  
  1137  // DailyRewardAmountGTE applies the GTE predicate on the "daily_reward_amount" field.
  1138  func DailyRewardAmountGTE(v decimal.Decimal) predicate.AppCoin {
  1139  	return predicate.AppCoin(func(s *sql.Selector) {
  1140  		s.Where(sql.GTE(s.C(FieldDailyRewardAmount), v))
  1141  	})
  1142  }
  1143  
  1144  // DailyRewardAmountLT applies the LT predicate on the "daily_reward_amount" field.
  1145  func DailyRewardAmountLT(v decimal.Decimal) predicate.AppCoin {
  1146  	return predicate.AppCoin(func(s *sql.Selector) {
  1147  		s.Where(sql.LT(s.C(FieldDailyRewardAmount), v))
  1148  	})
  1149  }
  1150  
  1151  // DailyRewardAmountLTE applies the LTE predicate on the "daily_reward_amount" field.
  1152  func DailyRewardAmountLTE(v decimal.Decimal) predicate.AppCoin {
  1153  	return predicate.AppCoin(func(s *sql.Selector) {
  1154  		s.Where(sql.LTE(s.C(FieldDailyRewardAmount), v))
  1155  	})
  1156  }
  1157  
  1158  // DailyRewardAmountIsNil applies the IsNil predicate on the "daily_reward_amount" field.
  1159  func DailyRewardAmountIsNil() predicate.AppCoin {
  1160  	return predicate.AppCoin(func(s *sql.Selector) {
  1161  		s.Where(sql.IsNull(s.C(FieldDailyRewardAmount)))
  1162  	})
  1163  }
  1164  
  1165  // DailyRewardAmountNotNil applies the NotNil predicate on the "daily_reward_amount" field.
  1166  func DailyRewardAmountNotNil() predicate.AppCoin {
  1167  	return predicate.AppCoin(func(s *sql.Selector) {
  1168  		s.Where(sql.NotNull(s.C(FieldDailyRewardAmount)))
  1169  	})
  1170  }
  1171  
  1172  // DisplayEQ applies the EQ predicate on the "display" field.
  1173  func DisplayEQ(v bool) predicate.AppCoin {
  1174  	return predicate.AppCoin(func(s *sql.Selector) {
  1175  		s.Where(sql.EQ(s.C(FieldDisplay), v))
  1176  	})
  1177  }
  1178  
  1179  // DisplayNEQ applies the NEQ predicate on the "display" field.
  1180  func DisplayNEQ(v bool) predicate.AppCoin {
  1181  	return predicate.AppCoin(func(s *sql.Selector) {
  1182  		s.Where(sql.NEQ(s.C(FieldDisplay), v))
  1183  	})
  1184  }
  1185  
  1186  // DisplayIsNil applies the IsNil predicate on the "display" field.
  1187  func DisplayIsNil() predicate.AppCoin {
  1188  	return predicate.AppCoin(func(s *sql.Selector) {
  1189  		s.Where(sql.IsNull(s.C(FieldDisplay)))
  1190  	})
  1191  }
  1192  
  1193  // DisplayNotNil applies the NotNil predicate on the "display" field.
  1194  func DisplayNotNil() predicate.AppCoin {
  1195  	return predicate.AppCoin(func(s *sql.Selector) {
  1196  		s.Where(sql.NotNull(s.C(FieldDisplay)))
  1197  	})
  1198  }
  1199  
  1200  // DisplayIndexEQ applies the EQ predicate on the "display_index" field.
  1201  func DisplayIndexEQ(v uint32) predicate.AppCoin {
  1202  	return predicate.AppCoin(func(s *sql.Selector) {
  1203  		s.Where(sql.EQ(s.C(FieldDisplayIndex), v))
  1204  	})
  1205  }
  1206  
  1207  // DisplayIndexNEQ applies the NEQ predicate on the "display_index" field.
  1208  func DisplayIndexNEQ(v uint32) predicate.AppCoin {
  1209  	return predicate.AppCoin(func(s *sql.Selector) {
  1210  		s.Where(sql.NEQ(s.C(FieldDisplayIndex), v))
  1211  	})
  1212  }
  1213  
  1214  // DisplayIndexIn applies the In predicate on the "display_index" field.
  1215  func DisplayIndexIn(vs ...uint32) predicate.AppCoin {
  1216  	v := make([]interface{}, len(vs))
  1217  	for i := range v {
  1218  		v[i] = vs[i]
  1219  	}
  1220  	return predicate.AppCoin(func(s *sql.Selector) {
  1221  		s.Where(sql.In(s.C(FieldDisplayIndex), v...))
  1222  	})
  1223  }
  1224  
  1225  // DisplayIndexNotIn applies the NotIn predicate on the "display_index" field.
  1226  func DisplayIndexNotIn(vs ...uint32) predicate.AppCoin {
  1227  	v := make([]interface{}, len(vs))
  1228  	for i := range v {
  1229  		v[i] = vs[i]
  1230  	}
  1231  	return predicate.AppCoin(func(s *sql.Selector) {
  1232  		s.Where(sql.NotIn(s.C(FieldDisplayIndex), v...))
  1233  	})
  1234  }
  1235  
  1236  // DisplayIndexGT applies the GT predicate on the "display_index" field.
  1237  func DisplayIndexGT(v uint32) predicate.AppCoin {
  1238  	return predicate.AppCoin(func(s *sql.Selector) {
  1239  		s.Where(sql.GT(s.C(FieldDisplayIndex), v))
  1240  	})
  1241  }
  1242  
  1243  // DisplayIndexGTE applies the GTE predicate on the "display_index" field.
  1244  func DisplayIndexGTE(v uint32) predicate.AppCoin {
  1245  	return predicate.AppCoin(func(s *sql.Selector) {
  1246  		s.Where(sql.GTE(s.C(FieldDisplayIndex), v))
  1247  	})
  1248  }
  1249  
  1250  // DisplayIndexLT applies the LT predicate on the "display_index" field.
  1251  func DisplayIndexLT(v uint32) predicate.AppCoin {
  1252  	return predicate.AppCoin(func(s *sql.Selector) {
  1253  		s.Where(sql.LT(s.C(FieldDisplayIndex), v))
  1254  	})
  1255  }
  1256  
  1257  // DisplayIndexLTE applies the LTE predicate on the "display_index" field.
  1258  func DisplayIndexLTE(v uint32) predicate.AppCoin {
  1259  	return predicate.AppCoin(func(s *sql.Selector) {
  1260  		s.Where(sql.LTE(s.C(FieldDisplayIndex), v))
  1261  	})
  1262  }
  1263  
  1264  // DisplayIndexIsNil applies the IsNil predicate on the "display_index" field.
  1265  func DisplayIndexIsNil() predicate.AppCoin {
  1266  	return predicate.AppCoin(func(s *sql.Selector) {
  1267  		s.Where(sql.IsNull(s.C(FieldDisplayIndex)))
  1268  	})
  1269  }
  1270  
  1271  // DisplayIndexNotNil applies the NotNil predicate on the "display_index" field.
  1272  func DisplayIndexNotNil() predicate.AppCoin {
  1273  	return predicate.AppCoin(func(s *sql.Selector) {
  1274  		s.Where(sql.NotNull(s.C(FieldDisplayIndex)))
  1275  	})
  1276  }
  1277  
  1278  // MaxAmountPerWithdrawEQ applies the EQ predicate on the "max_amount_per_withdraw" field.
  1279  func MaxAmountPerWithdrawEQ(v decimal.Decimal) predicate.AppCoin {
  1280  	return predicate.AppCoin(func(s *sql.Selector) {
  1281  		s.Where(sql.EQ(s.C(FieldMaxAmountPerWithdraw), v))
  1282  	})
  1283  }
  1284  
  1285  // MaxAmountPerWithdrawNEQ applies the NEQ predicate on the "max_amount_per_withdraw" field.
  1286  func MaxAmountPerWithdrawNEQ(v decimal.Decimal) predicate.AppCoin {
  1287  	return predicate.AppCoin(func(s *sql.Selector) {
  1288  		s.Where(sql.NEQ(s.C(FieldMaxAmountPerWithdraw), v))
  1289  	})
  1290  }
  1291  
  1292  // MaxAmountPerWithdrawIn applies the In predicate on the "max_amount_per_withdraw" field.
  1293  func MaxAmountPerWithdrawIn(vs ...decimal.Decimal) predicate.AppCoin {
  1294  	v := make([]interface{}, len(vs))
  1295  	for i := range v {
  1296  		v[i] = vs[i]
  1297  	}
  1298  	return predicate.AppCoin(func(s *sql.Selector) {
  1299  		s.Where(sql.In(s.C(FieldMaxAmountPerWithdraw), v...))
  1300  	})
  1301  }
  1302  
  1303  // MaxAmountPerWithdrawNotIn applies the NotIn predicate on the "max_amount_per_withdraw" field.
  1304  func MaxAmountPerWithdrawNotIn(vs ...decimal.Decimal) predicate.AppCoin {
  1305  	v := make([]interface{}, len(vs))
  1306  	for i := range v {
  1307  		v[i] = vs[i]
  1308  	}
  1309  	return predicate.AppCoin(func(s *sql.Selector) {
  1310  		s.Where(sql.NotIn(s.C(FieldMaxAmountPerWithdraw), v...))
  1311  	})
  1312  }
  1313  
  1314  // MaxAmountPerWithdrawGT applies the GT predicate on the "max_amount_per_withdraw" field.
  1315  func MaxAmountPerWithdrawGT(v decimal.Decimal) predicate.AppCoin {
  1316  	return predicate.AppCoin(func(s *sql.Selector) {
  1317  		s.Where(sql.GT(s.C(FieldMaxAmountPerWithdraw), v))
  1318  	})
  1319  }
  1320  
  1321  // MaxAmountPerWithdrawGTE applies the GTE predicate on the "max_amount_per_withdraw" field.
  1322  func MaxAmountPerWithdrawGTE(v decimal.Decimal) predicate.AppCoin {
  1323  	return predicate.AppCoin(func(s *sql.Selector) {
  1324  		s.Where(sql.GTE(s.C(FieldMaxAmountPerWithdraw), v))
  1325  	})
  1326  }
  1327  
  1328  // MaxAmountPerWithdrawLT applies the LT predicate on the "max_amount_per_withdraw" field.
  1329  func MaxAmountPerWithdrawLT(v decimal.Decimal) predicate.AppCoin {
  1330  	return predicate.AppCoin(func(s *sql.Selector) {
  1331  		s.Where(sql.LT(s.C(FieldMaxAmountPerWithdraw), v))
  1332  	})
  1333  }
  1334  
  1335  // MaxAmountPerWithdrawLTE applies the LTE predicate on the "max_amount_per_withdraw" field.
  1336  func MaxAmountPerWithdrawLTE(v decimal.Decimal) predicate.AppCoin {
  1337  	return predicate.AppCoin(func(s *sql.Selector) {
  1338  		s.Where(sql.LTE(s.C(FieldMaxAmountPerWithdraw), v))
  1339  	})
  1340  }
  1341  
  1342  // MaxAmountPerWithdrawIsNil applies the IsNil predicate on the "max_amount_per_withdraw" field.
  1343  func MaxAmountPerWithdrawIsNil() predicate.AppCoin {
  1344  	return predicate.AppCoin(func(s *sql.Selector) {
  1345  		s.Where(sql.IsNull(s.C(FieldMaxAmountPerWithdraw)))
  1346  	})
  1347  }
  1348  
  1349  // MaxAmountPerWithdrawNotNil applies the NotNil predicate on the "max_amount_per_withdraw" field.
  1350  func MaxAmountPerWithdrawNotNil() predicate.AppCoin {
  1351  	return predicate.AppCoin(func(s *sql.Selector) {
  1352  		s.Where(sql.NotNull(s.C(FieldMaxAmountPerWithdraw)))
  1353  	})
  1354  }
  1355  
  1356  // And groups predicates with the AND operator between them.
  1357  func And(predicates ...predicate.AppCoin) predicate.AppCoin {
  1358  	return predicate.AppCoin(func(s *sql.Selector) {
  1359  		s1 := s.Clone().SetP(nil)
  1360  		for _, p := range predicates {
  1361  			p(s1)
  1362  		}
  1363  		s.Where(s1.P())
  1364  	})
  1365  }
  1366  
  1367  // Or groups predicates with the OR operator between them.
  1368  func Or(predicates ...predicate.AppCoin) predicate.AppCoin {
  1369  	return predicate.AppCoin(func(s *sql.Selector) {
  1370  		s1 := s.Clone().SetP(nil)
  1371  		for i, p := range predicates {
  1372  			if i > 0 {
  1373  				s1.Or()
  1374  			}
  1375  			p(s1)
  1376  		}
  1377  		s.Where(s1.P())
  1378  	})
  1379  }
  1380  
  1381  // Not applies the not operator on the given predicate.
  1382  func Not(p predicate.AppCoin) predicate.AppCoin {
  1383  	return predicate.AppCoin(func(s *sql.Selector) {
  1384  		p(s.Not())
  1385  	})
  1386  }