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