where.go 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799
  1. // Code generated by ent, DO NOT EDIT.
  2. package userplatformquota
  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.UserPlatformQuota {
  11. return predicate.UserPlatformQuota(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id int64) predicate.UserPlatformQuota {
  15. return predicate.UserPlatformQuota(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id int64) predicate.UserPlatformQuota {
  19. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...int64) predicate.UserPlatformQuota {
  23. return predicate.UserPlatformQuota(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...int64) predicate.UserPlatformQuota {
  27. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id int64) predicate.UserPlatformQuota {
  31. return predicate.UserPlatformQuota(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id int64) predicate.UserPlatformQuota {
  35. return predicate.UserPlatformQuota(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id int64) predicate.UserPlatformQuota {
  39. return predicate.UserPlatformQuota(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id int64) predicate.UserPlatformQuota {
  43. return predicate.UserPlatformQuota(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.UserPlatformQuota {
  47. return predicate.UserPlatformQuota(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.UserPlatformQuota {
  51. return predicate.UserPlatformQuota(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.UserPlatformQuota {
  55. return predicate.UserPlatformQuota(sql.FieldEQ(FieldDeletedAt, v))
  56. }
  57. // UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
  58. func UserID(v int64) predicate.UserPlatformQuota {
  59. return predicate.UserPlatformQuota(sql.FieldEQ(FieldUserID, v))
  60. }
  61. // Platform applies equality check predicate on the "platform" field. It's identical to PlatformEQ.
  62. func Platform(v string) predicate.UserPlatformQuota {
  63. return predicate.UserPlatformQuota(sql.FieldEQ(FieldPlatform, v))
  64. }
  65. // DailyLimitUsd applies equality check predicate on the "daily_limit_usd" field. It's identical to DailyLimitUsdEQ.
  66. func DailyLimitUsd(v float64) predicate.UserPlatformQuota {
  67. return predicate.UserPlatformQuota(sql.FieldEQ(FieldDailyLimitUsd, v))
  68. }
  69. // WeeklyLimitUsd applies equality check predicate on the "weekly_limit_usd" field. It's identical to WeeklyLimitUsdEQ.
  70. func WeeklyLimitUsd(v float64) predicate.UserPlatformQuota {
  71. return predicate.UserPlatformQuota(sql.FieldEQ(FieldWeeklyLimitUsd, v))
  72. }
  73. // MonthlyLimitUsd applies equality check predicate on the "monthly_limit_usd" field. It's identical to MonthlyLimitUsdEQ.
  74. func MonthlyLimitUsd(v float64) predicate.UserPlatformQuota {
  75. return predicate.UserPlatformQuota(sql.FieldEQ(FieldMonthlyLimitUsd, v))
  76. }
  77. // DailyUsageUsd applies equality check predicate on the "daily_usage_usd" field. It's identical to DailyUsageUsdEQ.
  78. func DailyUsageUsd(v float64) predicate.UserPlatformQuota {
  79. return predicate.UserPlatformQuota(sql.FieldEQ(FieldDailyUsageUsd, v))
  80. }
  81. // WeeklyUsageUsd applies equality check predicate on the "weekly_usage_usd" field. It's identical to WeeklyUsageUsdEQ.
  82. func WeeklyUsageUsd(v float64) predicate.UserPlatformQuota {
  83. return predicate.UserPlatformQuota(sql.FieldEQ(FieldWeeklyUsageUsd, v))
  84. }
  85. // MonthlyUsageUsd applies equality check predicate on the "monthly_usage_usd" field. It's identical to MonthlyUsageUsdEQ.
  86. func MonthlyUsageUsd(v float64) predicate.UserPlatformQuota {
  87. return predicate.UserPlatformQuota(sql.FieldEQ(FieldMonthlyUsageUsd, v))
  88. }
  89. // DailyWindowStart applies equality check predicate on the "daily_window_start" field. It's identical to DailyWindowStartEQ.
  90. func DailyWindowStart(v time.Time) predicate.UserPlatformQuota {
  91. return predicate.UserPlatformQuota(sql.FieldEQ(FieldDailyWindowStart, v))
  92. }
  93. // WeeklyWindowStart applies equality check predicate on the "weekly_window_start" field. It's identical to WeeklyWindowStartEQ.
  94. func WeeklyWindowStart(v time.Time) predicate.UserPlatformQuota {
  95. return predicate.UserPlatformQuota(sql.FieldEQ(FieldWeeklyWindowStart, v))
  96. }
  97. // MonthlyWindowStart applies equality check predicate on the "monthly_window_start" field. It's identical to MonthlyWindowStartEQ.
  98. func MonthlyWindowStart(v time.Time) predicate.UserPlatformQuota {
  99. return predicate.UserPlatformQuota(sql.FieldEQ(FieldMonthlyWindowStart, v))
  100. }
  101. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  102. func CreatedAtEQ(v time.Time) predicate.UserPlatformQuota {
  103. return predicate.UserPlatformQuota(sql.FieldEQ(FieldCreatedAt, v))
  104. }
  105. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  106. func CreatedAtNEQ(v time.Time) predicate.UserPlatformQuota {
  107. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldCreatedAt, v))
  108. }
  109. // CreatedAtIn applies the In predicate on the "created_at" field.
  110. func CreatedAtIn(vs ...time.Time) predicate.UserPlatformQuota {
  111. return predicate.UserPlatformQuota(sql.FieldIn(FieldCreatedAt, vs...))
  112. }
  113. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  114. func CreatedAtNotIn(vs ...time.Time) predicate.UserPlatformQuota {
  115. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldCreatedAt, vs...))
  116. }
  117. // CreatedAtGT applies the GT predicate on the "created_at" field.
  118. func CreatedAtGT(v time.Time) predicate.UserPlatformQuota {
  119. return predicate.UserPlatformQuota(sql.FieldGT(FieldCreatedAt, v))
  120. }
  121. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  122. func CreatedAtGTE(v time.Time) predicate.UserPlatformQuota {
  123. return predicate.UserPlatformQuota(sql.FieldGTE(FieldCreatedAt, v))
  124. }
  125. // CreatedAtLT applies the LT predicate on the "created_at" field.
  126. func CreatedAtLT(v time.Time) predicate.UserPlatformQuota {
  127. return predicate.UserPlatformQuota(sql.FieldLT(FieldCreatedAt, v))
  128. }
  129. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  130. func CreatedAtLTE(v time.Time) predicate.UserPlatformQuota {
  131. return predicate.UserPlatformQuota(sql.FieldLTE(FieldCreatedAt, v))
  132. }
  133. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  134. func UpdatedAtEQ(v time.Time) predicate.UserPlatformQuota {
  135. return predicate.UserPlatformQuota(sql.FieldEQ(FieldUpdatedAt, v))
  136. }
  137. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  138. func UpdatedAtNEQ(v time.Time) predicate.UserPlatformQuota {
  139. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldUpdatedAt, v))
  140. }
  141. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  142. func UpdatedAtIn(vs ...time.Time) predicate.UserPlatformQuota {
  143. return predicate.UserPlatformQuota(sql.FieldIn(FieldUpdatedAt, vs...))
  144. }
  145. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  146. func UpdatedAtNotIn(vs ...time.Time) predicate.UserPlatformQuota {
  147. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldUpdatedAt, vs...))
  148. }
  149. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  150. func UpdatedAtGT(v time.Time) predicate.UserPlatformQuota {
  151. return predicate.UserPlatformQuota(sql.FieldGT(FieldUpdatedAt, v))
  152. }
  153. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  154. func UpdatedAtGTE(v time.Time) predicate.UserPlatformQuota {
  155. return predicate.UserPlatformQuota(sql.FieldGTE(FieldUpdatedAt, v))
  156. }
  157. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  158. func UpdatedAtLT(v time.Time) predicate.UserPlatformQuota {
  159. return predicate.UserPlatformQuota(sql.FieldLT(FieldUpdatedAt, v))
  160. }
  161. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  162. func UpdatedAtLTE(v time.Time) predicate.UserPlatformQuota {
  163. return predicate.UserPlatformQuota(sql.FieldLTE(FieldUpdatedAt, v))
  164. }
  165. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  166. func DeletedAtEQ(v time.Time) predicate.UserPlatformQuota {
  167. return predicate.UserPlatformQuota(sql.FieldEQ(FieldDeletedAt, v))
  168. }
  169. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  170. func DeletedAtNEQ(v time.Time) predicate.UserPlatformQuota {
  171. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldDeletedAt, v))
  172. }
  173. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  174. func DeletedAtIn(vs ...time.Time) predicate.UserPlatformQuota {
  175. return predicate.UserPlatformQuota(sql.FieldIn(FieldDeletedAt, vs...))
  176. }
  177. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  178. func DeletedAtNotIn(vs ...time.Time) predicate.UserPlatformQuota {
  179. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldDeletedAt, vs...))
  180. }
  181. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  182. func DeletedAtGT(v time.Time) predicate.UserPlatformQuota {
  183. return predicate.UserPlatformQuota(sql.FieldGT(FieldDeletedAt, v))
  184. }
  185. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  186. func DeletedAtGTE(v time.Time) predicate.UserPlatformQuota {
  187. return predicate.UserPlatformQuota(sql.FieldGTE(FieldDeletedAt, v))
  188. }
  189. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  190. func DeletedAtLT(v time.Time) predicate.UserPlatformQuota {
  191. return predicate.UserPlatformQuota(sql.FieldLT(FieldDeletedAt, v))
  192. }
  193. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  194. func DeletedAtLTE(v time.Time) predicate.UserPlatformQuota {
  195. return predicate.UserPlatformQuota(sql.FieldLTE(FieldDeletedAt, v))
  196. }
  197. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  198. func DeletedAtIsNil() predicate.UserPlatformQuota {
  199. return predicate.UserPlatformQuota(sql.FieldIsNull(FieldDeletedAt))
  200. }
  201. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  202. func DeletedAtNotNil() predicate.UserPlatformQuota {
  203. return predicate.UserPlatformQuota(sql.FieldNotNull(FieldDeletedAt))
  204. }
  205. // UserIDEQ applies the EQ predicate on the "user_id" field.
  206. func UserIDEQ(v int64) predicate.UserPlatformQuota {
  207. return predicate.UserPlatformQuota(sql.FieldEQ(FieldUserID, v))
  208. }
  209. // UserIDNEQ applies the NEQ predicate on the "user_id" field.
  210. func UserIDNEQ(v int64) predicate.UserPlatformQuota {
  211. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldUserID, v))
  212. }
  213. // UserIDIn applies the In predicate on the "user_id" field.
  214. func UserIDIn(vs ...int64) predicate.UserPlatformQuota {
  215. return predicate.UserPlatformQuota(sql.FieldIn(FieldUserID, vs...))
  216. }
  217. // UserIDNotIn applies the NotIn predicate on the "user_id" field.
  218. func UserIDNotIn(vs ...int64) predicate.UserPlatformQuota {
  219. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldUserID, vs...))
  220. }
  221. // PlatformEQ applies the EQ predicate on the "platform" field.
  222. func PlatformEQ(v string) predicate.UserPlatformQuota {
  223. return predicate.UserPlatformQuota(sql.FieldEQ(FieldPlatform, v))
  224. }
  225. // PlatformNEQ applies the NEQ predicate on the "platform" field.
  226. func PlatformNEQ(v string) predicate.UserPlatformQuota {
  227. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldPlatform, v))
  228. }
  229. // PlatformIn applies the In predicate on the "platform" field.
  230. func PlatformIn(vs ...string) predicate.UserPlatformQuota {
  231. return predicate.UserPlatformQuota(sql.FieldIn(FieldPlatform, vs...))
  232. }
  233. // PlatformNotIn applies the NotIn predicate on the "platform" field.
  234. func PlatformNotIn(vs ...string) predicate.UserPlatformQuota {
  235. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldPlatform, vs...))
  236. }
  237. // PlatformGT applies the GT predicate on the "platform" field.
  238. func PlatformGT(v string) predicate.UserPlatformQuota {
  239. return predicate.UserPlatformQuota(sql.FieldGT(FieldPlatform, v))
  240. }
  241. // PlatformGTE applies the GTE predicate on the "platform" field.
  242. func PlatformGTE(v string) predicate.UserPlatformQuota {
  243. return predicate.UserPlatformQuota(sql.FieldGTE(FieldPlatform, v))
  244. }
  245. // PlatformLT applies the LT predicate on the "platform" field.
  246. func PlatformLT(v string) predicate.UserPlatformQuota {
  247. return predicate.UserPlatformQuota(sql.FieldLT(FieldPlatform, v))
  248. }
  249. // PlatformLTE applies the LTE predicate on the "platform" field.
  250. func PlatformLTE(v string) predicate.UserPlatformQuota {
  251. return predicate.UserPlatformQuota(sql.FieldLTE(FieldPlatform, v))
  252. }
  253. // PlatformContains applies the Contains predicate on the "platform" field.
  254. func PlatformContains(v string) predicate.UserPlatformQuota {
  255. return predicate.UserPlatformQuota(sql.FieldContains(FieldPlatform, v))
  256. }
  257. // PlatformHasPrefix applies the HasPrefix predicate on the "platform" field.
  258. func PlatformHasPrefix(v string) predicate.UserPlatformQuota {
  259. return predicate.UserPlatformQuota(sql.FieldHasPrefix(FieldPlatform, v))
  260. }
  261. // PlatformHasSuffix applies the HasSuffix predicate on the "platform" field.
  262. func PlatformHasSuffix(v string) predicate.UserPlatformQuota {
  263. return predicate.UserPlatformQuota(sql.FieldHasSuffix(FieldPlatform, v))
  264. }
  265. // PlatformEqualFold applies the EqualFold predicate on the "platform" field.
  266. func PlatformEqualFold(v string) predicate.UserPlatformQuota {
  267. return predicate.UserPlatformQuota(sql.FieldEqualFold(FieldPlatform, v))
  268. }
  269. // PlatformContainsFold applies the ContainsFold predicate on the "platform" field.
  270. func PlatformContainsFold(v string) predicate.UserPlatformQuota {
  271. return predicate.UserPlatformQuota(sql.FieldContainsFold(FieldPlatform, v))
  272. }
  273. // DailyLimitUsdEQ applies the EQ predicate on the "daily_limit_usd" field.
  274. func DailyLimitUsdEQ(v float64) predicate.UserPlatformQuota {
  275. return predicate.UserPlatformQuota(sql.FieldEQ(FieldDailyLimitUsd, v))
  276. }
  277. // DailyLimitUsdNEQ applies the NEQ predicate on the "daily_limit_usd" field.
  278. func DailyLimitUsdNEQ(v float64) predicate.UserPlatformQuota {
  279. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldDailyLimitUsd, v))
  280. }
  281. // DailyLimitUsdIn applies the In predicate on the "daily_limit_usd" field.
  282. func DailyLimitUsdIn(vs ...float64) predicate.UserPlatformQuota {
  283. return predicate.UserPlatformQuota(sql.FieldIn(FieldDailyLimitUsd, vs...))
  284. }
  285. // DailyLimitUsdNotIn applies the NotIn predicate on the "daily_limit_usd" field.
  286. func DailyLimitUsdNotIn(vs ...float64) predicate.UserPlatformQuota {
  287. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldDailyLimitUsd, vs...))
  288. }
  289. // DailyLimitUsdGT applies the GT predicate on the "daily_limit_usd" field.
  290. func DailyLimitUsdGT(v float64) predicate.UserPlatformQuota {
  291. return predicate.UserPlatformQuota(sql.FieldGT(FieldDailyLimitUsd, v))
  292. }
  293. // DailyLimitUsdGTE applies the GTE predicate on the "daily_limit_usd" field.
  294. func DailyLimitUsdGTE(v float64) predicate.UserPlatformQuota {
  295. return predicate.UserPlatformQuota(sql.FieldGTE(FieldDailyLimitUsd, v))
  296. }
  297. // DailyLimitUsdLT applies the LT predicate on the "daily_limit_usd" field.
  298. func DailyLimitUsdLT(v float64) predicate.UserPlatformQuota {
  299. return predicate.UserPlatformQuota(sql.FieldLT(FieldDailyLimitUsd, v))
  300. }
  301. // DailyLimitUsdLTE applies the LTE predicate on the "daily_limit_usd" field.
  302. func DailyLimitUsdLTE(v float64) predicate.UserPlatformQuota {
  303. return predicate.UserPlatformQuota(sql.FieldLTE(FieldDailyLimitUsd, v))
  304. }
  305. // DailyLimitUsdIsNil applies the IsNil predicate on the "daily_limit_usd" field.
  306. func DailyLimitUsdIsNil() predicate.UserPlatformQuota {
  307. return predicate.UserPlatformQuota(sql.FieldIsNull(FieldDailyLimitUsd))
  308. }
  309. // DailyLimitUsdNotNil applies the NotNil predicate on the "daily_limit_usd" field.
  310. func DailyLimitUsdNotNil() predicate.UserPlatformQuota {
  311. return predicate.UserPlatformQuota(sql.FieldNotNull(FieldDailyLimitUsd))
  312. }
  313. // WeeklyLimitUsdEQ applies the EQ predicate on the "weekly_limit_usd" field.
  314. func WeeklyLimitUsdEQ(v float64) predicate.UserPlatformQuota {
  315. return predicate.UserPlatformQuota(sql.FieldEQ(FieldWeeklyLimitUsd, v))
  316. }
  317. // WeeklyLimitUsdNEQ applies the NEQ predicate on the "weekly_limit_usd" field.
  318. func WeeklyLimitUsdNEQ(v float64) predicate.UserPlatformQuota {
  319. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldWeeklyLimitUsd, v))
  320. }
  321. // WeeklyLimitUsdIn applies the In predicate on the "weekly_limit_usd" field.
  322. func WeeklyLimitUsdIn(vs ...float64) predicate.UserPlatformQuota {
  323. return predicate.UserPlatformQuota(sql.FieldIn(FieldWeeklyLimitUsd, vs...))
  324. }
  325. // WeeklyLimitUsdNotIn applies the NotIn predicate on the "weekly_limit_usd" field.
  326. func WeeklyLimitUsdNotIn(vs ...float64) predicate.UserPlatformQuota {
  327. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldWeeklyLimitUsd, vs...))
  328. }
  329. // WeeklyLimitUsdGT applies the GT predicate on the "weekly_limit_usd" field.
  330. func WeeklyLimitUsdGT(v float64) predicate.UserPlatformQuota {
  331. return predicate.UserPlatformQuota(sql.FieldGT(FieldWeeklyLimitUsd, v))
  332. }
  333. // WeeklyLimitUsdGTE applies the GTE predicate on the "weekly_limit_usd" field.
  334. func WeeklyLimitUsdGTE(v float64) predicate.UserPlatformQuota {
  335. return predicate.UserPlatformQuota(sql.FieldGTE(FieldWeeklyLimitUsd, v))
  336. }
  337. // WeeklyLimitUsdLT applies the LT predicate on the "weekly_limit_usd" field.
  338. func WeeklyLimitUsdLT(v float64) predicate.UserPlatformQuota {
  339. return predicate.UserPlatformQuota(sql.FieldLT(FieldWeeklyLimitUsd, v))
  340. }
  341. // WeeklyLimitUsdLTE applies the LTE predicate on the "weekly_limit_usd" field.
  342. func WeeklyLimitUsdLTE(v float64) predicate.UserPlatformQuota {
  343. return predicate.UserPlatformQuota(sql.FieldLTE(FieldWeeklyLimitUsd, v))
  344. }
  345. // WeeklyLimitUsdIsNil applies the IsNil predicate on the "weekly_limit_usd" field.
  346. func WeeklyLimitUsdIsNil() predicate.UserPlatformQuota {
  347. return predicate.UserPlatformQuota(sql.FieldIsNull(FieldWeeklyLimitUsd))
  348. }
  349. // WeeklyLimitUsdNotNil applies the NotNil predicate on the "weekly_limit_usd" field.
  350. func WeeklyLimitUsdNotNil() predicate.UserPlatformQuota {
  351. return predicate.UserPlatformQuota(sql.FieldNotNull(FieldWeeklyLimitUsd))
  352. }
  353. // MonthlyLimitUsdEQ applies the EQ predicate on the "monthly_limit_usd" field.
  354. func MonthlyLimitUsdEQ(v float64) predicate.UserPlatformQuota {
  355. return predicate.UserPlatformQuota(sql.FieldEQ(FieldMonthlyLimitUsd, v))
  356. }
  357. // MonthlyLimitUsdNEQ applies the NEQ predicate on the "monthly_limit_usd" field.
  358. func MonthlyLimitUsdNEQ(v float64) predicate.UserPlatformQuota {
  359. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldMonthlyLimitUsd, v))
  360. }
  361. // MonthlyLimitUsdIn applies the In predicate on the "monthly_limit_usd" field.
  362. func MonthlyLimitUsdIn(vs ...float64) predicate.UserPlatformQuota {
  363. return predicate.UserPlatformQuota(sql.FieldIn(FieldMonthlyLimitUsd, vs...))
  364. }
  365. // MonthlyLimitUsdNotIn applies the NotIn predicate on the "monthly_limit_usd" field.
  366. func MonthlyLimitUsdNotIn(vs ...float64) predicate.UserPlatformQuota {
  367. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldMonthlyLimitUsd, vs...))
  368. }
  369. // MonthlyLimitUsdGT applies the GT predicate on the "monthly_limit_usd" field.
  370. func MonthlyLimitUsdGT(v float64) predicate.UserPlatformQuota {
  371. return predicate.UserPlatformQuota(sql.FieldGT(FieldMonthlyLimitUsd, v))
  372. }
  373. // MonthlyLimitUsdGTE applies the GTE predicate on the "monthly_limit_usd" field.
  374. func MonthlyLimitUsdGTE(v float64) predicate.UserPlatformQuota {
  375. return predicate.UserPlatformQuota(sql.FieldGTE(FieldMonthlyLimitUsd, v))
  376. }
  377. // MonthlyLimitUsdLT applies the LT predicate on the "monthly_limit_usd" field.
  378. func MonthlyLimitUsdLT(v float64) predicate.UserPlatformQuota {
  379. return predicate.UserPlatformQuota(sql.FieldLT(FieldMonthlyLimitUsd, v))
  380. }
  381. // MonthlyLimitUsdLTE applies the LTE predicate on the "monthly_limit_usd" field.
  382. func MonthlyLimitUsdLTE(v float64) predicate.UserPlatformQuota {
  383. return predicate.UserPlatformQuota(sql.FieldLTE(FieldMonthlyLimitUsd, v))
  384. }
  385. // MonthlyLimitUsdIsNil applies the IsNil predicate on the "monthly_limit_usd" field.
  386. func MonthlyLimitUsdIsNil() predicate.UserPlatformQuota {
  387. return predicate.UserPlatformQuota(sql.FieldIsNull(FieldMonthlyLimitUsd))
  388. }
  389. // MonthlyLimitUsdNotNil applies the NotNil predicate on the "monthly_limit_usd" field.
  390. func MonthlyLimitUsdNotNil() predicate.UserPlatformQuota {
  391. return predicate.UserPlatformQuota(sql.FieldNotNull(FieldMonthlyLimitUsd))
  392. }
  393. // DailyUsageUsdEQ applies the EQ predicate on the "daily_usage_usd" field.
  394. func DailyUsageUsdEQ(v float64) predicate.UserPlatformQuota {
  395. return predicate.UserPlatformQuota(sql.FieldEQ(FieldDailyUsageUsd, v))
  396. }
  397. // DailyUsageUsdNEQ applies the NEQ predicate on the "daily_usage_usd" field.
  398. func DailyUsageUsdNEQ(v float64) predicate.UserPlatformQuota {
  399. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldDailyUsageUsd, v))
  400. }
  401. // DailyUsageUsdIn applies the In predicate on the "daily_usage_usd" field.
  402. func DailyUsageUsdIn(vs ...float64) predicate.UserPlatformQuota {
  403. return predicate.UserPlatformQuota(sql.FieldIn(FieldDailyUsageUsd, vs...))
  404. }
  405. // DailyUsageUsdNotIn applies the NotIn predicate on the "daily_usage_usd" field.
  406. func DailyUsageUsdNotIn(vs ...float64) predicate.UserPlatformQuota {
  407. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldDailyUsageUsd, vs...))
  408. }
  409. // DailyUsageUsdGT applies the GT predicate on the "daily_usage_usd" field.
  410. func DailyUsageUsdGT(v float64) predicate.UserPlatformQuota {
  411. return predicate.UserPlatformQuota(sql.FieldGT(FieldDailyUsageUsd, v))
  412. }
  413. // DailyUsageUsdGTE applies the GTE predicate on the "daily_usage_usd" field.
  414. func DailyUsageUsdGTE(v float64) predicate.UserPlatformQuota {
  415. return predicate.UserPlatformQuota(sql.FieldGTE(FieldDailyUsageUsd, v))
  416. }
  417. // DailyUsageUsdLT applies the LT predicate on the "daily_usage_usd" field.
  418. func DailyUsageUsdLT(v float64) predicate.UserPlatformQuota {
  419. return predicate.UserPlatformQuota(sql.FieldLT(FieldDailyUsageUsd, v))
  420. }
  421. // DailyUsageUsdLTE applies the LTE predicate on the "daily_usage_usd" field.
  422. func DailyUsageUsdLTE(v float64) predicate.UserPlatformQuota {
  423. return predicate.UserPlatformQuota(sql.FieldLTE(FieldDailyUsageUsd, v))
  424. }
  425. // WeeklyUsageUsdEQ applies the EQ predicate on the "weekly_usage_usd" field.
  426. func WeeklyUsageUsdEQ(v float64) predicate.UserPlatformQuota {
  427. return predicate.UserPlatformQuota(sql.FieldEQ(FieldWeeklyUsageUsd, v))
  428. }
  429. // WeeklyUsageUsdNEQ applies the NEQ predicate on the "weekly_usage_usd" field.
  430. func WeeklyUsageUsdNEQ(v float64) predicate.UserPlatformQuota {
  431. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldWeeklyUsageUsd, v))
  432. }
  433. // WeeklyUsageUsdIn applies the In predicate on the "weekly_usage_usd" field.
  434. func WeeklyUsageUsdIn(vs ...float64) predicate.UserPlatformQuota {
  435. return predicate.UserPlatformQuota(sql.FieldIn(FieldWeeklyUsageUsd, vs...))
  436. }
  437. // WeeklyUsageUsdNotIn applies the NotIn predicate on the "weekly_usage_usd" field.
  438. func WeeklyUsageUsdNotIn(vs ...float64) predicate.UserPlatformQuota {
  439. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldWeeklyUsageUsd, vs...))
  440. }
  441. // WeeklyUsageUsdGT applies the GT predicate on the "weekly_usage_usd" field.
  442. func WeeklyUsageUsdGT(v float64) predicate.UserPlatformQuota {
  443. return predicate.UserPlatformQuota(sql.FieldGT(FieldWeeklyUsageUsd, v))
  444. }
  445. // WeeklyUsageUsdGTE applies the GTE predicate on the "weekly_usage_usd" field.
  446. func WeeklyUsageUsdGTE(v float64) predicate.UserPlatformQuota {
  447. return predicate.UserPlatformQuota(sql.FieldGTE(FieldWeeklyUsageUsd, v))
  448. }
  449. // WeeklyUsageUsdLT applies the LT predicate on the "weekly_usage_usd" field.
  450. func WeeklyUsageUsdLT(v float64) predicate.UserPlatformQuota {
  451. return predicate.UserPlatformQuota(sql.FieldLT(FieldWeeklyUsageUsd, v))
  452. }
  453. // WeeklyUsageUsdLTE applies the LTE predicate on the "weekly_usage_usd" field.
  454. func WeeklyUsageUsdLTE(v float64) predicate.UserPlatformQuota {
  455. return predicate.UserPlatformQuota(sql.FieldLTE(FieldWeeklyUsageUsd, v))
  456. }
  457. // MonthlyUsageUsdEQ applies the EQ predicate on the "monthly_usage_usd" field.
  458. func MonthlyUsageUsdEQ(v float64) predicate.UserPlatformQuota {
  459. return predicate.UserPlatformQuota(sql.FieldEQ(FieldMonthlyUsageUsd, v))
  460. }
  461. // MonthlyUsageUsdNEQ applies the NEQ predicate on the "monthly_usage_usd" field.
  462. func MonthlyUsageUsdNEQ(v float64) predicate.UserPlatformQuota {
  463. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldMonthlyUsageUsd, v))
  464. }
  465. // MonthlyUsageUsdIn applies the In predicate on the "monthly_usage_usd" field.
  466. func MonthlyUsageUsdIn(vs ...float64) predicate.UserPlatformQuota {
  467. return predicate.UserPlatformQuota(sql.FieldIn(FieldMonthlyUsageUsd, vs...))
  468. }
  469. // MonthlyUsageUsdNotIn applies the NotIn predicate on the "monthly_usage_usd" field.
  470. func MonthlyUsageUsdNotIn(vs ...float64) predicate.UserPlatformQuota {
  471. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldMonthlyUsageUsd, vs...))
  472. }
  473. // MonthlyUsageUsdGT applies the GT predicate on the "monthly_usage_usd" field.
  474. func MonthlyUsageUsdGT(v float64) predicate.UserPlatformQuota {
  475. return predicate.UserPlatformQuota(sql.FieldGT(FieldMonthlyUsageUsd, v))
  476. }
  477. // MonthlyUsageUsdGTE applies the GTE predicate on the "monthly_usage_usd" field.
  478. func MonthlyUsageUsdGTE(v float64) predicate.UserPlatformQuota {
  479. return predicate.UserPlatformQuota(sql.FieldGTE(FieldMonthlyUsageUsd, v))
  480. }
  481. // MonthlyUsageUsdLT applies the LT predicate on the "monthly_usage_usd" field.
  482. func MonthlyUsageUsdLT(v float64) predicate.UserPlatformQuota {
  483. return predicate.UserPlatformQuota(sql.FieldLT(FieldMonthlyUsageUsd, v))
  484. }
  485. // MonthlyUsageUsdLTE applies the LTE predicate on the "monthly_usage_usd" field.
  486. func MonthlyUsageUsdLTE(v float64) predicate.UserPlatformQuota {
  487. return predicate.UserPlatformQuota(sql.FieldLTE(FieldMonthlyUsageUsd, v))
  488. }
  489. // DailyWindowStartEQ applies the EQ predicate on the "daily_window_start" field.
  490. func DailyWindowStartEQ(v time.Time) predicate.UserPlatformQuota {
  491. return predicate.UserPlatformQuota(sql.FieldEQ(FieldDailyWindowStart, v))
  492. }
  493. // DailyWindowStartNEQ applies the NEQ predicate on the "daily_window_start" field.
  494. func DailyWindowStartNEQ(v time.Time) predicate.UserPlatformQuota {
  495. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldDailyWindowStart, v))
  496. }
  497. // DailyWindowStartIn applies the In predicate on the "daily_window_start" field.
  498. func DailyWindowStartIn(vs ...time.Time) predicate.UserPlatformQuota {
  499. return predicate.UserPlatformQuota(sql.FieldIn(FieldDailyWindowStart, vs...))
  500. }
  501. // DailyWindowStartNotIn applies the NotIn predicate on the "daily_window_start" field.
  502. func DailyWindowStartNotIn(vs ...time.Time) predicate.UserPlatformQuota {
  503. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldDailyWindowStart, vs...))
  504. }
  505. // DailyWindowStartGT applies the GT predicate on the "daily_window_start" field.
  506. func DailyWindowStartGT(v time.Time) predicate.UserPlatformQuota {
  507. return predicate.UserPlatformQuota(sql.FieldGT(FieldDailyWindowStart, v))
  508. }
  509. // DailyWindowStartGTE applies the GTE predicate on the "daily_window_start" field.
  510. func DailyWindowStartGTE(v time.Time) predicate.UserPlatformQuota {
  511. return predicate.UserPlatformQuota(sql.FieldGTE(FieldDailyWindowStart, v))
  512. }
  513. // DailyWindowStartLT applies the LT predicate on the "daily_window_start" field.
  514. func DailyWindowStartLT(v time.Time) predicate.UserPlatformQuota {
  515. return predicate.UserPlatformQuota(sql.FieldLT(FieldDailyWindowStart, v))
  516. }
  517. // DailyWindowStartLTE applies the LTE predicate on the "daily_window_start" field.
  518. func DailyWindowStartLTE(v time.Time) predicate.UserPlatformQuota {
  519. return predicate.UserPlatformQuota(sql.FieldLTE(FieldDailyWindowStart, v))
  520. }
  521. // DailyWindowStartIsNil applies the IsNil predicate on the "daily_window_start" field.
  522. func DailyWindowStartIsNil() predicate.UserPlatformQuota {
  523. return predicate.UserPlatformQuota(sql.FieldIsNull(FieldDailyWindowStart))
  524. }
  525. // DailyWindowStartNotNil applies the NotNil predicate on the "daily_window_start" field.
  526. func DailyWindowStartNotNil() predicate.UserPlatformQuota {
  527. return predicate.UserPlatformQuota(sql.FieldNotNull(FieldDailyWindowStart))
  528. }
  529. // WeeklyWindowStartEQ applies the EQ predicate on the "weekly_window_start" field.
  530. func WeeklyWindowStartEQ(v time.Time) predicate.UserPlatformQuota {
  531. return predicate.UserPlatformQuota(sql.FieldEQ(FieldWeeklyWindowStart, v))
  532. }
  533. // WeeklyWindowStartNEQ applies the NEQ predicate on the "weekly_window_start" field.
  534. func WeeklyWindowStartNEQ(v time.Time) predicate.UserPlatformQuota {
  535. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldWeeklyWindowStart, v))
  536. }
  537. // WeeklyWindowStartIn applies the In predicate on the "weekly_window_start" field.
  538. func WeeklyWindowStartIn(vs ...time.Time) predicate.UserPlatformQuota {
  539. return predicate.UserPlatformQuota(sql.FieldIn(FieldWeeklyWindowStart, vs...))
  540. }
  541. // WeeklyWindowStartNotIn applies the NotIn predicate on the "weekly_window_start" field.
  542. func WeeklyWindowStartNotIn(vs ...time.Time) predicate.UserPlatformQuota {
  543. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldWeeklyWindowStart, vs...))
  544. }
  545. // WeeklyWindowStartGT applies the GT predicate on the "weekly_window_start" field.
  546. func WeeklyWindowStartGT(v time.Time) predicate.UserPlatformQuota {
  547. return predicate.UserPlatformQuota(sql.FieldGT(FieldWeeklyWindowStart, v))
  548. }
  549. // WeeklyWindowStartGTE applies the GTE predicate on the "weekly_window_start" field.
  550. func WeeklyWindowStartGTE(v time.Time) predicate.UserPlatformQuota {
  551. return predicate.UserPlatformQuota(sql.FieldGTE(FieldWeeklyWindowStart, v))
  552. }
  553. // WeeklyWindowStartLT applies the LT predicate on the "weekly_window_start" field.
  554. func WeeklyWindowStartLT(v time.Time) predicate.UserPlatformQuota {
  555. return predicate.UserPlatformQuota(sql.FieldLT(FieldWeeklyWindowStart, v))
  556. }
  557. // WeeklyWindowStartLTE applies the LTE predicate on the "weekly_window_start" field.
  558. func WeeklyWindowStartLTE(v time.Time) predicate.UserPlatformQuota {
  559. return predicate.UserPlatformQuota(sql.FieldLTE(FieldWeeklyWindowStart, v))
  560. }
  561. // WeeklyWindowStartIsNil applies the IsNil predicate on the "weekly_window_start" field.
  562. func WeeklyWindowStartIsNil() predicate.UserPlatformQuota {
  563. return predicate.UserPlatformQuota(sql.FieldIsNull(FieldWeeklyWindowStart))
  564. }
  565. // WeeklyWindowStartNotNil applies the NotNil predicate on the "weekly_window_start" field.
  566. func WeeklyWindowStartNotNil() predicate.UserPlatformQuota {
  567. return predicate.UserPlatformQuota(sql.FieldNotNull(FieldWeeklyWindowStart))
  568. }
  569. // MonthlyWindowStartEQ applies the EQ predicate on the "monthly_window_start" field.
  570. func MonthlyWindowStartEQ(v time.Time) predicate.UserPlatformQuota {
  571. return predicate.UserPlatformQuota(sql.FieldEQ(FieldMonthlyWindowStart, v))
  572. }
  573. // MonthlyWindowStartNEQ applies the NEQ predicate on the "monthly_window_start" field.
  574. func MonthlyWindowStartNEQ(v time.Time) predicate.UserPlatformQuota {
  575. return predicate.UserPlatformQuota(sql.FieldNEQ(FieldMonthlyWindowStart, v))
  576. }
  577. // MonthlyWindowStartIn applies the In predicate on the "monthly_window_start" field.
  578. func MonthlyWindowStartIn(vs ...time.Time) predicate.UserPlatformQuota {
  579. return predicate.UserPlatformQuota(sql.FieldIn(FieldMonthlyWindowStart, vs...))
  580. }
  581. // MonthlyWindowStartNotIn applies the NotIn predicate on the "monthly_window_start" field.
  582. func MonthlyWindowStartNotIn(vs ...time.Time) predicate.UserPlatformQuota {
  583. return predicate.UserPlatformQuota(sql.FieldNotIn(FieldMonthlyWindowStart, vs...))
  584. }
  585. // MonthlyWindowStartGT applies the GT predicate on the "monthly_window_start" field.
  586. func MonthlyWindowStartGT(v time.Time) predicate.UserPlatformQuota {
  587. return predicate.UserPlatformQuota(sql.FieldGT(FieldMonthlyWindowStart, v))
  588. }
  589. // MonthlyWindowStartGTE applies the GTE predicate on the "monthly_window_start" field.
  590. func MonthlyWindowStartGTE(v time.Time) predicate.UserPlatformQuota {
  591. return predicate.UserPlatformQuota(sql.FieldGTE(FieldMonthlyWindowStart, v))
  592. }
  593. // MonthlyWindowStartLT applies the LT predicate on the "monthly_window_start" field.
  594. func MonthlyWindowStartLT(v time.Time) predicate.UserPlatformQuota {
  595. return predicate.UserPlatformQuota(sql.FieldLT(FieldMonthlyWindowStart, v))
  596. }
  597. // MonthlyWindowStartLTE applies the LTE predicate on the "monthly_window_start" field.
  598. func MonthlyWindowStartLTE(v time.Time) predicate.UserPlatformQuota {
  599. return predicate.UserPlatformQuota(sql.FieldLTE(FieldMonthlyWindowStart, v))
  600. }
  601. // MonthlyWindowStartIsNil applies the IsNil predicate on the "monthly_window_start" field.
  602. func MonthlyWindowStartIsNil() predicate.UserPlatformQuota {
  603. return predicate.UserPlatformQuota(sql.FieldIsNull(FieldMonthlyWindowStart))
  604. }
  605. // MonthlyWindowStartNotNil applies the NotNil predicate on the "monthly_window_start" field.
  606. func MonthlyWindowStartNotNil() predicate.UserPlatformQuota {
  607. return predicate.UserPlatformQuota(sql.FieldNotNull(FieldMonthlyWindowStart))
  608. }
  609. // HasUser applies the HasEdge predicate on the "user" edge.
  610. func HasUser() predicate.UserPlatformQuota {
  611. return predicate.UserPlatformQuota(func(s *sql.Selector) {
  612. step := sqlgraph.NewStep(
  613. sqlgraph.From(Table, FieldID),
  614. sqlgraph.Edge(sqlgraph.M2O, true, UserTable, UserColumn),
  615. )
  616. sqlgraph.HasNeighbors(s, step)
  617. })
  618. }
  619. // HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
  620. func HasUserWith(preds ...predicate.User) predicate.UserPlatformQuota {
  621. return predicate.UserPlatformQuota(func(s *sql.Selector) {
  622. step := newUserStep()
  623. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  624. for _, p := range preds {
  625. p(s)
  626. }
  627. })
  628. })
  629. }
  630. // And groups predicates with the AND operator between them.
  631. func And(predicates ...predicate.UserPlatformQuota) predicate.UserPlatformQuota {
  632. return predicate.UserPlatformQuota(sql.AndPredicates(predicates...))
  633. }
  634. // Or groups predicates with the OR operator between them.
  635. func Or(predicates ...predicate.UserPlatformQuota) predicate.UserPlatformQuota {
  636. return predicate.UserPlatformQuota(sql.OrPredicates(predicates...))
  637. }
  638. // Not applies the not operator on the given predicate.
  639. func Not(p predicate.UserPlatformQuota) predicate.UserPlatformQuota {
  640. return predicate.UserPlatformQuota(sql.NotPredicates(p))
  641. }