where.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. // Code generated by ent, DO NOT EDIT.
  2. package creditbalance
  3. import (
  4. "time"
  5. "wechat-api/ent/predicate"
  6. "entgo.io/ent/dialect/sql"
  7. )
  8. // ID filters vertices based on their ID field.
  9. func ID(id uint64) predicate.CreditBalance {
  10. return predicate.CreditBalance(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id uint64) predicate.CreditBalance {
  14. return predicate.CreditBalance(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id uint64) predicate.CreditBalance {
  18. return predicate.CreditBalance(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...uint64) predicate.CreditBalance {
  22. return predicate.CreditBalance(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...uint64) predicate.CreditBalance {
  26. return predicate.CreditBalance(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id uint64) predicate.CreditBalance {
  30. return predicate.CreditBalance(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id uint64) predicate.CreditBalance {
  34. return predicate.CreditBalance(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id uint64) predicate.CreditBalance {
  38. return predicate.CreditBalance(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id uint64) predicate.CreditBalance {
  42. return predicate.CreditBalance(sql.FieldLTE(FieldID, id))
  43. }
  44. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  45. func CreatedAt(v time.Time) predicate.CreditBalance {
  46. return predicate.CreditBalance(sql.FieldEQ(FieldCreatedAt, v))
  47. }
  48. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  49. func UpdatedAt(v time.Time) predicate.CreditBalance {
  50. return predicate.CreditBalance(sql.FieldEQ(FieldUpdatedAt, v))
  51. }
  52. // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
  53. func DeletedAt(v time.Time) predicate.CreditBalance {
  54. return predicate.CreditBalance(sql.FieldEQ(FieldDeletedAt, v))
  55. }
  56. // UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
  57. func UserID(v string) predicate.CreditBalance {
  58. return predicate.CreditBalance(sql.FieldEQ(FieldUserID, v))
  59. }
  60. // Balance applies equality check predicate on the "balance" field. It's identical to BalanceEQ.
  61. func Balance(v float32) predicate.CreditBalance {
  62. return predicate.CreditBalance(sql.FieldEQ(FieldBalance, v))
  63. }
  64. // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
  65. func Status(v int) predicate.CreditBalance {
  66. return predicate.CreditBalance(sql.FieldEQ(FieldStatus, v))
  67. }
  68. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  69. func OrganizationID(v uint64) predicate.CreditBalance {
  70. return predicate.CreditBalance(sql.FieldEQ(FieldOrganizationID, v))
  71. }
  72. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  73. func CreatedAtEQ(v time.Time) predicate.CreditBalance {
  74. return predicate.CreditBalance(sql.FieldEQ(FieldCreatedAt, v))
  75. }
  76. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  77. func CreatedAtNEQ(v time.Time) predicate.CreditBalance {
  78. return predicate.CreditBalance(sql.FieldNEQ(FieldCreatedAt, v))
  79. }
  80. // CreatedAtIn applies the In predicate on the "created_at" field.
  81. func CreatedAtIn(vs ...time.Time) predicate.CreditBalance {
  82. return predicate.CreditBalance(sql.FieldIn(FieldCreatedAt, vs...))
  83. }
  84. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  85. func CreatedAtNotIn(vs ...time.Time) predicate.CreditBalance {
  86. return predicate.CreditBalance(sql.FieldNotIn(FieldCreatedAt, vs...))
  87. }
  88. // CreatedAtGT applies the GT predicate on the "created_at" field.
  89. func CreatedAtGT(v time.Time) predicate.CreditBalance {
  90. return predicate.CreditBalance(sql.FieldGT(FieldCreatedAt, v))
  91. }
  92. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  93. func CreatedAtGTE(v time.Time) predicate.CreditBalance {
  94. return predicate.CreditBalance(sql.FieldGTE(FieldCreatedAt, v))
  95. }
  96. // CreatedAtLT applies the LT predicate on the "created_at" field.
  97. func CreatedAtLT(v time.Time) predicate.CreditBalance {
  98. return predicate.CreditBalance(sql.FieldLT(FieldCreatedAt, v))
  99. }
  100. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  101. func CreatedAtLTE(v time.Time) predicate.CreditBalance {
  102. return predicate.CreditBalance(sql.FieldLTE(FieldCreatedAt, v))
  103. }
  104. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  105. func UpdatedAtEQ(v time.Time) predicate.CreditBalance {
  106. return predicate.CreditBalance(sql.FieldEQ(FieldUpdatedAt, v))
  107. }
  108. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  109. func UpdatedAtNEQ(v time.Time) predicate.CreditBalance {
  110. return predicate.CreditBalance(sql.FieldNEQ(FieldUpdatedAt, v))
  111. }
  112. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  113. func UpdatedAtIn(vs ...time.Time) predicate.CreditBalance {
  114. return predicate.CreditBalance(sql.FieldIn(FieldUpdatedAt, vs...))
  115. }
  116. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  117. func UpdatedAtNotIn(vs ...time.Time) predicate.CreditBalance {
  118. return predicate.CreditBalance(sql.FieldNotIn(FieldUpdatedAt, vs...))
  119. }
  120. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  121. func UpdatedAtGT(v time.Time) predicate.CreditBalance {
  122. return predicate.CreditBalance(sql.FieldGT(FieldUpdatedAt, v))
  123. }
  124. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  125. func UpdatedAtGTE(v time.Time) predicate.CreditBalance {
  126. return predicate.CreditBalance(sql.FieldGTE(FieldUpdatedAt, v))
  127. }
  128. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  129. func UpdatedAtLT(v time.Time) predicate.CreditBalance {
  130. return predicate.CreditBalance(sql.FieldLT(FieldUpdatedAt, v))
  131. }
  132. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  133. func UpdatedAtLTE(v time.Time) predicate.CreditBalance {
  134. return predicate.CreditBalance(sql.FieldLTE(FieldUpdatedAt, v))
  135. }
  136. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  137. func DeletedAtEQ(v time.Time) predicate.CreditBalance {
  138. return predicate.CreditBalance(sql.FieldEQ(FieldDeletedAt, v))
  139. }
  140. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  141. func DeletedAtNEQ(v time.Time) predicate.CreditBalance {
  142. return predicate.CreditBalance(sql.FieldNEQ(FieldDeletedAt, v))
  143. }
  144. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  145. func DeletedAtIn(vs ...time.Time) predicate.CreditBalance {
  146. return predicate.CreditBalance(sql.FieldIn(FieldDeletedAt, vs...))
  147. }
  148. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  149. func DeletedAtNotIn(vs ...time.Time) predicate.CreditBalance {
  150. return predicate.CreditBalance(sql.FieldNotIn(FieldDeletedAt, vs...))
  151. }
  152. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  153. func DeletedAtGT(v time.Time) predicate.CreditBalance {
  154. return predicate.CreditBalance(sql.FieldGT(FieldDeletedAt, v))
  155. }
  156. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  157. func DeletedAtGTE(v time.Time) predicate.CreditBalance {
  158. return predicate.CreditBalance(sql.FieldGTE(FieldDeletedAt, v))
  159. }
  160. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  161. func DeletedAtLT(v time.Time) predicate.CreditBalance {
  162. return predicate.CreditBalance(sql.FieldLT(FieldDeletedAt, v))
  163. }
  164. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  165. func DeletedAtLTE(v time.Time) predicate.CreditBalance {
  166. return predicate.CreditBalance(sql.FieldLTE(FieldDeletedAt, v))
  167. }
  168. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  169. func DeletedAtIsNil() predicate.CreditBalance {
  170. return predicate.CreditBalance(sql.FieldIsNull(FieldDeletedAt))
  171. }
  172. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  173. func DeletedAtNotNil() predicate.CreditBalance {
  174. return predicate.CreditBalance(sql.FieldNotNull(FieldDeletedAt))
  175. }
  176. // UserIDEQ applies the EQ predicate on the "user_id" field.
  177. func UserIDEQ(v string) predicate.CreditBalance {
  178. return predicate.CreditBalance(sql.FieldEQ(FieldUserID, v))
  179. }
  180. // UserIDNEQ applies the NEQ predicate on the "user_id" field.
  181. func UserIDNEQ(v string) predicate.CreditBalance {
  182. return predicate.CreditBalance(sql.FieldNEQ(FieldUserID, v))
  183. }
  184. // UserIDIn applies the In predicate on the "user_id" field.
  185. func UserIDIn(vs ...string) predicate.CreditBalance {
  186. return predicate.CreditBalance(sql.FieldIn(FieldUserID, vs...))
  187. }
  188. // UserIDNotIn applies the NotIn predicate on the "user_id" field.
  189. func UserIDNotIn(vs ...string) predicate.CreditBalance {
  190. return predicate.CreditBalance(sql.FieldNotIn(FieldUserID, vs...))
  191. }
  192. // UserIDGT applies the GT predicate on the "user_id" field.
  193. func UserIDGT(v string) predicate.CreditBalance {
  194. return predicate.CreditBalance(sql.FieldGT(FieldUserID, v))
  195. }
  196. // UserIDGTE applies the GTE predicate on the "user_id" field.
  197. func UserIDGTE(v string) predicate.CreditBalance {
  198. return predicate.CreditBalance(sql.FieldGTE(FieldUserID, v))
  199. }
  200. // UserIDLT applies the LT predicate on the "user_id" field.
  201. func UserIDLT(v string) predicate.CreditBalance {
  202. return predicate.CreditBalance(sql.FieldLT(FieldUserID, v))
  203. }
  204. // UserIDLTE applies the LTE predicate on the "user_id" field.
  205. func UserIDLTE(v string) predicate.CreditBalance {
  206. return predicate.CreditBalance(sql.FieldLTE(FieldUserID, v))
  207. }
  208. // UserIDContains applies the Contains predicate on the "user_id" field.
  209. func UserIDContains(v string) predicate.CreditBalance {
  210. return predicate.CreditBalance(sql.FieldContains(FieldUserID, v))
  211. }
  212. // UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
  213. func UserIDHasPrefix(v string) predicate.CreditBalance {
  214. return predicate.CreditBalance(sql.FieldHasPrefix(FieldUserID, v))
  215. }
  216. // UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
  217. func UserIDHasSuffix(v string) predicate.CreditBalance {
  218. return predicate.CreditBalance(sql.FieldHasSuffix(FieldUserID, v))
  219. }
  220. // UserIDIsNil applies the IsNil predicate on the "user_id" field.
  221. func UserIDIsNil() predicate.CreditBalance {
  222. return predicate.CreditBalance(sql.FieldIsNull(FieldUserID))
  223. }
  224. // UserIDNotNil applies the NotNil predicate on the "user_id" field.
  225. func UserIDNotNil() predicate.CreditBalance {
  226. return predicate.CreditBalance(sql.FieldNotNull(FieldUserID))
  227. }
  228. // UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
  229. func UserIDEqualFold(v string) predicate.CreditBalance {
  230. return predicate.CreditBalance(sql.FieldEqualFold(FieldUserID, v))
  231. }
  232. // UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
  233. func UserIDContainsFold(v string) predicate.CreditBalance {
  234. return predicate.CreditBalance(sql.FieldContainsFold(FieldUserID, v))
  235. }
  236. // BalanceEQ applies the EQ predicate on the "balance" field.
  237. func BalanceEQ(v float32) predicate.CreditBalance {
  238. return predicate.CreditBalance(sql.FieldEQ(FieldBalance, v))
  239. }
  240. // BalanceNEQ applies the NEQ predicate on the "balance" field.
  241. func BalanceNEQ(v float32) predicate.CreditBalance {
  242. return predicate.CreditBalance(sql.FieldNEQ(FieldBalance, v))
  243. }
  244. // BalanceIn applies the In predicate on the "balance" field.
  245. func BalanceIn(vs ...float32) predicate.CreditBalance {
  246. return predicate.CreditBalance(sql.FieldIn(FieldBalance, vs...))
  247. }
  248. // BalanceNotIn applies the NotIn predicate on the "balance" field.
  249. func BalanceNotIn(vs ...float32) predicate.CreditBalance {
  250. return predicate.CreditBalance(sql.FieldNotIn(FieldBalance, vs...))
  251. }
  252. // BalanceGT applies the GT predicate on the "balance" field.
  253. func BalanceGT(v float32) predicate.CreditBalance {
  254. return predicate.CreditBalance(sql.FieldGT(FieldBalance, v))
  255. }
  256. // BalanceGTE applies the GTE predicate on the "balance" field.
  257. func BalanceGTE(v float32) predicate.CreditBalance {
  258. return predicate.CreditBalance(sql.FieldGTE(FieldBalance, v))
  259. }
  260. // BalanceLT applies the LT predicate on the "balance" field.
  261. func BalanceLT(v float32) predicate.CreditBalance {
  262. return predicate.CreditBalance(sql.FieldLT(FieldBalance, v))
  263. }
  264. // BalanceLTE applies the LTE predicate on the "balance" field.
  265. func BalanceLTE(v float32) predicate.CreditBalance {
  266. return predicate.CreditBalance(sql.FieldLTE(FieldBalance, v))
  267. }
  268. // StatusEQ applies the EQ predicate on the "status" field.
  269. func StatusEQ(v int) predicate.CreditBalance {
  270. return predicate.CreditBalance(sql.FieldEQ(FieldStatus, v))
  271. }
  272. // StatusNEQ applies the NEQ predicate on the "status" field.
  273. func StatusNEQ(v int) predicate.CreditBalance {
  274. return predicate.CreditBalance(sql.FieldNEQ(FieldStatus, v))
  275. }
  276. // StatusIn applies the In predicate on the "status" field.
  277. func StatusIn(vs ...int) predicate.CreditBalance {
  278. return predicate.CreditBalance(sql.FieldIn(FieldStatus, vs...))
  279. }
  280. // StatusNotIn applies the NotIn predicate on the "status" field.
  281. func StatusNotIn(vs ...int) predicate.CreditBalance {
  282. return predicate.CreditBalance(sql.FieldNotIn(FieldStatus, vs...))
  283. }
  284. // StatusGT applies the GT predicate on the "status" field.
  285. func StatusGT(v int) predicate.CreditBalance {
  286. return predicate.CreditBalance(sql.FieldGT(FieldStatus, v))
  287. }
  288. // StatusGTE applies the GTE predicate on the "status" field.
  289. func StatusGTE(v int) predicate.CreditBalance {
  290. return predicate.CreditBalance(sql.FieldGTE(FieldStatus, v))
  291. }
  292. // StatusLT applies the LT predicate on the "status" field.
  293. func StatusLT(v int) predicate.CreditBalance {
  294. return predicate.CreditBalance(sql.FieldLT(FieldStatus, v))
  295. }
  296. // StatusLTE applies the LTE predicate on the "status" field.
  297. func StatusLTE(v int) predicate.CreditBalance {
  298. return predicate.CreditBalance(sql.FieldLTE(FieldStatus, v))
  299. }
  300. // StatusIsNil applies the IsNil predicate on the "status" field.
  301. func StatusIsNil() predicate.CreditBalance {
  302. return predicate.CreditBalance(sql.FieldIsNull(FieldStatus))
  303. }
  304. // StatusNotNil applies the NotNil predicate on the "status" field.
  305. func StatusNotNil() predicate.CreditBalance {
  306. return predicate.CreditBalance(sql.FieldNotNull(FieldStatus))
  307. }
  308. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  309. func OrganizationIDEQ(v uint64) predicate.CreditBalance {
  310. return predicate.CreditBalance(sql.FieldEQ(FieldOrganizationID, v))
  311. }
  312. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  313. func OrganizationIDNEQ(v uint64) predicate.CreditBalance {
  314. return predicate.CreditBalance(sql.FieldNEQ(FieldOrganizationID, v))
  315. }
  316. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  317. func OrganizationIDIn(vs ...uint64) predicate.CreditBalance {
  318. return predicate.CreditBalance(sql.FieldIn(FieldOrganizationID, vs...))
  319. }
  320. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  321. func OrganizationIDNotIn(vs ...uint64) predicate.CreditBalance {
  322. return predicate.CreditBalance(sql.FieldNotIn(FieldOrganizationID, vs...))
  323. }
  324. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  325. func OrganizationIDGT(v uint64) predicate.CreditBalance {
  326. return predicate.CreditBalance(sql.FieldGT(FieldOrganizationID, v))
  327. }
  328. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  329. func OrganizationIDGTE(v uint64) predicate.CreditBalance {
  330. return predicate.CreditBalance(sql.FieldGTE(FieldOrganizationID, v))
  331. }
  332. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  333. func OrganizationIDLT(v uint64) predicate.CreditBalance {
  334. return predicate.CreditBalance(sql.FieldLT(FieldOrganizationID, v))
  335. }
  336. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  337. func OrganizationIDLTE(v uint64) predicate.CreditBalance {
  338. return predicate.CreditBalance(sql.FieldLTE(FieldOrganizationID, v))
  339. }
  340. // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
  341. func OrganizationIDIsNil() predicate.CreditBalance {
  342. return predicate.CreditBalance(sql.FieldIsNull(FieldOrganizationID))
  343. }
  344. // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
  345. func OrganizationIDNotNil() predicate.CreditBalance {
  346. return predicate.CreditBalance(sql.FieldNotNull(FieldOrganizationID))
  347. }
  348. // And groups predicates with the AND operator between them.
  349. func And(predicates ...predicate.CreditBalance) predicate.CreditBalance {
  350. return predicate.CreditBalance(sql.AndPredicates(predicates...))
  351. }
  352. // Or groups predicates with the OR operator between them.
  353. func Or(predicates ...predicate.CreditBalance) predicate.CreditBalance {
  354. return predicate.CreditBalance(sql.OrPredicates(predicates...))
  355. }
  356. // Not applies the not operator on the given predicate.
  357. func Not(p predicate.CreditBalance) predicate.CreditBalance {
  358. return predicate.CreditBalance(sql.NotPredicates(p))
  359. }