where.go 66 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759
  1. // Code generated by ent, DO NOT EDIT.
  2. package account
  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.Account {
  11. return predicate.Account(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id int64) predicate.Account {
  15. return predicate.Account(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id int64) predicate.Account {
  19. return predicate.Account(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...int64) predicate.Account {
  23. return predicate.Account(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...int64) predicate.Account {
  27. return predicate.Account(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id int64) predicate.Account {
  31. return predicate.Account(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id int64) predicate.Account {
  35. return predicate.Account(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id int64) predicate.Account {
  39. return predicate.Account(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id int64) predicate.Account {
  43. return predicate.Account(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.Account {
  47. return predicate.Account(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.Account {
  51. return predicate.Account(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.Account {
  55. return predicate.Account(sql.FieldEQ(FieldDeletedAt, v))
  56. }
  57. // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
  58. func Name(v string) predicate.Account {
  59. return predicate.Account(sql.FieldEQ(FieldName, v))
  60. }
  61. // Notes applies equality check predicate on the "notes" field. It's identical to NotesEQ.
  62. func Notes(v string) predicate.Account {
  63. return predicate.Account(sql.FieldEQ(FieldNotes, v))
  64. }
  65. // Platform applies equality check predicate on the "platform" field. It's identical to PlatformEQ.
  66. func Platform(v string) predicate.Account {
  67. return predicate.Account(sql.FieldEQ(FieldPlatform, v))
  68. }
  69. // Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
  70. func Type(v string) predicate.Account {
  71. return predicate.Account(sql.FieldEQ(FieldType, v))
  72. }
  73. // ProxyID applies equality check predicate on the "proxy_id" field. It's identical to ProxyIDEQ.
  74. func ProxyID(v int64) predicate.Account {
  75. return predicate.Account(sql.FieldEQ(FieldProxyID, v))
  76. }
  77. // ProxyFallbackOriginID applies equality check predicate on the "proxy_fallback_origin_id" field. It's identical to ProxyFallbackOriginIDEQ.
  78. func ProxyFallbackOriginID(v int64) predicate.Account {
  79. return predicate.Account(sql.FieldEQ(FieldProxyFallbackOriginID, v))
  80. }
  81. // Concurrency applies equality check predicate on the "concurrency" field. It's identical to ConcurrencyEQ.
  82. func Concurrency(v int) predicate.Account {
  83. return predicate.Account(sql.FieldEQ(FieldConcurrency, v))
  84. }
  85. // LoadFactor applies equality check predicate on the "load_factor" field. It's identical to LoadFactorEQ.
  86. func LoadFactor(v int) predicate.Account {
  87. return predicate.Account(sql.FieldEQ(FieldLoadFactor, v))
  88. }
  89. // Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.
  90. func Priority(v int) predicate.Account {
  91. return predicate.Account(sql.FieldEQ(FieldPriority, v))
  92. }
  93. // RateMultiplier applies equality check predicate on the "rate_multiplier" field. It's identical to RateMultiplierEQ.
  94. func RateMultiplier(v float64) predicate.Account {
  95. return predicate.Account(sql.FieldEQ(FieldRateMultiplier, v))
  96. }
  97. // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
  98. func Status(v string) predicate.Account {
  99. return predicate.Account(sql.FieldEQ(FieldStatus, v))
  100. }
  101. // ErrorMessage applies equality check predicate on the "error_message" field. It's identical to ErrorMessageEQ.
  102. func ErrorMessage(v string) predicate.Account {
  103. return predicate.Account(sql.FieldEQ(FieldErrorMessage, v))
  104. }
  105. // LastUsedAt applies equality check predicate on the "last_used_at" field. It's identical to LastUsedAtEQ.
  106. func LastUsedAt(v time.Time) predicate.Account {
  107. return predicate.Account(sql.FieldEQ(FieldLastUsedAt, v))
  108. }
  109. // ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
  110. func ExpiresAt(v time.Time) predicate.Account {
  111. return predicate.Account(sql.FieldEQ(FieldExpiresAt, v))
  112. }
  113. // AutoPauseOnExpired applies equality check predicate on the "auto_pause_on_expired" field. It's identical to AutoPauseOnExpiredEQ.
  114. func AutoPauseOnExpired(v bool) predicate.Account {
  115. return predicate.Account(sql.FieldEQ(FieldAutoPauseOnExpired, v))
  116. }
  117. // Schedulable applies equality check predicate on the "schedulable" field. It's identical to SchedulableEQ.
  118. func Schedulable(v bool) predicate.Account {
  119. return predicate.Account(sql.FieldEQ(FieldSchedulable, v))
  120. }
  121. // RateLimitedAt applies equality check predicate on the "rate_limited_at" field. It's identical to RateLimitedAtEQ.
  122. func RateLimitedAt(v time.Time) predicate.Account {
  123. return predicate.Account(sql.FieldEQ(FieldRateLimitedAt, v))
  124. }
  125. // RateLimitResetAt applies equality check predicate on the "rate_limit_reset_at" field. It's identical to RateLimitResetAtEQ.
  126. func RateLimitResetAt(v time.Time) predicate.Account {
  127. return predicate.Account(sql.FieldEQ(FieldRateLimitResetAt, v))
  128. }
  129. // OverloadUntil applies equality check predicate on the "overload_until" field. It's identical to OverloadUntilEQ.
  130. func OverloadUntil(v time.Time) predicate.Account {
  131. return predicate.Account(sql.FieldEQ(FieldOverloadUntil, v))
  132. }
  133. // TempUnschedulableUntil applies equality check predicate on the "temp_unschedulable_until" field. It's identical to TempUnschedulableUntilEQ.
  134. func TempUnschedulableUntil(v time.Time) predicate.Account {
  135. return predicate.Account(sql.FieldEQ(FieldTempUnschedulableUntil, v))
  136. }
  137. // TempUnschedulableReason applies equality check predicate on the "temp_unschedulable_reason" field. It's identical to TempUnschedulableReasonEQ.
  138. func TempUnschedulableReason(v string) predicate.Account {
  139. return predicate.Account(sql.FieldEQ(FieldTempUnschedulableReason, v))
  140. }
  141. // SessionWindowStart applies equality check predicate on the "session_window_start" field. It's identical to SessionWindowStartEQ.
  142. func SessionWindowStart(v time.Time) predicate.Account {
  143. return predicate.Account(sql.FieldEQ(FieldSessionWindowStart, v))
  144. }
  145. // SessionWindowEnd applies equality check predicate on the "session_window_end" field. It's identical to SessionWindowEndEQ.
  146. func SessionWindowEnd(v time.Time) predicate.Account {
  147. return predicate.Account(sql.FieldEQ(FieldSessionWindowEnd, v))
  148. }
  149. // SessionWindowStatus applies equality check predicate on the "session_window_status" field. It's identical to SessionWindowStatusEQ.
  150. func SessionWindowStatus(v string) predicate.Account {
  151. return predicate.Account(sql.FieldEQ(FieldSessionWindowStatus, v))
  152. }
  153. // ParentAccountID applies equality check predicate on the "parent_account_id" field. It's identical to ParentAccountIDEQ.
  154. func ParentAccountID(v int64) predicate.Account {
  155. return predicate.Account(sql.FieldEQ(FieldParentAccountID, v))
  156. }
  157. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  158. func CreatedAtEQ(v time.Time) predicate.Account {
  159. return predicate.Account(sql.FieldEQ(FieldCreatedAt, v))
  160. }
  161. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  162. func CreatedAtNEQ(v time.Time) predicate.Account {
  163. return predicate.Account(sql.FieldNEQ(FieldCreatedAt, v))
  164. }
  165. // CreatedAtIn applies the In predicate on the "created_at" field.
  166. func CreatedAtIn(vs ...time.Time) predicate.Account {
  167. return predicate.Account(sql.FieldIn(FieldCreatedAt, vs...))
  168. }
  169. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  170. func CreatedAtNotIn(vs ...time.Time) predicate.Account {
  171. return predicate.Account(sql.FieldNotIn(FieldCreatedAt, vs...))
  172. }
  173. // CreatedAtGT applies the GT predicate on the "created_at" field.
  174. func CreatedAtGT(v time.Time) predicate.Account {
  175. return predicate.Account(sql.FieldGT(FieldCreatedAt, v))
  176. }
  177. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  178. func CreatedAtGTE(v time.Time) predicate.Account {
  179. return predicate.Account(sql.FieldGTE(FieldCreatedAt, v))
  180. }
  181. // CreatedAtLT applies the LT predicate on the "created_at" field.
  182. func CreatedAtLT(v time.Time) predicate.Account {
  183. return predicate.Account(sql.FieldLT(FieldCreatedAt, v))
  184. }
  185. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  186. func CreatedAtLTE(v time.Time) predicate.Account {
  187. return predicate.Account(sql.FieldLTE(FieldCreatedAt, v))
  188. }
  189. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  190. func UpdatedAtEQ(v time.Time) predicate.Account {
  191. return predicate.Account(sql.FieldEQ(FieldUpdatedAt, v))
  192. }
  193. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  194. func UpdatedAtNEQ(v time.Time) predicate.Account {
  195. return predicate.Account(sql.FieldNEQ(FieldUpdatedAt, v))
  196. }
  197. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  198. func UpdatedAtIn(vs ...time.Time) predicate.Account {
  199. return predicate.Account(sql.FieldIn(FieldUpdatedAt, vs...))
  200. }
  201. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  202. func UpdatedAtNotIn(vs ...time.Time) predicate.Account {
  203. return predicate.Account(sql.FieldNotIn(FieldUpdatedAt, vs...))
  204. }
  205. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  206. func UpdatedAtGT(v time.Time) predicate.Account {
  207. return predicate.Account(sql.FieldGT(FieldUpdatedAt, v))
  208. }
  209. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  210. func UpdatedAtGTE(v time.Time) predicate.Account {
  211. return predicate.Account(sql.FieldGTE(FieldUpdatedAt, v))
  212. }
  213. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  214. func UpdatedAtLT(v time.Time) predicate.Account {
  215. return predicate.Account(sql.FieldLT(FieldUpdatedAt, v))
  216. }
  217. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  218. func UpdatedAtLTE(v time.Time) predicate.Account {
  219. return predicate.Account(sql.FieldLTE(FieldUpdatedAt, v))
  220. }
  221. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  222. func DeletedAtEQ(v time.Time) predicate.Account {
  223. return predicate.Account(sql.FieldEQ(FieldDeletedAt, v))
  224. }
  225. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  226. func DeletedAtNEQ(v time.Time) predicate.Account {
  227. return predicate.Account(sql.FieldNEQ(FieldDeletedAt, v))
  228. }
  229. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  230. func DeletedAtIn(vs ...time.Time) predicate.Account {
  231. return predicate.Account(sql.FieldIn(FieldDeletedAt, vs...))
  232. }
  233. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  234. func DeletedAtNotIn(vs ...time.Time) predicate.Account {
  235. return predicate.Account(sql.FieldNotIn(FieldDeletedAt, vs...))
  236. }
  237. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  238. func DeletedAtGT(v time.Time) predicate.Account {
  239. return predicate.Account(sql.FieldGT(FieldDeletedAt, v))
  240. }
  241. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  242. func DeletedAtGTE(v time.Time) predicate.Account {
  243. return predicate.Account(sql.FieldGTE(FieldDeletedAt, v))
  244. }
  245. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  246. func DeletedAtLT(v time.Time) predicate.Account {
  247. return predicate.Account(sql.FieldLT(FieldDeletedAt, v))
  248. }
  249. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  250. func DeletedAtLTE(v time.Time) predicate.Account {
  251. return predicate.Account(sql.FieldLTE(FieldDeletedAt, v))
  252. }
  253. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  254. func DeletedAtIsNil() predicate.Account {
  255. return predicate.Account(sql.FieldIsNull(FieldDeletedAt))
  256. }
  257. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  258. func DeletedAtNotNil() predicate.Account {
  259. return predicate.Account(sql.FieldNotNull(FieldDeletedAt))
  260. }
  261. // NameEQ applies the EQ predicate on the "name" field.
  262. func NameEQ(v string) predicate.Account {
  263. return predicate.Account(sql.FieldEQ(FieldName, v))
  264. }
  265. // NameNEQ applies the NEQ predicate on the "name" field.
  266. func NameNEQ(v string) predicate.Account {
  267. return predicate.Account(sql.FieldNEQ(FieldName, v))
  268. }
  269. // NameIn applies the In predicate on the "name" field.
  270. func NameIn(vs ...string) predicate.Account {
  271. return predicate.Account(sql.FieldIn(FieldName, vs...))
  272. }
  273. // NameNotIn applies the NotIn predicate on the "name" field.
  274. func NameNotIn(vs ...string) predicate.Account {
  275. return predicate.Account(sql.FieldNotIn(FieldName, vs...))
  276. }
  277. // NameGT applies the GT predicate on the "name" field.
  278. func NameGT(v string) predicate.Account {
  279. return predicate.Account(sql.FieldGT(FieldName, v))
  280. }
  281. // NameGTE applies the GTE predicate on the "name" field.
  282. func NameGTE(v string) predicate.Account {
  283. return predicate.Account(sql.FieldGTE(FieldName, v))
  284. }
  285. // NameLT applies the LT predicate on the "name" field.
  286. func NameLT(v string) predicate.Account {
  287. return predicate.Account(sql.FieldLT(FieldName, v))
  288. }
  289. // NameLTE applies the LTE predicate on the "name" field.
  290. func NameLTE(v string) predicate.Account {
  291. return predicate.Account(sql.FieldLTE(FieldName, v))
  292. }
  293. // NameContains applies the Contains predicate on the "name" field.
  294. func NameContains(v string) predicate.Account {
  295. return predicate.Account(sql.FieldContains(FieldName, v))
  296. }
  297. // NameHasPrefix applies the HasPrefix predicate on the "name" field.
  298. func NameHasPrefix(v string) predicate.Account {
  299. return predicate.Account(sql.FieldHasPrefix(FieldName, v))
  300. }
  301. // NameHasSuffix applies the HasSuffix predicate on the "name" field.
  302. func NameHasSuffix(v string) predicate.Account {
  303. return predicate.Account(sql.FieldHasSuffix(FieldName, v))
  304. }
  305. // NameEqualFold applies the EqualFold predicate on the "name" field.
  306. func NameEqualFold(v string) predicate.Account {
  307. return predicate.Account(sql.FieldEqualFold(FieldName, v))
  308. }
  309. // NameContainsFold applies the ContainsFold predicate on the "name" field.
  310. func NameContainsFold(v string) predicate.Account {
  311. return predicate.Account(sql.FieldContainsFold(FieldName, v))
  312. }
  313. // NotesEQ applies the EQ predicate on the "notes" field.
  314. func NotesEQ(v string) predicate.Account {
  315. return predicate.Account(sql.FieldEQ(FieldNotes, v))
  316. }
  317. // NotesNEQ applies the NEQ predicate on the "notes" field.
  318. func NotesNEQ(v string) predicate.Account {
  319. return predicate.Account(sql.FieldNEQ(FieldNotes, v))
  320. }
  321. // NotesIn applies the In predicate on the "notes" field.
  322. func NotesIn(vs ...string) predicate.Account {
  323. return predicate.Account(sql.FieldIn(FieldNotes, vs...))
  324. }
  325. // NotesNotIn applies the NotIn predicate on the "notes" field.
  326. func NotesNotIn(vs ...string) predicate.Account {
  327. return predicate.Account(sql.FieldNotIn(FieldNotes, vs...))
  328. }
  329. // NotesGT applies the GT predicate on the "notes" field.
  330. func NotesGT(v string) predicate.Account {
  331. return predicate.Account(sql.FieldGT(FieldNotes, v))
  332. }
  333. // NotesGTE applies the GTE predicate on the "notes" field.
  334. func NotesGTE(v string) predicate.Account {
  335. return predicate.Account(sql.FieldGTE(FieldNotes, v))
  336. }
  337. // NotesLT applies the LT predicate on the "notes" field.
  338. func NotesLT(v string) predicate.Account {
  339. return predicate.Account(sql.FieldLT(FieldNotes, v))
  340. }
  341. // NotesLTE applies the LTE predicate on the "notes" field.
  342. func NotesLTE(v string) predicate.Account {
  343. return predicate.Account(sql.FieldLTE(FieldNotes, v))
  344. }
  345. // NotesContains applies the Contains predicate on the "notes" field.
  346. func NotesContains(v string) predicate.Account {
  347. return predicate.Account(sql.FieldContains(FieldNotes, v))
  348. }
  349. // NotesHasPrefix applies the HasPrefix predicate on the "notes" field.
  350. func NotesHasPrefix(v string) predicate.Account {
  351. return predicate.Account(sql.FieldHasPrefix(FieldNotes, v))
  352. }
  353. // NotesHasSuffix applies the HasSuffix predicate on the "notes" field.
  354. func NotesHasSuffix(v string) predicate.Account {
  355. return predicate.Account(sql.FieldHasSuffix(FieldNotes, v))
  356. }
  357. // NotesIsNil applies the IsNil predicate on the "notes" field.
  358. func NotesIsNil() predicate.Account {
  359. return predicate.Account(sql.FieldIsNull(FieldNotes))
  360. }
  361. // NotesNotNil applies the NotNil predicate on the "notes" field.
  362. func NotesNotNil() predicate.Account {
  363. return predicate.Account(sql.FieldNotNull(FieldNotes))
  364. }
  365. // NotesEqualFold applies the EqualFold predicate on the "notes" field.
  366. func NotesEqualFold(v string) predicate.Account {
  367. return predicate.Account(sql.FieldEqualFold(FieldNotes, v))
  368. }
  369. // NotesContainsFold applies the ContainsFold predicate on the "notes" field.
  370. func NotesContainsFold(v string) predicate.Account {
  371. return predicate.Account(sql.FieldContainsFold(FieldNotes, v))
  372. }
  373. // PlatformEQ applies the EQ predicate on the "platform" field.
  374. func PlatformEQ(v string) predicate.Account {
  375. return predicate.Account(sql.FieldEQ(FieldPlatform, v))
  376. }
  377. // PlatformNEQ applies the NEQ predicate on the "platform" field.
  378. func PlatformNEQ(v string) predicate.Account {
  379. return predicate.Account(sql.FieldNEQ(FieldPlatform, v))
  380. }
  381. // PlatformIn applies the In predicate on the "platform" field.
  382. func PlatformIn(vs ...string) predicate.Account {
  383. return predicate.Account(sql.FieldIn(FieldPlatform, vs...))
  384. }
  385. // PlatformNotIn applies the NotIn predicate on the "platform" field.
  386. func PlatformNotIn(vs ...string) predicate.Account {
  387. return predicate.Account(sql.FieldNotIn(FieldPlatform, vs...))
  388. }
  389. // PlatformGT applies the GT predicate on the "platform" field.
  390. func PlatformGT(v string) predicate.Account {
  391. return predicate.Account(sql.FieldGT(FieldPlatform, v))
  392. }
  393. // PlatformGTE applies the GTE predicate on the "platform" field.
  394. func PlatformGTE(v string) predicate.Account {
  395. return predicate.Account(sql.FieldGTE(FieldPlatform, v))
  396. }
  397. // PlatformLT applies the LT predicate on the "platform" field.
  398. func PlatformLT(v string) predicate.Account {
  399. return predicate.Account(sql.FieldLT(FieldPlatform, v))
  400. }
  401. // PlatformLTE applies the LTE predicate on the "platform" field.
  402. func PlatformLTE(v string) predicate.Account {
  403. return predicate.Account(sql.FieldLTE(FieldPlatform, v))
  404. }
  405. // PlatformContains applies the Contains predicate on the "platform" field.
  406. func PlatformContains(v string) predicate.Account {
  407. return predicate.Account(sql.FieldContains(FieldPlatform, v))
  408. }
  409. // PlatformHasPrefix applies the HasPrefix predicate on the "platform" field.
  410. func PlatformHasPrefix(v string) predicate.Account {
  411. return predicate.Account(sql.FieldHasPrefix(FieldPlatform, v))
  412. }
  413. // PlatformHasSuffix applies the HasSuffix predicate on the "platform" field.
  414. func PlatformHasSuffix(v string) predicate.Account {
  415. return predicate.Account(sql.FieldHasSuffix(FieldPlatform, v))
  416. }
  417. // PlatformEqualFold applies the EqualFold predicate on the "platform" field.
  418. func PlatformEqualFold(v string) predicate.Account {
  419. return predicate.Account(sql.FieldEqualFold(FieldPlatform, v))
  420. }
  421. // PlatformContainsFold applies the ContainsFold predicate on the "platform" field.
  422. func PlatformContainsFold(v string) predicate.Account {
  423. return predicate.Account(sql.FieldContainsFold(FieldPlatform, v))
  424. }
  425. // TypeEQ applies the EQ predicate on the "type" field.
  426. func TypeEQ(v string) predicate.Account {
  427. return predicate.Account(sql.FieldEQ(FieldType, v))
  428. }
  429. // TypeNEQ applies the NEQ predicate on the "type" field.
  430. func TypeNEQ(v string) predicate.Account {
  431. return predicate.Account(sql.FieldNEQ(FieldType, v))
  432. }
  433. // TypeIn applies the In predicate on the "type" field.
  434. func TypeIn(vs ...string) predicate.Account {
  435. return predicate.Account(sql.FieldIn(FieldType, vs...))
  436. }
  437. // TypeNotIn applies the NotIn predicate on the "type" field.
  438. func TypeNotIn(vs ...string) predicate.Account {
  439. return predicate.Account(sql.FieldNotIn(FieldType, vs...))
  440. }
  441. // TypeGT applies the GT predicate on the "type" field.
  442. func TypeGT(v string) predicate.Account {
  443. return predicate.Account(sql.FieldGT(FieldType, v))
  444. }
  445. // TypeGTE applies the GTE predicate on the "type" field.
  446. func TypeGTE(v string) predicate.Account {
  447. return predicate.Account(sql.FieldGTE(FieldType, v))
  448. }
  449. // TypeLT applies the LT predicate on the "type" field.
  450. func TypeLT(v string) predicate.Account {
  451. return predicate.Account(sql.FieldLT(FieldType, v))
  452. }
  453. // TypeLTE applies the LTE predicate on the "type" field.
  454. func TypeLTE(v string) predicate.Account {
  455. return predicate.Account(sql.FieldLTE(FieldType, v))
  456. }
  457. // TypeContains applies the Contains predicate on the "type" field.
  458. func TypeContains(v string) predicate.Account {
  459. return predicate.Account(sql.FieldContains(FieldType, v))
  460. }
  461. // TypeHasPrefix applies the HasPrefix predicate on the "type" field.
  462. func TypeHasPrefix(v string) predicate.Account {
  463. return predicate.Account(sql.FieldHasPrefix(FieldType, v))
  464. }
  465. // TypeHasSuffix applies the HasSuffix predicate on the "type" field.
  466. func TypeHasSuffix(v string) predicate.Account {
  467. return predicate.Account(sql.FieldHasSuffix(FieldType, v))
  468. }
  469. // TypeEqualFold applies the EqualFold predicate on the "type" field.
  470. func TypeEqualFold(v string) predicate.Account {
  471. return predicate.Account(sql.FieldEqualFold(FieldType, v))
  472. }
  473. // TypeContainsFold applies the ContainsFold predicate on the "type" field.
  474. func TypeContainsFold(v string) predicate.Account {
  475. return predicate.Account(sql.FieldContainsFold(FieldType, v))
  476. }
  477. // ProxyIDEQ applies the EQ predicate on the "proxy_id" field.
  478. func ProxyIDEQ(v int64) predicate.Account {
  479. return predicate.Account(sql.FieldEQ(FieldProxyID, v))
  480. }
  481. // ProxyIDNEQ applies the NEQ predicate on the "proxy_id" field.
  482. func ProxyIDNEQ(v int64) predicate.Account {
  483. return predicate.Account(sql.FieldNEQ(FieldProxyID, v))
  484. }
  485. // ProxyIDIn applies the In predicate on the "proxy_id" field.
  486. func ProxyIDIn(vs ...int64) predicate.Account {
  487. return predicate.Account(sql.FieldIn(FieldProxyID, vs...))
  488. }
  489. // ProxyIDNotIn applies the NotIn predicate on the "proxy_id" field.
  490. func ProxyIDNotIn(vs ...int64) predicate.Account {
  491. return predicate.Account(sql.FieldNotIn(FieldProxyID, vs...))
  492. }
  493. // ProxyIDIsNil applies the IsNil predicate on the "proxy_id" field.
  494. func ProxyIDIsNil() predicate.Account {
  495. return predicate.Account(sql.FieldIsNull(FieldProxyID))
  496. }
  497. // ProxyIDNotNil applies the NotNil predicate on the "proxy_id" field.
  498. func ProxyIDNotNil() predicate.Account {
  499. return predicate.Account(sql.FieldNotNull(FieldProxyID))
  500. }
  501. // ProxyFallbackOriginIDEQ applies the EQ predicate on the "proxy_fallback_origin_id" field.
  502. func ProxyFallbackOriginIDEQ(v int64) predicate.Account {
  503. return predicate.Account(sql.FieldEQ(FieldProxyFallbackOriginID, v))
  504. }
  505. // ProxyFallbackOriginIDNEQ applies the NEQ predicate on the "proxy_fallback_origin_id" field.
  506. func ProxyFallbackOriginIDNEQ(v int64) predicate.Account {
  507. return predicate.Account(sql.FieldNEQ(FieldProxyFallbackOriginID, v))
  508. }
  509. // ProxyFallbackOriginIDIn applies the In predicate on the "proxy_fallback_origin_id" field.
  510. func ProxyFallbackOriginIDIn(vs ...int64) predicate.Account {
  511. return predicate.Account(sql.FieldIn(FieldProxyFallbackOriginID, vs...))
  512. }
  513. // ProxyFallbackOriginIDNotIn applies the NotIn predicate on the "proxy_fallback_origin_id" field.
  514. func ProxyFallbackOriginIDNotIn(vs ...int64) predicate.Account {
  515. return predicate.Account(sql.FieldNotIn(FieldProxyFallbackOriginID, vs...))
  516. }
  517. // ProxyFallbackOriginIDGT applies the GT predicate on the "proxy_fallback_origin_id" field.
  518. func ProxyFallbackOriginIDGT(v int64) predicate.Account {
  519. return predicate.Account(sql.FieldGT(FieldProxyFallbackOriginID, v))
  520. }
  521. // ProxyFallbackOriginIDGTE applies the GTE predicate on the "proxy_fallback_origin_id" field.
  522. func ProxyFallbackOriginIDGTE(v int64) predicate.Account {
  523. return predicate.Account(sql.FieldGTE(FieldProxyFallbackOriginID, v))
  524. }
  525. // ProxyFallbackOriginIDLT applies the LT predicate on the "proxy_fallback_origin_id" field.
  526. func ProxyFallbackOriginIDLT(v int64) predicate.Account {
  527. return predicate.Account(sql.FieldLT(FieldProxyFallbackOriginID, v))
  528. }
  529. // ProxyFallbackOriginIDLTE applies the LTE predicate on the "proxy_fallback_origin_id" field.
  530. func ProxyFallbackOriginIDLTE(v int64) predicate.Account {
  531. return predicate.Account(sql.FieldLTE(FieldProxyFallbackOriginID, v))
  532. }
  533. // ProxyFallbackOriginIDIsNil applies the IsNil predicate on the "proxy_fallback_origin_id" field.
  534. func ProxyFallbackOriginIDIsNil() predicate.Account {
  535. return predicate.Account(sql.FieldIsNull(FieldProxyFallbackOriginID))
  536. }
  537. // ProxyFallbackOriginIDNotNil applies the NotNil predicate on the "proxy_fallback_origin_id" field.
  538. func ProxyFallbackOriginIDNotNil() predicate.Account {
  539. return predicate.Account(sql.FieldNotNull(FieldProxyFallbackOriginID))
  540. }
  541. // ConcurrencyEQ applies the EQ predicate on the "concurrency" field.
  542. func ConcurrencyEQ(v int) predicate.Account {
  543. return predicate.Account(sql.FieldEQ(FieldConcurrency, v))
  544. }
  545. // ConcurrencyNEQ applies the NEQ predicate on the "concurrency" field.
  546. func ConcurrencyNEQ(v int) predicate.Account {
  547. return predicate.Account(sql.FieldNEQ(FieldConcurrency, v))
  548. }
  549. // ConcurrencyIn applies the In predicate on the "concurrency" field.
  550. func ConcurrencyIn(vs ...int) predicate.Account {
  551. return predicate.Account(sql.FieldIn(FieldConcurrency, vs...))
  552. }
  553. // ConcurrencyNotIn applies the NotIn predicate on the "concurrency" field.
  554. func ConcurrencyNotIn(vs ...int) predicate.Account {
  555. return predicate.Account(sql.FieldNotIn(FieldConcurrency, vs...))
  556. }
  557. // ConcurrencyGT applies the GT predicate on the "concurrency" field.
  558. func ConcurrencyGT(v int) predicate.Account {
  559. return predicate.Account(sql.FieldGT(FieldConcurrency, v))
  560. }
  561. // ConcurrencyGTE applies the GTE predicate on the "concurrency" field.
  562. func ConcurrencyGTE(v int) predicate.Account {
  563. return predicate.Account(sql.FieldGTE(FieldConcurrency, v))
  564. }
  565. // ConcurrencyLT applies the LT predicate on the "concurrency" field.
  566. func ConcurrencyLT(v int) predicate.Account {
  567. return predicate.Account(sql.FieldLT(FieldConcurrency, v))
  568. }
  569. // ConcurrencyLTE applies the LTE predicate on the "concurrency" field.
  570. func ConcurrencyLTE(v int) predicate.Account {
  571. return predicate.Account(sql.FieldLTE(FieldConcurrency, v))
  572. }
  573. // LoadFactorEQ applies the EQ predicate on the "load_factor" field.
  574. func LoadFactorEQ(v int) predicate.Account {
  575. return predicate.Account(sql.FieldEQ(FieldLoadFactor, v))
  576. }
  577. // LoadFactorNEQ applies the NEQ predicate on the "load_factor" field.
  578. func LoadFactorNEQ(v int) predicate.Account {
  579. return predicate.Account(sql.FieldNEQ(FieldLoadFactor, v))
  580. }
  581. // LoadFactorIn applies the In predicate on the "load_factor" field.
  582. func LoadFactorIn(vs ...int) predicate.Account {
  583. return predicate.Account(sql.FieldIn(FieldLoadFactor, vs...))
  584. }
  585. // LoadFactorNotIn applies the NotIn predicate on the "load_factor" field.
  586. func LoadFactorNotIn(vs ...int) predicate.Account {
  587. return predicate.Account(sql.FieldNotIn(FieldLoadFactor, vs...))
  588. }
  589. // LoadFactorGT applies the GT predicate on the "load_factor" field.
  590. func LoadFactorGT(v int) predicate.Account {
  591. return predicate.Account(sql.FieldGT(FieldLoadFactor, v))
  592. }
  593. // LoadFactorGTE applies the GTE predicate on the "load_factor" field.
  594. func LoadFactorGTE(v int) predicate.Account {
  595. return predicate.Account(sql.FieldGTE(FieldLoadFactor, v))
  596. }
  597. // LoadFactorLT applies the LT predicate on the "load_factor" field.
  598. func LoadFactorLT(v int) predicate.Account {
  599. return predicate.Account(sql.FieldLT(FieldLoadFactor, v))
  600. }
  601. // LoadFactorLTE applies the LTE predicate on the "load_factor" field.
  602. func LoadFactorLTE(v int) predicate.Account {
  603. return predicate.Account(sql.FieldLTE(FieldLoadFactor, v))
  604. }
  605. // LoadFactorIsNil applies the IsNil predicate on the "load_factor" field.
  606. func LoadFactorIsNil() predicate.Account {
  607. return predicate.Account(sql.FieldIsNull(FieldLoadFactor))
  608. }
  609. // LoadFactorNotNil applies the NotNil predicate on the "load_factor" field.
  610. func LoadFactorNotNil() predicate.Account {
  611. return predicate.Account(sql.FieldNotNull(FieldLoadFactor))
  612. }
  613. // PriorityEQ applies the EQ predicate on the "priority" field.
  614. func PriorityEQ(v int) predicate.Account {
  615. return predicate.Account(sql.FieldEQ(FieldPriority, v))
  616. }
  617. // PriorityNEQ applies the NEQ predicate on the "priority" field.
  618. func PriorityNEQ(v int) predicate.Account {
  619. return predicate.Account(sql.FieldNEQ(FieldPriority, v))
  620. }
  621. // PriorityIn applies the In predicate on the "priority" field.
  622. func PriorityIn(vs ...int) predicate.Account {
  623. return predicate.Account(sql.FieldIn(FieldPriority, vs...))
  624. }
  625. // PriorityNotIn applies the NotIn predicate on the "priority" field.
  626. func PriorityNotIn(vs ...int) predicate.Account {
  627. return predicate.Account(sql.FieldNotIn(FieldPriority, vs...))
  628. }
  629. // PriorityGT applies the GT predicate on the "priority" field.
  630. func PriorityGT(v int) predicate.Account {
  631. return predicate.Account(sql.FieldGT(FieldPriority, v))
  632. }
  633. // PriorityGTE applies the GTE predicate on the "priority" field.
  634. func PriorityGTE(v int) predicate.Account {
  635. return predicate.Account(sql.FieldGTE(FieldPriority, v))
  636. }
  637. // PriorityLT applies the LT predicate on the "priority" field.
  638. func PriorityLT(v int) predicate.Account {
  639. return predicate.Account(sql.FieldLT(FieldPriority, v))
  640. }
  641. // PriorityLTE applies the LTE predicate on the "priority" field.
  642. func PriorityLTE(v int) predicate.Account {
  643. return predicate.Account(sql.FieldLTE(FieldPriority, v))
  644. }
  645. // RateMultiplierEQ applies the EQ predicate on the "rate_multiplier" field.
  646. func RateMultiplierEQ(v float64) predicate.Account {
  647. return predicate.Account(sql.FieldEQ(FieldRateMultiplier, v))
  648. }
  649. // RateMultiplierNEQ applies the NEQ predicate on the "rate_multiplier" field.
  650. func RateMultiplierNEQ(v float64) predicate.Account {
  651. return predicate.Account(sql.FieldNEQ(FieldRateMultiplier, v))
  652. }
  653. // RateMultiplierIn applies the In predicate on the "rate_multiplier" field.
  654. func RateMultiplierIn(vs ...float64) predicate.Account {
  655. return predicate.Account(sql.FieldIn(FieldRateMultiplier, vs...))
  656. }
  657. // RateMultiplierNotIn applies the NotIn predicate on the "rate_multiplier" field.
  658. func RateMultiplierNotIn(vs ...float64) predicate.Account {
  659. return predicate.Account(sql.FieldNotIn(FieldRateMultiplier, vs...))
  660. }
  661. // RateMultiplierGT applies the GT predicate on the "rate_multiplier" field.
  662. func RateMultiplierGT(v float64) predicate.Account {
  663. return predicate.Account(sql.FieldGT(FieldRateMultiplier, v))
  664. }
  665. // RateMultiplierGTE applies the GTE predicate on the "rate_multiplier" field.
  666. func RateMultiplierGTE(v float64) predicate.Account {
  667. return predicate.Account(sql.FieldGTE(FieldRateMultiplier, v))
  668. }
  669. // RateMultiplierLT applies the LT predicate on the "rate_multiplier" field.
  670. func RateMultiplierLT(v float64) predicate.Account {
  671. return predicate.Account(sql.FieldLT(FieldRateMultiplier, v))
  672. }
  673. // RateMultiplierLTE applies the LTE predicate on the "rate_multiplier" field.
  674. func RateMultiplierLTE(v float64) predicate.Account {
  675. return predicate.Account(sql.FieldLTE(FieldRateMultiplier, v))
  676. }
  677. // StatusEQ applies the EQ predicate on the "status" field.
  678. func StatusEQ(v string) predicate.Account {
  679. return predicate.Account(sql.FieldEQ(FieldStatus, v))
  680. }
  681. // StatusNEQ applies the NEQ predicate on the "status" field.
  682. func StatusNEQ(v string) predicate.Account {
  683. return predicate.Account(sql.FieldNEQ(FieldStatus, v))
  684. }
  685. // StatusIn applies the In predicate on the "status" field.
  686. func StatusIn(vs ...string) predicate.Account {
  687. return predicate.Account(sql.FieldIn(FieldStatus, vs...))
  688. }
  689. // StatusNotIn applies the NotIn predicate on the "status" field.
  690. func StatusNotIn(vs ...string) predicate.Account {
  691. return predicate.Account(sql.FieldNotIn(FieldStatus, vs...))
  692. }
  693. // StatusGT applies the GT predicate on the "status" field.
  694. func StatusGT(v string) predicate.Account {
  695. return predicate.Account(sql.FieldGT(FieldStatus, v))
  696. }
  697. // StatusGTE applies the GTE predicate on the "status" field.
  698. func StatusGTE(v string) predicate.Account {
  699. return predicate.Account(sql.FieldGTE(FieldStatus, v))
  700. }
  701. // StatusLT applies the LT predicate on the "status" field.
  702. func StatusLT(v string) predicate.Account {
  703. return predicate.Account(sql.FieldLT(FieldStatus, v))
  704. }
  705. // StatusLTE applies the LTE predicate on the "status" field.
  706. func StatusLTE(v string) predicate.Account {
  707. return predicate.Account(sql.FieldLTE(FieldStatus, v))
  708. }
  709. // StatusContains applies the Contains predicate on the "status" field.
  710. func StatusContains(v string) predicate.Account {
  711. return predicate.Account(sql.FieldContains(FieldStatus, v))
  712. }
  713. // StatusHasPrefix applies the HasPrefix predicate on the "status" field.
  714. func StatusHasPrefix(v string) predicate.Account {
  715. return predicate.Account(sql.FieldHasPrefix(FieldStatus, v))
  716. }
  717. // StatusHasSuffix applies the HasSuffix predicate on the "status" field.
  718. func StatusHasSuffix(v string) predicate.Account {
  719. return predicate.Account(sql.FieldHasSuffix(FieldStatus, v))
  720. }
  721. // StatusEqualFold applies the EqualFold predicate on the "status" field.
  722. func StatusEqualFold(v string) predicate.Account {
  723. return predicate.Account(sql.FieldEqualFold(FieldStatus, v))
  724. }
  725. // StatusContainsFold applies the ContainsFold predicate on the "status" field.
  726. func StatusContainsFold(v string) predicate.Account {
  727. return predicate.Account(sql.FieldContainsFold(FieldStatus, v))
  728. }
  729. // ErrorMessageEQ applies the EQ predicate on the "error_message" field.
  730. func ErrorMessageEQ(v string) predicate.Account {
  731. return predicate.Account(sql.FieldEQ(FieldErrorMessage, v))
  732. }
  733. // ErrorMessageNEQ applies the NEQ predicate on the "error_message" field.
  734. func ErrorMessageNEQ(v string) predicate.Account {
  735. return predicate.Account(sql.FieldNEQ(FieldErrorMessage, v))
  736. }
  737. // ErrorMessageIn applies the In predicate on the "error_message" field.
  738. func ErrorMessageIn(vs ...string) predicate.Account {
  739. return predicate.Account(sql.FieldIn(FieldErrorMessage, vs...))
  740. }
  741. // ErrorMessageNotIn applies the NotIn predicate on the "error_message" field.
  742. func ErrorMessageNotIn(vs ...string) predicate.Account {
  743. return predicate.Account(sql.FieldNotIn(FieldErrorMessage, vs...))
  744. }
  745. // ErrorMessageGT applies the GT predicate on the "error_message" field.
  746. func ErrorMessageGT(v string) predicate.Account {
  747. return predicate.Account(sql.FieldGT(FieldErrorMessage, v))
  748. }
  749. // ErrorMessageGTE applies the GTE predicate on the "error_message" field.
  750. func ErrorMessageGTE(v string) predicate.Account {
  751. return predicate.Account(sql.FieldGTE(FieldErrorMessage, v))
  752. }
  753. // ErrorMessageLT applies the LT predicate on the "error_message" field.
  754. func ErrorMessageLT(v string) predicate.Account {
  755. return predicate.Account(sql.FieldLT(FieldErrorMessage, v))
  756. }
  757. // ErrorMessageLTE applies the LTE predicate on the "error_message" field.
  758. func ErrorMessageLTE(v string) predicate.Account {
  759. return predicate.Account(sql.FieldLTE(FieldErrorMessage, v))
  760. }
  761. // ErrorMessageContains applies the Contains predicate on the "error_message" field.
  762. func ErrorMessageContains(v string) predicate.Account {
  763. return predicate.Account(sql.FieldContains(FieldErrorMessage, v))
  764. }
  765. // ErrorMessageHasPrefix applies the HasPrefix predicate on the "error_message" field.
  766. func ErrorMessageHasPrefix(v string) predicate.Account {
  767. return predicate.Account(sql.FieldHasPrefix(FieldErrorMessage, v))
  768. }
  769. // ErrorMessageHasSuffix applies the HasSuffix predicate on the "error_message" field.
  770. func ErrorMessageHasSuffix(v string) predicate.Account {
  771. return predicate.Account(sql.FieldHasSuffix(FieldErrorMessage, v))
  772. }
  773. // ErrorMessageIsNil applies the IsNil predicate on the "error_message" field.
  774. func ErrorMessageIsNil() predicate.Account {
  775. return predicate.Account(sql.FieldIsNull(FieldErrorMessage))
  776. }
  777. // ErrorMessageNotNil applies the NotNil predicate on the "error_message" field.
  778. func ErrorMessageNotNil() predicate.Account {
  779. return predicate.Account(sql.FieldNotNull(FieldErrorMessage))
  780. }
  781. // ErrorMessageEqualFold applies the EqualFold predicate on the "error_message" field.
  782. func ErrorMessageEqualFold(v string) predicate.Account {
  783. return predicate.Account(sql.FieldEqualFold(FieldErrorMessage, v))
  784. }
  785. // ErrorMessageContainsFold applies the ContainsFold predicate on the "error_message" field.
  786. func ErrorMessageContainsFold(v string) predicate.Account {
  787. return predicate.Account(sql.FieldContainsFold(FieldErrorMessage, v))
  788. }
  789. // LastUsedAtEQ applies the EQ predicate on the "last_used_at" field.
  790. func LastUsedAtEQ(v time.Time) predicate.Account {
  791. return predicate.Account(sql.FieldEQ(FieldLastUsedAt, v))
  792. }
  793. // LastUsedAtNEQ applies the NEQ predicate on the "last_used_at" field.
  794. func LastUsedAtNEQ(v time.Time) predicate.Account {
  795. return predicate.Account(sql.FieldNEQ(FieldLastUsedAt, v))
  796. }
  797. // LastUsedAtIn applies the In predicate on the "last_used_at" field.
  798. func LastUsedAtIn(vs ...time.Time) predicate.Account {
  799. return predicate.Account(sql.FieldIn(FieldLastUsedAt, vs...))
  800. }
  801. // LastUsedAtNotIn applies the NotIn predicate on the "last_used_at" field.
  802. func LastUsedAtNotIn(vs ...time.Time) predicate.Account {
  803. return predicate.Account(sql.FieldNotIn(FieldLastUsedAt, vs...))
  804. }
  805. // LastUsedAtGT applies the GT predicate on the "last_used_at" field.
  806. func LastUsedAtGT(v time.Time) predicate.Account {
  807. return predicate.Account(sql.FieldGT(FieldLastUsedAt, v))
  808. }
  809. // LastUsedAtGTE applies the GTE predicate on the "last_used_at" field.
  810. func LastUsedAtGTE(v time.Time) predicate.Account {
  811. return predicate.Account(sql.FieldGTE(FieldLastUsedAt, v))
  812. }
  813. // LastUsedAtLT applies the LT predicate on the "last_used_at" field.
  814. func LastUsedAtLT(v time.Time) predicate.Account {
  815. return predicate.Account(sql.FieldLT(FieldLastUsedAt, v))
  816. }
  817. // LastUsedAtLTE applies the LTE predicate on the "last_used_at" field.
  818. func LastUsedAtLTE(v time.Time) predicate.Account {
  819. return predicate.Account(sql.FieldLTE(FieldLastUsedAt, v))
  820. }
  821. // LastUsedAtIsNil applies the IsNil predicate on the "last_used_at" field.
  822. func LastUsedAtIsNil() predicate.Account {
  823. return predicate.Account(sql.FieldIsNull(FieldLastUsedAt))
  824. }
  825. // LastUsedAtNotNil applies the NotNil predicate on the "last_used_at" field.
  826. func LastUsedAtNotNil() predicate.Account {
  827. return predicate.Account(sql.FieldNotNull(FieldLastUsedAt))
  828. }
  829. // ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
  830. func ExpiresAtEQ(v time.Time) predicate.Account {
  831. return predicate.Account(sql.FieldEQ(FieldExpiresAt, v))
  832. }
  833. // ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
  834. func ExpiresAtNEQ(v time.Time) predicate.Account {
  835. return predicate.Account(sql.FieldNEQ(FieldExpiresAt, v))
  836. }
  837. // ExpiresAtIn applies the In predicate on the "expires_at" field.
  838. func ExpiresAtIn(vs ...time.Time) predicate.Account {
  839. return predicate.Account(sql.FieldIn(FieldExpiresAt, vs...))
  840. }
  841. // ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
  842. func ExpiresAtNotIn(vs ...time.Time) predicate.Account {
  843. return predicate.Account(sql.FieldNotIn(FieldExpiresAt, vs...))
  844. }
  845. // ExpiresAtGT applies the GT predicate on the "expires_at" field.
  846. func ExpiresAtGT(v time.Time) predicate.Account {
  847. return predicate.Account(sql.FieldGT(FieldExpiresAt, v))
  848. }
  849. // ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
  850. func ExpiresAtGTE(v time.Time) predicate.Account {
  851. return predicate.Account(sql.FieldGTE(FieldExpiresAt, v))
  852. }
  853. // ExpiresAtLT applies the LT predicate on the "expires_at" field.
  854. func ExpiresAtLT(v time.Time) predicate.Account {
  855. return predicate.Account(sql.FieldLT(FieldExpiresAt, v))
  856. }
  857. // ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
  858. func ExpiresAtLTE(v time.Time) predicate.Account {
  859. return predicate.Account(sql.FieldLTE(FieldExpiresAt, v))
  860. }
  861. // ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
  862. func ExpiresAtIsNil() predicate.Account {
  863. return predicate.Account(sql.FieldIsNull(FieldExpiresAt))
  864. }
  865. // ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
  866. func ExpiresAtNotNil() predicate.Account {
  867. return predicate.Account(sql.FieldNotNull(FieldExpiresAt))
  868. }
  869. // AutoPauseOnExpiredEQ applies the EQ predicate on the "auto_pause_on_expired" field.
  870. func AutoPauseOnExpiredEQ(v bool) predicate.Account {
  871. return predicate.Account(sql.FieldEQ(FieldAutoPauseOnExpired, v))
  872. }
  873. // AutoPauseOnExpiredNEQ applies the NEQ predicate on the "auto_pause_on_expired" field.
  874. func AutoPauseOnExpiredNEQ(v bool) predicate.Account {
  875. return predicate.Account(sql.FieldNEQ(FieldAutoPauseOnExpired, v))
  876. }
  877. // SchedulableEQ applies the EQ predicate on the "schedulable" field.
  878. func SchedulableEQ(v bool) predicate.Account {
  879. return predicate.Account(sql.FieldEQ(FieldSchedulable, v))
  880. }
  881. // SchedulableNEQ applies the NEQ predicate on the "schedulable" field.
  882. func SchedulableNEQ(v bool) predicate.Account {
  883. return predicate.Account(sql.FieldNEQ(FieldSchedulable, v))
  884. }
  885. // RateLimitedAtEQ applies the EQ predicate on the "rate_limited_at" field.
  886. func RateLimitedAtEQ(v time.Time) predicate.Account {
  887. return predicate.Account(sql.FieldEQ(FieldRateLimitedAt, v))
  888. }
  889. // RateLimitedAtNEQ applies the NEQ predicate on the "rate_limited_at" field.
  890. func RateLimitedAtNEQ(v time.Time) predicate.Account {
  891. return predicate.Account(sql.FieldNEQ(FieldRateLimitedAt, v))
  892. }
  893. // RateLimitedAtIn applies the In predicate on the "rate_limited_at" field.
  894. func RateLimitedAtIn(vs ...time.Time) predicate.Account {
  895. return predicate.Account(sql.FieldIn(FieldRateLimitedAt, vs...))
  896. }
  897. // RateLimitedAtNotIn applies the NotIn predicate on the "rate_limited_at" field.
  898. func RateLimitedAtNotIn(vs ...time.Time) predicate.Account {
  899. return predicate.Account(sql.FieldNotIn(FieldRateLimitedAt, vs...))
  900. }
  901. // RateLimitedAtGT applies the GT predicate on the "rate_limited_at" field.
  902. func RateLimitedAtGT(v time.Time) predicate.Account {
  903. return predicate.Account(sql.FieldGT(FieldRateLimitedAt, v))
  904. }
  905. // RateLimitedAtGTE applies the GTE predicate on the "rate_limited_at" field.
  906. func RateLimitedAtGTE(v time.Time) predicate.Account {
  907. return predicate.Account(sql.FieldGTE(FieldRateLimitedAt, v))
  908. }
  909. // RateLimitedAtLT applies the LT predicate on the "rate_limited_at" field.
  910. func RateLimitedAtLT(v time.Time) predicate.Account {
  911. return predicate.Account(sql.FieldLT(FieldRateLimitedAt, v))
  912. }
  913. // RateLimitedAtLTE applies the LTE predicate on the "rate_limited_at" field.
  914. func RateLimitedAtLTE(v time.Time) predicate.Account {
  915. return predicate.Account(sql.FieldLTE(FieldRateLimitedAt, v))
  916. }
  917. // RateLimitedAtIsNil applies the IsNil predicate on the "rate_limited_at" field.
  918. func RateLimitedAtIsNil() predicate.Account {
  919. return predicate.Account(sql.FieldIsNull(FieldRateLimitedAt))
  920. }
  921. // RateLimitedAtNotNil applies the NotNil predicate on the "rate_limited_at" field.
  922. func RateLimitedAtNotNil() predicate.Account {
  923. return predicate.Account(sql.FieldNotNull(FieldRateLimitedAt))
  924. }
  925. // RateLimitResetAtEQ applies the EQ predicate on the "rate_limit_reset_at" field.
  926. func RateLimitResetAtEQ(v time.Time) predicate.Account {
  927. return predicate.Account(sql.FieldEQ(FieldRateLimitResetAt, v))
  928. }
  929. // RateLimitResetAtNEQ applies the NEQ predicate on the "rate_limit_reset_at" field.
  930. func RateLimitResetAtNEQ(v time.Time) predicate.Account {
  931. return predicate.Account(sql.FieldNEQ(FieldRateLimitResetAt, v))
  932. }
  933. // RateLimitResetAtIn applies the In predicate on the "rate_limit_reset_at" field.
  934. func RateLimitResetAtIn(vs ...time.Time) predicate.Account {
  935. return predicate.Account(sql.FieldIn(FieldRateLimitResetAt, vs...))
  936. }
  937. // RateLimitResetAtNotIn applies the NotIn predicate on the "rate_limit_reset_at" field.
  938. func RateLimitResetAtNotIn(vs ...time.Time) predicate.Account {
  939. return predicate.Account(sql.FieldNotIn(FieldRateLimitResetAt, vs...))
  940. }
  941. // RateLimitResetAtGT applies the GT predicate on the "rate_limit_reset_at" field.
  942. func RateLimitResetAtGT(v time.Time) predicate.Account {
  943. return predicate.Account(sql.FieldGT(FieldRateLimitResetAt, v))
  944. }
  945. // RateLimitResetAtGTE applies the GTE predicate on the "rate_limit_reset_at" field.
  946. func RateLimitResetAtGTE(v time.Time) predicate.Account {
  947. return predicate.Account(sql.FieldGTE(FieldRateLimitResetAt, v))
  948. }
  949. // RateLimitResetAtLT applies the LT predicate on the "rate_limit_reset_at" field.
  950. func RateLimitResetAtLT(v time.Time) predicate.Account {
  951. return predicate.Account(sql.FieldLT(FieldRateLimitResetAt, v))
  952. }
  953. // RateLimitResetAtLTE applies the LTE predicate on the "rate_limit_reset_at" field.
  954. func RateLimitResetAtLTE(v time.Time) predicate.Account {
  955. return predicate.Account(sql.FieldLTE(FieldRateLimitResetAt, v))
  956. }
  957. // RateLimitResetAtIsNil applies the IsNil predicate on the "rate_limit_reset_at" field.
  958. func RateLimitResetAtIsNil() predicate.Account {
  959. return predicate.Account(sql.FieldIsNull(FieldRateLimitResetAt))
  960. }
  961. // RateLimitResetAtNotNil applies the NotNil predicate on the "rate_limit_reset_at" field.
  962. func RateLimitResetAtNotNil() predicate.Account {
  963. return predicate.Account(sql.FieldNotNull(FieldRateLimitResetAt))
  964. }
  965. // OverloadUntilEQ applies the EQ predicate on the "overload_until" field.
  966. func OverloadUntilEQ(v time.Time) predicate.Account {
  967. return predicate.Account(sql.FieldEQ(FieldOverloadUntil, v))
  968. }
  969. // OverloadUntilNEQ applies the NEQ predicate on the "overload_until" field.
  970. func OverloadUntilNEQ(v time.Time) predicate.Account {
  971. return predicate.Account(sql.FieldNEQ(FieldOverloadUntil, v))
  972. }
  973. // OverloadUntilIn applies the In predicate on the "overload_until" field.
  974. func OverloadUntilIn(vs ...time.Time) predicate.Account {
  975. return predicate.Account(sql.FieldIn(FieldOverloadUntil, vs...))
  976. }
  977. // OverloadUntilNotIn applies the NotIn predicate on the "overload_until" field.
  978. func OverloadUntilNotIn(vs ...time.Time) predicate.Account {
  979. return predicate.Account(sql.FieldNotIn(FieldOverloadUntil, vs...))
  980. }
  981. // OverloadUntilGT applies the GT predicate on the "overload_until" field.
  982. func OverloadUntilGT(v time.Time) predicate.Account {
  983. return predicate.Account(sql.FieldGT(FieldOverloadUntil, v))
  984. }
  985. // OverloadUntilGTE applies the GTE predicate on the "overload_until" field.
  986. func OverloadUntilGTE(v time.Time) predicate.Account {
  987. return predicate.Account(sql.FieldGTE(FieldOverloadUntil, v))
  988. }
  989. // OverloadUntilLT applies the LT predicate on the "overload_until" field.
  990. func OverloadUntilLT(v time.Time) predicate.Account {
  991. return predicate.Account(sql.FieldLT(FieldOverloadUntil, v))
  992. }
  993. // OverloadUntilLTE applies the LTE predicate on the "overload_until" field.
  994. func OverloadUntilLTE(v time.Time) predicate.Account {
  995. return predicate.Account(sql.FieldLTE(FieldOverloadUntil, v))
  996. }
  997. // OverloadUntilIsNil applies the IsNil predicate on the "overload_until" field.
  998. func OverloadUntilIsNil() predicate.Account {
  999. return predicate.Account(sql.FieldIsNull(FieldOverloadUntil))
  1000. }
  1001. // OverloadUntilNotNil applies the NotNil predicate on the "overload_until" field.
  1002. func OverloadUntilNotNil() predicate.Account {
  1003. return predicate.Account(sql.FieldNotNull(FieldOverloadUntil))
  1004. }
  1005. // TempUnschedulableUntilEQ applies the EQ predicate on the "temp_unschedulable_until" field.
  1006. func TempUnschedulableUntilEQ(v time.Time) predicate.Account {
  1007. return predicate.Account(sql.FieldEQ(FieldTempUnschedulableUntil, v))
  1008. }
  1009. // TempUnschedulableUntilNEQ applies the NEQ predicate on the "temp_unschedulable_until" field.
  1010. func TempUnschedulableUntilNEQ(v time.Time) predicate.Account {
  1011. return predicate.Account(sql.FieldNEQ(FieldTempUnschedulableUntil, v))
  1012. }
  1013. // TempUnschedulableUntilIn applies the In predicate on the "temp_unschedulable_until" field.
  1014. func TempUnschedulableUntilIn(vs ...time.Time) predicate.Account {
  1015. return predicate.Account(sql.FieldIn(FieldTempUnschedulableUntil, vs...))
  1016. }
  1017. // TempUnschedulableUntilNotIn applies the NotIn predicate on the "temp_unschedulable_until" field.
  1018. func TempUnschedulableUntilNotIn(vs ...time.Time) predicate.Account {
  1019. return predicate.Account(sql.FieldNotIn(FieldTempUnschedulableUntil, vs...))
  1020. }
  1021. // TempUnschedulableUntilGT applies the GT predicate on the "temp_unschedulable_until" field.
  1022. func TempUnschedulableUntilGT(v time.Time) predicate.Account {
  1023. return predicate.Account(sql.FieldGT(FieldTempUnschedulableUntil, v))
  1024. }
  1025. // TempUnschedulableUntilGTE applies the GTE predicate on the "temp_unschedulable_until" field.
  1026. func TempUnschedulableUntilGTE(v time.Time) predicate.Account {
  1027. return predicate.Account(sql.FieldGTE(FieldTempUnschedulableUntil, v))
  1028. }
  1029. // TempUnschedulableUntilLT applies the LT predicate on the "temp_unschedulable_until" field.
  1030. func TempUnschedulableUntilLT(v time.Time) predicate.Account {
  1031. return predicate.Account(sql.FieldLT(FieldTempUnschedulableUntil, v))
  1032. }
  1033. // TempUnschedulableUntilLTE applies the LTE predicate on the "temp_unschedulable_until" field.
  1034. func TempUnschedulableUntilLTE(v time.Time) predicate.Account {
  1035. return predicate.Account(sql.FieldLTE(FieldTempUnschedulableUntil, v))
  1036. }
  1037. // TempUnschedulableUntilIsNil applies the IsNil predicate on the "temp_unschedulable_until" field.
  1038. func TempUnschedulableUntilIsNil() predicate.Account {
  1039. return predicate.Account(sql.FieldIsNull(FieldTempUnschedulableUntil))
  1040. }
  1041. // TempUnschedulableUntilNotNil applies the NotNil predicate on the "temp_unschedulable_until" field.
  1042. func TempUnschedulableUntilNotNil() predicate.Account {
  1043. return predicate.Account(sql.FieldNotNull(FieldTempUnschedulableUntil))
  1044. }
  1045. // TempUnschedulableReasonEQ applies the EQ predicate on the "temp_unschedulable_reason" field.
  1046. func TempUnschedulableReasonEQ(v string) predicate.Account {
  1047. return predicate.Account(sql.FieldEQ(FieldTempUnschedulableReason, v))
  1048. }
  1049. // TempUnschedulableReasonNEQ applies the NEQ predicate on the "temp_unschedulable_reason" field.
  1050. func TempUnschedulableReasonNEQ(v string) predicate.Account {
  1051. return predicate.Account(sql.FieldNEQ(FieldTempUnschedulableReason, v))
  1052. }
  1053. // TempUnschedulableReasonIn applies the In predicate on the "temp_unschedulable_reason" field.
  1054. func TempUnschedulableReasonIn(vs ...string) predicate.Account {
  1055. return predicate.Account(sql.FieldIn(FieldTempUnschedulableReason, vs...))
  1056. }
  1057. // TempUnschedulableReasonNotIn applies the NotIn predicate on the "temp_unschedulable_reason" field.
  1058. func TempUnschedulableReasonNotIn(vs ...string) predicate.Account {
  1059. return predicate.Account(sql.FieldNotIn(FieldTempUnschedulableReason, vs...))
  1060. }
  1061. // TempUnschedulableReasonGT applies the GT predicate on the "temp_unschedulable_reason" field.
  1062. func TempUnschedulableReasonGT(v string) predicate.Account {
  1063. return predicate.Account(sql.FieldGT(FieldTempUnschedulableReason, v))
  1064. }
  1065. // TempUnschedulableReasonGTE applies the GTE predicate on the "temp_unschedulable_reason" field.
  1066. func TempUnschedulableReasonGTE(v string) predicate.Account {
  1067. return predicate.Account(sql.FieldGTE(FieldTempUnschedulableReason, v))
  1068. }
  1069. // TempUnschedulableReasonLT applies the LT predicate on the "temp_unschedulable_reason" field.
  1070. func TempUnschedulableReasonLT(v string) predicate.Account {
  1071. return predicate.Account(sql.FieldLT(FieldTempUnschedulableReason, v))
  1072. }
  1073. // TempUnschedulableReasonLTE applies the LTE predicate on the "temp_unschedulable_reason" field.
  1074. func TempUnschedulableReasonLTE(v string) predicate.Account {
  1075. return predicate.Account(sql.FieldLTE(FieldTempUnschedulableReason, v))
  1076. }
  1077. // TempUnschedulableReasonContains applies the Contains predicate on the "temp_unschedulable_reason" field.
  1078. func TempUnschedulableReasonContains(v string) predicate.Account {
  1079. return predicate.Account(sql.FieldContains(FieldTempUnschedulableReason, v))
  1080. }
  1081. // TempUnschedulableReasonHasPrefix applies the HasPrefix predicate on the "temp_unschedulable_reason" field.
  1082. func TempUnschedulableReasonHasPrefix(v string) predicate.Account {
  1083. return predicate.Account(sql.FieldHasPrefix(FieldTempUnschedulableReason, v))
  1084. }
  1085. // TempUnschedulableReasonHasSuffix applies the HasSuffix predicate on the "temp_unschedulable_reason" field.
  1086. func TempUnschedulableReasonHasSuffix(v string) predicate.Account {
  1087. return predicate.Account(sql.FieldHasSuffix(FieldTempUnschedulableReason, v))
  1088. }
  1089. // TempUnschedulableReasonIsNil applies the IsNil predicate on the "temp_unschedulable_reason" field.
  1090. func TempUnschedulableReasonIsNil() predicate.Account {
  1091. return predicate.Account(sql.FieldIsNull(FieldTempUnschedulableReason))
  1092. }
  1093. // TempUnschedulableReasonNotNil applies the NotNil predicate on the "temp_unschedulable_reason" field.
  1094. func TempUnschedulableReasonNotNil() predicate.Account {
  1095. return predicate.Account(sql.FieldNotNull(FieldTempUnschedulableReason))
  1096. }
  1097. // TempUnschedulableReasonEqualFold applies the EqualFold predicate on the "temp_unschedulable_reason" field.
  1098. func TempUnschedulableReasonEqualFold(v string) predicate.Account {
  1099. return predicate.Account(sql.FieldEqualFold(FieldTempUnschedulableReason, v))
  1100. }
  1101. // TempUnschedulableReasonContainsFold applies the ContainsFold predicate on the "temp_unschedulable_reason" field.
  1102. func TempUnschedulableReasonContainsFold(v string) predicate.Account {
  1103. return predicate.Account(sql.FieldContainsFold(FieldTempUnschedulableReason, v))
  1104. }
  1105. // SessionWindowStartEQ applies the EQ predicate on the "session_window_start" field.
  1106. func SessionWindowStartEQ(v time.Time) predicate.Account {
  1107. return predicate.Account(sql.FieldEQ(FieldSessionWindowStart, v))
  1108. }
  1109. // SessionWindowStartNEQ applies the NEQ predicate on the "session_window_start" field.
  1110. func SessionWindowStartNEQ(v time.Time) predicate.Account {
  1111. return predicate.Account(sql.FieldNEQ(FieldSessionWindowStart, v))
  1112. }
  1113. // SessionWindowStartIn applies the In predicate on the "session_window_start" field.
  1114. func SessionWindowStartIn(vs ...time.Time) predicate.Account {
  1115. return predicate.Account(sql.FieldIn(FieldSessionWindowStart, vs...))
  1116. }
  1117. // SessionWindowStartNotIn applies the NotIn predicate on the "session_window_start" field.
  1118. func SessionWindowStartNotIn(vs ...time.Time) predicate.Account {
  1119. return predicate.Account(sql.FieldNotIn(FieldSessionWindowStart, vs...))
  1120. }
  1121. // SessionWindowStartGT applies the GT predicate on the "session_window_start" field.
  1122. func SessionWindowStartGT(v time.Time) predicate.Account {
  1123. return predicate.Account(sql.FieldGT(FieldSessionWindowStart, v))
  1124. }
  1125. // SessionWindowStartGTE applies the GTE predicate on the "session_window_start" field.
  1126. func SessionWindowStartGTE(v time.Time) predicate.Account {
  1127. return predicate.Account(sql.FieldGTE(FieldSessionWindowStart, v))
  1128. }
  1129. // SessionWindowStartLT applies the LT predicate on the "session_window_start" field.
  1130. func SessionWindowStartLT(v time.Time) predicate.Account {
  1131. return predicate.Account(sql.FieldLT(FieldSessionWindowStart, v))
  1132. }
  1133. // SessionWindowStartLTE applies the LTE predicate on the "session_window_start" field.
  1134. func SessionWindowStartLTE(v time.Time) predicate.Account {
  1135. return predicate.Account(sql.FieldLTE(FieldSessionWindowStart, v))
  1136. }
  1137. // SessionWindowStartIsNil applies the IsNil predicate on the "session_window_start" field.
  1138. func SessionWindowStartIsNil() predicate.Account {
  1139. return predicate.Account(sql.FieldIsNull(FieldSessionWindowStart))
  1140. }
  1141. // SessionWindowStartNotNil applies the NotNil predicate on the "session_window_start" field.
  1142. func SessionWindowStartNotNil() predicate.Account {
  1143. return predicate.Account(sql.FieldNotNull(FieldSessionWindowStart))
  1144. }
  1145. // SessionWindowEndEQ applies the EQ predicate on the "session_window_end" field.
  1146. func SessionWindowEndEQ(v time.Time) predicate.Account {
  1147. return predicate.Account(sql.FieldEQ(FieldSessionWindowEnd, v))
  1148. }
  1149. // SessionWindowEndNEQ applies the NEQ predicate on the "session_window_end" field.
  1150. func SessionWindowEndNEQ(v time.Time) predicate.Account {
  1151. return predicate.Account(sql.FieldNEQ(FieldSessionWindowEnd, v))
  1152. }
  1153. // SessionWindowEndIn applies the In predicate on the "session_window_end" field.
  1154. func SessionWindowEndIn(vs ...time.Time) predicate.Account {
  1155. return predicate.Account(sql.FieldIn(FieldSessionWindowEnd, vs...))
  1156. }
  1157. // SessionWindowEndNotIn applies the NotIn predicate on the "session_window_end" field.
  1158. func SessionWindowEndNotIn(vs ...time.Time) predicate.Account {
  1159. return predicate.Account(sql.FieldNotIn(FieldSessionWindowEnd, vs...))
  1160. }
  1161. // SessionWindowEndGT applies the GT predicate on the "session_window_end" field.
  1162. func SessionWindowEndGT(v time.Time) predicate.Account {
  1163. return predicate.Account(sql.FieldGT(FieldSessionWindowEnd, v))
  1164. }
  1165. // SessionWindowEndGTE applies the GTE predicate on the "session_window_end" field.
  1166. func SessionWindowEndGTE(v time.Time) predicate.Account {
  1167. return predicate.Account(sql.FieldGTE(FieldSessionWindowEnd, v))
  1168. }
  1169. // SessionWindowEndLT applies the LT predicate on the "session_window_end" field.
  1170. func SessionWindowEndLT(v time.Time) predicate.Account {
  1171. return predicate.Account(sql.FieldLT(FieldSessionWindowEnd, v))
  1172. }
  1173. // SessionWindowEndLTE applies the LTE predicate on the "session_window_end" field.
  1174. func SessionWindowEndLTE(v time.Time) predicate.Account {
  1175. return predicate.Account(sql.FieldLTE(FieldSessionWindowEnd, v))
  1176. }
  1177. // SessionWindowEndIsNil applies the IsNil predicate on the "session_window_end" field.
  1178. func SessionWindowEndIsNil() predicate.Account {
  1179. return predicate.Account(sql.FieldIsNull(FieldSessionWindowEnd))
  1180. }
  1181. // SessionWindowEndNotNil applies the NotNil predicate on the "session_window_end" field.
  1182. func SessionWindowEndNotNil() predicate.Account {
  1183. return predicate.Account(sql.FieldNotNull(FieldSessionWindowEnd))
  1184. }
  1185. // SessionWindowStatusEQ applies the EQ predicate on the "session_window_status" field.
  1186. func SessionWindowStatusEQ(v string) predicate.Account {
  1187. return predicate.Account(sql.FieldEQ(FieldSessionWindowStatus, v))
  1188. }
  1189. // SessionWindowStatusNEQ applies the NEQ predicate on the "session_window_status" field.
  1190. func SessionWindowStatusNEQ(v string) predicate.Account {
  1191. return predicate.Account(sql.FieldNEQ(FieldSessionWindowStatus, v))
  1192. }
  1193. // SessionWindowStatusIn applies the In predicate on the "session_window_status" field.
  1194. func SessionWindowStatusIn(vs ...string) predicate.Account {
  1195. return predicate.Account(sql.FieldIn(FieldSessionWindowStatus, vs...))
  1196. }
  1197. // SessionWindowStatusNotIn applies the NotIn predicate on the "session_window_status" field.
  1198. func SessionWindowStatusNotIn(vs ...string) predicate.Account {
  1199. return predicate.Account(sql.FieldNotIn(FieldSessionWindowStatus, vs...))
  1200. }
  1201. // SessionWindowStatusGT applies the GT predicate on the "session_window_status" field.
  1202. func SessionWindowStatusGT(v string) predicate.Account {
  1203. return predicate.Account(sql.FieldGT(FieldSessionWindowStatus, v))
  1204. }
  1205. // SessionWindowStatusGTE applies the GTE predicate on the "session_window_status" field.
  1206. func SessionWindowStatusGTE(v string) predicate.Account {
  1207. return predicate.Account(sql.FieldGTE(FieldSessionWindowStatus, v))
  1208. }
  1209. // SessionWindowStatusLT applies the LT predicate on the "session_window_status" field.
  1210. func SessionWindowStatusLT(v string) predicate.Account {
  1211. return predicate.Account(sql.FieldLT(FieldSessionWindowStatus, v))
  1212. }
  1213. // SessionWindowStatusLTE applies the LTE predicate on the "session_window_status" field.
  1214. func SessionWindowStatusLTE(v string) predicate.Account {
  1215. return predicate.Account(sql.FieldLTE(FieldSessionWindowStatus, v))
  1216. }
  1217. // SessionWindowStatusContains applies the Contains predicate on the "session_window_status" field.
  1218. func SessionWindowStatusContains(v string) predicate.Account {
  1219. return predicate.Account(sql.FieldContains(FieldSessionWindowStatus, v))
  1220. }
  1221. // SessionWindowStatusHasPrefix applies the HasPrefix predicate on the "session_window_status" field.
  1222. func SessionWindowStatusHasPrefix(v string) predicate.Account {
  1223. return predicate.Account(sql.FieldHasPrefix(FieldSessionWindowStatus, v))
  1224. }
  1225. // SessionWindowStatusHasSuffix applies the HasSuffix predicate on the "session_window_status" field.
  1226. func SessionWindowStatusHasSuffix(v string) predicate.Account {
  1227. return predicate.Account(sql.FieldHasSuffix(FieldSessionWindowStatus, v))
  1228. }
  1229. // SessionWindowStatusIsNil applies the IsNil predicate on the "session_window_status" field.
  1230. func SessionWindowStatusIsNil() predicate.Account {
  1231. return predicate.Account(sql.FieldIsNull(FieldSessionWindowStatus))
  1232. }
  1233. // SessionWindowStatusNotNil applies the NotNil predicate on the "session_window_status" field.
  1234. func SessionWindowStatusNotNil() predicate.Account {
  1235. return predicate.Account(sql.FieldNotNull(FieldSessionWindowStatus))
  1236. }
  1237. // SessionWindowStatusEqualFold applies the EqualFold predicate on the "session_window_status" field.
  1238. func SessionWindowStatusEqualFold(v string) predicate.Account {
  1239. return predicate.Account(sql.FieldEqualFold(FieldSessionWindowStatus, v))
  1240. }
  1241. // SessionWindowStatusContainsFold applies the ContainsFold predicate on the "session_window_status" field.
  1242. func SessionWindowStatusContainsFold(v string) predicate.Account {
  1243. return predicate.Account(sql.FieldContainsFold(FieldSessionWindowStatus, v))
  1244. }
  1245. // ParentAccountIDEQ applies the EQ predicate on the "parent_account_id" field.
  1246. func ParentAccountIDEQ(v int64) predicate.Account {
  1247. return predicate.Account(sql.FieldEQ(FieldParentAccountID, v))
  1248. }
  1249. // ParentAccountIDNEQ applies the NEQ predicate on the "parent_account_id" field.
  1250. func ParentAccountIDNEQ(v int64) predicate.Account {
  1251. return predicate.Account(sql.FieldNEQ(FieldParentAccountID, v))
  1252. }
  1253. // ParentAccountIDIn applies the In predicate on the "parent_account_id" field.
  1254. func ParentAccountIDIn(vs ...int64) predicate.Account {
  1255. return predicate.Account(sql.FieldIn(FieldParentAccountID, vs...))
  1256. }
  1257. // ParentAccountIDNotIn applies the NotIn predicate on the "parent_account_id" field.
  1258. func ParentAccountIDNotIn(vs ...int64) predicate.Account {
  1259. return predicate.Account(sql.FieldNotIn(FieldParentAccountID, vs...))
  1260. }
  1261. // ParentAccountIDIsNil applies the IsNil predicate on the "parent_account_id" field.
  1262. func ParentAccountIDIsNil() predicate.Account {
  1263. return predicate.Account(sql.FieldIsNull(FieldParentAccountID))
  1264. }
  1265. // ParentAccountIDNotNil applies the NotNil predicate on the "parent_account_id" field.
  1266. func ParentAccountIDNotNil() predicate.Account {
  1267. return predicate.Account(sql.FieldNotNull(FieldParentAccountID))
  1268. }
  1269. // QuotaDimensionEQ applies the EQ predicate on the "quota_dimension" field.
  1270. func QuotaDimensionEQ(v QuotaDimension) predicate.Account {
  1271. return predicate.Account(sql.FieldEQ(FieldQuotaDimension, v))
  1272. }
  1273. // QuotaDimensionNEQ applies the NEQ predicate on the "quota_dimension" field.
  1274. func QuotaDimensionNEQ(v QuotaDimension) predicate.Account {
  1275. return predicate.Account(sql.FieldNEQ(FieldQuotaDimension, v))
  1276. }
  1277. // QuotaDimensionIn applies the In predicate on the "quota_dimension" field.
  1278. func QuotaDimensionIn(vs ...QuotaDimension) predicate.Account {
  1279. return predicate.Account(sql.FieldIn(FieldQuotaDimension, vs...))
  1280. }
  1281. // QuotaDimensionNotIn applies the NotIn predicate on the "quota_dimension" field.
  1282. func QuotaDimensionNotIn(vs ...QuotaDimension) predicate.Account {
  1283. return predicate.Account(sql.FieldNotIn(FieldQuotaDimension, vs...))
  1284. }
  1285. // HasGroups applies the HasEdge predicate on the "groups" edge.
  1286. func HasGroups() predicate.Account {
  1287. return predicate.Account(func(s *sql.Selector) {
  1288. step := sqlgraph.NewStep(
  1289. sqlgraph.From(Table, FieldID),
  1290. sqlgraph.Edge(sqlgraph.M2M, false, GroupsTable, GroupsPrimaryKey...),
  1291. )
  1292. sqlgraph.HasNeighbors(s, step)
  1293. })
  1294. }
  1295. // HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
  1296. func HasGroupsWith(preds ...predicate.Group) predicate.Account {
  1297. return predicate.Account(func(s *sql.Selector) {
  1298. step := newGroupsStep()
  1299. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1300. for _, p := range preds {
  1301. p(s)
  1302. }
  1303. })
  1304. })
  1305. }
  1306. // HasProxy applies the HasEdge predicate on the "proxy" edge.
  1307. func HasProxy() predicate.Account {
  1308. return predicate.Account(func(s *sql.Selector) {
  1309. step := sqlgraph.NewStep(
  1310. sqlgraph.From(Table, FieldID),
  1311. sqlgraph.Edge(sqlgraph.M2O, false, ProxyTable, ProxyColumn),
  1312. )
  1313. sqlgraph.HasNeighbors(s, step)
  1314. })
  1315. }
  1316. // HasProxyWith applies the HasEdge predicate on the "proxy" edge with a given conditions (other predicates).
  1317. func HasProxyWith(preds ...predicate.Proxy) predicate.Account {
  1318. return predicate.Account(func(s *sql.Selector) {
  1319. step := newProxyStep()
  1320. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1321. for _, p := range preds {
  1322. p(s)
  1323. }
  1324. })
  1325. })
  1326. }
  1327. // HasParent applies the HasEdge predicate on the "parent" edge.
  1328. func HasParent() predicate.Account {
  1329. return predicate.Account(func(s *sql.Selector) {
  1330. step := sqlgraph.NewStep(
  1331. sqlgraph.From(Table, FieldID),
  1332. sqlgraph.Edge(sqlgraph.M2O, true, ParentTable, ParentColumn),
  1333. )
  1334. sqlgraph.HasNeighbors(s, step)
  1335. })
  1336. }
  1337. // HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
  1338. func HasParentWith(preds ...predicate.Account) predicate.Account {
  1339. return predicate.Account(func(s *sql.Selector) {
  1340. step := newParentStep()
  1341. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1342. for _, p := range preds {
  1343. p(s)
  1344. }
  1345. })
  1346. })
  1347. }
  1348. // HasChildren applies the HasEdge predicate on the "children" edge.
  1349. func HasChildren() predicate.Account {
  1350. return predicate.Account(func(s *sql.Selector) {
  1351. step := sqlgraph.NewStep(
  1352. sqlgraph.From(Table, FieldID),
  1353. sqlgraph.Edge(sqlgraph.O2M, false, ChildrenTable, ChildrenColumn),
  1354. )
  1355. sqlgraph.HasNeighbors(s, step)
  1356. })
  1357. }
  1358. // HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
  1359. func HasChildrenWith(preds ...predicate.Account) predicate.Account {
  1360. return predicate.Account(func(s *sql.Selector) {
  1361. step := newChildrenStep()
  1362. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1363. for _, p := range preds {
  1364. p(s)
  1365. }
  1366. })
  1367. })
  1368. }
  1369. // HasUsageLogs applies the HasEdge predicate on the "usage_logs" edge.
  1370. func HasUsageLogs() predicate.Account {
  1371. return predicate.Account(func(s *sql.Selector) {
  1372. step := sqlgraph.NewStep(
  1373. sqlgraph.From(Table, FieldID),
  1374. sqlgraph.Edge(sqlgraph.O2M, false, UsageLogsTable, UsageLogsColumn),
  1375. )
  1376. sqlgraph.HasNeighbors(s, step)
  1377. })
  1378. }
  1379. // HasUsageLogsWith applies the HasEdge predicate on the "usage_logs" edge with a given conditions (other predicates).
  1380. func HasUsageLogsWith(preds ...predicate.UsageLog) predicate.Account {
  1381. return predicate.Account(func(s *sql.Selector) {
  1382. step := newUsageLogsStep()
  1383. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1384. for _, p := range preds {
  1385. p(s)
  1386. }
  1387. })
  1388. })
  1389. }
  1390. // HasAccountGroups applies the HasEdge predicate on the "account_groups" edge.
  1391. func HasAccountGroups() predicate.Account {
  1392. return predicate.Account(func(s *sql.Selector) {
  1393. step := sqlgraph.NewStep(
  1394. sqlgraph.From(Table, FieldID),
  1395. sqlgraph.Edge(sqlgraph.O2M, true, AccountGroupsTable, AccountGroupsColumn),
  1396. )
  1397. sqlgraph.HasNeighbors(s, step)
  1398. })
  1399. }
  1400. // HasAccountGroupsWith applies the HasEdge predicate on the "account_groups" edge with a given conditions (other predicates).
  1401. func HasAccountGroupsWith(preds ...predicate.AccountGroup) predicate.Account {
  1402. return predicate.Account(func(s *sql.Selector) {
  1403. step := newAccountGroupsStep()
  1404. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1405. for _, p := range preds {
  1406. p(s)
  1407. }
  1408. })
  1409. })
  1410. }
  1411. // And groups predicates with the AND operator between them.
  1412. func And(predicates ...predicate.Account) predicate.Account {
  1413. return predicate.Account(sql.AndPredicates(predicates...))
  1414. }
  1415. // Or groups predicates with the OR operator between them.
  1416. func Or(predicates ...predicate.Account) predicate.Account {
  1417. return predicate.Account(sql.OrPredicates(predicates...))
  1418. }
  1419. // Not applies the not operator on the given predicate.
  1420. func Not(p predicate.Account) predicate.Account {
  1421. return predicate.Account(sql.NotPredicates(p))
  1422. }