where.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. // Code generated by ent, DO NOT EDIT.
  2. package paymentauditlog
  3. import (
  4. "time"
  5. "entgo.io/ent/dialect/sql"
  6. "github.com/Wei-Shaw/sub2api/ent/predicate"
  7. )
  8. // ID filters vertices based on their ID field.
  9. func ID(id int64) predicate.PaymentAuditLog {
  10. return predicate.PaymentAuditLog(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id int64) predicate.PaymentAuditLog {
  14. return predicate.PaymentAuditLog(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id int64) predicate.PaymentAuditLog {
  18. return predicate.PaymentAuditLog(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...int64) predicate.PaymentAuditLog {
  22. return predicate.PaymentAuditLog(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...int64) predicate.PaymentAuditLog {
  26. return predicate.PaymentAuditLog(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id int64) predicate.PaymentAuditLog {
  30. return predicate.PaymentAuditLog(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id int64) predicate.PaymentAuditLog {
  34. return predicate.PaymentAuditLog(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id int64) predicate.PaymentAuditLog {
  38. return predicate.PaymentAuditLog(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id int64) predicate.PaymentAuditLog {
  42. return predicate.PaymentAuditLog(sql.FieldLTE(FieldID, id))
  43. }
  44. // OrderID applies equality check predicate on the "order_id" field. It's identical to OrderIDEQ.
  45. func OrderID(v string) predicate.PaymentAuditLog {
  46. return predicate.PaymentAuditLog(sql.FieldEQ(FieldOrderID, v))
  47. }
  48. // Action applies equality check predicate on the "action" field. It's identical to ActionEQ.
  49. func Action(v string) predicate.PaymentAuditLog {
  50. return predicate.PaymentAuditLog(sql.FieldEQ(FieldAction, v))
  51. }
  52. // Detail applies equality check predicate on the "detail" field. It's identical to DetailEQ.
  53. func Detail(v string) predicate.PaymentAuditLog {
  54. return predicate.PaymentAuditLog(sql.FieldEQ(FieldDetail, v))
  55. }
  56. // Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
  57. func Operator(v string) predicate.PaymentAuditLog {
  58. return predicate.PaymentAuditLog(sql.FieldEQ(FieldOperator, v))
  59. }
  60. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  61. func CreatedAt(v time.Time) predicate.PaymentAuditLog {
  62. return predicate.PaymentAuditLog(sql.FieldEQ(FieldCreatedAt, v))
  63. }
  64. // OrderIDEQ applies the EQ predicate on the "order_id" field.
  65. func OrderIDEQ(v string) predicate.PaymentAuditLog {
  66. return predicate.PaymentAuditLog(sql.FieldEQ(FieldOrderID, v))
  67. }
  68. // OrderIDNEQ applies the NEQ predicate on the "order_id" field.
  69. func OrderIDNEQ(v string) predicate.PaymentAuditLog {
  70. return predicate.PaymentAuditLog(sql.FieldNEQ(FieldOrderID, v))
  71. }
  72. // OrderIDIn applies the In predicate on the "order_id" field.
  73. func OrderIDIn(vs ...string) predicate.PaymentAuditLog {
  74. return predicate.PaymentAuditLog(sql.FieldIn(FieldOrderID, vs...))
  75. }
  76. // OrderIDNotIn applies the NotIn predicate on the "order_id" field.
  77. func OrderIDNotIn(vs ...string) predicate.PaymentAuditLog {
  78. return predicate.PaymentAuditLog(sql.FieldNotIn(FieldOrderID, vs...))
  79. }
  80. // OrderIDGT applies the GT predicate on the "order_id" field.
  81. func OrderIDGT(v string) predicate.PaymentAuditLog {
  82. return predicate.PaymentAuditLog(sql.FieldGT(FieldOrderID, v))
  83. }
  84. // OrderIDGTE applies the GTE predicate on the "order_id" field.
  85. func OrderIDGTE(v string) predicate.PaymentAuditLog {
  86. return predicate.PaymentAuditLog(sql.FieldGTE(FieldOrderID, v))
  87. }
  88. // OrderIDLT applies the LT predicate on the "order_id" field.
  89. func OrderIDLT(v string) predicate.PaymentAuditLog {
  90. return predicate.PaymentAuditLog(sql.FieldLT(FieldOrderID, v))
  91. }
  92. // OrderIDLTE applies the LTE predicate on the "order_id" field.
  93. func OrderIDLTE(v string) predicate.PaymentAuditLog {
  94. return predicate.PaymentAuditLog(sql.FieldLTE(FieldOrderID, v))
  95. }
  96. // OrderIDContains applies the Contains predicate on the "order_id" field.
  97. func OrderIDContains(v string) predicate.PaymentAuditLog {
  98. return predicate.PaymentAuditLog(sql.FieldContains(FieldOrderID, v))
  99. }
  100. // OrderIDHasPrefix applies the HasPrefix predicate on the "order_id" field.
  101. func OrderIDHasPrefix(v string) predicate.PaymentAuditLog {
  102. return predicate.PaymentAuditLog(sql.FieldHasPrefix(FieldOrderID, v))
  103. }
  104. // OrderIDHasSuffix applies the HasSuffix predicate on the "order_id" field.
  105. func OrderIDHasSuffix(v string) predicate.PaymentAuditLog {
  106. return predicate.PaymentAuditLog(sql.FieldHasSuffix(FieldOrderID, v))
  107. }
  108. // OrderIDEqualFold applies the EqualFold predicate on the "order_id" field.
  109. func OrderIDEqualFold(v string) predicate.PaymentAuditLog {
  110. return predicate.PaymentAuditLog(sql.FieldEqualFold(FieldOrderID, v))
  111. }
  112. // OrderIDContainsFold applies the ContainsFold predicate on the "order_id" field.
  113. func OrderIDContainsFold(v string) predicate.PaymentAuditLog {
  114. return predicate.PaymentAuditLog(sql.FieldContainsFold(FieldOrderID, v))
  115. }
  116. // ActionEQ applies the EQ predicate on the "action" field.
  117. func ActionEQ(v string) predicate.PaymentAuditLog {
  118. return predicate.PaymentAuditLog(sql.FieldEQ(FieldAction, v))
  119. }
  120. // ActionNEQ applies the NEQ predicate on the "action" field.
  121. func ActionNEQ(v string) predicate.PaymentAuditLog {
  122. return predicate.PaymentAuditLog(sql.FieldNEQ(FieldAction, v))
  123. }
  124. // ActionIn applies the In predicate on the "action" field.
  125. func ActionIn(vs ...string) predicate.PaymentAuditLog {
  126. return predicate.PaymentAuditLog(sql.FieldIn(FieldAction, vs...))
  127. }
  128. // ActionNotIn applies the NotIn predicate on the "action" field.
  129. func ActionNotIn(vs ...string) predicate.PaymentAuditLog {
  130. return predicate.PaymentAuditLog(sql.FieldNotIn(FieldAction, vs...))
  131. }
  132. // ActionGT applies the GT predicate on the "action" field.
  133. func ActionGT(v string) predicate.PaymentAuditLog {
  134. return predicate.PaymentAuditLog(sql.FieldGT(FieldAction, v))
  135. }
  136. // ActionGTE applies the GTE predicate on the "action" field.
  137. func ActionGTE(v string) predicate.PaymentAuditLog {
  138. return predicate.PaymentAuditLog(sql.FieldGTE(FieldAction, v))
  139. }
  140. // ActionLT applies the LT predicate on the "action" field.
  141. func ActionLT(v string) predicate.PaymentAuditLog {
  142. return predicate.PaymentAuditLog(sql.FieldLT(FieldAction, v))
  143. }
  144. // ActionLTE applies the LTE predicate on the "action" field.
  145. func ActionLTE(v string) predicate.PaymentAuditLog {
  146. return predicate.PaymentAuditLog(sql.FieldLTE(FieldAction, v))
  147. }
  148. // ActionContains applies the Contains predicate on the "action" field.
  149. func ActionContains(v string) predicate.PaymentAuditLog {
  150. return predicate.PaymentAuditLog(sql.FieldContains(FieldAction, v))
  151. }
  152. // ActionHasPrefix applies the HasPrefix predicate on the "action" field.
  153. func ActionHasPrefix(v string) predicate.PaymentAuditLog {
  154. return predicate.PaymentAuditLog(sql.FieldHasPrefix(FieldAction, v))
  155. }
  156. // ActionHasSuffix applies the HasSuffix predicate on the "action" field.
  157. func ActionHasSuffix(v string) predicate.PaymentAuditLog {
  158. return predicate.PaymentAuditLog(sql.FieldHasSuffix(FieldAction, v))
  159. }
  160. // ActionEqualFold applies the EqualFold predicate on the "action" field.
  161. func ActionEqualFold(v string) predicate.PaymentAuditLog {
  162. return predicate.PaymentAuditLog(sql.FieldEqualFold(FieldAction, v))
  163. }
  164. // ActionContainsFold applies the ContainsFold predicate on the "action" field.
  165. func ActionContainsFold(v string) predicate.PaymentAuditLog {
  166. return predicate.PaymentAuditLog(sql.FieldContainsFold(FieldAction, v))
  167. }
  168. // DetailEQ applies the EQ predicate on the "detail" field.
  169. func DetailEQ(v string) predicate.PaymentAuditLog {
  170. return predicate.PaymentAuditLog(sql.FieldEQ(FieldDetail, v))
  171. }
  172. // DetailNEQ applies the NEQ predicate on the "detail" field.
  173. func DetailNEQ(v string) predicate.PaymentAuditLog {
  174. return predicate.PaymentAuditLog(sql.FieldNEQ(FieldDetail, v))
  175. }
  176. // DetailIn applies the In predicate on the "detail" field.
  177. func DetailIn(vs ...string) predicate.PaymentAuditLog {
  178. return predicate.PaymentAuditLog(sql.FieldIn(FieldDetail, vs...))
  179. }
  180. // DetailNotIn applies the NotIn predicate on the "detail" field.
  181. func DetailNotIn(vs ...string) predicate.PaymentAuditLog {
  182. return predicate.PaymentAuditLog(sql.FieldNotIn(FieldDetail, vs...))
  183. }
  184. // DetailGT applies the GT predicate on the "detail" field.
  185. func DetailGT(v string) predicate.PaymentAuditLog {
  186. return predicate.PaymentAuditLog(sql.FieldGT(FieldDetail, v))
  187. }
  188. // DetailGTE applies the GTE predicate on the "detail" field.
  189. func DetailGTE(v string) predicate.PaymentAuditLog {
  190. return predicate.PaymentAuditLog(sql.FieldGTE(FieldDetail, v))
  191. }
  192. // DetailLT applies the LT predicate on the "detail" field.
  193. func DetailLT(v string) predicate.PaymentAuditLog {
  194. return predicate.PaymentAuditLog(sql.FieldLT(FieldDetail, v))
  195. }
  196. // DetailLTE applies the LTE predicate on the "detail" field.
  197. func DetailLTE(v string) predicate.PaymentAuditLog {
  198. return predicate.PaymentAuditLog(sql.FieldLTE(FieldDetail, v))
  199. }
  200. // DetailContains applies the Contains predicate on the "detail" field.
  201. func DetailContains(v string) predicate.PaymentAuditLog {
  202. return predicate.PaymentAuditLog(sql.FieldContains(FieldDetail, v))
  203. }
  204. // DetailHasPrefix applies the HasPrefix predicate on the "detail" field.
  205. func DetailHasPrefix(v string) predicate.PaymentAuditLog {
  206. return predicate.PaymentAuditLog(sql.FieldHasPrefix(FieldDetail, v))
  207. }
  208. // DetailHasSuffix applies the HasSuffix predicate on the "detail" field.
  209. func DetailHasSuffix(v string) predicate.PaymentAuditLog {
  210. return predicate.PaymentAuditLog(sql.FieldHasSuffix(FieldDetail, v))
  211. }
  212. // DetailEqualFold applies the EqualFold predicate on the "detail" field.
  213. func DetailEqualFold(v string) predicate.PaymentAuditLog {
  214. return predicate.PaymentAuditLog(sql.FieldEqualFold(FieldDetail, v))
  215. }
  216. // DetailContainsFold applies the ContainsFold predicate on the "detail" field.
  217. func DetailContainsFold(v string) predicate.PaymentAuditLog {
  218. return predicate.PaymentAuditLog(sql.FieldContainsFold(FieldDetail, v))
  219. }
  220. // OperatorEQ applies the EQ predicate on the "operator" field.
  221. func OperatorEQ(v string) predicate.PaymentAuditLog {
  222. return predicate.PaymentAuditLog(sql.FieldEQ(FieldOperator, v))
  223. }
  224. // OperatorNEQ applies the NEQ predicate on the "operator" field.
  225. func OperatorNEQ(v string) predicate.PaymentAuditLog {
  226. return predicate.PaymentAuditLog(sql.FieldNEQ(FieldOperator, v))
  227. }
  228. // OperatorIn applies the In predicate on the "operator" field.
  229. func OperatorIn(vs ...string) predicate.PaymentAuditLog {
  230. return predicate.PaymentAuditLog(sql.FieldIn(FieldOperator, vs...))
  231. }
  232. // OperatorNotIn applies the NotIn predicate on the "operator" field.
  233. func OperatorNotIn(vs ...string) predicate.PaymentAuditLog {
  234. return predicate.PaymentAuditLog(sql.FieldNotIn(FieldOperator, vs...))
  235. }
  236. // OperatorGT applies the GT predicate on the "operator" field.
  237. func OperatorGT(v string) predicate.PaymentAuditLog {
  238. return predicate.PaymentAuditLog(sql.FieldGT(FieldOperator, v))
  239. }
  240. // OperatorGTE applies the GTE predicate on the "operator" field.
  241. func OperatorGTE(v string) predicate.PaymentAuditLog {
  242. return predicate.PaymentAuditLog(sql.FieldGTE(FieldOperator, v))
  243. }
  244. // OperatorLT applies the LT predicate on the "operator" field.
  245. func OperatorLT(v string) predicate.PaymentAuditLog {
  246. return predicate.PaymentAuditLog(sql.FieldLT(FieldOperator, v))
  247. }
  248. // OperatorLTE applies the LTE predicate on the "operator" field.
  249. func OperatorLTE(v string) predicate.PaymentAuditLog {
  250. return predicate.PaymentAuditLog(sql.FieldLTE(FieldOperator, v))
  251. }
  252. // OperatorContains applies the Contains predicate on the "operator" field.
  253. func OperatorContains(v string) predicate.PaymentAuditLog {
  254. return predicate.PaymentAuditLog(sql.FieldContains(FieldOperator, v))
  255. }
  256. // OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
  257. func OperatorHasPrefix(v string) predicate.PaymentAuditLog {
  258. return predicate.PaymentAuditLog(sql.FieldHasPrefix(FieldOperator, v))
  259. }
  260. // OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
  261. func OperatorHasSuffix(v string) predicate.PaymentAuditLog {
  262. return predicate.PaymentAuditLog(sql.FieldHasSuffix(FieldOperator, v))
  263. }
  264. // OperatorEqualFold applies the EqualFold predicate on the "operator" field.
  265. func OperatorEqualFold(v string) predicate.PaymentAuditLog {
  266. return predicate.PaymentAuditLog(sql.FieldEqualFold(FieldOperator, v))
  267. }
  268. // OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
  269. func OperatorContainsFold(v string) predicate.PaymentAuditLog {
  270. return predicate.PaymentAuditLog(sql.FieldContainsFold(FieldOperator, v))
  271. }
  272. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  273. func CreatedAtEQ(v time.Time) predicate.PaymentAuditLog {
  274. return predicate.PaymentAuditLog(sql.FieldEQ(FieldCreatedAt, v))
  275. }
  276. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  277. func CreatedAtNEQ(v time.Time) predicate.PaymentAuditLog {
  278. return predicate.PaymentAuditLog(sql.FieldNEQ(FieldCreatedAt, v))
  279. }
  280. // CreatedAtIn applies the In predicate on the "created_at" field.
  281. func CreatedAtIn(vs ...time.Time) predicate.PaymentAuditLog {
  282. return predicate.PaymentAuditLog(sql.FieldIn(FieldCreatedAt, vs...))
  283. }
  284. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  285. func CreatedAtNotIn(vs ...time.Time) predicate.PaymentAuditLog {
  286. return predicate.PaymentAuditLog(sql.FieldNotIn(FieldCreatedAt, vs...))
  287. }
  288. // CreatedAtGT applies the GT predicate on the "created_at" field.
  289. func CreatedAtGT(v time.Time) predicate.PaymentAuditLog {
  290. return predicate.PaymentAuditLog(sql.FieldGT(FieldCreatedAt, v))
  291. }
  292. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  293. func CreatedAtGTE(v time.Time) predicate.PaymentAuditLog {
  294. return predicate.PaymentAuditLog(sql.FieldGTE(FieldCreatedAt, v))
  295. }
  296. // CreatedAtLT applies the LT predicate on the "created_at" field.
  297. func CreatedAtLT(v time.Time) predicate.PaymentAuditLog {
  298. return predicate.PaymentAuditLog(sql.FieldLT(FieldCreatedAt, v))
  299. }
  300. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  301. func CreatedAtLTE(v time.Time) predicate.PaymentAuditLog {
  302. return predicate.PaymentAuditLog(sql.FieldLTE(FieldCreatedAt, v))
  303. }
  304. // And groups predicates with the AND operator between them.
  305. func And(predicates ...predicate.PaymentAuditLog) predicate.PaymentAuditLog {
  306. return predicate.PaymentAuditLog(sql.AndPredicates(predicates...))
  307. }
  308. // Or groups predicates with the OR operator between them.
  309. func Or(predicates ...predicate.PaymentAuditLog) predicate.PaymentAuditLog {
  310. return predicate.PaymentAuditLog(sql.OrPredicates(predicates...))
  311. }
  312. // Not applies the not operator on the given predicate.
  313. func Not(p predicate.PaymentAuditLog) predicate.PaymentAuditLog {
  314. return predicate.PaymentAuditLog(sql.NotPredicates(p))
  315. }