where.go 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738
  1. // Code generated by ent, DO NOT EDIT.
  2. package user
  3. import (
  4. "time"
  5. "entgo.io/ent/dialect/sql"
  6. "entgo.io/ent/dialect/sql/sqlgraph"
  7. "github.com/Wei-Shaw/sub2api/ent/predicate"
  8. )
  9. // ID filters vertices based on their ID field.
  10. func ID(id int64) predicate.User {
  11. return predicate.User(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id int64) predicate.User {
  15. return predicate.User(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id int64) predicate.User {
  19. return predicate.User(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...int64) predicate.User {
  23. return predicate.User(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...int64) predicate.User {
  27. return predicate.User(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id int64) predicate.User {
  31. return predicate.User(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id int64) predicate.User {
  35. return predicate.User(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id int64) predicate.User {
  39. return predicate.User(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id int64) predicate.User {
  43. return predicate.User(sql.FieldLTE(FieldID, id))
  44. }
  45. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  46. func CreatedAt(v time.Time) predicate.User {
  47. return predicate.User(sql.FieldEQ(FieldCreatedAt, v))
  48. }
  49. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  50. func UpdatedAt(v time.Time) predicate.User {
  51. return predicate.User(sql.FieldEQ(FieldUpdatedAt, v))
  52. }
  53. // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
  54. func DeletedAt(v time.Time) predicate.User {
  55. return predicate.User(sql.FieldEQ(FieldDeletedAt, v))
  56. }
  57. // Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
  58. func Email(v string) predicate.User {
  59. return predicate.User(sql.FieldEQ(FieldEmail, v))
  60. }
  61. // PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
  62. func PasswordHash(v string) predicate.User {
  63. return predicate.User(sql.FieldEQ(FieldPasswordHash, v))
  64. }
  65. // Role applies equality check predicate on the "role" field. It's identical to RoleEQ.
  66. func Role(v string) predicate.User {
  67. return predicate.User(sql.FieldEQ(FieldRole, v))
  68. }
  69. // Balance applies equality check predicate on the "balance" field. It's identical to BalanceEQ.
  70. func Balance(v float64) predicate.User {
  71. return predicate.User(sql.FieldEQ(FieldBalance, v))
  72. }
  73. // FrozenBalance applies equality check predicate on the "frozen_balance" field. It's identical to FrozenBalanceEQ.
  74. func FrozenBalance(v float64) predicate.User {
  75. return predicate.User(sql.FieldEQ(FieldFrozenBalance, v))
  76. }
  77. // Concurrency applies equality check predicate on the "concurrency" field. It's identical to ConcurrencyEQ.
  78. func Concurrency(v int) predicate.User {
  79. return predicate.User(sql.FieldEQ(FieldConcurrency, v))
  80. }
  81. // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
  82. func Status(v string) predicate.User {
  83. return predicate.User(sql.FieldEQ(FieldStatus, v))
  84. }
  85. // Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
  86. func Username(v string) predicate.User {
  87. return predicate.User(sql.FieldEQ(FieldUsername, v))
  88. }
  89. // Notes applies equality check predicate on the "notes" field. It's identical to NotesEQ.
  90. func Notes(v string) predicate.User {
  91. return predicate.User(sql.FieldEQ(FieldNotes, v))
  92. }
  93. // TotpSecretEncrypted applies equality check predicate on the "totp_secret_encrypted" field. It's identical to TotpSecretEncryptedEQ.
  94. func TotpSecretEncrypted(v string) predicate.User {
  95. return predicate.User(sql.FieldEQ(FieldTotpSecretEncrypted, v))
  96. }
  97. // TotpEnabled applies equality check predicate on the "totp_enabled" field. It's identical to TotpEnabledEQ.
  98. func TotpEnabled(v bool) predicate.User {
  99. return predicate.User(sql.FieldEQ(FieldTotpEnabled, v))
  100. }
  101. // TotpEnabledAt applies equality check predicate on the "totp_enabled_at" field. It's identical to TotpEnabledAtEQ.
  102. func TotpEnabledAt(v time.Time) predicate.User {
  103. return predicate.User(sql.FieldEQ(FieldTotpEnabledAt, v))
  104. }
  105. // SignupSource applies equality check predicate on the "signup_source" field. It's identical to SignupSourceEQ.
  106. func SignupSource(v string) predicate.User {
  107. return predicate.User(sql.FieldEQ(FieldSignupSource, v))
  108. }
  109. // LastLoginAt applies equality check predicate on the "last_login_at" field. It's identical to LastLoginAtEQ.
  110. func LastLoginAt(v time.Time) predicate.User {
  111. return predicate.User(sql.FieldEQ(FieldLastLoginAt, v))
  112. }
  113. // LastActiveAt applies equality check predicate on the "last_active_at" field. It's identical to LastActiveAtEQ.
  114. func LastActiveAt(v time.Time) predicate.User {
  115. return predicate.User(sql.FieldEQ(FieldLastActiveAt, v))
  116. }
  117. // RestrictPublicGroups applies equality check predicate on the "restrict_public_groups" field. It's identical to RestrictPublicGroupsEQ.
  118. func RestrictPublicGroups(v bool) predicate.User {
  119. return predicate.User(sql.FieldEQ(FieldRestrictPublicGroups, v))
  120. }
  121. // BalanceNotifyEnabled applies equality check predicate on the "balance_notify_enabled" field. It's identical to BalanceNotifyEnabledEQ.
  122. func BalanceNotifyEnabled(v bool) predicate.User {
  123. return predicate.User(sql.FieldEQ(FieldBalanceNotifyEnabled, v))
  124. }
  125. // BalanceNotifyThresholdType applies equality check predicate on the "balance_notify_threshold_type" field. It's identical to BalanceNotifyThresholdTypeEQ.
  126. func BalanceNotifyThresholdType(v string) predicate.User {
  127. return predicate.User(sql.FieldEQ(FieldBalanceNotifyThresholdType, v))
  128. }
  129. // BalanceNotifyThreshold applies equality check predicate on the "balance_notify_threshold" field. It's identical to BalanceNotifyThresholdEQ.
  130. func BalanceNotifyThreshold(v float64) predicate.User {
  131. return predicate.User(sql.FieldEQ(FieldBalanceNotifyThreshold, v))
  132. }
  133. // BalanceNotifyExtraEmails applies equality check predicate on the "balance_notify_extra_emails" field. It's identical to BalanceNotifyExtraEmailsEQ.
  134. func BalanceNotifyExtraEmails(v string) predicate.User {
  135. return predicate.User(sql.FieldEQ(FieldBalanceNotifyExtraEmails, v))
  136. }
  137. // TotalRecharged applies equality check predicate on the "total_recharged" field. It's identical to TotalRechargedEQ.
  138. func TotalRecharged(v float64) predicate.User {
  139. return predicate.User(sql.FieldEQ(FieldTotalRecharged, v))
  140. }
  141. // RpmLimit applies equality check predicate on the "rpm_limit" field. It's identical to RpmLimitEQ.
  142. func RpmLimit(v int) predicate.User {
  143. return predicate.User(sql.FieldEQ(FieldRpmLimit, v))
  144. }
  145. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  146. func CreatedAtEQ(v time.Time) predicate.User {
  147. return predicate.User(sql.FieldEQ(FieldCreatedAt, v))
  148. }
  149. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  150. func CreatedAtNEQ(v time.Time) predicate.User {
  151. return predicate.User(sql.FieldNEQ(FieldCreatedAt, v))
  152. }
  153. // CreatedAtIn applies the In predicate on the "created_at" field.
  154. func CreatedAtIn(vs ...time.Time) predicate.User {
  155. return predicate.User(sql.FieldIn(FieldCreatedAt, vs...))
  156. }
  157. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  158. func CreatedAtNotIn(vs ...time.Time) predicate.User {
  159. return predicate.User(sql.FieldNotIn(FieldCreatedAt, vs...))
  160. }
  161. // CreatedAtGT applies the GT predicate on the "created_at" field.
  162. func CreatedAtGT(v time.Time) predicate.User {
  163. return predicate.User(sql.FieldGT(FieldCreatedAt, v))
  164. }
  165. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  166. func CreatedAtGTE(v time.Time) predicate.User {
  167. return predicate.User(sql.FieldGTE(FieldCreatedAt, v))
  168. }
  169. // CreatedAtLT applies the LT predicate on the "created_at" field.
  170. func CreatedAtLT(v time.Time) predicate.User {
  171. return predicate.User(sql.FieldLT(FieldCreatedAt, v))
  172. }
  173. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  174. func CreatedAtLTE(v time.Time) predicate.User {
  175. return predicate.User(sql.FieldLTE(FieldCreatedAt, v))
  176. }
  177. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  178. func UpdatedAtEQ(v time.Time) predicate.User {
  179. return predicate.User(sql.FieldEQ(FieldUpdatedAt, v))
  180. }
  181. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  182. func UpdatedAtNEQ(v time.Time) predicate.User {
  183. return predicate.User(sql.FieldNEQ(FieldUpdatedAt, v))
  184. }
  185. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  186. func UpdatedAtIn(vs ...time.Time) predicate.User {
  187. return predicate.User(sql.FieldIn(FieldUpdatedAt, vs...))
  188. }
  189. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  190. func UpdatedAtNotIn(vs ...time.Time) predicate.User {
  191. return predicate.User(sql.FieldNotIn(FieldUpdatedAt, vs...))
  192. }
  193. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  194. func UpdatedAtGT(v time.Time) predicate.User {
  195. return predicate.User(sql.FieldGT(FieldUpdatedAt, v))
  196. }
  197. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  198. func UpdatedAtGTE(v time.Time) predicate.User {
  199. return predicate.User(sql.FieldGTE(FieldUpdatedAt, v))
  200. }
  201. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  202. func UpdatedAtLT(v time.Time) predicate.User {
  203. return predicate.User(sql.FieldLT(FieldUpdatedAt, v))
  204. }
  205. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  206. func UpdatedAtLTE(v time.Time) predicate.User {
  207. return predicate.User(sql.FieldLTE(FieldUpdatedAt, v))
  208. }
  209. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  210. func DeletedAtEQ(v time.Time) predicate.User {
  211. return predicate.User(sql.FieldEQ(FieldDeletedAt, v))
  212. }
  213. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  214. func DeletedAtNEQ(v time.Time) predicate.User {
  215. return predicate.User(sql.FieldNEQ(FieldDeletedAt, v))
  216. }
  217. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  218. func DeletedAtIn(vs ...time.Time) predicate.User {
  219. return predicate.User(sql.FieldIn(FieldDeletedAt, vs...))
  220. }
  221. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  222. func DeletedAtNotIn(vs ...time.Time) predicate.User {
  223. return predicate.User(sql.FieldNotIn(FieldDeletedAt, vs...))
  224. }
  225. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  226. func DeletedAtGT(v time.Time) predicate.User {
  227. return predicate.User(sql.FieldGT(FieldDeletedAt, v))
  228. }
  229. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  230. func DeletedAtGTE(v time.Time) predicate.User {
  231. return predicate.User(sql.FieldGTE(FieldDeletedAt, v))
  232. }
  233. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  234. func DeletedAtLT(v time.Time) predicate.User {
  235. return predicate.User(sql.FieldLT(FieldDeletedAt, v))
  236. }
  237. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  238. func DeletedAtLTE(v time.Time) predicate.User {
  239. return predicate.User(sql.FieldLTE(FieldDeletedAt, v))
  240. }
  241. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  242. func DeletedAtIsNil() predicate.User {
  243. return predicate.User(sql.FieldIsNull(FieldDeletedAt))
  244. }
  245. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  246. func DeletedAtNotNil() predicate.User {
  247. return predicate.User(sql.FieldNotNull(FieldDeletedAt))
  248. }
  249. // EmailEQ applies the EQ predicate on the "email" field.
  250. func EmailEQ(v string) predicate.User {
  251. return predicate.User(sql.FieldEQ(FieldEmail, v))
  252. }
  253. // EmailNEQ applies the NEQ predicate on the "email" field.
  254. func EmailNEQ(v string) predicate.User {
  255. return predicate.User(sql.FieldNEQ(FieldEmail, v))
  256. }
  257. // EmailIn applies the In predicate on the "email" field.
  258. func EmailIn(vs ...string) predicate.User {
  259. return predicate.User(sql.FieldIn(FieldEmail, vs...))
  260. }
  261. // EmailNotIn applies the NotIn predicate on the "email" field.
  262. func EmailNotIn(vs ...string) predicate.User {
  263. return predicate.User(sql.FieldNotIn(FieldEmail, vs...))
  264. }
  265. // EmailGT applies the GT predicate on the "email" field.
  266. func EmailGT(v string) predicate.User {
  267. return predicate.User(sql.FieldGT(FieldEmail, v))
  268. }
  269. // EmailGTE applies the GTE predicate on the "email" field.
  270. func EmailGTE(v string) predicate.User {
  271. return predicate.User(sql.FieldGTE(FieldEmail, v))
  272. }
  273. // EmailLT applies the LT predicate on the "email" field.
  274. func EmailLT(v string) predicate.User {
  275. return predicate.User(sql.FieldLT(FieldEmail, v))
  276. }
  277. // EmailLTE applies the LTE predicate on the "email" field.
  278. func EmailLTE(v string) predicate.User {
  279. return predicate.User(sql.FieldLTE(FieldEmail, v))
  280. }
  281. // EmailContains applies the Contains predicate on the "email" field.
  282. func EmailContains(v string) predicate.User {
  283. return predicate.User(sql.FieldContains(FieldEmail, v))
  284. }
  285. // EmailHasPrefix applies the HasPrefix predicate on the "email" field.
  286. func EmailHasPrefix(v string) predicate.User {
  287. return predicate.User(sql.FieldHasPrefix(FieldEmail, v))
  288. }
  289. // EmailHasSuffix applies the HasSuffix predicate on the "email" field.
  290. func EmailHasSuffix(v string) predicate.User {
  291. return predicate.User(sql.FieldHasSuffix(FieldEmail, v))
  292. }
  293. // EmailEqualFold applies the EqualFold predicate on the "email" field.
  294. func EmailEqualFold(v string) predicate.User {
  295. return predicate.User(sql.FieldEqualFold(FieldEmail, v))
  296. }
  297. // EmailContainsFold applies the ContainsFold predicate on the "email" field.
  298. func EmailContainsFold(v string) predicate.User {
  299. return predicate.User(sql.FieldContainsFold(FieldEmail, v))
  300. }
  301. // PasswordHashEQ applies the EQ predicate on the "password_hash" field.
  302. func PasswordHashEQ(v string) predicate.User {
  303. return predicate.User(sql.FieldEQ(FieldPasswordHash, v))
  304. }
  305. // PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
  306. func PasswordHashNEQ(v string) predicate.User {
  307. return predicate.User(sql.FieldNEQ(FieldPasswordHash, v))
  308. }
  309. // PasswordHashIn applies the In predicate on the "password_hash" field.
  310. func PasswordHashIn(vs ...string) predicate.User {
  311. return predicate.User(sql.FieldIn(FieldPasswordHash, vs...))
  312. }
  313. // PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
  314. func PasswordHashNotIn(vs ...string) predicate.User {
  315. return predicate.User(sql.FieldNotIn(FieldPasswordHash, vs...))
  316. }
  317. // PasswordHashGT applies the GT predicate on the "password_hash" field.
  318. func PasswordHashGT(v string) predicate.User {
  319. return predicate.User(sql.FieldGT(FieldPasswordHash, v))
  320. }
  321. // PasswordHashGTE applies the GTE predicate on the "password_hash" field.
  322. func PasswordHashGTE(v string) predicate.User {
  323. return predicate.User(sql.FieldGTE(FieldPasswordHash, v))
  324. }
  325. // PasswordHashLT applies the LT predicate on the "password_hash" field.
  326. func PasswordHashLT(v string) predicate.User {
  327. return predicate.User(sql.FieldLT(FieldPasswordHash, v))
  328. }
  329. // PasswordHashLTE applies the LTE predicate on the "password_hash" field.
  330. func PasswordHashLTE(v string) predicate.User {
  331. return predicate.User(sql.FieldLTE(FieldPasswordHash, v))
  332. }
  333. // PasswordHashContains applies the Contains predicate on the "password_hash" field.
  334. func PasswordHashContains(v string) predicate.User {
  335. return predicate.User(sql.FieldContains(FieldPasswordHash, v))
  336. }
  337. // PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.
  338. func PasswordHashHasPrefix(v string) predicate.User {
  339. return predicate.User(sql.FieldHasPrefix(FieldPasswordHash, v))
  340. }
  341. // PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.
  342. func PasswordHashHasSuffix(v string) predicate.User {
  343. return predicate.User(sql.FieldHasSuffix(FieldPasswordHash, v))
  344. }
  345. // PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.
  346. func PasswordHashEqualFold(v string) predicate.User {
  347. return predicate.User(sql.FieldEqualFold(FieldPasswordHash, v))
  348. }
  349. // PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.
  350. func PasswordHashContainsFold(v string) predicate.User {
  351. return predicate.User(sql.FieldContainsFold(FieldPasswordHash, v))
  352. }
  353. // RoleEQ applies the EQ predicate on the "role" field.
  354. func RoleEQ(v string) predicate.User {
  355. return predicate.User(sql.FieldEQ(FieldRole, v))
  356. }
  357. // RoleNEQ applies the NEQ predicate on the "role" field.
  358. func RoleNEQ(v string) predicate.User {
  359. return predicate.User(sql.FieldNEQ(FieldRole, v))
  360. }
  361. // RoleIn applies the In predicate on the "role" field.
  362. func RoleIn(vs ...string) predicate.User {
  363. return predicate.User(sql.FieldIn(FieldRole, vs...))
  364. }
  365. // RoleNotIn applies the NotIn predicate on the "role" field.
  366. func RoleNotIn(vs ...string) predicate.User {
  367. return predicate.User(sql.FieldNotIn(FieldRole, vs...))
  368. }
  369. // RoleGT applies the GT predicate on the "role" field.
  370. func RoleGT(v string) predicate.User {
  371. return predicate.User(sql.FieldGT(FieldRole, v))
  372. }
  373. // RoleGTE applies the GTE predicate on the "role" field.
  374. func RoleGTE(v string) predicate.User {
  375. return predicate.User(sql.FieldGTE(FieldRole, v))
  376. }
  377. // RoleLT applies the LT predicate on the "role" field.
  378. func RoleLT(v string) predicate.User {
  379. return predicate.User(sql.FieldLT(FieldRole, v))
  380. }
  381. // RoleLTE applies the LTE predicate on the "role" field.
  382. func RoleLTE(v string) predicate.User {
  383. return predicate.User(sql.FieldLTE(FieldRole, v))
  384. }
  385. // RoleContains applies the Contains predicate on the "role" field.
  386. func RoleContains(v string) predicate.User {
  387. return predicate.User(sql.FieldContains(FieldRole, v))
  388. }
  389. // RoleHasPrefix applies the HasPrefix predicate on the "role" field.
  390. func RoleHasPrefix(v string) predicate.User {
  391. return predicate.User(sql.FieldHasPrefix(FieldRole, v))
  392. }
  393. // RoleHasSuffix applies the HasSuffix predicate on the "role" field.
  394. func RoleHasSuffix(v string) predicate.User {
  395. return predicate.User(sql.FieldHasSuffix(FieldRole, v))
  396. }
  397. // RoleEqualFold applies the EqualFold predicate on the "role" field.
  398. func RoleEqualFold(v string) predicate.User {
  399. return predicate.User(sql.FieldEqualFold(FieldRole, v))
  400. }
  401. // RoleContainsFold applies the ContainsFold predicate on the "role" field.
  402. func RoleContainsFold(v string) predicate.User {
  403. return predicate.User(sql.FieldContainsFold(FieldRole, v))
  404. }
  405. // BalanceEQ applies the EQ predicate on the "balance" field.
  406. func BalanceEQ(v float64) predicate.User {
  407. return predicate.User(sql.FieldEQ(FieldBalance, v))
  408. }
  409. // BalanceNEQ applies the NEQ predicate on the "balance" field.
  410. func BalanceNEQ(v float64) predicate.User {
  411. return predicate.User(sql.FieldNEQ(FieldBalance, v))
  412. }
  413. // BalanceIn applies the In predicate on the "balance" field.
  414. func BalanceIn(vs ...float64) predicate.User {
  415. return predicate.User(sql.FieldIn(FieldBalance, vs...))
  416. }
  417. // BalanceNotIn applies the NotIn predicate on the "balance" field.
  418. func BalanceNotIn(vs ...float64) predicate.User {
  419. return predicate.User(sql.FieldNotIn(FieldBalance, vs...))
  420. }
  421. // BalanceGT applies the GT predicate on the "balance" field.
  422. func BalanceGT(v float64) predicate.User {
  423. return predicate.User(sql.FieldGT(FieldBalance, v))
  424. }
  425. // BalanceGTE applies the GTE predicate on the "balance" field.
  426. func BalanceGTE(v float64) predicate.User {
  427. return predicate.User(sql.FieldGTE(FieldBalance, v))
  428. }
  429. // BalanceLT applies the LT predicate on the "balance" field.
  430. func BalanceLT(v float64) predicate.User {
  431. return predicate.User(sql.FieldLT(FieldBalance, v))
  432. }
  433. // BalanceLTE applies the LTE predicate on the "balance" field.
  434. func BalanceLTE(v float64) predicate.User {
  435. return predicate.User(sql.FieldLTE(FieldBalance, v))
  436. }
  437. // FrozenBalanceEQ applies the EQ predicate on the "frozen_balance" field.
  438. func FrozenBalanceEQ(v float64) predicate.User {
  439. return predicate.User(sql.FieldEQ(FieldFrozenBalance, v))
  440. }
  441. // FrozenBalanceNEQ applies the NEQ predicate on the "frozen_balance" field.
  442. func FrozenBalanceNEQ(v float64) predicate.User {
  443. return predicate.User(sql.FieldNEQ(FieldFrozenBalance, v))
  444. }
  445. // FrozenBalanceIn applies the In predicate on the "frozen_balance" field.
  446. func FrozenBalanceIn(vs ...float64) predicate.User {
  447. return predicate.User(sql.FieldIn(FieldFrozenBalance, vs...))
  448. }
  449. // FrozenBalanceNotIn applies the NotIn predicate on the "frozen_balance" field.
  450. func FrozenBalanceNotIn(vs ...float64) predicate.User {
  451. return predicate.User(sql.FieldNotIn(FieldFrozenBalance, vs...))
  452. }
  453. // FrozenBalanceGT applies the GT predicate on the "frozen_balance" field.
  454. func FrozenBalanceGT(v float64) predicate.User {
  455. return predicate.User(sql.FieldGT(FieldFrozenBalance, v))
  456. }
  457. // FrozenBalanceGTE applies the GTE predicate on the "frozen_balance" field.
  458. func FrozenBalanceGTE(v float64) predicate.User {
  459. return predicate.User(sql.FieldGTE(FieldFrozenBalance, v))
  460. }
  461. // FrozenBalanceLT applies the LT predicate on the "frozen_balance" field.
  462. func FrozenBalanceLT(v float64) predicate.User {
  463. return predicate.User(sql.FieldLT(FieldFrozenBalance, v))
  464. }
  465. // FrozenBalanceLTE applies the LTE predicate on the "frozen_balance" field.
  466. func FrozenBalanceLTE(v float64) predicate.User {
  467. return predicate.User(sql.FieldLTE(FieldFrozenBalance, v))
  468. }
  469. // ConcurrencyEQ applies the EQ predicate on the "concurrency" field.
  470. func ConcurrencyEQ(v int) predicate.User {
  471. return predicate.User(sql.FieldEQ(FieldConcurrency, v))
  472. }
  473. // ConcurrencyNEQ applies the NEQ predicate on the "concurrency" field.
  474. func ConcurrencyNEQ(v int) predicate.User {
  475. return predicate.User(sql.FieldNEQ(FieldConcurrency, v))
  476. }
  477. // ConcurrencyIn applies the In predicate on the "concurrency" field.
  478. func ConcurrencyIn(vs ...int) predicate.User {
  479. return predicate.User(sql.FieldIn(FieldConcurrency, vs...))
  480. }
  481. // ConcurrencyNotIn applies the NotIn predicate on the "concurrency" field.
  482. func ConcurrencyNotIn(vs ...int) predicate.User {
  483. return predicate.User(sql.FieldNotIn(FieldConcurrency, vs...))
  484. }
  485. // ConcurrencyGT applies the GT predicate on the "concurrency" field.
  486. func ConcurrencyGT(v int) predicate.User {
  487. return predicate.User(sql.FieldGT(FieldConcurrency, v))
  488. }
  489. // ConcurrencyGTE applies the GTE predicate on the "concurrency" field.
  490. func ConcurrencyGTE(v int) predicate.User {
  491. return predicate.User(sql.FieldGTE(FieldConcurrency, v))
  492. }
  493. // ConcurrencyLT applies the LT predicate on the "concurrency" field.
  494. func ConcurrencyLT(v int) predicate.User {
  495. return predicate.User(sql.FieldLT(FieldConcurrency, v))
  496. }
  497. // ConcurrencyLTE applies the LTE predicate on the "concurrency" field.
  498. func ConcurrencyLTE(v int) predicate.User {
  499. return predicate.User(sql.FieldLTE(FieldConcurrency, v))
  500. }
  501. // StatusEQ applies the EQ predicate on the "status" field.
  502. func StatusEQ(v string) predicate.User {
  503. return predicate.User(sql.FieldEQ(FieldStatus, v))
  504. }
  505. // StatusNEQ applies the NEQ predicate on the "status" field.
  506. func StatusNEQ(v string) predicate.User {
  507. return predicate.User(sql.FieldNEQ(FieldStatus, v))
  508. }
  509. // StatusIn applies the In predicate on the "status" field.
  510. func StatusIn(vs ...string) predicate.User {
  511. return predicate.User(sql.FieldIn(FieldStatus, vs...))
  512. }
  513. // StatusNotIn applies the NotIn predicate on the "status" field.
  514. func StatusNotIn(vs ...string) predicate.User {
  515. return predicate.User(sql.FieldNotIn(FieldStatus, vs...))
  516. }
  517. // StatusGT applies the GT predicate on the "status" field.
  518. func StatusGT(v string) predicate.User {
  519. return predicate.User(sql.FieldGT(FieldStatus, v))
  520. }
  521. // StatusGTE applies the GTE predicate on the "status" field.
  522. func StatusGTE(v string) predicate.User {
  523. return predicate.User(sql.FieldGTE(FieldStatus, v))
  524. }
  525. // StatusLT applies the LT predicate on the "status" field.
  526. func StatusLT(v string) predicate.User {
  527. return predicate.User(sql.FieldLT(FieldStatus, v))
  528. }
  529. // StatusLTE applies the LTE predicate on the "status" field.
  530. func StatusLTE(v string) predicate.User {
  531. return predicate.User(sql.FieldLTE(FieldStatus, v))
  532. }
  533. // StatusContains applies the Contains predicate on the "status" field.
  534. func StatusContains(v string) predicate.User {
  535. return predicate.User(sql.FieldContains(FieldStatus, v))
  536. }
  537. // StatusHasPrefix applies the HasPrefix predicate on the "status" field.
  538. func StatusHasPrefix(v string) predicate.User {
  539. return predicate.User(sql.FieldHasPrefix(FieldStatus, v))
  540. }
  541. // StatusHasSuffix applies the HasSuffix predicate on the "status" field.
  542. func StatusHasSuffix(v string) predicate.User {
  543. return predicate.User(sql.FieldHasSuffix(FieldStatus, v))
  544. }
  545. // StatusEqualFold applies the EqualFold predicate on the "status" field.
  546. func StatusEqualFold(v string) predicate.User {
  547. return predicate.User(sql.FieldEqualFold(FieldStatus, v))
  548. }
  549. // StatusContainsFold applies the ContainsFold predicate on the "status" field.
  550. func StatusContainsFold(v string) predicate.User {
  551. return predicate.User(sql.FieldContainsFold(FieldStatus, v))
  552. }
  553. // UsernameEQ applies the EQ predicate on the "username" field.
  554. func UsernameEQ(v string) predicate.User {
  555. return predicate.User(sql.FieldEQ(FieldUsername, v))
  556. }
  557. // UsernameNEQ applies the NEQ predicate on the "username" field.
  558. func UsernameNEQ(v string) predicate.User {
  559. return predicate.User(sql.FieldNEQ(FieldUsername, v))
  560. }
  561. // UsernameIn applies the In predicate on the "username" field.
  562. func UsernameIn(vs ...string) predicate.User {
  563. return predicate.User(sql.FieldIn(FieldUsername, vs...))
  564. }
  565. // UsernameNotIn applies the NotIn predicate on the "username" field.
  566. func UsernameNotIn(vs ...string) predicate.User {
  567. return predicate.User(sql.FieldNotIn(FieldUsername, vs...))
  568. }
  569. // UsernameGT applies the GT predicate on the "username" field.
  570. func UsernameGT(v string) predicate.User {
  571. return predicate.User(sql.FieldGT(FieldUsername, v))
  572. }
  573. // UsernameGTE applies the GTE predicate on the "username" field.
  574. func UsernameGTE(v string) predicate.User {
  575. return predicate.User(sql.FieldGTE(FieldUsername, v))
  576. }
  577. // UsernameLT applies the LT predicate on the "username" field.
  578. func UsernameLT(v string) predicate.User {
  579. return predicate.User(sql.FieldLT(FieldUsername, v))
  580. }
  581. // UsernameLTE applies the LTE predicate on the "username" field.
  582. func UsernameLTE(v string) predicate.User {
  583. return predicate.User(sql.FieldLTE(FieldUsername, v))
  584. }
  585. // UsernameContains applies the Contains predicate on the "username" field.
  586. func UsernameContains(v string) predicate.User {
  587. return predicate.User(sql.FieldContains(FieldUsername, v))
  588. }
  589. // UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
  590. func UsernameHasPrefix(v string) predicate.User {
  591. return predicate.User(sql.FieldHasPrefix(FieldUsername, v))
  592. }
  593. // UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
  594. func UsernameHasSuffix(v string) predicate.User {
  595. return predicate.User(sql.FieldHasSuffix(FieldUsername, v))
  596. }
  597. // UsernameEqualFold applies the EqualFold predicate on the "username" field.
  598. func UsernameEqualFold(v string) predicate.User {
  599. return predicate.User(sql.FieldEqualFold(FieldUsername, v))
  600. }
  601. // UsernameContainsFold applies the ContainsFold predicate on the "username" field.
  602. func UsernameContainsFold(v string) predicate.User {
  603. return predicate.User(sql.FieldContainsFold(FieldUsername, v))
  604. }
  605. // NotesEQ applies the EQ predicate on the "notes" field.
  606. func NotesEQ(v string) predicate.User {
  607. return predicate.User(sql.FieldEQ(FieldNotes, v))
  608. }
  609. // NotesNEQ applies the NEQ predicate on the "notes" field.
  610. func NotesNEQ(v string) predicate.User {
  611. return predicate.User(sql.FieldNEQ(FieldNotes, v))
  612. }
  613. // NotesIn applies the In predicate on the "notes" field.
  614. func NotesIn(vs ...string) predicate.User {
  615. return predicate.User(sql.FieldIn(FieldNotes, vs...))
  616. }
  617. // NotesNotIn applies the NotIn predicate on the "notes" field.
  618. func NotesNotIn(vs ...string) predicate.User {
  619. return predicate.User(sql.FieldNotIn(FieldNotes, vs...))
  620. }
  621. // NotesGT applies the GT predicate on the "notes" field.
  622. func NotesGT(v string) predicate.User {
  623. return predicate.User(sql.FieldGT(FieldNotes, v))
  624. }
  625. // NotesGTE applies the GTE predicate on the "notes" field.
  626. func NotesGTE(v string) predicate.User {
  627. return predicate.User(sql.FieldGTE(FieldNotes, v))
  628. }
  629. // NotesLT applies the LT predicate on the "notes" field.
  630. func NotesLT(v string) predicate.User {
  631. return predicate.User(sql.FieldLT(FieldNotes, v))
  632. }
  633. // NotesLTE applies the LTE predicate on the "notes" field.
  634. func NotesLTE(v string) predicate.User {
  635. return predicate.User(sql.FieldLTE(FieldNotes, v))
  636. }
  637. // NotesContains applies the Contains predicate on the "notes" field.
  638. func NotesContains(v string) predicate.User {
  639. return predicate.User(sql.FieldContains(FieldNotes, v))
  640. }
  641. // NotesHasPrefix applies the HasPrefix predicate on the "notes" field.
  642. func NotesHasPrefix(v string) predicate.User {
  643. return predicate.User(sql.FieldHasPrefix(FieldNotes, v))
  644. }
  645. // NotesHasSuffix applies the HasSuffix predicate on the "notes" field.
  646. func NotesHasSuffix(v string) predicate.User {
  647. return predicate.User(sql.FieldHasSuffix(FieldNotes, v))
  648. }
  649. // NotesEqualFold applies the EqualFold predicate on the "notes" field.
  650. func NotesEqualFold(v string) predicate.User {
  651. return predicate.User(sql.FieldEqualFold(FieldNotes, v))
  652. }
  653. // NotesContainsFold applies the ContainsFold predicate on the "notes" field.
  654. func NotesContainsFold(v string) predicate.User {
  655. return predicate.User(sql.FieldContainsFold(FieldNotes, v))
  656. }
  657. // TotpSecretEncryptedEQ applies the EQ predicate on the "totp_secret_encrypted" field.
  658. func TotpSecretEncryptedEQ(v string) predicate.User {
  659. return predicate.User(sql.FieldEQ(FieldTotpSecretEncrypted, v))
  660. }
  661. // TotpSecretEncryptedNEQ applies the NEQ predicate on the "totp_secret_encrypted" field.
  662. func TotpSecretEncryptedNEQ(v string) predicate.User {
  663. return predicate.User(sql.FieldNEQ(FieldTotpSecretEncrypted, v))
  664. }
  665. // TotpSecretEncryptedIn applies the In predicate on the "totp_secret_encrypted" field.
  666. func TotpSecretEncryptedIn(vs ...string) predicate.User {
  667. return predicate.User(sql.FieldIn(FieldTotpSecretEncrypted, vs...))
  668. }
  669. // TotpSecretEncryptedNotIn applies the NotIn predicate on the "totp_secret_encrypted" field.
  670. func TotpSecretEncryptedNotIn(vs ...string) predicate.User {
  671. return predicate.User(sql.FieldNotIn(FieldTotpSecretEncrypted, vs...))
  672. }
  673. // TotpSecretEncryptedGT applies the GT predicate on the "totp_secret_encrypted" field.
  674. func TotpSecretEncryptedGT(v string) predicate.User {
  675. return predicate.User(sql.FieldGT(FieldTotpSecretEncrypted, v))
  676. }
  677. // TotpSecretEncryptedGTE applies the GTE predicate on the "totp_secret_encrypted" field.
  678. func TotpSecretEncryptedGTE(v string) predicate.User {
  679. return predicate.User(sql.FieldGTE(FieldTotpSecretEncrypted, v))
  680. }
  681. // TotpSecretEncryptedLT applies the LT predicate on the "totp_secret_encrypted" field.
  682. func TotpSecretEncryptedLT(v string) predicate.User {
  683. return predicate.User(sql.FieldLT(FieldTotpSecretEncrypted, v))
  684. }
  685. // TotpSecretEncryptedLTE applies the LTE predicate on the "totp_secret_encrypted" field.
  686. func TotpSecretEncryptedLTE(v string) predicate.User {
  687. return predicate.User(sql.FieldLTE(FieldTotpSecretEncrypted, v))
  688. }
  689. // TotpSecretEncryptedContains applies the Contains predicate on the "totp_secret_encrypted" field.
  690. func TotpSecretEncryptedContains(v string) predicate.User {
  691. return predicate.User(sql.FieldContains(FieldTotpSecretEncrypted, v))
  692. }
  693. // TotpSecretEncryptedHasPrefix applies the HasPrefix predicate on the "totp_secret_encrypted" field.
  694. func TotpSecretEncryptedHasPrefix(v string) predicate.User {
  695. return predicate.User(sql.FieldHasPrefix(FieldTotpSecretEncrypted, v))
  696. }
  697. // TotpSecretEncryptedHasSuffix applies the HasSuffix predicate on the "totp_secret_encrypted" field.
  698. func TotpSecretEncryptedHasSuffix(v string) predicate.User {
  699. return predicate.User(sql.FieldHasSuffix(FieldTotpSecretEncrypted, v))
  700. }
  701. // TotpSecretEncryptedIsNil applies the IsNil predicate on the "totp_secret_encrypted" field.
  702. func TotpSecretEncryptedIsNil() predicate.User {
  703. return predicate.User(sql.FieldIsNull(FieldTotpSecretEncrypted))
  704. }
  705. // TotpSecretEncryptedNotNil applies the NotNil predicate on the "totp_secret_encrypted" field.
  706. func TotpSecretEncryptedNotNil() predicate.User {
  707. return predicate.User(sql.FieldNotNull(FieldTotpSecretEncrypted))
  708. }
  709. // TotpSecretEncryptedEqualFold applies the EqualFold predicate on the "totp_secret_encrypted" field.
  710. func TotpSecretEncryptedEqualFold(v string) predicate.User {
  711. return predicate.User(sql.FieldEqualFold(FieldTotpSecretEncrypted, v))
  712. }
  713. // TotpSecretEncryptedContainsFold applies the ContainsFold predicate on the "totp_secret_encrypted" field.
  714. func TotpSecretEncryptedContainsFold(v string) predicate.User {
  715. return predicate.User(sql.FieldContainsFold(FieldTotpSecretEncrypted, v))
  716. }
  717. // TotpEnabledEQ applies the EQ predicate on the "totp_enabled" field.
  718. func TotpEnabledEQ(v bool) predicate.User {
  719. return predicate.User(sql.FieldEQ(FieldTotpEnabled, v))
  720. }
  721. // TotpEnabledNEQ applies the NEQ predicate on the "totp_enabled" field.
  722. func TotpEnabledNEQ(v bool) predicate.User {
  723. return predicate.User(sql.FieldNEQ(FieldTotpEnabled, v))
  724. }
  725. // TotpEnabledAtEQ applies the EQ predicate on the "totp_enabled_at" field.
  726. func TotpEnabledAtEQ(v time.Time) predicate.User {
  727. return predicate.User(sql.FieldEQ(FieldTotpEnabledAt, v))
  728. }
  729. // TotpEnabledAtNEQ applies the NEQ predicate on the "totp_enabled_at" field.
  730. func TotpEnabledAtNEQ(v time.Time) predicate.User {
  731. return predicate.User(sql.FieldNEQ(FieldTotpEnabledAt, v))
  732. }
  733. // TotpEnabledAtIn applies the In predicate on the "totp_enabled_at" field.
  734. func TotpEnabledAtIn(vs ...time.Time) predicate.User {
  735. return predicate.User(sql.FieldIn(FieldTotpEnabledAt, vs...))
  736. }
  737. // TotpEnabledAtNotIn applies the NotIn predicate on the "totp_enabled_at" field.
  738. func TotpEnabledAtNotIn(vs ...time.Time) predicate.User {
  739. return predicate.User(sql.FieldNotIn(FieldTotpEnabledAt, vs...))
  740. }
  741. // TotpEnabledAtGT applies the GT predicate on the "totp_enabled_at" field.
  742. func TotpEnabledAtGT(v time.Time) predicate.User {
  743. return predicate.User(sql.FieldGT(FieldTotpEnabledAt, v))
  744. }
  745. // TotpEnabledAtGTE applies the GTE predicate on the "totp_enabled_at" field.
  746. func TotpEnabledAtGTE(v time.Time) predicate.User {
  747. return predicate.User(sql.FieldGTE(FieldTotpEnabledAt, v))
  748. }
  749. // TotpEnabledAtLT applies the LT predicate on the "totp_enabled_at" field.
  750. func TotpEnabledAtLT(v time.Time) predicate.User {
  751. return predicate.User(sql.FieldLT(FieldTotpEnabledAt, v))
  752. }
  753. // TotpEnabledAtLTE applies the LTE predicate on the "totp_enabled_at" field.
  754. func TotpEnabledAtLTE(v time.Time) predicate.User {
  755. return predicate.User(sql.FieldLTE(FieldTotpEnabledAt, v))
  756. }
  757. // TotpEnabledAtIsNil applies the IsNil predicate on the "totp_enabled_at" field.
  758. func TotpEnabledAtIsNil() predicate.User {
  759. return predicate.User(sql.FieldIsNull(FieldTotpEnabledAt))
  760. }
  761. // TotpEnabledAtNotNil applies the NotNil predicate on the "totp_enabled_at" field.
  762. func TotpEnabledAtNotNil() predicate.User {
  763. return predicate.User(sql.FieldNotNull(FieldTotpEnabledAt))
  764. }
  765. // SignupSourceEQ applies the EQ predicate on the "signup_source" field.
  766. func SignupSourceEQ(v string) predicate.User {
  767. return predicate.User(sql.FieldEQ(FieldSignupSource, v))
  768. }
  769. // SignupSourceNEQ applies the NEQ predicate on the "signup_source" field.
  770. func SignupSourceNEQ(v string) predicate.User {
  771. return predicate.User(sql.FieldNEQ(FieldSignupSource, v))
  772. }
  773. // SignupSourceIn applies the In predicate on the "signup_source" field.
  774. func SignupSourceIn(vs ...string) predicate.User {
  775. return predicate.User(sql.FieldIn(FieldSignupSource, vs...))
  776. }
  777. // SignupSourceNotIn applies the NotIn predicate on the "signup_source" field.
  778. func SignupSourceNotIn(vs ...string) predicate.User {
  779. return predicate.User(sql.FieldNotIn(FieldSignupSource, vs...))
  780. }
  781. // SignupSourceGT applies the GT predicate on the "signup_source" field.
  782. func SignupSourceGT(v string) predicate.User {
  783. return predicate.User(sql.FieldGT(FieldSignupSource, v))
  784. }
  785. // SignupSourceGTE applies the GTE predicate on the "signup_source" field.
  786. func SignupSourceGTE(v string) predicate.User {
  787. return predicate.User(sql.FieldGTE(FieldSignupSource, v))
  788. }
  789. // SignupSourceLT applies the LT predicate on the "signup_source" field.
  790. func SignupSourceLT(v string) predicate.User {
  791. return predicate.User(sql.FieldLT(FieldSignupSource, v))
  792. }
  793. // SignupSourceLTE applies the LTE predicate on the "signup_source" field.
  794. func SignupSourceLTE(v string) predicate.User {
  795. return predicate.User(sql.FieldLTE(FieldSignupSource, v))
  796. }
  797. // SignupSourceContains applies the Contains predicate on the "signup_source" field.
  798. func SignupSourceContains(v string) predicate.User {
  799. return predicate.User(sql.FieldContains(FieldSignupSource, v))
  800. }
  801. // SignupSourceHasPrefix applies the HasPrefix predicate on the "signup_source" field.
  802. func SignupSourceHasPrefix(v string) predicate.User {
  803. return predicate.User(sql.FieldHasPrefix(FieldSignupSource, v))
  804. }
  805. // SignupSourceHasSuffix applies the HasSuffix predicate on the "signup_source" field.
  806. func SignupSourceHasSuffix(v string) predicate.User {
  807. return predicate.User(sql.FieldHasSuffix(FieldSignupSource, v))
  808. }
  809. // SignupSourceEqualFold applies the EqualFold predicate on the "signup_source" field.
  810. func SignupSourceEqualFold(v string) predicate.User {
  811. return predicate.User(sql.FieldEqualFold(FieldSignupSource, v))
  812. }
  813. // SignupSourceContainsFold applies the ContainsFold predicate on the "signup_source" field.
  814. func SignupSourceContainsFold(v string) predicate.User {
  815. return predicate.User(sql.FieldContainsFold(FieldSignupSource, v))
  816. }
  817. // LastLoginAtEQ applies the EQ predicate on the "last_login_at" field.
  818. func LastLoginAtEQ(v time.Time) predicate.User {
  819. return predicate.User(sql.FieldEQ(FieldLastLoginAt, v))
  820. }
  821. // LastLoginAtNEQ applies the NEQ predicate on the "last_login_at" field.
  822. func LastLoginAtNEQ(v time.Time) predicate.User {
  823. return predicate.User(sql.FieldNEQ(FieldLastLoginAt, v))
  824. }
  825. // LastLoginAtIn applies the In predicate on the "last_login_at" field.
  826. func LastLoginAtIn(vs ...time.Time) predicate.User {
  827. return predicate.User(sql.FieldIn(FieldLastLoginAt, vs...))
  828. }
  829. // LastLoginAtNotIn applies the NotIn predicate on the "last_login_at" field.
  830. func LastLoginAtNotIn(vs ...time.Time) predicate.User {
  831. return predicate.User(sql.FieldNotIn(FieldLastLoginAt, vs...))
  832. }
  833. // LastLoginAtGT applies the GT predicate on the "last_login_at" field.
  834. func LastLoginAtGT(v time.Time) predicate.User {
  835. return predicate.User(sql.FieldGT(FieldLastLoginAt, v))
  836. }
  837. // LastLoginAtGTE applies the GTE predicate on the "last_login_at" field.
  838. func LastLoginAtGTE(v time.Time) predicate.User {
  839. return predicate.User(sql.FieldGTE(FieldLastLoginAt, v))
  840. }
  841. // LastLoginAtLT applies the LT predicate on the "last_login_at" field.
  842. func LastLoginAtLT(v time.Time) predicate.User {
  843. return predicate.User(sql.FieldLT(FieldLastLoginAt, v))
  844. }
  845. // LastLoginAtLTE applies the LTE predicate on the "last_login_at" field.
  846. func LastLoginAtLTE(v time.Time) predicate.User {
  847. return predicate.User(sql.FieldLTE(FieldLastLoginAt, v))
  848. }
  849. // LastLoginAtIsNil applies the IsNil predicate on the "last_login_at" field.
  850. func LastLoginAtIsNil() predicate.User {
  851. return predicate.User(sql.FieldIsNull(FieldLastLoginAt))
  852. }
  853. // LastLoginAtNotNil applies the NotNil predicate on the "last_login_at" field.
  854. func LastLoginAtNotNil() predicate.User {
  855. return predicate.User(sql.FieldNotNull(FieldLastLoginAt))
  856. }
  857. // LastActiveAtEQ applies the EQ predicate on the "last_active_at" field.
  858. func LastActiveAtEQ(v time.Time) predicate.User {
  859. return predicate.User(sql.FieldEQ(FieldLastActiveAt, v))
  860. }
  861. // LastActiveAtNEQ applies the NEQ predicate on the "last_active_at" field.
  862. func LastActiveAtNEQ(v time.Time) predicate.User {
  863. return predicate.User(sql.FieldNEQ(FieldLastActiveAt, v))
  864. }
  865. // LastActiveAtIn applies the In predicate on the "last_active_at" field.
  866. func LastActiveAtIn(vs ...time.Time) predicate.User {
  867. return predicate.User(sql.FieldIn(FieldLastActiveAt, vs...))
  868. }
  869. // LastActiveAtNotIn applies the NotIn predicate on the "last_active_at" field.
  870. func LastActiveAtNotIn(vs ...time.Time) predicate.User {
  871. return predicate.User(sql.FieldNotIn(FieldLastActiveAt, vs...))
  872. }
  873. // LastActiveAtGT applies the GT predicate on the "last_active_at" field.
  874. func LastActiveAtGT(v time.Time) predicate.User {
  875. return predicate.User(sql.FieldGT(FieldLastActiveAt, v))
  876. }
  877. // LastActiveAtGTE applies the GTE predicate on the "last_active_at" field.
  878. func LastActiveAtGTE(v time.Time) predicate.User {
  879. return predicate.User(sql.FieldGTE(FieldLastActiveAt, v))
  880. }
  881. // LastActiveAtLT applies the LT predicate on the "last_active_at" field.
  882. func LastActiveAtLT(v time.Time) predicate.User {
  883. return predicate.User(sql.FieldLT(FieldLastActiveAt, v))
  884. }
  885. // LastActiveAtLTE applies the LTE predicate on the "last_active_at" field.
  886. func LastActiveAtLTE(v time.Time) predicate.User {
  887. return predicate.User(sql.FieldLTE(FieldLastActiveAt, v))
  888. }
  889. // LastActiveAtIsNil applies the IsNil predicate on the "last_active_at" field.
  890. func LastActiveAtIsNil() predicate.User {
  891. return predicate.User(sql.FieldIsNull(FieldLastActiveAt))
  892. }
  893. // LastActiveAtNotNil applies the NotNil predicate on the "last_active_at" field.
  894. func LastActiveAtNotNil() predicate.User {
  895. return predicate.User(sql.FieldNotNull(FieldLastActiveAt))
  896. }
  897. // RestrictPublicGroupsEQ applies the EQ predicate on the "restrict_public_groups" field.
  898. func RestrictPublicGroupsEQ(v bool) predicate.User {
  899. return predicate.User(sql.FieldEQ(FieldRestrictPublicGroups, v))
  900. }
  901. // RestrictPublicGroupsNEQ applies the NEQ predicate on the "restrict_public_groups" field.
  902. func RestrictPublicGroupsNEQ(v bool) predicate.User {
  903. return predicate.User(sql.FieldNEQ(FieldRestrictPublicGroups, v))
  904. }
  905. // BalanceNotifyEnabledEQ applies the EQ predicate on the "balance_notify_enabled" field.
  906. func BalanceNotifyEnabledEQ(v bool) predicate.User {
  907. return predicate.User(sql.FieldEQ(FieldBalanceNotifyEnabled, v))
  908. }
  909. // BalanceNotifyEnabledNEQ applies the NEQ predicate on the "balance_notify_enabled" field.
  910. func BalanceNotifyEnabledNEQ(v bool) predicate.User {
  911. return predicate.User(sql.FieldNEQ(FieldBalanceNotifyEnabled, v))
  912. }
  913. // BalanceNotifyThresholdTypeEQ applies the EQ predicate on the "balance_notify_threshold_type" field.
  914. func BalanceNotifyThresholdTypeEQ(v string) predicate.User {
  915. return predicate.User(sql.FieldEQ(FieldBalanceNotifyThresholdType, v))
  916. }
  917. // BalanceNotifyThresholdTypeNEQ applies the NEQ predicate on the "balance_notify_threshold_type" field.
  918. func BalanceNotifyThresholdTypeNEQ(v string) predicate.User {
  919. return predicate.User(sql.FieldNEQ(FieldBalanceNotifyThresholdType, v))
  920. }
  921. // BalanceNotifyThresholdTypeIn applies the In predicate on the "balance_notify_threshold_type" field.
  922. func BalanceNotifyThresholdTypeIn(vs ...string) predicate.User {
  923. return predicate.User(sql.FieldIn(FieldBalanceNotifyThresholdType, vs...))
  924. }
  925. // BalanceNotifyThresholdTypeNotIn applies the NotIn predicate on the "balance_notify_threshold_type" field.
  926. func BalanceNotifyThresholdTypeNotIn(vs ...string) predicate.User {
  927. return predicate.User(sql.FieldNotIn(FieldBalanceNotifyThresholdType, vs...))
  928. }
  929. // BalanceNotifyThresholdTypeGT applies the GT predicate on the "balance_notify_threshold_type" field.
  930. func BalanceNotifyThresholdTypeGT(v string) predicate.User {
  931. return predicate.User(sql.FieldGT(FieldBalanceNotifyThresholdType, v))
  932. }
  933. // BalanceNotifyThresholdTypeGTE applies the GTE predicate on the "balance_notify_threshold_type" field.
  934. func BalanceNotifyThresholdTypeGTE(v string) predicate.User {
  935. return predicate.User(sql.FieldGTE(FieldBalanceNotifyThresholdType, v))
  936. }
  937. // BalanceNotifyThresholdTypeLT applies the LT predicate on the "balance_notify_threshold_type" field.
  938. func BalanceNotifyThresholdTypeLT(v string) predicate.User {
  939. return predicate.User(sql.FieldLT(FieldBalanceNotifyThresholdType, v))
  940. }
  941. // BalanceNotifyThresholdTypeLTE applies the LTE predicate on the "balance_notify_threshold_type" field.
  942. func BalanceNotifyThresholdTypeLTE(v string) predicate.User {
  943. return predicate.User(sql.FieldLTE(FieldBalanceNotifyThresholdType, v))
  944. }
  945. // BalanceNotifyThresholdTypeContains applies the Contains predicate on the "balance_notify_threshold_type" field.
  946. func BalanceNotifyThresholdTypeContains(v string) predicate.User {
  947. return predicate.User(sql.FieldContains(FieldBalanceNotifyThresholdType, v))
  948. }
  949. // BalanceNotifyThresholdTypeHasPrefix applies the HasPrefix predicate on the "balance_notify_threshold_type" field.
  950. func BalanceNotifyThresholdTypeHasPrefix(v string) predicate.User {
  951. return predicate.User(sql.FieldHasPrefix(FieldBalanceNotifyThresholdType, v))
  952. }
  953. // BalanceNotifyThresholdTypeHasSuffix applies the HasSuffix predicate on the "balance_notify_threshold_type" field.
  954. func BalanceNotifyThresholdTypeHasSuffix(v string) predicate.User {
  955. return predicate.User(sql.FieldHasSuffix(FieldBalanceNotifyThresholdType, v))
  956. }
  957. // BalanceNotifyThresholdTypeEqualFold applies the EqualFold predicate on the "balance_notify_threshold_type" field.
  958. func BalanceNotifyThresholdTypeEqualFold(v string) predicate.User {
  959. return predicate.User(sql.FieldEqualFold(FieldBalanceNotifyThresholdType, v))
  960. }
  961. // BalanceNotifyThresholdTypeContainsFold applies the ContainsFold predicate on the "balance_notify_threshold_type" field.
  962. func BalanceNotifyThresholdTypeContainsFold(v string) predicate.User {
  963. return predicate.User(sql.FieldContainsFold(FieldBalanceNotifyThresholdType, v))
  964. }
  965. // BalanceNotifyThresholdEQ applies the EQ predicate on the "balance_notify_threshold" field.
  966. func BalanceNotifyThresholdEQ(v float64) predicate.User {
  967. return predicate.User(sql.FieldEQ(FieldBalanceNotifyThreshold, v))
  968. }
  969. // BalanceNotifyThresholdNEQ applies the NEQ predicate on the "balance_notify_threshold" field.
  970. func BalanceNotifyThresholdNEQ(v float64) predicate.User {
  971. return predicate.User(sql.FieldNEQ(FieldBalanceNotifyThreshold, v))
  972. }
  973. // BalanceNotifyThresholdIn applies the In predicate on the "balance_notify_threshold" field.
  974. func BalanceNotifyThresholdIn(vs ...float64) predicate.User {
  975. return predicate.User(sql.FieldIn(FieldBalanceNotifyThreshold, vs...))
  976. }
  977. // BalanceNotifyThresholdNotIn applies the NotIn predicate on the "balance_notify_threshold" field.
  978. func BalanceNotifyThresholdNotIn(vs ...float64) predicate.User {
  979. return predicate.User(sql.FieldNotIn(FieldBalanceNotifyThreshold, vs...))
  980. }
  981. // BalanceNotifyThresholdGT applies the GT predicate on the "balance_notify_threshold" field.
  982. func BalanceNotifyThresholdGT(v float64) predicate.User {
  983. return predicate.User(sql.FieldGT(FieldBalanceNotifyThreshold, v))
  984. }
  985. // BalanceNotifyThresholdGTE applies the GTE predicate on the "balance_notify_threshold" field.
  986. func BalanceNotifyThresholdGTE(v float64) predicate.User {
  987. return predicate.User(sql.FieldGTE(FieldBalanceNotifyThreshold, v))
  988. }
  989. // BalanceNotifyThresholdLT applies the LT predicate on the "balance_notify_threshold" field.
  990. func BalanceNotifyThresholdLT(v float64) predicate.User {
  991. return predicate.User(sql.FieldLT(FieldBalanceNotifyThreshold, v))
  992. }
  993. // BalanceNotifyThresholdLTE applies the LTE predicate on the "balance_notify_threshold" field.
  994. func BalanceNotifyThresholdLTE(v float64) predicate.User {
  995. return predicate.User(sql.FieldLTE(FieldBalanceNotifyThreshold, v))
  996. }
  997. // BalanceNotifyThresholdIsNil applies the IsNil predicate on the "balance_notify_threshold" field.
  998. func BalanceNotifyThresholdIsNil() predicate.User {
  999. return predicate.User(sql.FieldIsNull(FieldBalanceNotifyThreshold))
  1000. }
  1001. // BalanceNotifyThresholdNotNil applies the NotNil predicate on the "balance_notify_threshold" field.
  1002. func BalanceNotifyThresholdNotNil() predicate.User {
  1003. return predicate.User(sql.FieldNotNull(FieldBalanceNotifyThreshold))
  1004. }
  1005. // BalanceNotifyExtraEmailsEQ applies the EQ predicate on the "balance_notify_extra_emails" field.
  1006. func BalanceNotifyExtraEmailsEQ(v string) predicate.User {
  1007. return predicate.User(sql.FieldEQ(FieldBalanceNotifyExtraEmails, v))
  1008. }
  1009. // BalanceNotifyExtraEmailsNEQ applies the NEQ predicate on the "balance_notify_extra_emails" field.
  1010. func BalanceNotifyExtraEmailsNEQ(v string) predicate.User {
  1011. return predicate.User(sql.FieldNEQ(FieldBalanceNotifyExtraEmails, v))
  1012. }
  1013. // BalanceNotifyExtraEmailsIn applies the In predicate on the "balance_notify_extra_emails" field.
  1014. func BalanceNotifyExtraEmailsIn(vs ...string) predicate.User {
  1015. return predicate.User(sql.FieldIn(FieldBalanceNotifyExtraEmails, vs...))
  1016. }
  1017. // BalanceNotifyExtraEmailsNotIn applies the NotIn predicate on the "balance_notify_extra_emails" field.
  1018. func BalanceNotifyExtraEmailsNotIn(vs ...string) predicate.User {
  1019. return predicate.User(sql.FieldNotIn(FieldBalanceNotifyExtraEmails, vs...))
  1020. }
  1021. // BalanceNotifyExtraEmailsGT applies the GT predicate on the "balance_notify_extra_emails" field.
  1022. func BalanceNotifyExtraEmailsGT(v string) predicate.User {
  1023. return predicate.User(sql.FieldGT(FieldBalanceNotifyExtraEmails, v))
  1024. }
  1025. // BalanceNotifyExtraEmailsGTE applies the GTE predicate on the "balance_notify_extra_emails" field.
  1026. func BalanceNotifyExtraEmailsGTE(v string) predicate.User {
  1027. return predicate.User(sql.FieldGTE(FieldBalanceNotifyExtraEmails, v))
  1028. }
  1029. // BalanceNotifyExtraEmailsLT applies the LT predicate on the "balance_notify_extra_emails" field.
  1030. func BalanceNotifyExtraEmailsLT(v string) predicate.User {
  1031. return predicate.User(sql.FieldLT(FieldBalanceNotifyExtraEmails, v))
  1032. }
  1033. // BalanceNotifyExtraEmailsLTE applies the LTE predicate on the "balance_notify_extra_emails" field.
  1034. func BalanceNotifyExtraEmailsLTE(v string) predicate.User {
  1035. return predicate.User(sql.FieldLTE(FieldBalanceNotifyExtraEmails, v))
  1036. }
  1037. // BalanceNotifyExtraEmailsContains applies the Contains predicate on the "balance_notify_extra_emails" field.
  1038. func BalanceNotifyExtraEmailsContains(v string) predicate.User {
  1039. return predicate.User(sql.FieldContains(FieldBalanceNotifyExtraEmails, v))
  1040. }
  1041. // BalanceNotifyExtraEmailsHasPrefix applies the HasPrefix predicate on the "balance_notify_extra_emails" field.
  1042. func BalanceNotifyExtraEmailsHasPrefix(v string) predicate.User {
  1043. return predicate.User(sql.FieldHasPrefix(FieldBalanceNotifyExtraEmails, v))
  1044. }
  1045. // BalanceNotifyExtraEmailsHasSuffix applies the HasSuffix predicate on the "balance_notify_extra_emails" field.
  1046. func BalanceNotifyExtraEmailsHasSuffix(v string) predicate.User {
  1047. return predicate.User(sql.FieldHasSuffix(FieldBalanceNotifyExtraEmails, v))
  1048. }
  1049. // BalanceNotifyExtraEmailsEqualFold applies the EqualFold predicate on the "balance_notify_extra_emails" field.
  1050. func BalanceNotifyExtraEmailsEqualFold(v string) predicate.User {
  1051. return predicate.User(sql.FieldEqualFold(FieldBalanceNotifyExtraEmails, v))
  1052. }
  1053. // BalanceNotifyExtraEmailsContainsFold applies the ContainsFold predicate on the "balance_notify_extra_emails" field.
  1054. func BalanceNotifyExtraEmailsContainsFold(v string) predicate.User {
  1055. return predicate.User(sql.FieldContainsFold(FieldBalanceNotifyExtraEmails, v))
  1056. }
  1057. // TotalRechargedEQ applies the EQ predicate on the "total_recharged" field.
  1058. func TotalRechargedEQ(v float64) predicate.User {
  1059. return predicate.User(sql.FieldEQ(FieldTotalRecharged, v))
  1060. }
  1061. // TotalRechargedNEQ applies the NEQ predicate on the "total_recharged" field.
  1062. func TotalRechargedNEQ(v float64) predicate.User {
  1063. return predicate.User(sql.FieldNEQ(FieldTotalRecharged, v))
  1064. }
  1065. // TotalRechargedIn applies the In predicate on the "total_recharged" field.
  1066. func TotalRechargedIn(vs ...float64) predicate.User {
  1067. return predicate.User(sql.FieldIn(FieldTotalRecharged, vs...))
  1068. }
  1069. // TotalRechargedNotIn applies the NotIn predicate on the "total_recharged" field.
  1070. func TotalRechargedNotIn(vs ...float64) predicate.User {
  1071. return predicate.User(sql.FieldNotIn(FieldTotalRecharged, vs...))
  1072. }
  1073. // TotalRechargedGT applies the GT predicate on the "total_recharged" field.
  1074. func TotalRechargedGT(v float64) predicate.User {
  1075. return predicate.User(sql.FieldGT(FieldTotalRecharged, v))
  1076. }
  1077. // TotalRechargedGTE applies the GTE predicate on the "total_recharged" field.
  1078. func TotalRechargedGTE(v float64) predicate.User {
  1079. return predicate.User(sql.FieldGTE(FieldTotalRecharged, v))
  1080. }
  1081. // TotalRechargedLT applies the LT predicate on the "total_recharged" field.
  1082. func TotalRechargedLT(v float64) predicate.User {
  1083. return predicate.User(sql.FieldLT(FieldTotalRecharged, v))
  1084. }
  1085. // TotalRechargedLTE applies the LTE predicate on the "total_recharged" field.
  1086. func TotalRechargedLTE(v float64) predicate.User {
  1087. return predicate.User(sql.FieldLTE(FieldTotalRecharged, v))
  1088. }
  1089. // RpmLimitEQ applies the EQ predicate on the "rpm_limit" field.
  1090. func RpmLimitEQ(v int) predicate.User {
  1091. return predicate.User(sql.FieldEQ(FieldRpmLimit, v))
  1092. }
  1093. // RpmLimitNEQ applies the NEQ predicate on the "rpm_limit" field.
  1094. func RpmLimitNEQ(v int) predicate.User {
  1095. return predicate.User(sql.FieldNEQ(FieldRpmLimit, v))
  1096. }
  1097. // RpmLimitIn applies the In predicate on the "rpm_limit" field.
  1098. func RpmLimitIn(vs ...int) predicate.User {
  1099. return predicate.User(sql.FieldIn(FieldRpmLimit, vs...))
  1100. }
  1101. // RpmLimitNotIn applies the NotIn predicate on the "rpm_limit" field.
  1102. func RpmLimitNotIn(vs ...int) predicate.User {
  1103. return predicate.User(sql.FieldNotIn(FieldRpmLimit, vs...))
  1104. }
  1105. // RpmLimitGT applies the GT predicate on the "rpm_limit" field.
  1106. func RpmLimitGT(v int) predicate.User {
  1107. return predicate.User(sql.FieldGT(FieldRpmLimit, v))
  1108. }
  1109. // RpmLimitGTE applies the GTE predicate on the "rpm_limit" field.
  1110. func RpmLimitGTE(v int) predicate.User {
  1111. return predicate.User(sql.FieldGTE(FieldRpmLimit, v))
  1112. }
  1113. // RpmLimitLT applies the LT predicate on the "rpm_limit" field.
  1114. func RpmLimitLT(v int) predicate.User {
  1115. return predicate.User(sql.FieldLT(FieldRpmLimit, v))
  1116. }
  1117. // RpmLimitLTE applies the LTE predicate on the "rpm_limit" field.
  1118. func RpmLimitLTE(v int) predicate.User {
  1119. return predicate.User(sql.FieldLTE(FieldRpmLimit, v))
  1120. }
  1121. // HasAPIKeys applies the HasEdge predicate on the "api_keys" edge.
  1122. func HasAPIKeys() predicate.User {
  1123. return predicate.User(func(s *sql.Selector) {
  1124. step := sqlgraph.NewStep(
  1125. sqlgraph.From(Table, FieldID),
  1126. sqlgraph.Edge(sqlgraph.O2M, false, APIKeysTable, APIKeysColumn),
  1127. )
  1128. sqlgraph.HasNeighbors(s, step)
  1129. })
  1130. }
  1131. // HasAPIKeysWith applies the HasEdge predicate on the "api_keys" edge with a given conditions (other predicates).
  1132. func HasAPIKeysWith(preds ...predicate.APIKey) predicate.User {
  1133. return predicate.User(func(s *sql.Selector) {
  1134. step := newAPIKeysStep()
  1135. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1136. for _, p := range preds {
  1137. p(s)
  1138. }
  1139. })
  1140. })
  1141. }
  1142. // HasRedeemCodes applies the HasEdge predicate on the "redeem_codes" edge.
  1143. func HasRedeemCodes() predicate.User {
  1144. return predicate.User(func(s *sql.Selector) {
  1145. step := sqlgraph.NewStep(
  1146. sqlgraph.From(Table, FieldID),
  1147. sqlgraph.Edge(sqlgraph.O2M, false, RedeemCodesTable, RedeemCodesColumn),
  1148. )
  1149. sqlgraph.HasNeighbors(s, step)
  1150. })
  1151. }
  1152. // HasRedeemCodesWith applies the HasEdge predicate on the "redeem_codes" edge with a given conditions (other predicates).
  1153. func HasRedeemCodesWith(preds ...predicate.RedeemCode) predicate.User {
  1154. return predicate.User(func(s *sql.Selector) {
  1155. step := newRedeemCodesStep()
  1156. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1157. for _, p := range preds {
  1158. p(s)
  1159. }
  1160. })
  1161. })
  1162. }
  1163. // HasSubscriptions applies the HasEdge predicate on the "subscriptions" edge.
  1164. func HasSubscriptions() predicate.User {
  1165. return predicate.User(func(s *sql.Selector) {
  1166. step := sqlgraph.NewStep(
  1167. sqlgraph.From(Table, FieldID),
  1168. sqlgraph.Edge(sqlgraph.O2M, false, SubscriptionsTable, SubscriptionsColumn),
  1169. )
  1170. sqlgraph.HasNeighbors(s, step)
  1171. })
  1172. }
  1173. // HasSubscriptionsWith applies the HasEdge predicate on the "subscriptions" edge with a given conditions (other predicates).
  1174. func HasSubscriptionsWith(preds ...predicate.UserSubscription) predicate.User {
  1175. return predicate.User(func(s *sql.Selector) {
  1176. step := newSubscriptionsStep()
  1177. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1178. for _, p := range preds {
  1179. p(s)
  1180. }
  1181. })
  1182. })
  1183. }
  1184. // HasAssignedSubscriptions applies the HasEdge predicate on the "assigned_subscriptions" edge.
  1185. func HasAssignedSubscriptions() predicate.User {
  1186. return predicate.User(func(s *sql.Selector) {
  1187. step := sqlgraph.NewStep(
  1188. sqlgraph.From(Table, FieldID),
  1189. sqlgraph.Edge(sqlgraph.O2M, false, AssignedSubscriptionsTable, AssignedSubscriptionsColumn),
  1190. )
  1191. sqlgraph.HasNeighbors(s, step)
  1192. })
  1193. }
  1194. // HasAssignedSubscriptionsWith applies the HasEdge predicate on the "assigned_subscriptions" edge with a given conditions (other predicates).
  1195. func HasAssignedSubscriptionsWith(preds ...predicate.UserSubscription) predicate.User {
  1196. return predicate.User(func(s *sql.Selector) {
  1197. step := newAssignedSubscriptionsStep()
  1198. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1199. for _, p := range preds {
  1200. p(s)
  1201. }
  1202. })
  1203. })
  1204. }
  1205. // HasAnnouncementReads applies the HasEdge predicate on the "announcement_reads" edge.
  1206. func HasAnnouncementReads() predicate.User {
  1207. return predicate.User(func(s *sql.Selector) {
  1208. step := sqlgraph.NewStep(
  1209. sqlgraph.From(Table, FieldID),
  1210. sqlgraph.Edge(sqlgraph.O2M, false, AnnouncementReadsTable, AnnouncementReadsColumn),
  1211. )
  1212. sqlgraph.HasNeighbors(s, step)
  1213. })
  1214. }
  1215. // HasAnnouncementReadsWith applies the HasEdge predicate on the "announcement_reads" edge with a given conditions (other predicates).
  1216. func HasAnnouncementReadsWith(preds ...predicate.AnnouncementRead) predicate.User {
  1217. return predicate.User(func(s *sql.Selector) {
  1218. step := newAnnouncementReadsStep()
  1219. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1220. for _, p := range preds {
  1221. p(s)
  1222. }
  1223. })
  1224. })
  1225. }
  1226. // HasAllowedGroups applies the HasEdge predicate on the "allowed_groups" edge.
  1227. func HasAllowedGroups() predicate.User {
  1228. return predicate.User(func(s *sql.Selector) {
  1229. step := sqlgraph.NewStep(
  1230. sqlgraph.From(Table, FieldID),
  1231. sqlgraph.Edge(sqlgraph.M2M, false, AllowedGroupsTable, AllowedGroupsPrimaryKey...),
  1232. )
  1233. sqlgraph.HasNeighbors(s, step)
  1234. })
  1235. }
  1236. // HasAllowedGroupsWith applies the HasEdge predicate on the "allowed_groups" edge with a given conditions (other predicates).
  1237. func HasAllowedGroupsWith(preds ...predicate.Group) predicate.User {
  1238. return predicate.User(func(s *sql.Selector) {
  1239. step := newAllowedGroupsStep()
  1240. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1241. for _, p := range preds {
  1242. p(s)
  1243. }
  1244. })
  1245. })
  1246. }
  1247. // HasUsageLogs applies the HasEdge predicate on the "usage_logs" edge.
  1248. func HasUsageLogs() predicate.User {
  1249. return predicate.User(func(s *sql.Selector) {
  1250. step := sqlgraph.NewStep(
  1251. sqlgraph.From(Table, FieldID),
  1252. sqlgraph.Edge(sqlgraph.O2M, false, UsageLogsTable, UsageLogsColumn),
  1253. )
  1254. sqlgraph.HasNeighbors(s, step)
  1255. })
  1256. }
  1257. // HasUsageLogsWith applies the HasEdge predicate on the "usage_logs" edge with a given conditions (other predicates).
  1258. func HasUsageLogsWith(preds ...predicate.UsageLog) predicate.User {
  1259. return predicate.User(func(s *sql.Selector) {
  1260. step := newUsageLogsStep()
  1261. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1262. for _, p := range preds {
  1263. p(s)
  1264. }
  1265. })
  1266. })
  1267. }
  1268. // HasAttributeValues applies the HasEdge predicate on the "attribute_values" edge.
  1269. func HasAttributeValues() predicate.User {
  1270. return predicate.User(func(s *sql.Selector) {
  1271. step := sqlgraph.NewStep(
  1272. sqlgraph.From(Table, FieldID),
  1273. sqlgraph.Edge(sqlgraph.O2M, false, AttributeValuesTable, AttributeValuesColumn),
  1274. )
  1275. sqlgraph.HasNeighbors(s, step)
  1276. })
  1277. }
  1278. // HasAttributeValuesWith applies the HasEdge predicate on the "attribute_values" edge with a given conditions (other predicates).
  1279. func HasAttributeValuesWith(preds ...predicate.UserAttributeValue) predicate.User {
  1280. return predicate.User(func(s *sql.Selector) {
  1281. step := newAttributeValuesStep()
  1282. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1283. for _, p := range preds {
  1284. p(s)
  1285. }
  1286. })
  1287. })
  1288. }
  1289. // HasPromoCodeUsages applies the HasEdge predicate on the "promo_code_usages" edge.
  1290. func HasPromoCodeUsages() predicate.User {
  1291. return predicate.User(func(s *sql.Selector) {
  1292. step := sqlgraph.NewStep(
  1293. sqlgraph.From(Table, FieldID),
  1294. sqlgraph.Edge(sqlgraph.O2M, false, PromoCodeUsagesTable, PromoCodeUsagesColumn),
  1295. )
  1296. sqlgraph.HasNeighbors(s, step)
  1297. })
  1298. }
  1299. // HasPromoCodeUsagesWith applies the HasEdge predicate on the "promo_code_usages" edge with a given conditions (other predicates).
  1300. func HasPromoCodeUsagesWith(preds ...predicate.PromoCodeUsage) predicate.User {
  1301. return predicate.User(func(s *sql.Selector) {
  1302. step := newPromoCodeUsagesStep()
  1303. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1304. for _, p := range preds {
  1305. p(s)
  1306. }
  1307. })
  1308. })
  1309. }
  1310. // HasPaymentOrders applies the HasEdge predicate on the "payment_orders" edge.
  1311. func HasPaymentOrders() predicate.User {
  1312. return predicate.User(func(s *sql.Selector) {
  1313. step := sqlgraph.NewStep(
  1314. sqlgraph.From(Table, FieldID),
  1315. sqlgraph.Edge(sqlgraph.O2M, false, PaymentOrdersTable, PaymentOrdersColumn),
  1316. )
  1317. sqlgraph.HasNeighbors(s, step)
  1318. })
  1319. }
  1320. // HasPaymentOrdersWith applies the HasEdge predicate on the "payment_orders" edge with a given conditions (other predicates).
  1321. func HasPaymentOrdersWith(preds ...predicate.PaymentOrder) predicate.User {
  1322. return predicate.User(func(s *sql.Selector) {
  1323. step := newPaymentOrdersStep()
  1324. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1325. for _, p := range preds {
  1326. p(s)
  1327. }
  1328. })
  1329. })
  1330. }
  1331. // HasAuthIdentities applies the HasEdge predicate on the "auth_identities" edge.
  1332. func HasAuthIdentities() predicate.User {
  1333. return predicate.User(func(s *sql.Selector) {
  1334. step := sqlgraph.NewStep(
  1335. sqlgraph.From(Table, FieldID),
  1336. sqlgraph.Edge(sqlgraph.O2M, false, AuthIdentitiesTable, AuthIdentitiesColumn),
  1337. )
  1338. sqlgraph.HasNeighbors(s, step)
  1339. })
  1340. }
  1341. // HasAuthIdentitiesWith applies the HasEdge predicate on the "auth_identities" edge with a given conditions (other predicates).
  1342. func HasAuthIdentitiesWith(preds ...predicate.AuthIdentity) predicate.User {
  1343. return predicate.User(func(s *sql.Selector) {
  1344. step := newAuthIdentitiesStep()
  1345. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1346. for _, p := range preds {
  1347. p(s)
  1348. }
  1349. })
  1350. })
  1351. }
  1352. // HasPendingAuthSessions applies the HasEdge predicate on the "pending_auth_sessions" edge.
  1353. func HasPendingAuthSessions() predicate.User {
  1354. return predicate.User(func(s *sql.Selector) {
  1355. step := sqlgraph.NewStep(
  1356. sqlgraph.From(Table, FieldID),
  1357. sqlgraph.Edge(sqlgraph.O2M, false, PendingAuthSessionsTable, PendingAuthSessionsColumn),
  1358. )
  1359. sqlgraph.HasNeighbors(s, step)
  1360. })
  1361. }
  1362. // HasPendingAuthSessionsWith applies the HasEdge predicate on the "pending_auth_sessions" edge with a given conditions (other predicates).
  1363. func HasPendingAuthSessionsWith(preds ...predicate.PendingAuthSession) predicate.User {
  1364. return predicate.User(func(s *sql.Selector) {
  1365. step := newPendingAuthSessionsStep()
  1366. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1367. for _, p := range preds {
  1368. p(s)
  1369. }
  1370. })
  1371. })
  1372. }
  1373. // HasPlatformQuotas applies the HasEdge predicate on the "platform_quotas" edge.
  1374. func HasPlatformQuotas() predicate.User {
  1375. return predicate.User(func(s *sql.Selector) {
  1376. step := sqlgraph.NewStep(
  1377. sqlgraph.From(Table, FieldID),
  1378. sqlgraph.Edge(sqlgraph.O2M, false, PlatformQuotasTable, PlatformQuotasColumn),
  1379. )
  1380. sqlgraph.HasNeighbors(s, step)
  1381. })
  1382. }
  1383. // HasPlatformQuotasWith applies the HasEdge predicate on the "platform_quotas" edge with a given conditions (other predicates).
  1384. func HasPlatformQuotasWith(preds ...predicate.UserPlatformQuota) predicate.User {
  1385. return predicate.User(func(s *sql.Selector) {
  1386. step := newPlatformQuotasStep()
  1387. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1388. for _, p := range preds {
  1389. p(s)
  1390. }
  1391. })
  1392. })
  1393. }
  1394. // HasUserAllowedGroups applies the HasEdge predicate on the "user_allowed_groups" edge.
  1395. func HasUserAllowedGroups() predicate.User {
  1396. return predicate.User(func(s *sql.Selector) {
  1397. step := sqlgraph.NewStep(
  1398. sqlgraph.From(Table, FieldID),
  1399. sqlgraph.Edge(sqlgraph.O2M, true, UserAllowedGroupsTable, UserAllowedGroupsColumn),
  1400. )
  1401. sqlgraph.HasNeighbors(s, step)
  1402. })
  1403. }
  1404. // HasUserAllowedGroupsWith applies the HasEdge predicate on the "user_allowed_groups" edge with a given conditions (other predicates).
  1405. func HasUserAllowedGroupsWith(preds ...predicate.UserAllowedGroup) predicate.User {
  1406. return predicate.User(func(s *sql.Selector) {
  1407. step := newUserAllowedGroupsStep()
  1408. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1409. for _, p := range preds {
  1410. p(s)
  1411. }
  1412. })
  1413. })
  1414. }
  1415. // And groups predicates with the AND operator between them.
  1416. func And(predicates ...predicate.User) predicate.User {
  1417. return predicate.User(sql.AndPredicates(predicates...))
  1418. }
  1419. // Or groups predicates with the OR operator between them.
  1420. func Or(predicates ...predicate.User) predicate.User {
  1421. return predicate.User(sql.OrPredicates(predicates...))
  1422. }
  1423. // Not applies the not operator on the given predicate.
  1424. func Not(p predicate.User) predicate.User {
  1425. return predicate.User(sql.NotPredicates(p))
  1426. }