| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738 |
- // Code generated by ent, DO NOT EDIT.
- package user
- import (
- "time"
- "entgo.io/ent/dialect/sql"
- "entgo.io/ent/dialect/sql/sqlgraph"
- "github.com/Wei-Shaw/sub2api/ent/predicate"
- )
- // ID filters vertices based on their ID field.
- func ID(id int64) predicate.User {
- return predicate.User(sql.FieldEQ(FieldID, id))
- }
- // IDEQ applies the EQ predicate on the ID field.
- func IDEQ(id int64) predicate.User {
- return predicate.User(sql.FieldEQ(FieldID, id))
- }
- // IDNEQ applies the NEQ predicate on the ID field.
- func IDNEQ(id int64) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldID, id))
- }
- // IDIn applies the In predicate on the ID field.
- func IDIn(ids ...int64) predicate.User {
- return predicate.User(sql.FieldIn(FieldID, ids...))
- }
- // IDNotIn applies the NotIn predicate on the ID field.
- func IDNotIn(ids ...int64) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldID, ids...))
- }
- // IDGT applies the GT predicate on the ID field.
- func IDGT(id int64) predicate.User {
- return predicate.User(sql.FieldGT(FieldID, id))
- }
- // IDGTE applies the GTE predicate on the ID field.
- func IDGTE(id int64) predicate.User {
- return predicate.User(sql.FieldGTE(FieldID, id))
- }
- // IDLT applies the LT predicate on the ID field.
- func IDLT(id int64) predicate.User {
- return predicate.User(sql.FieldLT(FieldID, id))
- }
- // IDLTE applies the LTE predicate on the ID field.
- func IDLTE(id int64) predicate.User {
- return predicate.User(sql.FieldLTE(FieldID, id))
- }
- // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
- func CreatedAt(v time.Time) predicate.User {
- return predicate.User(sql.FieldEQ(FieldCreatedAt, v))
- }
- // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
- func UpdatedAt(v time.Time) predicate.User {
- return predicate.User(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
- func DeletedAt(v time.Time) predicate.User {
- return predicate.User(sql.FieldEQ(FieldDeletedAt, v))
- }
- // Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
- func Email(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldEmail, v))
- }
- // PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
- func PasswordHash(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldPasswordHash, v))
- }
- // Role applies equality check predicate on the "role" field. It's identical to RoleEQ.
- func Role(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldRole, v))
- }
- // Balance applies equality check predicate on the "balance" field. It's identical to BalanceEQ.
- func Balance(v float64) predicate.User {
- return predicate.User(sql.FieldEQ(FieldBalance, v))
- }
- // FrozenBalance applies equality check predicate on the "frozen_balance" field. It's identical to FrozenBalanceEQ.
- func FrozenBalance(v float64) predicate.User {
- return predicate.User(sql.FieldEQ(FieldFrozenBalance, v))
- }
- // Concurrency applies equality check predicate on the "concurrency" field. It's identical to ConcurrencyEQ.
- func Concurrency(v int) predicate.User {
- return predicate.User(sql.FieldEQ(FieldConcurrency, v))
- }
- // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
- func Status(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldStatus, v))
- }
- // Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
- func Username(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldUsername, v))
- }
- // Notes applies equality check predicate on the "notes" field. It's identical to NotesEQ.
- func Notes(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldNotes, v))
- }
- // TotpSecretEncrypted applies equality check predicate on the "totp_secret_encrypted" field. It's identical to TotpSecretEncryptedEQ.
- func TotpSecretEncrypted(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldTotpSecretEncrypted, v))
- }
- // TotpEnabled applies equality check predicate on the "totp_enabled" field. It's identical to TotpEnabledEQ.
- func TotpEnabled(v bool) predicate.User {
- return predicate.User(sql.FieldEQ(FieldTotpEnabled, v))
- }
- // TotpEnabledAt applies equality check predicate on the "totp_enabled_at" field. It's identical to TotpEnabledAtEQ.
- func TotpEnabledAt(v time.Time) predicate.User {
- return predicate.User(sql.FieldEQ(FieldTotpEnabledAt, v))
- }
- // SignupSource applies equality check predicate on the "signup_source" field. It's identical to SignupSourceEQ.
- func SignupSource(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldSignupSource, v))
- }
- // LastLoginAt applies equality check predicate on the "last_login_at" field. It's identical to LastLoginAtEQ.
- func LastLoginAt(v time.Time) predicate.User {
- return predicate.User(sql.FieldEQ(FieldLastLoginAt, v))
- }
- // LastActiveAt applies equality check predicate on the "last_active_at" field. It's identical to LastActiveAtEQ.
- func LastActiveAt(v time.Time) predicate.User {
- return predicate.User(sql.FieldEQ(FieldLastActiveAt, v))
- }
- // RestrictPublicGroups applies equality check predicate on the "restrict_public_groups" field. It's identical to RestrictPublicGroupsEQ.
- func RestrictPublicGroups(v bool) predicate.User {
- return predicate.User(sql.FieldEQ(FieldRestrictPublicGroups, v))
- }
- // BalanceNotifyEnabled applies equality check predicate on the "balance_notify_enabled" field. It's identical to BalanceNotifyEnabledEQ.
- func BalanceNotifyEnabled(v bool) predicate.User {
- return predicate.User(sql.FieldEQ(FieldBalanceNotifyEnabled, v))
- }
- // BalanceNotifyThresholdType applies equality check predicate on the "balance_notify_threshold_type" field. It's identical to BalanceNotifyThresholdTypeEQ.
- func BalanceNotifyThresholdType(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldBalanceNotifyThresholdType, v))
- }
- // BalanceNotifyThreshold applies equality check predicate on the "balance_notify_threshold" field. It's identical to BalanceNotifyThresholdEQ.
- func BalanceNotifyThreshold(v float64) predicate.User {
- return predicate.User(sql.FieldEQ(FieldBalanceNotifyThreshold, v))
- }
- // BalanceNotifyExtraEmails applies equality check predicate on the "balance_notify_extra_emails" field. It's identical to BalanceNotifyExtraEmailsEQ.
- func BalanceNotifyExtraEmails(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldBalanceNotifyExtraEmails, v))
- }
- // TotalRecharged applies equality check predicate on the "total_recharged" field. It's identical to TotalRechargedEQ.
- func TotalRecharged(v float64) predicate.User {
- return predicate.User(sql.FieldEQ(FieldTotalRecharged, v))
- }
- // RpmLimit applies equality check predicate on the "rpm_limit" field. It's identical to RpmLimitEQ.
- func RpmLimit(v int) predicate.User {
- return predicate.User(sql.FieldEQ(FieldRpmLimit, v))
- }
- // CreatedAtEQ applies the EQ predicate on the "created_at" field.
- func CreatedAtEQ(v time.Time) predicate.User {
- return predicate.User(sql.FieldEQ(FieldCreatedAt, v))
- }
- // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
- func CreatedAtNEQ(v time.Time) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldCreatedAt, v))
- }
- // CreatedAtIn applies the In predicate on the "created_at" field.
- func CreatedAtIn(vs ...time.Time) predicate.User {
- return predicate.User(sql.FieldIn(FieldCreatedAt, vs...))
- }
- // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
- func CreatedAtNotIn(vs ...time.Time) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldCreatedAt, vs...))
- }
- // CreatedAtGT applies the GT predicate on the "created_at" field.
- func CreatedAtGT(v time.Time) predicate.User {
- return predicate.User(sql.FieldGT(FieldCreatedAt, v))
- }
- // CreatedAtGTE applies the GTE predicate on the "created_at" field.
- func CreatedAtGTE(v time.Time) predicate.User {
- return predicate.User(sql.FieldGTE(FieldCreatedAt, v))
- }
- // CreatedAtLT applies the LT predicate on the "created_at" field.
- func CreatedAtLT(v time.Time) predicate.User {
- return predicate.User(sql.FieldLT(FieldCreatedAt, v))
- }
- // CreatedAtLTE applies the LTE predicate on the "created_at" field.
- func CreatedAtLTE(v time.Time) predicate.User {
- return predicate.User(sql.FieldLTE(FieldCreatedAt, v))
- }
- // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
- func UpdatedAtEQ(v time.Time) predicate.User {
- return predicate.User(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
- func UpdatedAtNEQ(v time.Time) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtIn applies the In predicate on the "updated_at" field.
- func UpdatedAtIn(vs ...time.Time) predicate.User {
- return predicate.User(sql.FieldIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
- func UpdatedAtNotIn(vs ...time.Time) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtGT applies the GT predicate on the "updated_at" field.
- func UpdatedAtGT(v time.Time) predicate.User {
- return predicate.User(sql.FieldGT(FieldUpdatedAt, v))
- }
- // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
- func UpdatedAtGTE(v time.Time) predicate.User {
- return predicate.User(sql.FieldGTE(FieldUpdatedAt, v))
- }
- // UpdatedAtLT applies the LT predicate on the "updated_at" field.
- func UpdatedAtLT(v time.Time) predicate.User {
- return predicate.User(sql.FieldLT(FieldUpdatedAt, v))
- }
- // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
- func UpdatedAtLTE(v time.Time) predicate.User {
- return predicate.User(sql.FieldLTE(FieldUpdatedAt, v))
- }
- // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
- func DeletedAtEQ(v time.Time) predicate.User {
- return predicate.User(sql.FieldEQ(FieldDeletedAt, v))
- }
- // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
- func DeletedAtNEQ(v time.Time) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldDeletedAt, v))
- }
- // DeletedAtIn applies the In predicate on the "deleted_at" field.
- func DeletedAtIn(vs ...time.Time) predicate.User {
- return predicate.User(sql.FieldIn(FieldDeletedAt, vs...))
- }
- // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
- func DeletedAtNotIn(vs ...time.Time) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldDeletedAt, vs...))
- }
- // DeletedAtGT applies the GT predicate on the "deleted_at" field.
- func DeletedAtGT(v time.Time) predicate.User {
- return predicate.User(sql.FieldGT(FieldDeletedAt, v))
- }
- // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
- func DeletedAtGTE(v time.Time) predicate.User {
- return predicate.User(sql.FieldGTE(FieldDeletedAt, v))
- }
- // DeletedAtLT applies the LT predicate on the "deleted_at" field.
- func DeletedAtLT(v time.Time) predicate.User {
- return predicate.User(sql.FieldLT(FieldDeletedAt, v))
- }
- // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
- func DeletedAtLTE(v time.Time) predicate.User {
- return predicate.User(sql.FieldLTE(FieldDeletedAt, v))
- }
- // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
- func DeletedAtIsNil() predicate.User {
- return predicate.User(sql.FieldIsNull(FieldDeletedAt))
- }
- // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
- func DeletedAtNotNil() predicate.User {
- return predicate.User(sql.FieldNotNull(FieldDeletedAt))
- }
- // EmailEQ applies the EQ predicate on the "email" field.
- func EmailEQ(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldEmail, v))
- }
- // EmailNEQ applies the NEQ predicate on the "email" field.
- func EmailNEQ(v string) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldEmail, v))
- }
- // EmailIn applies the In predicate on the "email" field.
- func EmailIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldIn(FieldEmail, vs...))
- }
- // EmailNotIn applies the NotIn predicate on the "email" field.
- func EmailNotIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldEmail, vs...))
- }
- // EmailGT applies the GT predicate on the "email" field.
- func EmailGT(v string) predicate.User {
- return predicate.User(sql.FieldGT(FieldEmail, v))
- }
- // EmailGTE applies the GTE predicate on the "email" field.
- func EmailGTE(v string) predicate.User {
- return predicate.User(sql.FieldGTE(FieldEmail, v))
- }
- // EmailLT applies the LT predicate on the "email" field.
- func EmailLT(v string) predicate.User {
- return predicate.User(sql.FieldLT(FieldEmail, v))
- }
- // EmailLTE applies the LTE predicate on the "email" field.
- func EmailLTE(v string) predicate.User {
- return predicate.User(sql.FieldLTE(FieldEmail, v))
- }
- // EmailContains applies the Contains predicate on the "email" field.
- func EmailContains(v string) predicate.User {
- return predicate.User(sql.FieldContains(FieldEmail, v))
- }
- // EmailHasPrefix applies the HasPrefix predicate on the "email" field.
- func EmailHasPrefix(v string) predicate.User {
- return predicate.User(sql.FieldHasPrefix(FieldEmail, v))
- }
- // EmailHasSuffix applies the HasSuffix predicate on the "email" field.
- func EmailHasSuffix(v string) predicate.User {
- return predicate.User(sql.FieldHasSuffix(FieldEmail, v))
- }
- // EmailEqualFold applies the EqualFold predicate on the "email" field.
- func EmailEqualFold(v string) predicate.User {
- return predicate.User(sql.FieldEqualFold(FieldEmail, v))
- }
- // EmailContainsFold applies the ContainsFold predicate on the "email" field.
- func EmailContainsFold(v string) predicate.User {
- return predicate.User(sql.FieldContainsFold(FieldEmail, v))
- }
- // PasswordHashEQ applies the EQ predicate on the "password_hash" field.
- func PasswordHashEQ(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldPasswordHash, v))
- }
- // PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
- func PasswordHashNEQ(v string) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldPasswordHash, v))
- }
- // PasswordHashIn applies the In predicate on the "password_hash" field.
- func PasswordHashIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldIn(FieldPasswordHash, vs...))
- }
- // PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
- func PasswordHashNotIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldPasswordHash, vs...))
- }
- // PasswordHashGT applies the GT predicate on the "password_hash" field.
- func PasswordHashGT(v string) predicate.User {
- return predicate.User(sql.FieldGT(FieldPasswordHash, v))
- }
- // PasswordHashGTE applies the GTE predicate on the "password_hash" field.
- func PasswordHashGTE(v string) predicate.User {
- return predicate.User(sql.FieldGTE(FieldPasswordHash, v))
- }
- // PasswordHashLT applies the LT predicate on the "password_hash" field.
- func PasswordHashLT(v string) predicate.User {
- return predicate.User(sql.FieldLT(FieldPasswordHash, v))
- }
- // PasswordHashLTE applies the LTE predicate on the "password_hash" field.
- func PasswordHashLTE(v string) predicate.User {
- return predicate.User(sql.FieldLTE(FieldPasswordHash, v))
- }
- // PasswordHashContains applies the Contains predicate on the "password_hash" field.
- func PasswordHashContains(v string) predicate.User {
- return predicate.User(sql.FieldContains(FieldPasswordHash, v))
- }
- // PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.
- func PasswordHashHasPrefix(v string) predicate.User {
- return predicate.User(sql.FieldHasPrefix(FieldPasswordHash, v))
- }
- // PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.
- func PasswordHashHasSuffix(v string) predicate.User {
- return predicate.User(sql.FieldHasSuffix(FieldPasswordHash, v))
- }
- // PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.
- func PasswordHashEqualFold(v string) predicate.User {
- return predicate.User(sql.FieldEqualFold(FieldPasswordHash, v))
- }
- // PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.
- func PasswordHashContainsFold(v string) predicate.User {
- return predicate.User(sql.FieldContainsFold(FieldPasswordHash, v))
- }
- // RoleEQ applies the EQ predicate on the "role" field.
- func RoleEQ(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldRole, v))
- }
- // RoleNEQ applies the NEQ predicate on the "role" field.
- func RoleNEQ(v string) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldRole, v))
- }
- // RoleIn applies the In predicate on the "role" field.
- func RoleIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldIn(FieldRole, vs...))
- }
- // RoleNotIn applies the NotIn predicate on the "role" field.
- func RoleNotIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldRole, vs...))
- }
- // RoleGT applies the GT predicate on the "role" field.
- func RoleGT(v string) predicate.User {
- return predicate.User(sql.FieldGT(FieldRole, v))
- }
- // RoleGTE applies the GTE predicate on the "role" field.
- func RoleGTE(v string) predicate.User {
- return predicate.User(sql.FieldGTE(FieldRole, v))
- }
- // RoleLT applies the LT predicate on the "role" field.
- func RoleLT(v string) predicate.User {
- return predicate.User(sql.FieldLT(FieldRole, v))
- }
- // RoleLTE applies the LTE predicate on the "role" field.
- func RoleLTE(v string) predicate.User {
- return predicate.User(sql.FieldLTE(FieldRole, v))
- }
- // RoleContains applies the Contains predicate on the "role" field.
- func RoleContains(v string) predicate.User {
- return predicate.User(sql.FieldContains(FieldRole, v))
- }
- // RoleHasPrefix applies the HasPrefix predicate on the "role" field.
- func RoleHasPrefix(v string) predicate.User {
- return predicate.User(sql.FieldHasPrefix(FieldRole, v))
- }
- // RoleHasSuffix applies the HasSuffix predicate on the "role" field.
- func RoleHasSuffix(v string) predicate.User {
- return predicate.User(sql.FieldHasSuffix(FieldRole, v))
- }
- // RoleEqualFold applies the EqualFold predicate on the "role" field.
- func RoleEqualFold(v string) predicate.User {
- return predicate.User(sql.FieldEqualFold(FieldRole, v))
- }
- // RoleContainsFold applies the ContainsFold predicate on the "role" field.
- func RoleContainsFold(v string) predicate.User {
- return predicate.User(sql.FieldContainsFold(FieldRole, v))
- }
- // BalanceEQ applies the EQ predicate on the "balance" field.
- func BalanceEQ(v float64) predicate.User {
- return predicate.User(sql.FieldEQ(FieldBalance, v))
- }
- // BalanceNEQ applies the NEQ predicate on the "balance" field.
- func BalanceNEQ(v float64) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldBalance, v))
- }
- // BalanceIn applies the In predicate on the "balance" field.
- func BalanceIn(vs ...float64) predicate.User {
- return predicate.User(sql.FieldIn(FieldBalance, vs...))
- }
- // BalanceNotIn applies the NotIn predicate on the "balance" field.
- func BalanceNotIn(vs ...float64) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldBalance, vs...))
- }
- // BalanceGT applies the GT predicate on the "balance" field.
- func BalanceGT(v float64) predicate.User {
- return predicate.User(sql.FieldGT(FieldBalance, v))
- }
- // BalanceGTE applies the GTE predicate on the "balance" field.
- func BalanceGTE(v float64) predicate.User {
- return predicate.User(sql.FieldGTE(FieldBalance, v))
- }
- // BalanceLT applies the LT predicate on the "balance" field.
- func BalanceLT(v float64) predicate.User {
- return predicate.User(sql.FieldLT(FieldBalance, v))
- }
- // BalanceLTE applies the LTE predicate on the "balance" field.
- func BalanceLTE(v float64) predicate.User {
- return predicate.User(sql.FieldLTE(FieldBalance, v))
- }
- // FrozenBalanceEQ applies the EQ predicate on the "frozen_balance" field.
- func FrozenBalanceEQ(v float64) predicate.User {
- return predicate.User(sql.FieldEQ(FieldFrozenBalance, v))
- }
- // FrozenBalanceNEQ applies the NEQ predicate on the "frozen_balance" field.
- func FrozenBalanceNEQ(v float64) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldFrozenBalance, v))
- }
- // FrozenBalanceIn applies the In predicate on the "frozen_balance" field.
- func FrozenBalanceIn(vs ...float64) predicate.User {
- return predicate.User(sql.FieldIn(FieldFrozenBalance, vs...))
- }
- // FrozenBalanceNotIn applies the NotIn predicate on the "frozen_balance" field.
- func FrozenBalanceNotIn(vs ...float64) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldFrozenBalance, vs...))
- }
- // FrozenBalanceGT applies the GT predicate on the "frozen_balance" field.
- func FrozenBalanceGT(v float64) predicate.User {
- return predicate.User(sql.FieldGT(FieldFrozenBalance, v))
- }
- // FrozenBalanceGTE applies the GTE predicate on the "frozen_balance" field.
- func FrozenBalanceGTE(v float64) predicate.User {
- return predicate.User(sql.FieldGTE(FieldFrozenBalance, v))
- }
- // FrozenBalanceLT applies the LT predicate on the "frozen_balance" field.
- func FrozenBalanceLT(v float64) predicate.User {
- return predicate.User(sql.FieldLT(FieldFrozenBalance, v))
- }
- // FrozenBalanceLTE applies the LTE predicate on the "frozen_balance" field.
- func FrozenBalanceLTE(v float64) predicate.User {
- return predicate.User(sql.FieldLTE(FieldFrozenBalance, v))
- }
- // ConcurrencyEQ applies the EQ predicate on the "concurrency" field.
- func ConcurrencyEQ(v int) predicate.User {
- return predicate.User(sql.FieldEQ(FieldConcurrency, v))
- }
- // ConcurrencyNEQ applies the NEQ predicate on the "concurrency" field.
- func ConcurrencyNEQ(v int) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldConcurrency, v))
- }
- // ConcurrencyIn applies the In predicate on the "concurrency" field.
- func ConcurrencyIn(vs ...int) predicate.User {
- return predicate.User(sql.FieldIn(FieldConcurrency, vs...))
- }
- // ConcurrencyNotIn applies the NotIn predicate on the "concurrency" field.
- func ConcurrencyNotIn(vs ...int) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldConcurrency, vs...))
- }
- // ConcurrencyGT applies the GT predicate on the "concurrency" field.
- func ConcurrencyGT(v int) predicate.User {
- return predicate.User(sql.FieldGT(FieldConcurrency, v))
- }
- // ConcurrencyGTE applies the GTE predicate on the "concurrency" field.
- func ConcurrencyGTE(v int) predicate.User {
- return predicate.User(sql.FieldGTE(FieldConcurrency, v))
- }
- // ConcurrencyLT applies the LT predicate on the "concurrency" field.
- func ConcurrencyLT(v int) predicate.User {
- return predicate.User(sql.FieldLT(FieldConcurrency, v))
- }
- // ConcurrencyLTE applies the LTE predicate on the "concurrency" field.
- func ConcurrencyLTE(v int) predicate.User {
- return predicate.User(sql.FieldLTE(FieldConcurrency, v))
- }
- // StatusEQ applies the EQ predicate on the "status" field.
- func StatusEQ(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldStatus, v))
- }
- // StatusNEQ applies the NEQ predicate on the "status" field.
- func StatusNEQ(v string) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldStatus, v))
- }
- // StatusIn applies the In predicate on the "status" field.
- func StatusIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldIn(FieldStatus, vs...))
- }
- // StatusNotIn applies the NotIn predicate on the "status" field.
- func StatusNotIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldStatus, vs...))
- }
- // StatusGT applies the GT predicate on the "status" field.
- func StatusGT(v string) predicate.User {
- return predicate.User(sql.FieldGT(FieldStatus, v))
- }
- // StatusGTE applies the GTE predicate on the "status" field.
- func StatusGTE(v string) predicate.User {
- return predicate.User(sql.FieldGTE(FieldStatus, v))
- }
- // StatusLT applies the LT predicate on the "status" field.
- func StatusLT(v string) predicate.User {
- return predicate.User(sql.FieldLT(FieldStatus, v))
- }
- // StatusLTE applies the LTE predicate on the "status" field.
- func StatusLTE(v string) predicate.User {
- return predicate.User(sql.FieldLTE(FieldStatus, v))
- }
- // StatusContains applies the Contains predicate on the "status" field.
- func StatusContains(v string) predicate.User {
- return predicate.User(sql.FieldContains(FieldStatus, v))
- }
- // StatusHasPrefix applies the HasPrefix predicate on the "status" field.
- func StatusHasPrefix(v string) predicate.User {
- return predicate.User(sql.FieldHasPrefix(FieldStatus, v))
- }
- // StatusHasSuffix applies the HasSuffix predicate on the "status" field.
- func StatusHasSuffix(v string) predicate.User {
- return predicate.User(sql.FieldHasSuffix(FieldStatus, v))
- }
- // StatusEqualFold applies the EqualFold predicate on the "status" field.
- func StatusEqualFold(v string) predicate.User {
- return predicate.User(sql.FieldEqualFold(FieldStatus, v))
- }
- // StatusContainsFold applies the ContainsFold predicate on the "status" field.
- func StatusContainsFold(v string) predicate.User {
- return predicate.User(sql.FieldContainsFold(FieldStatus, v))
- }
- // UsernameEQ applies the EQ predicate on the "username" field.
- func UsernameEQ(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldUsername, v))
- }
- // UsernameNEQ applies the NEQ predicate on the "username" field.
- func UsernameNEQ(v string) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldUsername, v))
- }
- // UsernameIn applies the In predicate on the "username" field.
- func UsernameIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldIn(FieldUsername, vs...))
- }
- // UsernameNotIn applies the NotIn predicate on the "username" field.
- func UsernameNotIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldUsername, vs...))
- }
- // UsernameGT applies the GT predicate on the "username" field.
- func UsernameGT(v string) predicate.User {
- return predicate.User(sql.FieldGT(FieldUsername, v))
- }
- // UsernameGTE applies the GTE predicate on the "username" field.
- func UsernameGTE(v string) predicate.User {
- return predicate.User(sql.FieldGTE(FieldUsername, v))
- }
- // UsernameLT applies the LT predicate on the "username" field.
- func UsernameLT(v string) predicate.User {
- return predicate.User(sql.FieldLT(FieldUsername, v))
- }
- // UsernameLTE applies the LTE predicate on the "username" field.
- func UsernameLTE(v string) predicate.User {
- return predicate.User(sql.FieldLTE(FieldUsername, v))
- }
- // UsernameContains applies the Contains predicate on the "username" field.
- func UsernameContains(v string) predicate.User {
- return predicate.User(sql.FieldContains(FieldUsername, v))
- }
- // UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
- func UsernameHasPrefix(v string) predicate.User {
- return predicate.User(sql.FieldHasPrefix(FieldUsername, v))
- }
- // UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
- func UsernameHasSuffix(v string) predicate.User {
- return predicate.User(sql.FieldHasSuffix(FieldUsername, v))
- }
- // UsernameEqualFold applies the EqualFold predicate on the "username" field.
- func UsernameEqualFold(v string) predicate.User {
- return predicate.User(sql.FieldEqualFold(FieldUsername, v))
- }
- // UsernameContainsFold applies the ContainsFold predicate on the "username" field.
- func UsernameContainsFold(v string) predicate.User {
- return predicate.User(sql.FieldContainsFold(FieldUsername, v))
- }
- // NotesEQ applies the EQ predicate on the "notes" field.
- func NotesEQ(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldNotes, v))
- }
- // NotesNEQ applies the NEQ predicate on the "notes" field.
- func NotesNEQ(v string) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldNotes, v))
- }
- // NotesIn applies the In predicate on the "notes" field.
- func NotesIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldIn(FieldNotes, vs...))
- }
- // NotesNotIn applies the NotIn predicate on the "notes" field.
- func NotesNotIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldNotes, vs...))
- }
- // NotesGT applies the GT predicate on the "notes" field.
- func NotesGT(v string) predicate.User {
- return predicate.User(sql.FieldGT(FieldNotes, v))
- }
- // NotesGTE applies the GTE predicate on the "notes" field.
- func NotesGTE(v string) predicate.User {
- return predicate.User(sql.FieldGTE(FieldNotes, v))
- }
- // NotesLT applies the LT predicate on the "notes" field.
- func NotesLT(v string) predicate.User {
- return predicate.User(sql.FieldLT(FieldNotes, v))
- }
- // NotesLTE applies the LTE predicate on the "notes" field.
- func NotesLTE(v string) predicate.User {
- return predicate.User(sql.FieldLTE(FieldNotes, v))
- }
- // NotesContains applies the Contains predicate on the "notes" field.
- func NotesContains(v string) predicate.User {
- return predicate.User(sql.FieldContains(FieldNotes, v))
- }
- // NotesHasPrefix applies the HasPrefix predicate on the "notes" field.
- func NotesHasPrefix(v string) predicate.User {
- return predicate.User(sql.FieldHasPrefix(FieldNotes, v))
- }
- // NotesHasSuffix applies the HasSuffix predicate on the "notes" field.
- func NotesHasSuffix(v string) predicate.User {
- return predicate.User(sql.FieldHasSuffix(FieldNotes, v))
- }
- // NotesEqualFold applies the EqualFold predicate on the "notes" field.
- func NotesEqualFold(v string) predicate.User {
- return predicate.User(sql.FieldEqualFold(FieldNotes, v))
- }
- // NotesContainsFold applies the ContainsFold predicate on the "notes" field.
- func NotesContainsFold(v string) predicate.User {
- return predicate.User(sql.FieldContainsFold(FieldNotes, v))
- }
- // TotpSecretEncryptedEQ applies the EQ predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedEQ(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldTotpSecretEncrypted, v))
- }
- // TotpSecretEncryptedNEQ applies the NEQ predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedNEQ(v string) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldTotpSecretEncrypted, v))
- }
- // TotpSecretEncryptedIn applies the In predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldIn(FieldTotpSecretEncrypted, vs...))
- }
- // TotpSecretEncryptedNotIn applies the NotIn predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedNotIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldTotpSecretEncrypted, vs...))
- }
- // TotpSecretEncryptedGT applies the GT predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedGT(v string) predicate.User {
- return predicate.User(sql.FieldGT(FieldTotpSecretEncrypted, v))
- }
- // TotpSecretEncryptedGTE applies the GTE predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedGTE(v string) predicate.User {
- return predicate.User(sql.FieldGTE(FieldTotpSecretEncrypted, v))
- }
- // TotpSecretEncryptedLT applies the LT predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedLT(v string) predicate.User {
- return predicate.User(sql.FieldLT(FieldTotpSecretEncrypted, v))
- }
- // TotpSecretEncryptedLTE applies the LTE predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedLTE(v string) predicate.User {
- return predicate.User(sql.FieldLTE(FieldTotpSecretEncrypted, v))
- }
- // TotpSecretEncryptedContains applies the Contains predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedContains(v string) predicate.User {
- return predicate.User(sql.FieldContains(FieldTotpSecretEncrypted, v))
- }
- // TotpSecretEncryptedHasPrefix applies the HasPrefix predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedHasPrefix(v string) predicate.User {
- return predicate.User(sql.FieldHasPrefix(FieldTotpSecretEncrypted, v))
- }
- // TotpSecretEncryptedHasSuffix applies the HasSuffix predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedHasSuffix(v string) predicate.User {
- return predicate.User(sql.FieldHasSuffix(FieldTotpSecretEncrypted, v))
- }
- // TotpSecretEncryptedIsNil applies the IsNil predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedIsNil() predicate.User {
- return predicate.User(sql.FieldIsNull(FieldTotpSecretEncrypted))
- }
- // TotpSecretEncryptedNotNil applies the NotNil predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedNotNil() predicate.User {
- return predicate.User(sql.FieldNotNull(FieldTotpSecretEncrypted))
- }
- // TotpSecretEncryptedEqualFold applies the EqualFold predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedEqualFold(v string) predicate.User {
- return predicate.User(sql.FieldEqualFold(FieldTotpSecretEncrypted, v))
- }
- // TotpSecretEncryptedContainsFold applies the ContainsFold predicate on the "totp_secret_encrypted" field.
- func TotpSecretEncryptedContainsFold(v string) predicate.User {
- return predicate.User(sql.FieldContainsFold(FieldTotpSecretEncrypted, v))
- }
- // TotpEnabledEQ applies the EQ predicate on the "totp_enabled" field.
- func TotpEnabledEQ(v bool) predicate.User {
- return predicate.User(sql.FieldEQ(FieldTotpEnabled, v))
- }
- // TotpEnabledNEQ applies the NEQ predicate on the "totp_enabled" field.
- func TotpEnabledNEQ(v bool) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldTotpEnabled, v))
- }
- // TotpEnabledAtEQ applies the EQ predicate on the "totp_enabled_at" field.
- func TotpEnabledAtEQ(v time.Time) predicate.User {
- return predicate.User(sql.FieldEQ(FieldTotpEnabledAt, v))
- }
- // TotpEnabledAtNEQ applies the NEQ predicate on the "totp_enabled_at" field.
- func TotpEnabledAtNEQ(v time.Time) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldTotpEnabledAt, v))
- }
- // TotpEnabledAtIn applies the In predicate on the "totp_enabled_at" field.
- func TotpEnabledAtIn(vs ...time.Time) predicate.User {
- return predicate.User(sql.FieldIn(FieldTotpEnabledAt, vs...))
- }
- // TotpEnabledAtNotIn applies the NotIn predicate on the "totp_enabled_at" field.
- func TotpEnabledAtNotIn(vs ...time.Time) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldTotpEnabledAt, vs...))
- }
- // TotpEnabledAtGT applies the GT predicate on the "totp_enabled_at" field.
- func TotpEnabledAtGT(v time.Time) predicate.User {
- return predicate.User(sql.FieldGT(FieldTotpEnabledAt, v))
- }
- // TotpEnabledAtGTE applies the GTE predicate on the "totp_enabled_at" field.
- func TotpEnabledAtGTE(v time.Time) predicate.User {
- return predicate.User(sql.FieldGTE(FieldTotpEnabledAt, v))
- }
- // TotpEnabledAtLT applies the LT predicate on the "totp_enabled_at" field.
- func TotpEnabledAtLT(v time.Time) predicate.User {
- return predicate.User(sql.FieldLT(FieldTotpEnabledAt, v))
- }
- // TotpEnabledAtLTE applies the LTE predicate on the "totp_enabled_at" field.
- func TotpEnabledAtLTE(v time.Time) predicate.User {
- return predicate.User(sql.FieldLTE(FieldTotpEnabledAt, v))
- }
- // TotpEnabledAtIsNil applies the IsNil predicate on the "totp_enabled_at" field.
- func TotpEnabledAtIsNil() predicate.User {
- return predicate.User(sql.FieldIsNull(FieldTotpEnabledAt))
- }
- // TotpEnabledAtNotNil applies the NotNil predicate on the "totp_enabled_at" field.
- func TotpEnabledAtNotNil() predicate.User {
- return predicate.User(sql.FieldNotNull(FieldTotpEnabledAt))
- }
- // SignupSourceEQ applies the EQ predicate on the "signup_source" field.
- func SignupSourceEQ(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldSignupSource, v))
- }
- // SignupSourceNEQ applies the NEQ predicate on the "signup_source" field.
- func SignupSourceNEQ(v string) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldSignupSource, v))
- }
- // SignupSourceIn applies the In predicate on the "signup_source" field.
- func SignupSourceIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldIn(FieldSignupSource, vs...))
- }
- // SignupSourceNotIn applies the NotIn predicate on the "signup_source" field.
- func SignupSourceNotIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldSignupSource, vs...))
- }
- // SignupSourceGT applies the GT predicate on the "signup_source" field.
- func SignupSourceGT(v string) predicate.User {
- return predicate.User(sql.FieldGT(FieldSignupSource, v))
- }
- // SignupSourceGTE applies the GTE predicate on the "signup_source" field.
- func SignupSourceGTE(v string) predicate.User {
- return predicate.User(sql.FieldGTE(FieldSignupSource, v))
- }
- // SignupSourceLT applies the LT predicate on the "signup_source" field.
- func SignupSourceLT(v string) predicate.User {
- return predicate.User(sql.FieldLT(FieldSignupSource, v))
- }
- // SignupSourceLTE applies the LTE predicate on the "signup_source" field.
- func SignupSourceLTE(v string) predicate.User {
- return predicate.User(sql.FieldLTE(FieldSignupSource, v))
- }
- // SignupSourceContains applies the Contains predicate on the "signup_source" field.
- func SignupSourceContains(v string) predicate.User {
- return predicate.User(sql.FieldContains(FieldSignupSource, v))
- }
- // SignupSourceHasPrefix applies the HasPrefix predicate on the "signup_source" field.
- func SignupSourceHasPrefix(v string) predicate.User {
- return predicate.User(sql.FieldHasPrefix(FieldSignupSource, v))
- }
- // SignupSourceHasSuffix applies the HasSuffix predicate on the "signup_source" field.
- func SignupSourceHasSuffix(v string) predicate.User {
- return predicate.User(sql.FieldHasSuffix(FieldSignupSource, v))
- }
- // SignupSourceEqualFold applies the EqualFold predicate on the "signup_source" field.
- func SignupSourceEqualFold(v string) predicate.User {
- return predicate.User(sql.FieldEqualFold(FieldSignupSource, v))
- }
- // SignupSourceContainsFold applies the ContainsFold predicate on the "signup_source" field.
- func SignupSourceContainsFold(v string) predicate.User {
- return predicate.User(sql.FieldContainsFold(FieldSignupSource, v))
- }
- // LastLoginAtEQ applies the EQ predicate on the "last_login_at" field.
- func LastLoginAtEQ(v time.Time) predicate.User {
- return predicate.User(sql.FieldEQ(FieldLastLoginAt, v))
- }
- // LastLoginAtNEQ applies the NEQ predicate on the "last_login_at" field.
- func LastLoginAtNEQ(v time.Time) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldLastLoginAt, v))
- }
- // LastLoginAtIn applies the In predicate on the "last_login_at" field.
- func LastLoginAtIn(vs ...time.Time) predicate.User {
- return predicate.User(sql.FieldIn(FieldLastLoginAt, vs...))
- }
- // LastLoginAtNotIn applies the NotIn predicate on the "last_login_at" field.
- func LastLoginAtNotIn(vs ...time.Time) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldLastLoginAt, vs...))
- }
- // LastLoginAtGT applies the GT predicate on the "last_login_at" field.
- func LastLoginAtGT(v time.Time) predicate.User {
- return predicate.User(sql.FieldGT(FieldLastLoginAt, v))
- }
- // LastLoginAtGTE applies the GTE predicate on the "last_login_at" field.
- func LastLoginAtGTE(v time.Time) predicate.User {
- return predicate.User(sql.FieldGTE(FieldLastLoginAt, v))
- }
- // LastLoginAtLT applies the LT predicate on the "last_login_at" field.
- func LastLoginAtLT(v time.Time) predicate.User {
- return predicate.User(sql.FieldLT(FieldLastLoginAt, v))
- }
- // LastLoginAtLTE applies the LTE predicate on the "last_login_at" field.
- func LastLoginAtLTE(v time.Time) predicate.User {
- return predicate.User(sql.FieldLTE(FieldLastLoginAt, v))
- }
- // LastLoginAtIsNil applies the IsNil predicate on the "last_login_at" field.
- func LastLoginAtIsNil() predicate.User {
- return predicate.User(sql.FieldIsNull(FieldLastLoginAt))
- }
- // LastLoginAtNotNil applies the NotNil predicate on the "last_login_at" field.
- func LastLoginAtNotNil() predicate.User {
- return predicate.User(sql.FieldNotNull(FieldLastLoginAt))
- }
- // LastActiveAtEQ applies the EQ predicate on the "last_active_at" field.
- func LastActiveAtEQ(v time.Time) predicate.User {
- return predicate.User(sql.FieldEQ(FieldLastActiveAt, v))
- }
- // LastActiveAtNEQ applies the NEQ predicate on the "last_active_at" field.
- func LastActiveAtNEQ(v time.Time) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldLastActiveAt, v))
- }
- // LastActiveAtIn applies the In predicate on the "last_active_at" field.
- func LastActiveAtIn(vs ...time.Time) predicate.User {
- return predicate.User(sql.FieldIn(FieldLastActiveAt, vs...))
- }
- // LastActiveAtNotIn applies the NotIn predicate on the "last_active_at" field.
- func LastActiveAtNotIn(vs ...time.Time) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldLastActiveAt, vs...))
- }
- // LastActiveAtGT applies the GT predicate on the "last_active_at" field.
- func LastActiveAtGT(v time.Time) predicate.User {
- return predicate.User(sql.FieldGT(FieldLastActiveAt, v))
- }
- // LastActiveAtGTE applies the GTE predicate on the "last_active_at" field.
- func LastActiveAtGTE(v time.Time) predicate.User {
- return predicate.User(sql.FieldGTE(FieldLastActiveAt, v))
- }
- // LastActiveAtLT applies the LT predicate on the "last_active_at" field.
- func LastActiveAtLT(v time.Time) predicate.User {
- return predicate.User(sql.FieldLT(FieldLastActiveAt, v))
- }
- // LastActiveAtLTE applies the LTE predicate on the "last_active_at" field.
- func LastActiveAtLTE(v time.Time) predicate.User {
- return predicate.User(sql.FieldLTE(FieldLastActiveAt, v))
- }
- // LastActiveAtIsNil applies the IsNil predicate on the "last_active_at" field.
- func LastActiveAtIsNil() predicate.User {
- return predicate.User(sql.FieldIsNull(FieldLastActiveAt))
- }
- // LastActiveAtNotNil applies the NotNil predicate on the "last_active_at" field.
- func LastActiveAtNotNil() predicate.User {
- return predicate.User(sql.FieldNotNull(FieldLastActiveAt))
- }
- // RestrictPublicGroupsEQ applies the EQ predicate on the "restrict_public_groups" field.
- func RestrictPublicGroupsEQ(v bool) predicate.User {
- return predicate.User(sql.FieldEQ(FieldRestrictPublicGroups, v))
- }
- // RestrictPublicGroupsNEQ applies the NEQ predicate on the "restrict_public_groups" field.
- func RestrictPublicGroupsNEQ(v bool) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldRestrictPublicGroups, v))
- }
- // BalanceNotifyEnabledEQ applies the EQ predicate on the "balance_notify_enabled" field.
- func BalanceNotifyEnabledEQ(v bool) predicate.User {
- return predicate.User(sql.FieldEQ(FieldBalanceNotifyEnabled, v))
- }
- // BalanceNotifyEnabledNEQ applies the NEQ predicate on the "balance_notify_enabled" field.
- func BalanceNotifyEnabledNEQ(v bool) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldBalanceNotifyEnabled, v))
- }
- // BalanceNotifyThresholdTypeEQ applies the EQ predicate on the "balance_notify_threshold_type" field.
- func BalanceNotifyThresholdTypeEQ(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldBalanceNotifyThresholdType, v))
- }
- // BalanceNotifyThresholdTypeNEQ applies the NEQ predicate on the "balance_notify_threshold_type" field.
- func BalanceNotifyThresholdTypeNEQ(v string) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldBalanceNotifyThresholdType, v))
- }
- // BalanceNotifyThresholdTypeIn applies the In predicate on the "balance_notify_threshold_type" field.
- func BalanceNotifyThresholdTypeIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldIn(FieldBalanceNotifyThresholdType, vs...))
- }
- // BalanceNotifyThresholdTypeNotIn applies the NotIn predicate on the "balance_notify_threshold_type" field.
- func BalanceNotifyThresholdTypeNotIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldBalanceNotifyThresholdType, vs...))
- }
- // BalanceNotifyThresholdTypeGT applies the GT predicate on the "balance_notify_threshold_type" field.
- func BalanceNotifyThresholdTypeGT(v string) predicate.User {
- return predicate.User(sql.FieldGT(FieldBalanceNotifyThresholdType, v))
- }
- // BalanceNotifyThresholdTypeGTE applies the GTE predicate on the "balance_notify_threshold_type" field.
- func BalanceNotifyThresholdTypeGTE(v string) predicate.User {
- return predicate.User(sql.FieldGTE(FieldBalanceNotifyThresholdType, v))
- }
- // BalanceNotifyThresholdTypeLT applies the LT predicate on the "balance_notify_threshold_type" field.
- func BalanceNotifyThresholdTypeLT(v string) predicate.User {
- return predicate.User(sql.FieldLT(FieldBalanceNotifyThresholdType, v))
- }
- // BalanceNotifyThresholdTypeLTE applies the LTE predicate on the "balance_notify_threshold_type" field.
- func BalanceNotifyThresholdTypeLTE(v string) predicate.User {
- return predicate.User(sql.FieldLTE(FieldBalanceNotifyThresholdType, v))
- }
- // BalanceNotifyThresholdTypeContains applies the Contains predicate on the "balance_notify_threshold_type" field.
- func BalanceNotifyThresholdTypeContains(v string) predicate.User {
- return predicate.User(sql.FieldContains(FieldBalanceNotifyThresholdType, v))
- }
- // BalanceNotifyThresholdTypeHasPrefix applies the HasPrefix predicate on the "balance_notify_threshold_type" field.
- func BalanceNotifyThresholdTypeHasPrefix(v string) predicate.User {
- return predicate.User(sql.FieldHasPrefix(FieldBalanceNotifyThresholdType, v))
- }
- // BalanceNotifyThresholdTypeHasSuffix applies the HasSuffix predicate on the "balance_notify_threshold_type" field.
- func BalanceNotifyThresholdTypeHasSuffix(v string) predicate.User {
- return predicate.User(sql.FieldHasSuffix(FieldBalanceNotifyThresholdType, v))
- }
- // BalanceNotifyThresholdTypeEqualFold applies the EqualFold predicate on the "balance_notify_threshold_type" field.
- func BalanceNotifyThresholdTypeEqualFold(v string) predicate.User {
- return predicate.User(sql.FieldEqualFold(FieldBalanceNotifyThresholdType, v))
- }
- // BalanceNotifyThresholdTypeContainsFold applies the ContainsFold predicate on the "balance_notify_threshold_type" field.
- func BalanceNotifyThresholdTypeContainsFold(v string) predicate.User {
- return predicate.User(sql.FieldContainsFold(FieldBalanceNotifyThresholdType, v))
- }
- // BalanceNotifyThresholdEQ applies the EQ predicate on the "balance_notify_threshold" field.
- func BalanceNotifyThresholdEQ(v float64) predicate.User {
- return predicate.User(sql.FieldEQ(FieldBalanceNotifyThreshold, v))
- }
- // BalanceNotifyThresholdNEQ applies the NEQ predicate on the "balance_notify_threshold" field.
- func BalanceNotifyThresholdNEQ(v float64) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldBalanceNotifyThreshold, v))
- }
- // BalanceNotifyThresholdIn applies the In predicate on the "balance_notify_threshold" field.
- func BalanceNotifyThresholdIn(vs ...float64) predicate.User {
- return predicate.User(sql.FieldIn(FieldBalanceNotifyThreshold, vs...))
- }
- // BalanceNotifyThresholdNotIn applies the NotIn predicate on the "balance_notify_threshold" field.
- func BalanceNotifyThresholdNotIn(vs ...float64) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldBalanceNotifyThreshold, vs...))
- }
- // BalanceNotifyThresholdGT applies the GT predicate on the "balance_notify_threshold" field.
- func BalanceNotifyThresholdGT(v float64) predicate.User {
- return predicate.User(sql.FieldGT(FieldBalanceNotifyThreshold, v))
- }
- // BalanceNotifyThresholdGTE applies the GTE predicate on the "balance_notify_threshold" field.
- func BalanceNotifyThresholdGTE(v float64) predicate.User {
- return predicate.User(sql.FieldGTE(FieldBalanceNotifyThreshold, v))
- }
- // BalanceNotifyThresholdLT applies the LT predicate on the "balance_notify_threshold" field.
- func BalanceNotifyThresholdLT(v float64) predicate.User {
- return predicate.User(sql.FieldLT(FieldBalanceNotifyThreshold, v))
- }
- // BalanceNotifyThresholdLTE applies the LTE predicate on the "balance_notify_threshold" field.
- func BalanceNotifyThresholdLTE(v float64) predicate.User {
- return predicate.User(sql.FieldLTE(FieldBalanceNotifyThreshold, v))
- }
- // BalanceNotifyThresholdIsNil applies the IsNil predicate on the "balance_notify_threshold" field.
- func BalanceNotifyThresholdIsNil() predicate.User {
- return predicate.User(sql.FieldIsNull(FieldBalanceNotifyThreshold))
- }
- // BalanceNotifyThresholdNotNil applies the NotNil predicate on the "balance_notify_threshold" field.
- func BalanceNotifyThresholdNotNil() predicate.User {
- return predicate.User(sql.FieldNotNull(FieldBalanceNotifyThreshold))
- }
- // BalanceNotifyExtraEmailsEQ applies the EQ predicate on the "balance_notify_extra_emails" field.
- func BalanceNotifyExtraEmailsEQ(v string) predicate.User {
- return predicate.User(sql.FieldEQ(FieldBalanceNotifyExtraEmails, v))
- }
- // BalanceNotifyExtraEmailsNEQ applies the NEQ predicate on the "balance_notify_extra_emails" field.
- func BalanceNotifyExtraEmailsNEQ(v string) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldBalanceNotifyExtraEmails, v))
- }
- // BalanceNotifyExtraEmailsIn applies the In predicate on the "balance_notify_extra_emails" field.
- func BalanceNotifyExtraEmailsIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldIn(FieldBalanceNotifyExtraEmails, vs...))
- }
- // BalanceNotifyExtraEmailsNotIn applies the NotIn predicate on the "balance_notify_extra_emails" field.
- func BalanceNotifyExtraEmailsNotIn(vs ...string) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldBalanceNotifyExtraEmails, vs...))
- }
- // BalanceNotifyExtraEmailsGT applies the GT predicate on the "balance_notify_extra_emails" field.
- func BalanceNotifyExtraEmailsGT(v string) predicate.User {
- return predicate.User(sql.FieldGT(FieldBalanceNotifyExtraEmails, v))
- }
- // BalanceNotifyExtraEmailsGTE applies the GTE predicate on the "balance_notify_extra_emails" field.
- func BalanceNotifyExtraEmailsGTE(v string) predicate.User {
- return predicate.User(sql.FieldGTE(FieldBalanceNotifyExtraEmails, v))
- }
- // BalanceNotifyExtraEmailsLT applies the LT predicate on the "balance_notify_extra_emails" field.
- func BalanceNotifyExtraEmailsLT(v string) predicate.User {
- return predicate.User(sql.FieldLT(FieldBalanceNotifyExtraEmails, v))
- }
- // BalanceNotifyExtraEmailsLTE applies the LTE predicate on the "balance_notify_extra_emails" field.
- func BalanceNotifyExtraEmailsLTE(v string) predicate.User {
- return predicate.User(sql.FieldLTE(FieldBalanceNotifyExtraEmails, v))
- }
- // BalanceNotifyExtraEmailsContains applies the Contains predicate on the "balance_notify_extra_emails" field.
- func BalanceNotifyExtraEmailsContains(v string) predicate.User {
- return predicate.User(sql.FieldContains(FieldBalanceNotifyExtraEmails, v))
- }
- // BalanceNotifyExtraEmailsHasPrefix applies the HasPrefix predicate on the "balance_notify_extra_emails" field.
- func BalanceNotifyExtraEmailsHasPrefix(v string) predicate.User {
- return predicate.User(sql.FieldHasPrefix(FieldBalanceNotifyExtraEmails, v))
- }
- // BalanceNotifyExtraEmailsHasSuffix applies the HasSuffix predicate on the "balance_notify_extra_emails" field.
- func BalanceNotifyExtraEmailsHasSuffix(v string) predicate.User {
- return predicate.User(sql.FieldHasSuffix(FieldBalanceNotifyExtraEmails, v))
- }
- // BalanceNotifyExtraEmailsEqualFold applies the EqualFold predicate on the "balance_notify_extra_emails" field.
- func BalanceNotifyExtraEmailsEqualFold(v string) predicate.User {
- return predicate.User(sql.FieldEqualFold(FieldBalanceNotifyExtraEmails, v))
- }
- // BalanceNotifyExtraEmailsContainsFold applies the ContainsFold predicate on the "balance_notify_extra_emails" field.
- func BalanceNotifyExtraEmailsContainsFold(v string) predicate.User {
- return predicate.User(sql.FieldContainsFold(FieldBalanceNotifyExtraEmails, v))
- }
- // TotalRechargedEQ applies the EQ predicate on the "total_recharged" field.
- func TotalRechargedEQ(v float64) predicate.User {
- return predicate.User(sql.FieldEQ(FieldTotalRecharged, v))
- }
- // TotalRechargedNEQ applies the NEQ predicate on the "total_recharged" field.
- func TotalRechargedNEQ(v float64) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldTotalRecharged, v))
- }
- // TotalRechargedIn applies the In predicate on the "total_recharged" field.
- func TotalRechargedIn(vs ...float64) predicate.User {
- return predicate.User(sql.FieldIn(FieldTotalRecharged, vs...))
- }
- // TotalRechargedNotIn applies the NotIn predicate on the "total_recharged" field.
- func TotalRechargedNotIn(vs ...float64) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldTotalRecharged, vs...))
- }
- // TotalRechargedGT applies the GT predicate on the "total_recharged" field.
- func TotalRechargedGT(v float64) predicate.User {
- return predicate.User(sql.FieldGT(FieldTotalRecharged, v))
- }
- // TotalRechargedGTE applies the GTE predicate on the "total_recharged" field.
- func TotalRechargedGTE(v float64) predicate.User {
- return predicate.User(sql.FieldGTE(FieldTotalRecharged, v))
- }
- // TotalRechargedLT applies the LT predicate on the "total_recharged" field.
- func TotalRechargedLT(v float64) predicate.User {
- return predicate.User(sql.FieldLT(FieldTotalRecharged, v))
- }
- // TotalRechargedLTE applies the LTE predicate on the "total_recharged" field.
- func TotalRechargedLTE(v float64) predicate.User {
- return predicate.User(sql.FieldLTE(FieldTotalRecharged, v))
- }
- // RpmLimitEQ applies the EQ predicate on the "rpm_limit" field.
- func RpmLimitEQ(v int) predicate.User {
- return predicate.User(sql.FieldEQ(FieldRpmLimit, v))
- }
- // RpmLimitNEQ applies the NEQ predicate on the "rpm_limit" field.
- func RpmLimitNEQ(v int) predicate.User {
- return predicate.User(sql.FieldNEQ(FieldRpmLimit, v))
- }
- // RpmLimitIn applies the In predicate on the "rpm_limit" field.
- func RpmLimitIn(vs ...int) predicate.User {
- return predicate.User(sql.FieldIn(FieldRpmLimit, vs...))
- }
- // RpmLimitNotIn applies the NotIn predicate on the "rpm_limit" field.
- func RpmLimitNotIn(vs ...int) predicate.User {
- return predicate.User(sql.FieldNotIn(FieldRpmLimit, vs...))
- }
- // RpmLimitGT applies the GT predicate on the "rpm_limit" field.
- func RpmLimitGT(v int) predicate.User {
- return predicate.User(sql.FieldGT(FieldRpmLimit, v))
- }
- // RpmLimitGTE applies the GTE predicate on the "rpm_limit" field.
- func RpmLimitGTE(v int) predicate.User {
- return predicate.User(sql.FieldGTE(FieldRpmLimit, v))
- }
- // RpmLimitLT applies the LT predicate on the "rpm_limit" field.
- func RpmLimitLT(v int) predicate.User {
- return predicate.User(sql.FieldLT(FieldRpmLimit, v))
- }
- // RpmLimitLTE applies the LTE predicate on the "rpm_limit" field.
- func RpmLimitLTE(v int) predicate.User {
- return predicate.User(sql.FieldLTE(FieldRpmLimit, v))
- }
- // HasAPIKeys applies the HasEdge predicate on the "api_keys" edge.
- func HasAPIKeys() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, APIKeysTable, APIKeysColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasAPIKeysWith applies the HasEdge predicate on the "api_keys" edge with a given conditions (other predicates).
- func HasAPIKeysWith(preds ...predicate.APIKey) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newAPIKeysStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasRedeemCodes applies the HasEdge predicate on the "redeem_codes" edge.
- func HasRedeemCodes() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, RedeemCodesTable, RedeemCodesColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasRedeemCodesWith applies the HasEdge predicate on the "redeem_codes" edge with a given conditions (other predicates).
- func HasRedeemCodesWith(preds ...predicate.RedeemCode) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newRedeemCodesStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasSubscriptions applies the HasEdge predicate on the "subscriptions" edge.
- func HasSubscriptions() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, SubscriptionsTable, SubscriptionsColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasSubscriptionsWith applies the HasEdge predicate on the "subscriptions" edge with a given conditions (other predicates).
- func HasSubscriptionsWith(preds ...predicate.UserSubscription) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newSubscriptionsStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasAssignedSubscriptions applies the HasEdge predicate on the "assigned_subscriptions" edge.
- func HasAssignedSubscriptions() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, AssignedSubscriptionsTable, AssignedSubscriptionsColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasAssignedSubscriptionsWith applies the HasEdge predicate on the "assigned_subscriptions" edge with a given conditions (other predicates).
- func HasAssignedSubscriptionsWith(preds ...predicate.UserSubscription) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newAssignedSubscriptionsStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasAnnouncementReads applies the HasEdge predicate on the "announcement_reads" edge.
- func HasAnnouncementReads() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, AnnouncementReadsTable, AnnouncementReadsColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasAnnouncementReadsWith applies the HasEdge predicate on the "announcement_reads" edge with a given conditions (other predicates).
- func HasAnnouncementReadsWith(preds ...predicate.AnnouncementRead) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newAnnouncementReadsStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasAllowedGroups applies the HasEdge predicate on the "allowed_groups" edge.
- func HasAllowedGroups() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.M2M, false, AllowedGroupsTable, AllowedGroupsPrimaryKey...),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasAllowedGroupsWith applies the HasEdge predicate on the "allowed_groups" edge with a given conditions (other predicates).
- func HasAllowedGroupsWith(preds ...predicate.Group) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newAllowedGroupsStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasUsageLogs applies the HasEdge predicate on the "usage_logs" edge.
- func HasUsageLogs() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, UsageLogsTable, UsageLogsColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasUsageLogsWith applies the HasEdge predicate on the "usage_logs" edge with a given conditions (other predicates).
- func HasUsageLogsWith(preds ...predicate.UsageLog) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newUsageLogsStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasAttributeValues applies the HasEdge predicate on the "attribute_values" edge.
- func HasAttributeValues() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, AttributeValuesTable, AttributeValuesColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasAttributeValuesWith applies the HasEdge predicate on the "attribute_values" edge with a given conditions (other predicates).
- func HasAttributeValuesWith(preds ...predicate.UserAttributeValue) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newAttributeValuesStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasPromoCodeUsages applies the HasEdge predicate on the "promo_code_usages" edge.
- func HasPromoCodeUsages() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, PromoCodeUsagesTable, PromoCodeUsagesColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasPromoCodeUsagesWith applies the HasEdge predicate on the "promo_code_usages" edge with a given conditions (other predicates).
- func HasPromoCodeUsagesWith(preds ...predicate.PromoCodeUsage) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newPromoCodeUsagesStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasPaymentOrders applies the HasEdge predicate on the "payment_orders" edge.
- func HasPaymentOrders() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, PaymentOrdersTable, PaymentOrdersColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasPaymentOrdersWith applies the HasEdge predicate on the "payment_orders" edge with a given conditions (other predicates).
- func HasPaymentOrdersWith(preds ...predicate.PaymentOrder) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newPaymentOrdersStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasAuthIdentities applies the HasEdge predicate on the "auth_identities" edge.
- func HasAuthIdentities() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, AuthIdentitiesTable, AuthIdentitiesColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasAuthIdentitiesWith applies the HasEdge predicate on the "auth_identities" edge with a given conditions (other predicates).
- func HasAuthIdentitiesWith(preds ...predicate.AuthIdentity) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newAuthIdentitiesStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasPendingAuthSessions applies the HasEdge predicate on the "pending_auth_sessions" edge.
- func HasPendingAuthSessions() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, PendingAuthSessionsTable, PendingAuthSessionsColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasPendingAuthSessionsWith applies the HasEdge predicate on the "pending_auth_sessions" edge with a given conditions (other predicates).
- func HasPendingAuthSessionsWith(preds ...predicate.PendingAuthSession) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newPendingAuthSessionsStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasPlatformQuotas applies the HasEdge predicate on the "platform_quotas" edge.
- func HasPlatformQuotas() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, PlatformQuotasTable, PlatformQuotasColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasPlatformQuotasWith applies the HasEdge predicate on the "platform_quotas" edge with a given conditions (other predicates).
- func HasPlatformQuotasWith(preds ...predicate.UserPlatformQuota) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newPlatformQuotasStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasUserAllowedGroups applies the HasEdge predicate on the "user_allowed_groups" edge.
- func HasUserAllowedGroups() predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, true, UserAllowedGroupsTable, UserAllowedGroupsColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasUserAllowedGroupsWith applies the HasEdge predicate on the "user_allowed_groups" edge with a given conditions (other predicates).
- func HasUserAllowedGroupsWith(preds ...predicate.UserAllowedGroup) predicate.User {
- return predicate.User(func(s *sql.Selector) {
- step := newUserAllowedGroupsStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // And groups predicates with the AND operator between them.
- func And(predicates ...predicate.User) predicate.User {
- return predicate.User(sql.AndPredicates(predicates...))
- }
- // Or groups predicates with the OR operator between them.
- func Or(predicates ...predicate.User) predicate.User {
- return predicate.User(sql.OrPredicates(predicates...))
- }
- // Not applies the not operator on the given predicate.
- func Not(p predicate.User) predicate.User {
- return predicate.User(sql.NotPredicates(p))
- }
|