where.go 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135
  1. // Code generated by ent, DO NOT EDIT.
  2. package compapiasynctask
  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.CompapiAsynctask {
  10. return predicate.CompapiAsynctask(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id uint64) predicate.CompapiAsynctask {
  14. return predicate.CompapiAsynctask(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id uint64) predicate.CompapiAsynctask {
  18. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...uint64) predicate.CompapiAsynctask {
  22. return predicate.CompapiAsynctask(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...uint64) predicate.CompapiAsynctask {
  26. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id uint64) predicate.CompapiAsynctask {
  30. return predicate.CompapiAsynctask(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id uint64) predicate.CompapiAsynctask {
  34. return predicate.CompapiAsynctask(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id uint64) predicate.CompapiAsynctask {
  38. return predicate.CompapiAsynctask(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id uint64) predicate.CompapiAsynctask {
  42. return predicate.CompapiAsynctask(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.CompapiAsynctask {
  46. return predicate.CompapiAsynctask(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.CompapiAsynctask {
  50. return predicate.CompapiAsynctask(sql.FieldEQ(FieldUpdatedAt, v))
  51. }
  52. // AuthToken applies equality check predicate on the "auth_token" field. It's identical to AuthTokenEQ.
  53. func AuthToken(v string) predicate.CompapiAsynctask {
  54. return predicate.CompapiAsynctask(sql.FieldEQ(FieldAuthToken, v))
  55. }
  56. // EventType applies equality check predicate on the "event_type" field. It's identical to EventTypeEQ.
  57. func EventType(v string) predicate.CompapiAsynctask {
  58. return predicate.CompapiAsynctask(sql.FieldEQ(FieldEventType, v))
  59. }
  60. // ChatID applies equality check predicate on the "chat_id" field. It's identical to ChatIDEQ.
  61. func ChatID(v string) predicate.CompapiAsynctask {
  62. return predicate.CompapiAsynctask(sql.FieldEQ(FieldChatID, v))
  63. }
  64. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  65. func OrganizationID(v uint64) predicate.CompapiAsynctask {
  66. return predicate.CompapiAsynctask(sql.FieldEQ(FieldOrganizationID, v))
  67. }
  68. // OpenaiBase applies equality check predicate on the "openai_base" field. It's identical to OpenaiBaseEQ.
  69. func OpenaiBase(v string) predicate.CompapiAsynctask {
  70. return predicate.CompapiAsynctask(sql.FieldEQ(FieldOpenaiBase, v))
  71. }
  72. // OpenaiKey applies equality check predicate on the "openai_key" field. It's identical to OpenaiKeyEQ.
  73. func OpenaiKey(v string) predicate.CompapiAsynctask {
  74. return predicate.CompapiAsynctask(sql.FieldEQ(FieldOpenaiKey, v))
  75. }
  76. // RequestRaw applies equality check predicate on the "request_raw" field. It's identical to RequestRawEQ.
  77. func RequestRaw(v string) predicate.CompapiAsynctask {
  78. return predicate.CompapiAsynctask(sql.FieldEQ(FieldRequestRaw, v))
  79. }
  80. // ResponseRaw applies equality check predicate on the "response_raw" field. It's identical to ResponseRawEQ.
  81. func ResponseRaw(v string) predicate.CompapiAsynctask {
  82. return predicate.CompapiAsynctask(sql.FieldEQ(FieldResponseRaw, v))
  83. }
  84. // CallbackURL applies equality check predicate on the "callback_url" field. It's identical to CallbackURLEQ.
  85. func CallbackURL(v string) predicate.CompapiAsynctask {
  86. return predicate.CompapiAsynctask(sql.FieldEQ(FieldCallbackURL, v))
  87. }
  88. // CallbackResponseRaw applies equality check predicate on the "callback_response_raw" field. It's identical to CallbackResponseRawEQ.
  89. func CallbackResponseRaw(v string) predicate.CompapiAsynctask {
  90. return predicate.CompapiAsynctask(sql.FieldEQ(FieldCallbackResponseRaw, v))
  91. }
  92. // Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
  93. func Model(v string) predicate.CompapiAsynctask {
  94. return predicate.CompapiAsynctask(sql.FieldEQ(FieldModel, v))
  95. }
  96. // TaskStatus applies equality check predicate on the "task_status" field. It's identical to TaskStatusEQ.
  97. func TaskStatus(v int8) predicate.CompapiAsynctask {
  98. return predicate.CompapiAsynctask(sql.FieldEQ(FieldTaskStatus, v))
  99. }
  100. // RetryCount applies equality check predicate on the "retry_count" field. It's identical to RetryCountEQ.
  101. func RetryCount(v int8) predicate.CompapiAsynctask {
  102. return predicate.CompapiAsynctask(sql.FieldEQ(FieldRetryCount, v))
  103. }
  104. // LastError applies equality check predicate on the "last_error" field. It's identical to LastErrorEQ.
  105. func LastError(v string) predicate.CompapiAsynctask {
  106. return predicate.CompapiAsynctask(sql.FieldEQ(FieldLastError, v))
  107. }
  108. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  109. func CreatedAtEQ(v time.Time) predicate.CompapiAsynctask {
  110. return predicate.CompapiAsynctask(sql.FieldEQ(FieldCreatedAt, v))
  111. }
  112. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  113. func CreatedAtNEQ(v time.Time) predicate.CompapiAsynctask {
  114. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldCreatedAt, v))
  115. }
  116. // CreatedAtIn applies the In predicate on the "created_at" field.
  117. func CreatedAtIn(vs ...time.Time) predicate.CompapiAsynctask {
  118. return predicate.CompapiAsynctask(sql.FieldIn(FieldCreatedAt, vs...))
  119. }
  120. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  121. func CreatedAtNotIn(vs ...time.Time) predicate.CompapiAsynctask {
  122. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldCreatedAt, vs...))
  123. }
  124. // CreatedAtGT applies the GT predicate on the "created_at" field.
  125. func CreatedAtGT(v time.Time) predicate.CompapiAsynctask {
  126. return predicate.CompapiAsynctask(sql.FieldGT(FieldCreatedAt, v))
  127. }
  128. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  129. func CreatedAtGTE(v time.Time) predicate.CompapiAsynctask {
  130. return predicate.CompapiAsynctask(sql.FieldGTE(FieldCreatedAt, v))
  131. }
  132. // CreatedAtLT applies the LT predicate on the "created_at" field.
  133. func CreatedAtLT(v time.Time) predicate.CompapiAsynctask {
  134. return predicate.CompapiAsynctask(sql.FieldLT(FieldCreatedAt, v))
  135. }
  136. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  137. func CreatedAtLTE(v time.Time) predicate.CompapiAsynctask {
  138. return predicate.CompapiAsynctask(sql.FieldLTE(FieldCreatedAt, v))
  139. }
  140. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  141. func UpdatedAtEQ(v time.Time) predicate.CompapiAsynctask {
  142. return predicate.CompapiAsynctask(sql.FieldEQ(FieldUpdatedAt, v))
  143. }
  144. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  145. func UpdatedAtNEQ(v time.Time) predicate.CompapiAsynctask {
  146. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldUpdatedAt, v))
  147. }
  148. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  149. func UpdatedAtIn(vs ...time.Time) predicate.CompapiAsynctask {
  150. return predicate.CompapiAsynctask(sql.FieldIn(FieldUpdatedAt, vs...))
  151. }
  152. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  153. func UpdatedAtNotIn(vs ...time.Time) predicate.CompapiAsynctask {
  154. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldUpdatedAt, vs...))
  155. }
  156. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  157. func UpdatedAtGT(v time.Time) predicate.CompapiAsynctask {
  158. return predicate.CompapiAsynctask(sql.FieldGT(FieldUpdatedAt, v))
  159. }
  160. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  161. func UpdatedAtGTE(v time.Time) predicate.CompapiAsynctask {
  162. return predicate.CompapiAsynctask(sql.FieldGTE(FieldUpdatedAt, v))
  163. }
  164. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  165. func UpdatedAtLT(v time.Time) predicate.CompapiAsynctask {
  166. return predicate.CompapiAsynctask(sql.FieldLT(FieldUpdatedAt, v))
  167. }
  168. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  169. func UpdatedAtLTE(v time.Time) predicate.CompapiAsynctask {
  170. return predicate.CompapiAsynctask(sql.FieldLTE(FieldUpdatedAt, v))
  171. }
  172. // AuthTokenEQ applies the EQ predicate on the "auth_token" field.
  173. func AuthTokenEQ(v string) predicate.CompapiAsynctask {
  174. return predicate.CompapiAsynctask(sql.FieldEQ(FieldAuthToken, v))
  175. }
  176. // AuthTokenNEQ applies the NEQ predicate on the "auth_token" field.
  177. func AuthTokenNEQ(v string) predicate.CompapiAsynctask {
  178. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldAuthToken, v))
  179. }
  180. // AuthTokenIn applies the In predicate on the "auth_token" field.
  181. func AuthTokenIn(vs ...string) predicate.CompapiAsynctask {
  182. return predicate.CompapiAsynctask(sql.FieldIn(FieldAuthToken, vs...))
  183. }
  184. // AuthTokenNotIn applies the NotIn predicate on the "auth_token" field.
  185. func AuthTokenNotIn(vs ...string) predicate.CompapiAsynctask {
  186. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldAuthToken, vs...))
  187. }
  188. // AuthTokenGT applies the GT predicate on the "auth_token" field.
  189. func AuthTokenGT(v string) predicate.CompapiAsynctask {
  190. return predicate.CompapiAsynctask(sql.FieldGT(FieldAuthToken, v))
  191. }
  192. // AuthTokenGTE applies the GTE predicate on the "auth_token" field.
  193. func AuthTokenGTE(v string) predicate.CompapiAsynctask {
  194. return predicate.CompapiAsynctask(sql.FieldGTE(FieldAuthToken, v))
  195. }
  196. // AuthTokenLT applies the LT predicate on the "auth_token" field.
  197. func AuthTokenLT(v string) predicate.CompapiAsynctask {
  198. return predicate.CompapiAsynctask(sql.FieldLT(FieldAuthToken, v))
  199. }
  200. // AuthTokenLTE applies the LTE predicate on the "auth_token" field.
  201. func AuthTokenLTE(v string) predicate.CompapiAsynctask {
  202. return predicate.CompapiAsynctask(sql.FieldLTE(FieldAuthToken, v))
  203. }
  204. // AuthTokenContains applies the Contains predicate on the "auth_token" field.
  205. func AuthTokenContains(v string) predicate.CompapiAsynctask {
  206. return predicate.CompapiAsynctask(sql.FieldContains(FieldAuthToken, v))
  207. }
  208. // AuthTokenHasPrefix applies the HasPrefix predicate on the "auth_token" field.
  209. func AuthTokenHasPrefix(v string) predicate.CompapiAsynctask {
  210. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldAuthToken, v))
  211. }
  212. // AuthTokenHasSuffix applies the HasSuffix predicate on the "auth_token" field.
  213. func AuthTokenHasSuffix(v string) predicate.CompapiAsynctask {
  214. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldAuthToken, v))
  215. }
  216. // AuthTokenEqualFold applies the EqualFold predicate on the "auth_token" field.
  217. func AuthTokenEqualFold(v string) predicate.CompapiAsynctask {
  218. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldAuthToken, v))
  219. }
  220. // AuthTokenContainsFold applies the ContainsFold predicate on the "auth_token" field.
  221. func AuthTokenContainsFold(v string) predicate.CompapiAsynctask {
  222. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldAuthToken, v))
  223. }
  224. // EventTypeEQ applies the EQ predicate on the "event_type" field.
  225. func EventTypeEQ(v string) predicate.CompapiAsynctask {
  226. return predicate.CompapiAsynctask(sql.FieldEQ(FieldEventType, v))
  227. }
  228. // EventTypeNEQ applies the NEQ predicate on the "event_type" field.
  229. func EventTypeNEQ(v string) predicate.CompapiAsynctask {
  230. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldEventType, v))
  231. }
  232. // EventTypeIn applies the In predicate on the "event_type" field.
  233. func EventTypeIn(vs ...string) predicate.CompapiAsynctask {
  234. return predicate.CompapiAsynctask(sql.FieldIn(FieldEventType, vs...))
  235. }
  236. // EventTypeNotIn applies the NotIn predicate on the "event_type" field.
  237. func EventTypeNotIn(vs ...string) predicate.CompapiAsynctask {
  238. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldEventType, vs...))
  239. }
  240. // EventTypeGT applies the GT predicate on the "event_type" field.
  241. func EventTypeGT(v string) predicate.CompapiAsynctask {
  242. return predicate.CompapiAsynctask(sql.FieldGT(FieldEventType, v))
  243. }
  244. // EventTypeGTE applies the GTE predicate on the "event_type" field.
  245. func EventTypeGTE(v string) predicate.CompapiAsynctask {
  246. return predicate.CompapiAsynctask(sql.FieldGTE(FieldEventType, v))
  247. }
  248. // EventTypeLT applies the LT predicate on the "event_type" field.
  249. func EventTypeLT(v string) predicate.CompapiAsynctask {
  250. return predicate.CompapiAsynctask(sql.FieldLT(FieldEventType, v))
  251. }
  252. // EventTypeLTE applies the LTE predicate on the "event_type" field.
  253. func EventTypeLTE(v string) predicate.CompapiAsynctask {
  254. return predicate.CompapiAsynctask(sql.FieldLTE(FieldEventType, v))
  255. }
  256. // EventTypeContains applies the Contains predicate on the "event_type" field.
  257. func EventTypeContains(v string) predicate.CompapiAsynctask {
  258. return predicate.CompapiAsynctask(sql.FieldContains(FieldEventType, v))
  259. }
  260. // EventTypeHasPrefix applies the HasPrefix predicate on the "event_type" field.
  261. func EventTypeHasPrefix(v string) predicate.CompapiAsynctask {
  262. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldEventType, v))
  263. }
  264. // EventTypeHasSuffix applies the HasSuffix predicate on the "event_type" field.
  265. func EventTypeHasSuffix(v string) predicate.CompapiAsynctask {
  266. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldEventType, v))
  267. }
  268. // EventTypeEqualFold applies the EqualFold predicate on the "event_type" field.
  269. func EventTypeEqualFold(v string) predicate.CompapiAsynctask {
  270. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldEventType, v))
  271. }
  272. // EventTypeContainsFold applies the ContainsFold predicate on the "event_type" field.
  273. func EventTypeContainsFold(v string) predicate.CompapiAsynctask {
  274. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldEventType, v))
  275. }
  276. // ChatIDEQ applies the EQ predicate on the "chat_id" field.
  277. func ChatIDEQ(v string) predicate.CompapiAsynctask {
  278. return predicate.CompapiAsynctask(sql.FieldEQ(FieldChatID, v))
  279. }
  280. // ChatIDNEQ applies the NEQ predicate on the "chat_id" field.
  281. func ChatIDNEQ(v string) predicate.CompapiAsynctask {
  282. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldChatID, v))
  283. }
  284. // ChatIDIn applies the In predicate on the "chat_id" field.
  285. func ChatIDIn(vs ...string) predicate.CompapiAsynctask {
  286. return predicate.CompapiAsynctask(sql.FieldIn(FieldChatID, vs...))
  287. }
  288. // ChatIDNotIn applies the NotIn predicate on the "chat_id" field.
  289. func ChatIDNotIn(vs ...string) predicate.CompapiAsynctask {
  290. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldChatID, vs...))
  291. }
  292. // ChatIDGT applies the GT predicate on the "chat_id" field.
  293. func ChatIDGT(v string) predicate.CompapiAsynctask {
  294. return predicate.CompapiAsynctask(sql.FieldGT(FieldChatID, v))
  295. }
  296. // ChatIDGTE applies the GTE predicate on the "chat_id" field.
  297. func ChatIDGTE(v string) predicate.CompapiAsynctask {
  298. return predicate.CompapiAsynctask(sql.FieldGTE(FieldChatID, v))
  299. }
  300. // ChatIDLT applies the LT predicate on the "chat_id" field.
  301. func ChatIDLT(v string) predicate.CompapiAsynctask {
  302. return predicate.CompapiAsynctask(sql.FieldLT(FieldChatID, v))
  303. }
  304. // ChatIDLTE applies the LTE predicate on the "chat_id" field.
  305. func ChatIDLTE(v string) predicate.CompapiAsynctask {
  306. return predicate.CompapiAsynctask(sql.FieldLTE(FieldChatID, v))
  307. }
  308. // ChatIDContains applies the Contains predicate on the "chat_id" field.
  309. func ChatIDContains(v string) predicate.CompapiAsynctask {
  310. return predicate.CompapiAsynctask(sql.FieldContains(FieldChatID, v))
  311. }
  312. // ChatIDHasPrefix applies the HasPrefix predicate on the "chat_id" field.
  313. func ChatIDHasPrefix(v string) predicate.CompapiAsynctask {
  314. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldChatID, v))
  315. }
  316. // ChatIDHasSuffix applies the HasSuffix predicate on the "chat_id" field.
  317. func ChatIDHasSuffix(v string) predicate.CompapiAsynctask {
  318. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldChatID, v))
  319. }
  320. // ChatIDIsNil applies the IsNil predicate on the "chat_id" field.
  321. func ChatIDIsNil() predicate.CompapiAsynctask {
  322. return predicate.CompapiAsynctask(sql.FieldIsNull(FieldChatID))
  323. }
  324. // ChatIDNotNil applies the NotNil predicate on the "chat_id" field.
  325. func ChatIDNotNil() predicate.CompapiAsynctask {
  326. return predicate.CompapiAsynctask(sql.FieldNotNull(FieldChatID))
  327. }
  328. // ChatIDEqualFold applies the EqualFold predicate on the "chat_id" field.
  329. func ChatIDEqualFold(v string) predicate.CompapiAsynctask {
  330. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldChatID, v))
  331. }
  332. // ChatIDContainsFold applies the ContainsFold predicate on the "chat_id" field.
  333. func ChatIDContainsFold(v string) predicate.CompapiAsynctask {
  334. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldChatID, v))
  335. }
  336. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  337. func OrganizationIDEQ(v uint64) predicate.CompapiAsynctask {
  338. return predicate.CompapiAsynctask(sql.FieldEQ(FieldOrganizationID, v))
  339. }
  340. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  341. func OrganizationIDNEQ(v uint64) predicate.CompapiAsynctask {
  342. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldOrganizationID, v))
  343. }
  344. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  345. func OrganizationIDIn(vs ...uint64) predicate.CompapiAsynctask {
  346. return predicate.CompapiAsynctask(sql.FieldIn(FieldOrganizationID, vs...))
  347. }
  348. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  349. func OrganizationIDNotIn(vs ...uint64) predicate.CompapiAsynctask {
  350. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldOrganizationID, vs...))
  351. }
  352. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  353. func OrganizationIDGT(v uint64) predicate.CompapiAsynctask {
  354. return predicate.CompapiAsynctask(sql.FieldGT(FieldOrganizationID, v))
  355. }
  356. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  357. func OrganizationIDGTE(v uint64) predicate.CompapiAsynctask {
  358. return predicate.CompapiAsynctask(sql.FieldGTE(FieldOrganizationID, v))
  359. }
  360. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  361. func OrganizationIDLT(v uint64) predicate.CompapiAsynctask {
  362. return predicate.CompapiAsynctask(sql.FieldLT(FieldOrganizationID, v))
  363. }
  364. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  365. func OrganizationIDLTE(v uint64) predicate.CompapiAsynctask {
  366. return predicate.CompapiAsynctask(sql.FieldLTE(FieldOrganizationID, v))
  367. }
  368. // OpenaiBaseEQ applies the EQ predicate on the "openai_base" field.
  369. func OpenaiBaseEQ(v string) predicate.CompapiAsynctask {
  370. return predicate.CompapiAsynctask(sql.FieldEQ(FieldOpenaiBase, v))
  371. }
  372. // OpenaiBaseNEQ applies the NEQ predicate on the "openai_base" field.
  373. func OpenaiBaseNEQ(v string) predicate.CompapiAsynctask {
  374. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldOpenaiBase, v))
  375. }
  376. // OpenaiBaseIn applies the In predicate on the "openai_base" field.
  377. func OpenaiBaseIn(vs ...string) predicate.CompapiAsynctask {
  378. return predicate.CompapiAsynctask(sql.FieldIn(FieldOpenaiBase, vs...))
  379. }
  380. // OpenaiBaseNotIn applies the NotIn predicate on the "openai_base" field.
  381. func OpenaiBaseNotIn(vs ...string) predicate.CompapiAsynctask {
  382. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldOpenaiBase, vs...))
  383. }
  384. // OpenaiBaseGT applies the GT predicate on the "openai_base" field.
  385. func OpenaiBaseGT(v string) predicate.CompapiAsynctask {
  386. return predicate.CompapiAsynctask(sql.FieldGT(FieldOpenaiBase, v))
  387. }
  388. // OpenaiBaseGTE applies the GTE predicate on the "openai_base" field.
  389. func OpenaiBaseGTE(v string) predicate.CompapiAsynctask {
  390. return predicate.CompapiAsynctask(sql.FieldGTE(FieldOpenaiBase, v))
  391. }
  392. // OpenaiBaseLT applies the LT predicate on the "openai_base" field.
  393. func OpenaiBaseLT(v string) predicate.CompapiAsynctask {
  394. return predicate.CompapiAsynctask(sql.FieldLT(FieldOpenaiBase, v))
  395. }
  396. // OpenaiBaseLTE applies the LTE predicate on the "openai_base" field.
  397. func OpenaiBaseLTE(v string) predicate.CompapiAsynctask {
  398. return predicate.CompapiAsynctask(sql.FieldLTE(FieldOpenaiBase, v))
  399. }
  400. // OpenaiBaseContains applies the Contains predicate on the "openai_base" field.
  401. func OpenaiBaseContains(v string) predicate.CompapiAsynctask {
  402. return predicate.CompapiAsynctask(sql.FieldContains(FieldOpenaiBase, v))
  403. }
  404. // OpenaiBaseHasPrefix applies the HasPrefix predicate on the "openai_base" field.
  405. func OpenaiBaseHasPrefix(v string) predicate.CompapiAsynctask {
  406. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldOpenaiBase, v))
  407. }
  408. // OpenaiBaseHasSuffix applies the HasSuffix predicate on the "openai_base" field.
  409. func OpenaiBaseHasSuffix(v string) predicate.CompapiAsynctask {
  410. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldOpenaiBase, v))
  411. }
  412. // OpenaiBaseEqualFold applies the EqualFold predicate on the "openai_base" field.
  413. func OpenaiBaseEqualFold(v string) predicate.CompapiAsynctask {
  414. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldOpenaiBase, v))
  415. }
  416. // OpenaiBaseContainsFold applies the ContainsFold predicate on the "openai_base" field.
  417. func OpenaiBaseContainsFold(v string) predicate.CompapiAsynctask {
  418. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldOpenaiBase, v))
  419. }
  420. // OpenaiKeyEQ applies the EQ predicate on the "openai_key" field.
  421. func OpenaiKeyEQ(v string) predicate.CompapiAsynctask {
  422. return predicate.CompapiAsynctask(sql.FieldEQ(FieldOpenaiKey, v))
  423. }
  424. // OpenaiKeyNEQ applies the NEQ predicate on the "openai_key" field.
  425. func OpenaiKeyNEQ(v string) predicate.CompapiAsynctask {
  426. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldOpenaiKey, v))
  427. }
  428. // OpenaiKeyIn applies the In predicate on the "openai_key" field.
  429. func OpenaiKeyIn(vs ...string) predicate.CompapiAsynctask {
  430. return predicate.CompapiAsynctask(sql.FieldIn(FieldOpenaiKey, vs...))
  431. }
  432. // OpenaiKeyNotIn applies the NotIn predicate on the "openai_key" field.
  433. func OpenaiKeyNotIn(vs ...string) predicate.CompapiAsynctask {
  434. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldOpenaiKey, vs...))
  435. }
  436. // OpenaiKeyGT applies the GT predicate on the "openai_key" field.
  437. func OpenaiKeyGT(v string) predicate.CompapiAsynctask {
  438. return predicate.CompapiAsynctask(sql.FieldGT(FieldOpenaiKey, v))
  439. }
  440. // OpenaiKeyGTE applies the GTE predicate on the "openai_key" field.
  441. func OpenaiKeyGTE(v string) predicate.CompapiAsynctask {
  442. return predicate.CompapiAsynctask(sql.FieldGTE(FieldOpenaiKey, v))
  443. }
  444. // OpenaiKeyLT applies the LT predicate on the "openai_key" field.
  445. func OpenaiKeyLT(v string) predicate.CompapiAsynctask {
  446. return predicate.CompapiAsynctask(sql.FieldLT(FieldOpenaiKey, v))
  447. }
  448. // OpenaiKeyLTE applies the LTE predicate on the "openai_key" field.
  449. func OpenaiKeyLTE(v string) predicate.CompapiAsynctask {
  450. return predicate.CompapiAsynctask(sql.FieldLTE(FieldOpenaiKey, v))
  451. }
  452. // OpenaiKeyContains applies the Contains predicate on the "openai_key" field.
  453. func OpenaiKeyContains(v string) predicate.CompapiAsynctask {
  454. return predicate.CompapiAsynctask(sql.FieldContains(FieldOpenaiKey, v))
  455. }
  456. // OpenaiKeyHasPrefix applies the HasPrefix predicate on the "openai_key" field.
  457. func OpenaiKeyHasPrefix(v string) predicate.CompapiAsynctask {
  458. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldOpenaiKey, v))
  459. }
  460. // OpenaiKeyHasSuffix applies the HasSuffix predicate on the "openai_key" field.
  461. func OpenaiKeyHasSuffix(v string) predicate.CompapiAsynctask {
  462. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldOpenaiKey, v))
  463. }
  464. // OpenaiKeyEqualFold applies the EqualFold predicate on the "openai_key" field.
  465. func OpenaiKeyEqualFold(v string) predicate.CompapiAsynctask {
  466. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldOpenaiKey, v))
  467. }
  468. // OpenaiKeyContainsFold applies the ContainsFold predicate on the "openai_key" field.
  469. func OpenaiKeyContainsFold(v string) predicate.CompapiAsynctask {
  470. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldOpenaiKey, v))
  471. }
  472. // RequestRawEQ applies the EQ predicate on the "request_raw" field.
  473. func RequestRawEQ(v string) predicate.CompapiAsynctask {
  474. return predicate.CompapiAsynctask(sql.FieldEQ(FieldRequestRaw, v))
  475. }
  476. // RequestRawNEQ applies the NEQ predicate on the "request_raw" field.
  477. func RequestRawNEQ(v string) predicate.CompapiAsynctask {
  478. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldRequestRaw, v))
  479. }
  480. // RequestRawIn applies the In predicate on the "request_raw" field.
  481. func RequestRawIn(vs ...string) predicate.CompapiAsynctask {
  482. return predicate.CompapiAsynctask(sql.FieldIn(FieldRequestRaw, vs...))
  483. }
  484. // RequestRawNotIn applies the NotIn predicate on the "request_raw" field.
  485. func RequestRawNotIn(vs ...string) predicate.CompapiAsynctask {
  486. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldRequestRaw, vs...))
  487. }
  488. // RequestRawGT applies the GT predicate on the "request_raw" field.
  489. func RequestRawGT(v string) predicate.CompapiAsynctask {
  490. return predicate.CompapiAsynctask(sql.FieldGT(FieldRequestRaw, v))
  491. }
  492. // RequestRawGTE applies the GTE predicate on the "request_raw" field.
  493. func RequestRawGTE(v string) predicate.CompapiAsynctask {
  494. return predicate.CompapiAsynctask(sql.FieldGTE(FieldRequestRaw, v))
  495. }
  496. // RequestRawLT applies the LT predicate on the "request_raw" field.
  497. func RequestRawLT(v string) predicate.CompapiAsynctask {
  498. return predicate.CompapiAsynctask(sql.FieldLT(FieldRequestRaw, v))
  499. }
  500. // RequestRawLTE applies the LTE predicate on the "request_raw" field.
  501. func RequestRawLTE(v string) predicate.CompapiAsynctask {
  502. return predicate.CompapiAsynctask(sql.FieldLTE(FieldRequestRaw, v))
  503. }
  504. // RequestRawContains applies the Contains predicate on the "request_raw" field.
  505. func RequestRawContains(v string) predicate.CompapiAsynctask {
  506. return predicate.CompapiAsynctask(sql.FieldContains(FieldRequestRaw, v))
  507. }
  508. // RequestRawHasPrefix applies the HasPrefix predicate on the "request_raw" field.
  509. func RequestRawHasPrefix(v string) predicate.CompapiAsynctask {
  510. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldRequestRaw, v))
  511. }
  512. // RequestRawHasSuffix applies the HasSuffix predicate on the "request_raw" field.
  513. func RequestRawHasSuffix(v string) predicate.CompapiAsynctask {
  514. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldRequestRaw, v))
  515. }
  516. // RequestRawEqualFold applies the EqualFold predicate on the "request_raw" field.
  517. func RequestRawEqualFold(v string) predicate.CompapiAsynctask {
  518. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldRequestRaw, v))
  519. }
  520. // RequestRawContainsFold applies the ContainsFold predicate on the "request_raw" field.
  521. func RequestRawContainsFold(v string) predicate.CompapiAsynctask {
  522. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldRequestRaw, v))
  523. }
  524. // ResponseRawEQ applies the EQ predicate on the "response_raw" field.
  525. func ResponseRawEQ(v string) predicate.CompapiAsynctask {
  526. return predicate.CompapiAsynctask(sql.FieldEQ(FieldResponseRaw, v))
  527. }
  528. // ResponseRawNEQ applies the NEQ predicate on the "response_raw" field.
  529. func ResponseRawNEQ(v string) predicate.CompapiAsynctask {
  530. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldResponseRaw, v))
  531. }
  532. // ResponseRawIn applies the In predicate on the "response_raw" field.
  533. func ResponseRawIn(vs ...string) predicate.CompapiAsynctask {
  534. return predicate.CompapiAsynctask(sql.FieldIn(FieldResponseRaw, vs...))
  535. }
  536. // ResponseRawNotIn applies the NotIn predicate on the "response_raw" field.
  537. func ResponseRawNotIn(vs ...string) predicate.CompapiAsynctask {
  538. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldResponseRaw, vs...))
  539. }
  540. // ResponseRawGT applies the GT predicate on the "response_raw" field.
  541. func ResponseRawGT(v string) predicate.CompapiAsynctask {
  542. return predicate.CompapiAsynctask(sql.FieldGT(FieldResponseRaw, v))
  543. }
  544. // ResponseRawGTE applies the GTE predicate on the "response_raw" field.
  545. func ResponseRawGTE(v string) predicate.CompapiAsynctask {
  546. return predicate.CompapiAsynctask(sql.FieldGTE(FieldResponseRaw, v))
  547. }
  548. // ResponseRawLT applies the LT predicate on the "response_raw" field.
  549. func ResponseRawLT(v string) predicate.CompapiAsynctask {
  550. return predicate.CompapiAsynctask(sql.FieldLT(FieldResponseRaw, v))
  551. }
  552. // ResponseRawLTE applies the LTE predicate on the "response_raw" field.
  553. func ResponseRawLTE(v string) predicate.CompapiAsynctask {
  554. return predicate.CompapiAsynctask(sql.FieldLTE(FieldResponseRaw, v))
  555. }
  556. // ResponseRawContains applies the Contains predicate on the "response_raw" field.
  557. func ResponseRawContains(v string) predicate.CompapiAsynctask {
  558. return predicate.CompapiAsynctask(sql.FieldContains(FieldResponseRaw, v))
  559. }
  560. // ResponseRawHasPrefix applies the HasPrefix predicate on the "response_raw" field.
  561. func ResponseRawHasPrefix(v string) predicate.CompapiAsynctask {
  562. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldResponseRaw, v))
  563. }
  564. // ResponseRawHasSuffix applies the HasSuffix predicate on the "response_raw" field.
  565. func ResponseRawHasSuffix(v string) predicate.CompapiAsynctask {
  566. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldResponseRaw, v))
  567. }
  568. // ResponseRawIsNil applies the IsNil predicate on the "response_raw" field.
  569. func ResponseRawIsNil() predicate.CompapiAsynctask {
  570. return predicate.CompapiAsynctask(sql.FieldIsNull(FieldResponseRaw))
  571. }
  572. // ResponseRawNotNil applies the NotNil predicate on the "response_raw" field.
  573. func ResponseRawNotNil() predicate.CompapiAsynctask {
  574. return predicate.CompapiAsynctask(sql.FieldNotNull(FieldResponseRaw))
  575. }
  576. // ResponseRawEqualFold applies the EqualFold predicate on the "response_raw" field.
  577. func ResponseRawEqualFold(v string) predicate.CompapiAsynctask {
  578. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldResponseRaw, v))
  579. }
  580. // ResponseRawContainsFold applies the ContainsFold predicate on the "response_raw" field.
  581. func ResponseRawContainsFold(v string) predicate.CompapiAsynctask {
  582. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldResponseRaw, v))
  583. }
  584. // CallbackURLEQ applies the EQ predicate on the "callback_url" field.
  585. func CallbackURLEQ(v string) predicate.CompapiAsynctask {
  586. return predicate.CompapiAsynctask(sql.FieldEQ(FieldCallbackURL, v))
  587. }
  588. // CallbackURLNEQ applies the NEQ predicate on the "callback_url" field.
  589. func CallbackURLNEQ(v string) predicate.CompapiAsynctask {
  590. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldCallbackURL, v))
  591. }
  592. // CallbackURLIn applies the In predicate on the "callback_url" field.
  593. func CallbackURLIn(vs ...string) predicate.CompapiAsynctask {
  594. return predicate.CompapiAsynctask(sql.FieldIn(FieldCallbackURL, vs...))
  595. }
  596. // CallbackURLNotIn applies the NotIn predicate on the "callback_url" field.
  597. func CallbackURLNotIn(vs ...string) predicate.CompapiAsynctask {
  598. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldCallbackURL, vs...))
  599. }
  600. // CallbackURLGT applies the GT predicate on the "callback_url" field.
  601. func CallbackURLGT(v string) predicate.CompapiAsynctask {
  602. return predicate.CompapiAsynctask(sql.FieldGT(FieldCallbackURL, v))
  603. }
  604. // CallbackURLGTE applies the GTE predicate on the "callback_url" field.
  605. func CallbackURLGTE(v string) predicate.CompapiAsynctask {
  606. return predicate.CompapiAsynctask(sql.FieldGTE(FieldCallbackURL, v))
  607. }
  608. // CallbackURLLT applies the LT predicate on the "callback_url" field.
  609. func CallbackURLLT(v string) predicate.CompapiAsynctask {
  610. return predicate.CompapiAsynctask(sql.FieldLT(FieldCallbackURL, v))
  611. }
  612. // CallbackURLLTE applies the LTE predicate on the "callback_url" field.
  613. func CallbackURLLTE(v string) predicate.CompapiAsynctask {
  614. return predicate.CompapiAsynctask(sql.FieldLTE(FieldCallbackURL, v))
  615. }
  616. // CallbackURLContains applies the Contains predicate on the "callback_url" field.
  617. func CallbackURLContains(v string) predicate.CompapiAsynctask {
  618. return predicate.CompapiAsynctask(sql.FieldContains(FieldCallbackURL, v))
  619. }
  620. // CallbackURLHasPrefix applies the HasPrefix predicate on the "callback_url" field.
  621. func CallbackURLHasPrefix(v string) predicate.CompapiAsynctask {
  622. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldCallbackURL, v))
  623. }
  624. // CallbackURLHasSuffix applies the HasSuffix predicate on the "callback_url" field.
  625. func CallbackURLHasSuffix(v string) predicate.CompapiAsynctask {
  626. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldCallbackURL, v))
  627. }
  628. // CallbackURLEqualFold applies the EqualFold predicate on the "callback_url" field.
  629. func CallbackURLEqualFold(v string) predicate.CompapiAsynctask {
  630. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldCallbackURL, v))
  631. }
  632. // CallbackURLContainsFold applies the ContainsFold predicate on the "callback_url" field.
  633. func CallbackURLContainsFold(v string) predicate.CompapiAsynctask {
  634. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldCallbackURL, v))
  635. }
  636. // CallbackResponseRawEQ applies the EQ predicate on the "callback_response_raw" field.
  637. func CallbackResponseRawEQ(v string) predicate.CompapiAsynctask {
  638. return predicate.CompapiAsynctask(sql.FieldEQ(FieldCallbackResponseRaw, v))
  639. }
  640. // CallbackResponseRawNEQ applies the NEQ predicate on the "callback_response_raw" field.
  641. func CallbackResponseRawNEQ(v string) predicate.CompapiAsynctask {
  642. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldCallbackResponseRaw, v))
  643. }
  644. // CallbackResponseRawIn applies the In predicate on the "callback_response_raw" field.
  645. func CallbackResponseRawIn(vs ...string) predicate.CompapiAsynctask {
  646. return predicate.CompapiAsynctask(sql.FieldIn(FieldCallbackResponseRaw, vs...))
  647. }
  648. // CallbackResponseRawNotIn applies the NotIn predicate on the "callback_response_raw" field.
  649. func CallbackResponseRawNotIn(vs ...string) predicate.CompapiAsynctask {
  650. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldCallbackResponseRaw, vs...))
  651. }
  652. // CallbackResponseRawGT applies the GT predicate on the "callback_response_raw" field.
  653. func CallbackResponseRawGT(v string) predicate.CompapiAsynctask {
  654. return predicate.CompapiAsynctask(sql.FieldGT(FieldCallbackResponseRaw, v))
  655. }
  656. // CallbackResponseRawGTE applies the GTE predicate on the "callback_response_raw" field.
  657. func CallbackResponseRawGTE(v string) predicate.CompapiAsynctask {
  658. return predicate.CompapiAsynctask(sql.FieldGTE(FieldCallbackResponseRaw, v))
  659. }
  660. // CallbackResponseRawLT applies the LT predicate on the "callback_response_raw" field.
  661. func CallbackResponseRawLT(v string) predicate.CompapiAsynctask {
  662. return predicate.CompapiAsynctask(sql.FieldLT(FieldCallbackResponseRaw, v))
  663. }
  664. // CallbackResponseRawLTE applies the LTE predicate on the "callback_response_raw" field.
  665. func CallbackResponseRawLTE(v string) predicate.CompapiAsynctask {
  666. return predicate.CompapiAsynctask(sql.FieldLTE(FieldCallbackResponseRaw, v))
  667. }
  668. // CallbackResponseRawContains applies the Contains predicate on the "callback_response_raw" field.
  669. func CallbackResponseRawContains(v string) predicate.CompapiAsynctask {
  670. return predicate.CompapiAsynctask(sql.FieldContains(FieldCallbackResponseRaw, v))
  671. }
  672. // CallbackResponseRawHasPrefix applies the HasPrefix predicate on the "callback_response_raw" field.
  673. func CallbackResponseRawHasPrefix(v string) predicate.CompapiAsynctask {
  674. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldCallbackResponseRaw, v))
  675. }
  676. // CallbackResponseRawHasSuffix applies the HasSuffix predicate on the "callback_response_raw" field.
  677. func CallbackResponseRawHasSuffix(v string) predicate.CompapiAsynctask {
  678. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldCallbackResponseRaw, v))
  679. }
  680. // CallbackResponseRawIsNil applies the IsNil predicate on the "callback_response_raw" field.
  681. func CallbackResponseRawIsNil() predicate.CompapiAsynctask {
  682. return predicate.CompapiAsynctask(sql.FieldIsNull(FieldCallbackResponseRaw))
  683. }
  684. // CallbackResponseRawNotNil applies the NotNil predicate on the "callback_response_raw" field.
  685. func CallbackResponseRawNotNil() predicate.CompapiAsynctask {
  686. return predicate.CompapiAsynctask(sql.FieldNotNull(FieldCallbackResponseRaw))
  687. }
  688. // CallbackResponseRawEqualFold applies the EqualFold predicate on the "callback_response_raw" field.
  689. func CallbackResponseRawEqualFold(v string) predicate.CompapiAsynctask {
  690. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldCallbackResponseRaw, v))
  691. }
  692. // CallbackResponseRawContainsFold applies the ContainsFold predicate on the "callback_response_raw" field.
  693. func CallbackResponseRawContainsFold(v string) predicate.CompapiAsynctask {
  694. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldCallbackResponseRaw, v))
  695. }
  696. // ModelEQ applies the EQ predicate on the "model" field.
  697. func ModelEQ(v string) predicate.CompapiAsynctask {
  698. return predicate.CompapiAsynctask(sql.FieldEQ(FieldModel, v))
  699. }
  700. // ModelNEQ applies the NEQ predicate on the "model" field.
  701. func ModelNEQ(v string) predicate.CompapiAsynctask {
  702. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldModel, v))
  703. }
  704. // ModelIn applies the In predicate on the "model" field.
  705. func ModelIn(vs ...string) predicate.CompapiAsynctask {
  706. return predicate.CompapiAsynctask(sql.FieldIn(FieldModel, vs...))
  707. }
  708. // ModelNotIn applies the NotIn predicate on the "model" field.
  709. func ModelNotIn(vs ...string) predicate.CompapiAsynctask {
  710. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldModel, vs...))
  711. }
  712. // ModelGT applies the GT predicate on the "model" field.
  713. func ModelGT(v string) predicate.CompapiAsynctask {
  714. return predicate.CompapiAsynctask(sql.FieldGT(FieldModel, v))
  715. }
  716. // ModelGTE applies the GTE predicate on the "model" field.
  717. func ModelGTE(v string) predicate.CompapiAsynctask {
  718. return predicate.CompapiAsynctask(sql.FieldGTE(FieldModel, v))
  719. }
  720. // ModelLT applies the LT predicate on the "model" field.
  721. func ModelLT(v string) predicate.CompapiAsynctask {
  722. return predicate.CompapiAsynctask(sql.FieldLT(FieldModel, v))
  723. }
  724. // ModelLTE applies the LTE predicate on the "model" field.
  725. func ModelLTE(v string) predicate.CompapiAsynctask {
  726. return predicate.CompapiAsynctask(sql.FieldLTE(FieldModel, v))
  727. }
  728. // ModelContains applies the Contains predicate on the "model" field.
  729. func ModelContains(v string) predicate.CompapiAsynctask {
  730. return predicate.CompapiAsynctask(sql.FieldContains(FieldModel, v))
  731. }
  732. // ModelHasPrefix applies the HasPrefix predicate on the "model" field.
  733. func ModelHasPrefix(v string) predicate.CompapiAsynctask {
  734. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldModel, v))
  735. }
  736. // ModelHasSuffix applies the HasSuffix predicate on the "model" field.
  737. func ModelHasSuffix(v string) predicate.CompapiAsynctask {
  738. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldModel, v))
  739. }
  740. // ModelIsNil applies the IsNil predicate on the "model" field.
  741. func ModelIsNil() predicate.CompapiAsynctask {
  742. return predicate.CompapiAsynctask(sql.FieldIsNull(FieldModel))
  743. }
  744. // ModelNotNil applies the NotNil predicate on the "model" field.
  745. func ModelNotNil() predicate.CompapiAsynctask {
  746. return predicate.CompapiAsynctask(sql.FieldNotNull(FieldModel))
  747. }
  748. // ModelEqualFold applies the EqualFold predicate on the "model" field.
  749. func ModelEqualFold(v string) predicate.CompapiAsynctask {
  750. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldModel, v))
  751. }
  752. // ModelContainsFold applies the ContainsFold predicate on the "model" field.
  753. func ModelContainsFold(v string) predicate.CompapiAsynctask {
  754. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldModel, v))
  755. }
  756. // TaskStatusEQ applies the EQ predicate on the "task_status" field.
  757. func TaskStatusEQ(v int8) predicate.CompapiAsynctask {
  758. return predicate.CompapiAsynctask(sql.FieldEQ(FieldTaskStatus, v))
  759. }
  760. // TaskStatusNEQ applies the NEQ predicate on the "task_status" field.
  761. func TaskStatusNEQ(v int8) predicate.CompapiAsynctask {
  762. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldTaskStatus, v))
  763. }
  764. // TaskStatusIn applies the In predicate on the "task_status" field.
  765. func TaskStatusIn(vs ...int8) predicate.CompapiAsynctask {
  766. return predicate.CompapiAsynctask(sql.FieldIn(FieldTaskStatus, vs...))
  767. }
  768. // TaskStatusNotIn applies the NotIn predicate on the "task_status" field.
  769. func TaskStatusNotIn(vs ...int8) predicate.CompapiAsynctask {
  770. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldTaskStatus, vs...))
  771. }
  772. // TaskStatusGT applies the GT predicate on the "task_status" field.
  773. func TaskStatusGT(v int8) predicate.CompapiAsynctask {
  774. return predicate.CompapiAsynctask(sql.FieldGT(FieldTaskStatus, v))
  775. }
  776. // TaskStatusGTE applies the GTE predicate on the "task_status" field.
  777. func TaskStatusGTE(v int8) predicate.CompapiAsynctask {
  778. return predicate.CompapiAsynctask(sql.FieldGTE(FieldTaskStatus, v))
  779. }
  780. // TaskStatusLT applies the LT predicate on the "task_status" field.
  781. func TaskStatusLT(v int8) predicate.CompapiAsynctask {
  782. return predicate.CompapiAsynctask(sql.FieldLT(FieldTaskStatus, v))
  783. }
  784. // TaskStatusLTE applies the LTE predicate on the "task_status" field.
  785. func TaskStatusLTE(v int8) predicate.CompapiAsynctask {
  786. return predicate.CompapiAsynctask(sql.FieldLTE(FieldTaskStatus, v))
  787. }
  788. // TaskStatusIsNil applies the IsNil predicate on the "task_status" field.
  789. func TaskStatusIsNil() predicate.CompapiAsynctask {
  790. return predicate.CompapiAsynctask(sql.FieldIsNull(FieldTaskStatus))
  791. }
  792. // TaskStatusNotNil applies the NotNil predicate on the "task_status" field.
  793. func TaskStatusNotNil() predicate.CompapiAsynctask {
  794. return predicate.CompapiAsynctask(sql.FieldNotNull(FieldTaskStatus))
  795. }
  796. // RetryCountEQ applies the EQ predicate on the "retry_count" field.
  797. func RetryCountEQ(v int8) predicate.CompapiAsynctask {
  798. return predicate.CompapiAsynctask(sql.FieldEQ(FieldRetryCount, v))
  799. }
  800. // RetryCountNEQ applies the NEQ predicate on the "retry_count" field.
  801. func RetryCountNEQ(v int8) predicate.CompapiAsynctask {
  802. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldRetryCount, v))
  803. }
  804. // RetryCountIn applies the In predicate on the "retry_count" field.
  805. func RetryCountIn(vs ...int8) predicate.CompapiAsynctask {
  806. return predicate.CompapiAsynctask(sql.FieldIn(FieldRetryCount, vs...))
  807. }
  808. // RetryCountNotIn applies the NotIn predicate on the "retry_count" field.
  809. func RetryCountNotIn(vs ...int8) predicate.CompapiAsynctask {
  810. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldRetryCount, vs...))
  811. }
  812. // RetryCountGT applies the GT predicate on the "retry_count" field.
  813. func RetryCountGT(v int8) predicate.CompapiAsynctask {
  814. return predicate.CompapiAsynctask(sql.FieldGT(FieldRetryCount, v))
  815. }
  816. // RetryCountGTE applies the GTE predicate on the "retry_count" field.
  817. func RetryCountGTE(v int8) predicate.CompapiAsynctask {
  818. return predicate.CompapiAsynctask(sql.FieldGTE(FieldRetryCount, v))
  819. }
  820. // RetryCountLT applies the LT predicate on the "retry_count" field.
  821. func RetryCountLT(v int8) predicate.CompapiAsynctask {
  822. return predicate.CompapiAsynctask(sql.FieldLT(FieldRetryCount, v))
  823. }
  824. // RetryCountLTE applies the LTE predicate on the "retry_count" field.
  825. func RetryCountLTE(v int8) predicate.CompapiAsynctask {
  826. return predicate.CompapiAsynctask(sql.FieldLTE(FieldRetryCount, v))
  827. }
  828. // RetryCountIsNil applies the IsNil predicate on the "retry_count" field.
  829. func RetryCountIsNil() predicate.CompapiAsynctask {
  830. return predicate.CompapiAsynctask(sql.FieldIsNull(FieldRetryCount))
  831. }
  832. // RetryCountNotNil applies the NotNil predicate on the "retry_count" field.
  833. func RetryCountNotNil() predicate.CompapiAsynctask {
  834. return predicate.CompapiAsynctask(sql.FieldNotNull(FieldRetryCount))
  835. }
  836. // LastErrorEQ applies the EQ predicate on the "last_error" field.
  837. func LastErrorEQ(v string) predicate.CompapiAsynctask {
  838. return predicate.CompapiAsynctask(sql.FieldEQ(FieldLastError, v))
  839. }
  840. // LastErrorNEQ applies the NEQ predicate on the "last_error" field.
  841. func LastErrorNEQ(v string) predicate.CompapiAsynctask {
  842. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldLastError, v))
  843. }
  844. // LastErrorIn applies the In predicate on the "last_error" field.
  845. func LastErrorIn(vs ...string) predicate.CompapiAsynctask {
  846. return predicate.CompapiAsynctask(sql.FieldIn(FieldLastError, vs...))
  847. }
  848. // LastErrorNotIn applies the NotIn predicate on the "last_error" field.
  849. func LastErrorNotIn(vs ...string) predicate.CompapiAsynctask {
  850. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldLastError, vs...))
  851. }
  852. // LastErrorGT applies the GT predicate on the "last_error" field.
  853. func LastErrorGT(v string) predicate.CompapiAsynctask {
  854. return predicate.CompapiAsynctask(sql.FieldGT(FieldLastError, v))
  855. }
  856. // LastErrorGTE applies the GTE predicate on the "last_error" field.
  857. func LastErrorGTE(v string) predicate.CompapiAsynctask {
  858. return predicate.CompapiAsynctask(sql.FieldGTE(FieldLastError, v))
  859. }
  860. // LastErrorLT applies the LT predicate on the "last_error" field.
  861. func LastErrorLT(v string) predicate.CompapiAsynctask {
  862. return predicate.CompapiAsynctask(sql.FieldLT(FieldLastError, v))
  863. }
  864. // LastErrorLTE applies the LTE predicate on the "last_error" field.
  865. func LastErrorLTE(v string) predicate.CompapiAsynctask {
  866. return predicate.CompapiAsynctask(sql.FieldLTE(FieldLastError, v))
  867. }
  868. // LastErrorContains applies the Contains predicate on the "last_error" field.
  869. func LastErrorContains(v string) predicate.CompapiAsynctask {
  870. return predicate.CompapiAsynctask(sql.FieldContains(FieldLastError, v))
  871. }
  872. // LastErrorHasPrefix applies the HasPrefix predicate on the "last_error" field.
  873. func LastErrorHasPrefix(v string) predicate.CompapiAsynctask {
  874. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldLastError, v))
  875. }
  876. // LastErrorHasSuffix applies the HasSuffix predicate on the "last_error" field.
  877. func LastErrorHasSuffix(v string) predicate.CompapiAsynctask {
  878. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldLastError, v))
  879. }
  880. // LastErrorIsNil applies the IsNil predicate on the "last_error" field.
  881. func LastErrorIsNil() predicate.CompapiAsynctask {
  882. return predicate.CompapiAsynctask(sql.FieldIsNull(FieldLastError))
  883. }
  884. // LastErrorNotNil applies the NotNil predicate on the "last_error" field.
  885. func LastErrorNotNil() predicate.CompapiAsynctask {
  886. return predicate.CompapiAsynctask(sql.FieldNotNull(FieldLastError))
  887. }
  888. // LastErrorEqualFold applies the EqualFold predicate on the "last_error" field.
  889. func LastErrorEqualFold(v string) predicate.CompapiAsynctask {
  890. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldLastError, v))
  891. }
  892. // LastErrorContainsFold applies the ContainsFold predicate on the "last_error" field.
  893. func LastErrorContainsFold(v string) predicate.CompapiAsynctask {
  894. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldLastError, v))
  895. }
  896. // And groups predicates with the AND operator between them.
  897. func And(predicates ...predicate.CompapiAsynctask) predicate.CompapiAsynctask {
  898. return predicate.CompapiAsynctask(sql.AndPredicates(predicates...))
  899. }
  900. // Or groups predicates with the OR operator between them.
  901. func Or(predicates ...predicate.CompapiAsynctask) predicate.CompapiAsynctask {
  902. return predicate.CompapiAsynctask(sql.OrPredicates(predicates...))
  903. }
  904. // Not applies the not operator on the given predicate.
  905. func Not(p predicate.CompapiAsynctask) predicate.CompapiAsynctask {
  906. return predicate.CompapiAsynctask(sql.NotPredicates(p))
  907. }