where.go 50 KB

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