where.go 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. // Code generated by ent, DO NOT EDIT.
  2. package compapijob
  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.CompapiJob {
  10. return predicate.CompapiJob(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id uint64) predicate.CompapiJob {
  14. return predicate.CompapiJob(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id uint64) predicate.CompapiJob {
  18. return predicate.CompapiJob(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...uint64) predicate.CompapiJob {
  22. return predicate.CompapiJob(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...uint64) predicate.CompapiJob {
  26. return predicate.CompapiJob(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id uint64) predicate.CompapiJob {
  30. return predicate.CompapiJob(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id uint64) predicate.CompapiJob {
  34. return predicate.CompapiJob(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id uint64) predicate.CompapiJob {
  38. return predicate.CompapiJob(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id uint64) predicate.CompapiJob {
  42. return predicate.CompapiJob(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.CompapiJob {
  46. return predicate.CompapiJob(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.CompapiJob {
  50. return predicate.CompapiJob(sql.FieldEQ(FieldUpdatedAt, v))
  51. }
  52. // DistAt applies equality check predicate on the "dist_at" field. It's identical to DistAtEQ.
  53. func DistAt(v time.Time) predicate.CompapiJob {
  54. return predicate.CompapiJob(sql.FieldEQ(FieldDistAt, v))
  55. }
  56. // DistStatus applies equality check predicate on the "dist_status" field. It's identical to DistStatusEQ.
  57. func DistStatus(v int8) predicate.CompapiJob {
  58. return predicate.CompapiJob(sql.FieldEQ(FieldDistStatus, v))
  59. }
  60. // CallbackStatus applies equality check predicate on the "callback_status" field. It's identical to CallbackStatusEQ.
  61. func CallbackStatus(v int8) predicate.CompapiJob {
  62. return predicate.CompapiJob(sql.FieldEQ(FieldCallbackStatus, v))
  63. }
  64. // CallbackURL applies equality check predicate on the "callback_url" field. It's identical to CallbackURLEQ.
  65. func CallbackURL(v string) predicate.CompapiJob {
  66. return predicate.CompapiJob(sql.FieldEQ(FieldCallbackURL, v))
  67. }
  68. // AuthToken applies equality check predicate on the "auth_token" field. It's identical to AuthTokenEQ.
  69. func AuthToken(v string) predicate.CompapiJob {
  70. return predicate.CompapiJob(sql.FieldEQ(FieldAuthToken, v))
  71. }
  72. // EventType applies equality check predicate on the "event_type" field. It's identical to EventTypeEQ.
  73. func EventType(v string) predicate.CompapiJob {
  74. return predicate.CompapiJob(sql.FieldEQ(FieldEventType, v))
  75. }
  76. // WorkidIdx applies equality check predicate on the "workid_idx" field. It's identical to WorkidIdxEQ.
  77. func WorkidIdx(v int8) predicate.CompapiJob {
  78. return predicate.CompapiJob(sql.FieldEQ(FieldWorkidIdx, v))
  79. }
  80. // ChatID applies equality check predicate on the "chat_id" field. It's identical to ChatIDEQ.
  81. func ChatID(v string) predicate.CompapiJob {
  82. return predicate.CompapiJob(sql.FieldEQ(FieldChatID, v))
  83. }
  84. // RetryCount applies equality check predicate on the "retry_count" field. It's identical to RetryCountEQ.
  85. func RetryCount(v int8) predicate.CompapiJob {
  86. return predicate.CompapiJob(sql.FieldEQ(FieldRetryCount, v))
  87. }
  88. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  89. func CreatedAtEQ(v time.Time) predicate.CompapiJob {
  90. return predicate.CompapiJob(sql.FieldEQ(FieldCreatedAt, v))
  91. }
  92. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  93. func CreatedAtNEQ(v time.Time) predicate.CompapiJob {
  94. return predicate.CompapiJob(sql.FieldNEQ(FieldCreatedAt, v))
  95. }
  96. // CreatedAtIn applies the In predicate on the "created_at" field.
  97. func CreatedAtIn(vs ...time.Time) predicate.CompapiJob {
  98. return predicate.CompapiJob(sql.FieldIn(FieldCreatedAt, vs...))
  99. }
  100. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  101. func CreatedAtNotIn(vs ...time.Time) predicate.CompapiJob {
  102. return predicate.CompapiJob(sql.FieldNotIn(FieldCreatedAt, vs...))
  103. }
  104. // CreatedAtGT applies the GT predicate on the "created_at" field.
  105. func CreatedAtGT(v time.Time) predicate.CompapiJob {
  106. return predicate.CompapiJob(sql.FieldGT(FieldCreatedAt, v))
  107. }
  108. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  109. func CreatedAtGTE(v time.Time) predicate.CompapiJob {
  110. return predicate.CompapiJob(sql.FieldGTE(FieldCreatedAt, v))
  111. }
  112. // CreatedAtLT applies the LT predicate on the "created_at" field.
  113. func CreatedAtLT(v time.Time) predicate.CompapiJob {
  114. return predicate.CompapiJob(sql.FieldLT(FieldCreatedAt, v))
  115. }
  116. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  117. func CreatedAtLTE(v time.Time) predicate.CompapiJob {
  118. return predicate.CompapiJob(sql.FieldLTE(FieldCreatedAt, v))
  119. }
  120. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  121. func UpdatedAtEQ(v time.Time) predicate.CompapiJob {
  122. return predicate.CompapiJob(sql.FieldEQ(FieldUpdatedAt, v))
  123. }
  124. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  125. func UpdatedAtNEQ(v time.Time) predicate.CompapiJob {
  126. return predicate.CompapiJob(sql.FieldNEQ(FieldUpdatedAt, v))
  127. }
  128. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  129. func UpdatedAtIn(vs ...time.Time) predicate.CompapiJob {
  130. return predicate.CompapiJob(sql.FieldIn(FieldUpdatedAt, vs...))
  131. }
  132. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  133. func UpdatedAtNotIn(vs ...time.Time) predicate.CompapiJob {
  134. return predicate.CompapiJob(sql.FieldNotIn(FieldUpdatedAt, vs...))
  135. }
  136. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  137. func UpdatedAtGT(v time.Time) predicate.CompapiJob {
  138. return predicate.CompapiJob(sql.FieldGT(FieldUpdatedAt, v))
  139. }
  140. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  141. func UpdatedAtGTE(v time.Time) predicate.CompapiJob {
  142. return predicate.CompapiJob(sql.FieldGTE(FieldUpdatedAt, v))
  143. }
  144. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  145. func UpdatedAtLT(v time.Time) predicate.CompapiJob {
  146. return predicate.CompapiJob(sql.FieldLT(FieldUpdatedAt, v))
  147. }
  148. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  149. func UpdatedAtLTE(v time.Time) predicate.CompapiJob {
  150. return predicate.CompapiJob(sql.FieldLTE(FieldUpdatedAt, v))
  151. }
  152. // DistAtEQ applies the EQ predicate on the "dist_at" field.
  153. func DistAtEQ(v time.Time) predicate.CompapiJob {
  154. return predicate.CompapiJob(sql.FieldEQ(FieldDistAt, v))
  155. }
  156. // DistAtNEQ applies the NEQ predicate on the "dist_at" field.
  157. func DistAtNEQ(v time.Time) predicate.CompapiJob {
  158. return predicate.CompapiJob(sql.FieldNEQ(FieldDistAt, v))
  159. }
  160. // DistAtIn applies the In predicate on the "dist_at" field.
  161. func DistAtIn(vs ...time.Time) predicate.CompapiJob {
  162. return predicate.CompapiJob(sql.FieldIn(FieldDistAt, vs...))
  163. }
  164. // DistAtNotIn applies the NotIn predicate on the "dist_at" field.
  165. func DistAtNotIn(vs ...time.Time) predicate.CompapiJob {
  166. return predicate.CompapiJob(sql.FieldNotIn(FieldDistAt, vs...))
  167. }
  168. // DistAtGT applies the GT predicate on the "dist_at" field.
  169. func DistAtGT(v time.Time) predicate.CompapiJob {
  170. return predicate.CompapiJob(sql.FieldGT(FieldDistAt, v))
  171. }
  172. // DistAtGTE applies the GTE predicate on the "dist_at" field.
  173. func DistAtGTE(v time.Time) predicate.CompapiJob {
  174. return predicate.CompapiJob(sql.FieldGTE(FieldDistAt, v))
  175. }
  176. // DistAtLT applies the LT predicate on the "dist_at" field.
  177. func DistAtLT(v time.Time) predicate.CompapiJob {
  178. return predicate.CompapiJob(sql.FieldLT(FieldDistAt, v))
  179. }
  180. // DistAtLTE applies the LTE predicate on the "dist_at" field.
  181. func DistAtLTE(v time.Time) predicate.CompapiJob {
  182. return predicate.CompapiJob(sql.FieldLTE(FieldDistAt, v))
  183. }
  184. // DistAtIsNil applies the IsNil predicate on the "dist_at" field.
  185. func DistAtIsNil() predicate.CompapiJob {
  186. return predicate.CompapiJob(sql.FieldIsNull(FieldDistAt))
  187. }
  188. // DistAtNotNil applies the NotNil predicate on the "dist_at" field.
  189. func DistAtNotNil() predicate.CompapiJob {
  190. return predicate.CompapiJob(sql.FieldNotNull(FieldDistAt))
  191. }
  192. // DistStatusEQ applies the EQ predicate on the "dist_status" field.
  193. func DistStatusEQ(v int8) predicate.CompapiJob {
  194. return predicate.CompapiJob(sql.FieldEQ(FieldDistStatus, v))
  195. }
  196. // DistStatusNEQ applies the NEQ predicate on the "dist_status" field.
  197. func DistStatusNEQ(v int8) predicate.CompapiJob {
  198. return predicate.CompapiJob(sql.FieldNEQ(FieldDistStatus, v))
  199. }
  200. // DistStatusIn applies the In predicate on the "dist_status" field.
  201. func DistStatusIn(vs ...int8) predicate.CompapiJob {
  202. return predicate.CompapiJob(sql.FieldIn(FieldDistStatus, vs...))
  203. }
  204. // DistStatusNotIn applies the NotIn predicate on the "dist_status" field.
  205. func DistStatusNotIn(vs ...int8) predicate.CompapiJob {
  206. return predicate.CompapiJob(sql.FieldNotIn(FieldDistStatus, vs...))
  207. }
  208. // DistStatusGT applies the GT predicate on the "dist_status" field.
  209. func DistStatusGT(v int8) predicate.CompapiJob {
  210. return predicate.CompapiJob(sql.FieldGT(FieldDistStatus, v))
  211. }
  212. // DistStatusGTE applies the GTE predicate on the "dist_status" field.
  213. func DistStatusGTE(v int8) predicate.CompapiJob {
  214. return predicate.CompapiJob(sql.FieldGTE(FieldDistStatus, v))
  215. }
  216. // DistStatusLT applies the LT predicate on the "dist_status" field.
  217. func DistStatusLT(v int8) predicate.CompapiJob {
  218. return predicate.CompapiJob(sql.FieldLT(FieldDistStatus, v))
  219. }
  220. // DistStatusLTE applies the LTE predicate on the "dist_status" field.
  221. func DistStatusLTE(v int8) predicate.CompapiJob {
  222. return predicate.CompapiJob(sql.FieldLTE(FieldDistStatus, v))
  223. }
  224. // DistStatusIsNil applies the IsNil predicate on the "dist_status" field.
  225. func DistStatusIsNil() predicate.CompapiJob {
  226. return predicate.CompapiJob(sql.FieldIsNull(FieldDistStatus))
  227. }
  228. // DistStatusNotNil applies the NotNil predicate on the "dist_status" field.
  229. func DistStatusNotNil() predicate.CompapiJob {
  230. return predicate.CompapiJob(sql.FieldNotNull(FieldDistStatus))
  231. }
  232. // CallbackStatusEQ applies the EQ predicate on the "callback_status" field.
  233. func CallbackStatusEQ(v int8) predicate.CompapiJob {
  234. return predicate.CompapiJob(sql.FieldEQ(FieldCallbackStatus, v))
  235. }
  236. // CallbackStatusNEQ applies the NEQ predicate on the "callback_status" field.
  237. func CallbackStatusNEQ(v int8) predicate.CompapiJob {
  238. return predicate.CompapiJob(sql.FieldNEQ(FieldCallbackStatus, v))
  239. }
  240. // CallbackStatusIn applies the In predicate on the "callback_status" field.
  241. func CallbackStatusIn(vs ...int8) predicate.CompapiJob {
  242. return predicate.CompapiJob(sql.FieldIn(FieldCallbackStatus, vs...))
  243. }
  244. // CallbackStatusNotIn applies the NotIn predicate on the "callback_status" field.
  245. func CallbackStatusNotIn(vs ...int8) predicate.CompapiJob {
  246. return predicate.CompapiJob(sql.FieldNotIn(FieldCallbackStatus, vs...))
  247. }
  248. // CallbackStatusGT applies the GT predicate on the "callback_status" field.
  249. func CallbackStatusGT(v int8) predicate.CompapiJob {
  250. return predicate.CompapiJob(sql.FieldGT(FieldCallbackStatus, v))
  251. }
  252. // CallbackStatusGTE applies the GTE predicate on the "callback_status" field.
  253. func CallbackStatusGTE(v int8) predicate.CompapiJob {
  254. return predicate.CompapiJob(sql.FieldGTE(FieldCallbackStatus, v))
  255. }
  256. // CallbackStatusLT applies the LT predicate on the "callback_status" field.
  257. func CallbackStatusLT(v int8) predicate.CompapiJob {
  258. return predicate.CompapiJob(sql.FieldLT(FieldCallbackStatus, v))
  259. }
  260. // CallbackStatusLTE applies the LTE predicate on the "callback_status" field.
  261. func CallbackStatusLTE(v int8) predicate.CompapiJob {
  262. return predicate.CompapiJob(sql.FieldLTE(FieldCallbackStatus, v))
  263. }
  264. // CallbackStatusIsNil applies the IsNil predicate on the "callback_status" field.
  265. func CallbackStatusIsNil() predicate.CompapiJob {
  266. return predicate.CompapiJob(sql.FieldIsNull(FieldCallbackStatus))
  267. }
  268. // CallbackStatusNotNil applies the NotNil predicate on the "callback_status" field.
  269. func CallbackStatusNotNil() predicate.CompapiJob {
  270. return predicate.CompapiJob(sql.FieldNotNull(FieldCallbackStatus))
  271. }
  272. // CallbackURLEQ applies the EQ predicate on the "callback_url" field.
  273. func CallbackURLEQ(v string) predicate.CompapiJob {
  274. return predicate.CompapiJob(sql.FieldEQ(FieldCallbackURL, v))
  275. }
  276. // CallbackURLNEQ applies the NEQ predicate on the "callback_url" field.
  277. func CallbackURLNEQ(v string) predicate.CompapiJob {
  278. return predicate.CompapiJob(sql.FieldNEQ(FieldCallbackURL, v))
  279. }
  280. // CallbackURLIn applies the In predicate on the "callback_url" field.
  281. func CallbackURLIn(vs ...string) predicate.CompapiJob {
  282. return predicate.CompapiJob(sql.FieldIn(FieldCallbackURL, vs...))
  283. }
  284. // CallbackURLNotIn applies the NotIn predicate on the "callback_url" field.
  285. func CallbackURLNotIn(vs ...string) predicate.CompapiJob {
  286. return predicate.CompapiJob(sql.FieldNotIn(FieldCallbackURL, vs...))
  287. }
  288. // CallbackURLGT applies the GT predicate on the "callback_url" field.
  289. func CallbackURLGT(v string) predicate.CompapiJob {
  290. return predicate.CompapiJob(sql.FieldGT(FieldCallbackURL, v))
  291. }
  292. // CallbackURLGTE applies the GTE predicate on the "callback_url" field.
  293. func CallbackURLGTE(v string) predicate.CompapiJob {
  294. return predicate.CompapiJob(sql.FieldGTE(FieldCallbackURL, v))
  295. }
  296. // CallbackURLLT applies the LT predicate on the "callback_url" field.
  297. func CallbackURLLT(v string) predicate.CompapiJob {
  298. return predicate.CompapiJob(sql.FieldLT(FieldCallbackURL, v))
  299. }
  300. // CallbackURLLTE applies the LTE predicate on the "callback_url" field.
  301. func CallbackURLLTE(v string) predicate.CompapiJob {
  302. return predicate.CompapiJob(sql.FieldLTE(FieldCallbackURL, v))
  303. }
  304. // CallbackURLContains applies the Contains predicate on the "callback_url" field.
  305. func CallbackURLContains(v string) predicate.CompapiJob {
  306. return predicate.CompapiJob(sql.FieldContains(FieldCallbackURL, v))
  307. }
  308. // CallbackURLHasPrefix applies the HasPrefix predicate on the "callback_url" field.
  309. func CallbackURLHasPrefix(v string) predicate.CompapiJob {
  310. return predicate.CompapiJob(sql.FieldHasPrefix(FieldCallbackURL, v))
  311. }
  312. // CallbackURLHasSuffix applies the HasSuffix predicate on the "callback_url" field.
  313. func CallbackURLHasSuffix(v string) predicate.CompapiJob {
  314. return predicate.CompapiJob(sql.FieldHasSuffix(FieldCallbackURL, v))
  315. }
  316. // CallbackURLEqualFold applies the EqualFold predicate on the "callback_url" field.
  317. func CallbackURLEqualFold(v string) predicate.CompapiJob {
  318. return predicate.CompapiJob(sql.FieldEqualFold(FieldCallbackURL, v))
  319. }
  320. // CallbackURLContainsFold applies the ContainsFold predicate on the "callback_url" field.
  321. func CallbackURLContainsFold(v string) predicate.CompapiJob {
  322. return predicate.CompapiJob(sql.FieldContainsFold(FieldCallbackURL, v))
  323. }
  324. // AuthTokenEQ applies the EQ predicate on the "auth_token" field.
  325. func AuthTokenEQ(v string) predicate.CompapiJob {
  326. return predicate.CompapiJob(sql.FieldEQ(FieldAuthToken, v))
  327. }
  328. // AuthTokenNEQ applies the NEQ predicate on the "auth_token" field.
  329. func AuthTokenNEQ(v string) predicate.CompapiJob {
  330. return predicate.CompapiJob(sql.FieldNEQ(FieldAuthToken, v))
  331. }
  332. // AuthTokenIn applies the In predicate on the "auth_token" field.
  333. func AuthTokenIn(vs ...string) predicate.CompapiJob {
  334. return predicate.CompapiJob(sql.FieldIn(FieldAuthToken, vs...))
  335. }
  336. // AuthTokenNotIn applies the NotIn predicate on the "auth_token" field.
  337. func AuthTokenNotIn(vs ...string) predicate.CompapiJob {
  338. return predicate.CompapiJob(sql.FieldNotIn(FieldAuthToken, vs...))
  339. }
  340. // AuthTokenGT applies the GT predicate on the "auth_token" field.
  341. func AuthTokenGT(v string) predicate.CompapiJob {
  342. return predicate.CompapiJob(sql.FieldGT(FieldAuthToken, v))
  343. }
  344. // AuthTokenGTE applies the GTE predicate on the "auth_token" field.
  345. func AuthTokenGTE(v string) predicate.CompapiJob {
  346. return predicate.CompapiJob(sql.FieldGTE(FieldAuthToken, v))
  347. }
  348. // AuthTokenLT applies the LT predicate on the "auth_token" field.
  349. func AuthTokenLT(v string) predicate.CompapiJob {
  350. return predicate.CompapiJob(sql.FieldLT(FieldAuthToken, v))
  351. }
  352. // AuthTokenLTE applies the LTE predicate on the "auth_token" field.
  353. func AuthTokenLTE(v string) predicate.CompapiJob {
  354. return predicate.CompapiJob(sql.FieldLTE(FieldAuthToken, v))
  355. }
  356. // AuthTokenContains applies the Contains predicate on the "auth_token" field.
  357. func AuthTokenContains(v string) predicate.CompapiJob {
  358. return predicate.CompapiJob(sql.FieldContains(FieldAuthToken, v))
  359. }
  360. // AuthTokenHasPrefix applies the HasPrefix predicate on the "auth_token" field.
  361. func AuthTokenHasPrefix(v string) predicate.CompapiJob {
  362. return predicate.CompapiJob(sql.FieldHasPrefix(FieldAuthToken, v))
  363. }
  364. // AuthTokenHasSuffix applies the HasSuffix predicate on the "auth_token" field.
  365. func AuthTokenHasSuffix(v string) predicate.CompapiJob {
  366. return predicate.CompapiJob(sql.FieldHasSuffix(FieldAuthToken, v))
  367. }
  368. // AuthTokenEqualFold applies the EqualFold predicate on the "auth_token" field.
  369. func AuthTokenEqualFold(v string) predicate.CompapiJob {
  370. return predicate.CompapiJob(sql.FieldEqualFold(FieldAuthToken, v))
  371. }
  372. // AuthTokenContainsFold applies the ContainsFold predicate on the "auth_token" field.
  373. func AuthTokenContainsFold(v string) predicate.CompapiJob {
  374. return predicate.CompapiJob(sql.FieldContainsFold(FieldAuthToken, v))
  375. }
  376. // EventTypeEQ applies the EQ predicate on the "event_type" field.
  377. func EventTypeEQ(v string) predicate.CompapiJob {
  378. return predicate.CompapiJob(sql.FieldEQ(FieldEventType, v))
  379. }
  380. // EventTypeNEQ applies the NEQ predicate on the "event_type" field.
  381. func EventTypeNEQ(v string) predicate.CompapiJob {
  382. return predicate.CompapiJob(sql.FieldNEQ(FieldEventType, v))
  383. }
  384. // EventTypeIn applies the In predicate on the "event_type" field.
  385. func EventTypeIn(vs ...string) predicate.CompapiJob {
  386. return predicate.CompapiJob(sql.FieldIn(FieldEventType, vs...))
  387. }
  388. // EventTypeNotIn applies the NotIn predicate on the "event_type" field.
  389. func EventTypeNotIn(vs ...string) predicate.CompapiJob {
  390. return predicate.CompapiJob(sql.FieldNotIn(FieldEventType, vs...))
  391. }
  392. // EventTypeGT applies the GT predicate on the "event_type" field.
  393. func EventTypeGT(v string) predicate.CompapiJob {
  394. return predicate.CompapiJob(sql.FieldGT(FieldEventType, v))
  395. }
  396. // EventTypeGTE applies the GTE predicate on the "event_type" field.
  397. func EventTypeGTE(v string) predicate.CompapiJob {
  398. return predicate.CompapiJob(sql.FieldGTE(FieldEventType, v))
  399. }
  400. // EventTypeLT applies the LT predicate on the "event_type" field.
  401. func EventTypeLT(v string) predicate.CompapiJob {
  402. return predicate.CompapiJob(sql.FieldLT(FieldEventType, v))
  403. }
  404. // EventTypeLTE applies the LTE predicate on the "event_type" field.
  405. func EventTypeLTE(v string) predicate.CompapiJob {
  406. return predicate.CompapiJob(sql.FieldLTE(FieldEventType, v))
  407. }
  408. // EventTypeContains applies the Contains predicate on the "event_type" field.
  409. func EventTypeContains(v string) predicate.CompapiJob {
  410. return predicate.CompapiJob(sql.FieldContains(FieldEventType, v))
  411. }
  412. // EventTypeHasPrefix applies the HasPrefix predicate on the "event_type" field.
  413. func EventTypeHasPrefix(v string) predicate.CompapiJob {
  414. return predicate.CompapiJob(sql.FieldHasPrefix(FieldEventType, v))
  415. }
  416. // EventTypeHasSuffix applies the HasSuffix predicate on the "event_type" field.
  417. func EventTypeHasSuffix(v string) predicate.CompapiJob {
  418. return predicate.CompapiJob(sql.FieldHasSuffix(FieldEventType, v))
  419. }
  420. // EventTypeEqualFold applies the EqualFold predicate on the "event_type" field.
  421. func EventTypeEqualFold(v string) predicate.CompapiJob {
  422. return predicate.CompapiJob(sql.FieldEqualFold(FieldEventType, v))
  423. }
  424. // EventTypeContainsFold applies the ContainsFold predicate on the "event_type" field.
  425. func EventTypeContainsFold(v string) predicate.CompapiJob {
  426. return predicate.CompapiJob(sql.FieldContainsFold(FieldEventType, v))
  427. }
  428. // WorkidIdxEQ applies the EQ predicate on the "workid_idx" field.
  429. func WorkidIdxEQ(v int8) predicate.CompapiJob {
  430. return predicate.CompapiJob(sql.FieldEQ(FieldWorkidIdx, v))
  431. }
  432. // WorkidIdxNEQ applies the NEQ predicate on the "workid_idx" field.
  433. func WorkidIdxNEQ(v int8) predicate.CompapiJob {
  434. return predicate.CompapiJob(sql.FieldNEQ(FieldWorkidIdx, v))
  435. }
  436. // WorkidIdxIn applies the In predicate on the "workid_idx" field.
  437. func WorkidIdxIn(vs ...int8) predicate.CompapiJob {
  438. return predicate.CompapiJob(sql.FieldIn(FieldWorkidIdx, vs...))
  439. }
  440. // WorkidIdxNotIn applies the NotIn predicate on the "workid_idx" field.
  441. func WorkidIdxNotIn(vs ...int8) predicate.CompapiJob {
  442. return predicate.CompapiJob(sql.FieldNotIn(FieldWorkidIdx, vs...))
  443. }
  444. // WorkidIdxGT applies the GT predicate on the "workid_idx" field.
  445. func WorkidIdxGT(v int8) predicate.CompapiJob {
  446. return predicate.CompapiJob(sql.FieldGT(FieldWorkidIdx, v))
  447. }
  448. // WorkidIdxGTE applies the GTE predicate on the "workid_idx" field.
  449. func WorkidIdxGTE(v int8) predicate.CompapiJob {
  450. return predicate.CompapiJob(sql.FieldGTE(FieldWorkidIdx, v))
  451. }
  452. // WorkidIdxLT applies the LT predicate on the "workid_idx" field.
  453. func WorkidIdxLT(v int8) predicate.CompapiJob {
  454. return predicate.CompapiJob(sql.FieldLT(FieldWorkidIdx, v))
  455. }
  456. // WorkidIdxLTE applies the LTE predicate on the "workid_idx" field.
  457. func WorkidIdxLTE(v int8) predicate.CompapiJob {
  458. return predicate.CompapiJob(sql.FieldLTE(FieldWorkidIdx, v))
  459. }
  460. // WorkidIdxIsNil applies the IsNil predicate on the "workid_idx" field.
  461. func WorkidIdxIsNil() predicate.CompapiJob {
  462. return predicate.CompapiJob(sql.FieldIsNull(FieldWorkidIdx))
  463. }
  464. // WorkidIdxNotNil applies the NotNil predicate on the "workid_idx" field.
  465. func WorkidIdxNotNil() predicate.CompapiJob {
  466. return predicate.CompapiJob(sql.FieldNotNull(FieldWorkidIdx))
  467. }
  468. // ChatIDEQ applies the EQ predicate on the "chat_id" field.
  469. func ChatIDEQ(v string) predicate.CompapiJob {
  470. return predicate.CompapiJob(sql.FieldEQ(FieldChatID, v))
  471. }
  472. // ChatIDNEQ applies the NEQ predicate on the "chat_id" field.
  473. func ChatIDNEQ(v string) predicate.CompapiJob {
  474. return predicate.CompapiJob(sql.FieldNEQ(FieldChatID, v))
  475. }
  476. // ChatIDIn applies the In predicate on the "chat_id" field.
  477. func ChatIDIn(vs ...string) predicate.CompapiJob {
  478. return predicate.CompapiJob(sql.FieldIn(FieldChatID, vs...))
  479. }
  480. // ChatIDNotIn applies the NotIn predicate on the "chat_id" field.
  481. func ChatIDNotIn(vs ...string) predicate.CompapiJob {
  482. return predicate.CompapiJob(sql.FieldNotIn(FieldChatID, vs...))
  483. }
  484. // ChatIDGT applies the GT predicate on the "chat_id" field.
  485. func ChatIDGT(v string) predicate.CompapiJob {
  486. return predicate.CompapiJob(sql.FieldGT(FieldChatID, v))
  487. }
  488. // ChatIDGTE applies the GTE predicate on the "chat_id" field.
  489. func ChatIDGTE(v string) predicate.CompapiJob {
  490. return predicate.CompapiJob(sql.FieldGTE(FieldChatID, v))
  491. }
  492. // ChatIDLT applies the LT predicate on the "chat_id" field.
  493. func ChatIDLT(v string) predicate.CompapiJob {
  494. return predicate.CompapiJob(sql.FieldLT(FieldChatID, v))
  495. }
  496. // ChatIDLTE applies the LTE predicate on the "chat_id" field.
  497. func ChatIDLTE(v string) predicate.CompapiJob {
  498. return predicate.CompapiJob(sql.FieldLTE(FieldChatID, v))
  499. }
  500. // ChatIDContains applies the Contains predicate on the "chat_id" field.
  501. func ChatIDContains(v string) predicate.CompapiJob {
  502. return predicate.CompapiJob(sql.FieldContains(FieldChatID, v))
  503. }
  504. // ChatIDHasPrefix applies the HasPrefix predicate on the "chat_id" field.
  505. func ChatIDHasPrefix(v string) predicate.CompapiJob {
  506. return predicate.CompapiJob(sql.FieldHasPrefix(FieldChatID, v))
  507. }
  508. // ChatIDHasSuffix applies the HasSuffix predicate on the "chat_id" field.
  509. func ChatIDHasSuffix(v string) predicate.CompapiJob {
  510. return predicate.CompapiJob(sql.FieldHasSuffix(FieldChatID, v))
  511. }
  512. // ChatIDIsNil applies the IsNil predicate on the "chat_id" field.
  513. func ChatIDIsNil() predicate.CompapiJob {
  514. return predicate.CompapiJob(sql.FieldIsNull(FieldChatID))
  515. }
  516. // ChatIDNotNil applies the NotNil predicate on the "chat_id" field.
  517. func ChatIDNotNil() predicate.CompapiJob {
  518. return predicate.CompapiJob(sql.FieldNotNull(FieldChatID))
  519. }
  520. // ChatIDEqualFold applies the EqualFold predicate on the "chat_id" field.
  521. func ChatIDEqualFold(v string) predicate.CompapiJob {
  522. return predicate.CompapiJob(sql.FieldEqualFold(FieldChatID, v))
  523. }
  524. // ChatIDContainsFold applies the ContainsFold predicate on the "chat_id" field.
  525. func ChatIDContainsFold(v string) predicate.CompapiJob {
  526. return predicate.CompapiJob(sql.FieldContainsFold(FieldChatID, v))
  527. }
  528. // RetryCountEQ applies the EQ predicate on the "retry_count" field.
  529. func RetryCountEQ(v int8) predicate.CompapiJob {
  530. return predicate.CompapiJob(sql.FieldEQ(FieldRetryCount, v))
  531. }
  532. // RetryCountNEQ applies the NEQ predicate on the "retry_count" field.
  533. func RetryCountNEQ(v int8) predicate.CompapiJob {
  534. return predicate.CompapiJob(sql.FieldNEQ(FieldRetryCount, v))
  535. }
  536. // RetryCountIn applies the In predicate on the "retry_count" field.
  537. func RetryCountIn(vs ...int8) predicate.CompapiJob {
  538. return predicate.CompapiJob(sql.FieldIn(FieldRetryCount, vs...))
  539. }
  540. // RetryCountNotIn applies the NotIn predicate on the "retry_count" field.
  541. func RetryCountNotIn(vs ...int8) predicate.CompapiJob {
  542. return predicate.CompapiJob(sql.FieldNotIn(FieldRetryCount, vs...))
  543. }
  544. // RetryCountGT applies the GT predicate on the "retry_count" field.
  545. func RetryCountGT(v int8) predicate.CompapiJob {
  546. return predicate.CompapiJob(sql.FieldGT(FieldRetryCount, v))
  547. }
  548. // RetryCountGTE applies the GTE predicate on the "retry_count" field.
  549. func RetryCountGTE(v int8) predicate.CompapiJob {
  550. return predicate.CompapiJob(sql.FieldGTE(FieldRetryCount, v))
  551. }
  552. // RetryCountLT applies the LT predicate on the "retry_count" field.
  553. func RetryCountLT(v int8) predicate.CompapiJob {
  554. return predicate.CompapiJob(sql.FieldLT(FieldRetryCount, v))
  555. }
  556. // RetryCountLTE applies the LTE predicate on the "retry_count" field.
  557. func RetryCountLTE(v int8) predicate.CompapiJob {
  558. return predicate.CompapiJob(sql.FieldLTE(FieldRetryCount, v))
  559. }
  560. // RetryCountIsNil applies the IsNil predicate on the "retry_count" field.
  561. func RetryCountIsNil() predicate.CompapiJob {
  562. return predicate.CompapiJob(sql.FieldIsNull(FieldRetryCount))
  563. }
  564. // RetryCountNotNil applies the NotNil predicate on the "retry_count" field.
  565. func RetryCountNotNil() predicate.CompapiJob {
  566. return predicate.CompapiJob(sql.FieldNotNull(FieldRetryCount))
  567. }
  568. // And groups predicates with the AND operator between them.
  569. func And(predicates ...predicate.CompapiJob) predicate.CompapiJob {
  570. return predicate.CompapiJob(sql.AndPredicates(predicates...))
  571. }
  572. // Or groups predicates with the OR operator between them.
  573. func Or(predicates ...predicate.CompapiJob) predicate.CompapiJob {
  574. return predicate.CompapiJob(sql.OrPredicates(predicates...))
  575. }
  576. // Not applies the not operator on the given predicate.
  577. func Not(p predicate.CompapiJob) predicate.CompapiJob {
  578. return predicate.CompapiJob(sql.NotPredicates(p))
  579. }