where.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  1. // Code generated by ent, DO NOT EDIT.
  2. package agent
  3. import (
  4. "time"
  5. "wechat-api/ent/predicate"
  6. "entgo.io/ent/dialect/sql"
  7. "entgo.io/ent/dialect/sql/sqlgraph"
  8. )
  9. // ID filters vertices based on their ID field.
  10. func ID(id uint64) predicate.Agent {
  11. return predicate.Agent(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id uint64) predicate.Agent {
  15. return predicate.Agent(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id uint64) predicate.Agent {
  19. return predicate.Agent(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...uint64) predicate.Agent {
  23. return predicate.Agent(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...uint64) predicate.Agent {
  27. return predicate.Agent(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id uint64) predicate.Agent {
  31. return predicate.Agent(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id uint64) predicate.Agent {
  35. return predicate.Agent(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id uint64) predicate.Agent {
  39. return predicate.Agent(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id uint64) predicate.Agent {
  43. return predicate.Agent(sql.FieldLTE(FieldID, id))
  44. }
  45. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  46. func CreatedAt(v time.Time) predicate.Agent {
  47. return predicate.Agent(sql.FieldEQ(FieldCreatedAt, v))
  48. }
  49. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  50. func UpdatedAt(v time.Time) predicate.Agent {
  51. return predicate.Agent(sql.FieldEQ(FieldUpdatedAt, v))
  52. }
  53. // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
  54. func DeletedAt(v time.Time) predicate.Agent {
  55. return predicate.Agent(sql.FieldEQ(FieldDeletedAt, v))
  56. }
  57. // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
  58. func Name(v string) predicate.Agent {
  59. return predicate.Agent(sql.FieldEQ(FieldName, v))
  60. }
  61. // Role applies equality check predicate on the "role" field. It's identical to RoleEQ.
  62. func Role(v string) predicate.Agent {
  63. return predicate.Agent(sql.FieldEQ(FieldRole, v))
  64. }
  65. // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
  66. func Status(v int) predicate.Agent {
  67. return predicate.Agent(sql.FieldEQ(FieldStatus, v))
  68. }
  69. // Background applies equality check predicate on the "background" field. It's identical to BackgroundEQ.
  70. func Background(v string) predicate.Agent {
  71. return predicate.Agent(sql.FieldEQ(FieldBackground, v))
  72. }
  73. // Examples applies equality check predicate on the "examples" field. It's identical to ExamplesEQ.
  74. func Examples(v string) predicate.Agent {
  75. return predicate.Agent(sql.FieldEQ(FieldExamples, v))
  76. }
  77. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  78. func OrganizationID(v uint64) predicate.Agent {
  79. return predicate.Agent(sql.FieldEQ(FieldOrganizationID, v))
  80. }
  81. // DatasetID applies equality check predicate on the "dataset_id" field. It's identical to DatasetIDEQ.
  82. func DatasetID(v string) predicate.Agent {
  83. return predicate.Agent(sql.FieldEQ(FieldDatasetID, v))
  84. }
  85. // CollectionID applies equality check predicate on the "collection_id" field. It's identical to CollectionIDEQ.
  86. func CollectionID(v string) predicate.Agent {
  87. return predicate.Agent(sql.FieldEQ(FieldCollectionID, v))
  88. }
  89. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  90. func CreatedAtEQ(v time.Time) predicate.Agent {
  91. return predicate.Agent(sql.FieldEQ(FieldCreatedAt, v))
  92. }
  93. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  94. func CreatedAtNEQ(v time.Time) predicate.Agent {
  95. return predicate.Agent(sql.FieldNEQ(FieldCreatedAt, v))
  96. }
  97. // CreatedAtIn applies the In predicate on the "created_at" field.
  98. func CreatedAtIn(vs ...time.Time) predicate.Agent {
  99. return predicate.Agent(sql.FieldIn(FieldCreatedAt, vs...))
  100. }
  101. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  102. func CreatedAtNotIn(vs ...time.Time) predicate.Agent {
  103. return predicate.Agent(sql.FieldNotIn(FieldCreatedAt, vs...))
  104. }
  105. // CreatedAtGT applies the GT predicate on the "created_at" field.
  106. func CreatedAtGT(v time.Time) predicate.Agent {
  107. return predicate.Agent(sql.FieldGT(FieldCreatedAt, v))
  108. }
  109. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  110. func CreatedAtGTE(v time.Time) predicate.Agent {
  111. return predicate.Agent(sql.FieldGTE(FieldCreatedAt, v))
  112. }
  113. // CreatedAtLT applies the LT predicate on the "created_at" field.
  114. func CreatedAtLT(v time.Time) predicate.Agent {
  115. return predicate.Agent(sql.FieldLT(FieldCreatedAt, v))
  116. }
  117. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  118. func CreatedAtLTE(v time.Time) predicate.Agent {
  119. return predicate.Agent(sql.FieldLTE(FieldCreatedAt, v))
  120. }
  121. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  122. func UpdatedAtEQ(v time.Time) predicate.Agent {
  123. return predicate.Agent(sql.FieldEQ(FieldUpdatedAt, v))
  124. }
  125. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  126. func UpdatedAtNEQ(v time.Time) predicate.Agent {
  127. return predicate.Agent(sql.FieldNEQ(FieldUpdatedAt, v))
  128. }
  129. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  130. func UpdatedAtIn(vs ...time.Time) predicate.Agent {
  131. return predicate.Agent(sql.FieldIn(FieldUpdatedAt, vs...))
  132. }
  133. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  134. func UpdatedAtNotIn(vs ...time.Time) predicate.Agent {
  135. return predicate.Agent(sql.FieldNotIn(FieldUpdatedAt, vs...))
  136. }
  137. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  138. func UpdatedAtGT(v time.Time) predicate.Agent {
  139. return predicate.Agent(sql.FieldGT(FieldUpdatedAt, v))
  140. }
  141. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  142. func UpdatedAtGTE(v time.Time) predicate.Agent {
  143. return predicate.Agent(sql.FieldGTE(FieldUpdatedAt, v))
  144. }
  145. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  146. func UpdatedAtLT(v time.Time) predicate.Agent {
  147. return predicate.Agent(sql.FieldLT(FieldUpdatedAt, v))
  148. }
  149. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  150. func UpdatedAtLTE(v time.Time) predicate.Agent {
  151. return predicate.Agent(sql.FieldLTE(FieldUpdatedAt, v))
  152. }
  153. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  154. func DeletedAtEQ(v time.Time) predicate.Agent {
  155. return predicate.Agent(sql.FieldEQ(FieldDeletedAt, v))
  156. }
  157. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  158. func DeletedAtNEQ(v time.Time) predicate.Agent {
  159. return predicate.Agent(sql.FieldNEQ(FieldDeletedAt, v))
  160. }
  161. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  162. func DeletedAtIn(vs ...time.Time) predicate.Agent {
  163. return predicate.Agent(sql.FieldIn(FieldDeletedAt, vs...))
  164. }
  165. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  166. func DeletedAtNotIn(vs ...time.Time) predicate.Agent {
  167. return predicate.Agent(sql.FieldNotIn(FieldDeletedAt, vs...))
  168. }
  169. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  170. func DeletedAtGT(v time.Time) predicate.Agent {
  171. return predicate.Agent(sql.FieldGT(FieldDeletedAt, v))
  172. }
  173. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  174. func DeletedAtGTE(v time.Time) predicate.Agent {
  175. return predicate.Agent(sql.FieldGTE(FieldDeletedAt, v))
  176. }
  177. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  178. func DeletedAtLT(v time.Time) predicate.Agent {
  179. return predicate.Agent(sql.FieldLT(FieldDeletedAt, v))
  180. }
  181. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  182. func DeletedAtLTE(v time.Time) predicate.Agent {
  183. return predicate.Agent(sql.FieldLTE(FieldDeletedAt, v))
  184. }
  185. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  186. func DeletedAtIsNil() predicate.Agent {
  187. return predicate.Agent(sql.FieldIsNull(FieldDeletedAt))
  188. }
  189. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  190. func DeletedAtNotNil() predicate.Agent {
  191. return predicate.Agent(sql.FieldNotNull(FieldDeletedAt))
  192. }
  193. // NameEQ applies the EQ predicate on the "name" field.
  194. func NameEQ(v string) predicate.Agent {
  195. return predicate.Agent(sql.FieldEQ(FieldName, v))
  196. }
  197. // NameNEQ applies the NEQ predicate on the "name" field.
  198. func NameNEQ(v string) predicate.Agent {
  199. return predicate.Agent(sql.FieldNEQ(FieldName, v))
  200. }
  201. // NameIn applies the In predicate on the "name" field.
  202. func NameIn(vs ...string) predicate.Agent {
  203. return predicate.Agent(sql.FieldIn(FieldName, vs...))
  204. }
  205. // NameNotIn applies the NotIn predicate on the "name" field.
  206. func NameNotIn(vs ...string) predicate.Agent {
  207. return predicate.Agent(sql.FieldNotIn(FieldName, vs...))
  208. }
  209. // NameGT applies the GT predicate on the "name" field.
  210. func NameGT(v string) predicate.Agent {
  211. return predicate.Agent(sql.FieldGT(FieldName, v))
  212. }
  213. // NameGTE applies the GTE predicate on the "name" field.
  214. func NameGTE(v string) predicate.Agent {
  215. return predicate.Agent(sql.FieldGTE(FieldName, v))
  216. }
  217. // NameLT applies the LT predicate on the "name" field.
  218. func NameLT(v string) predicate.Agent {
  219. return predicate.Agent(sql.FieldLT(FieldName, v))
  220. }
  221. // NameLTE applies the LTE predicate on the "name" field.
  222. func NameLTE(v string) predicate.Agent {
  223. return predicate.Agent(sql.FieldLTE(FieldName, v))
  224. }
  225. // NameContains applies the Contains predicate on the "name" field.
  226. func NameContains(v string) predicate.Agent {
  227. return predicate.Agent(sql.FieldContains(FieldName, v))
  228. }
  229. // NameHasPrefix applies the HasPrefix predicate on the "name" field.
  230. func NameHasPrefix(v string) predicate.Agent {
  231. return predicate.Agent(sql.FieldHasPrefix(FieldName, v))
  232. }
  233. // NameHasSuffix applies the HasSuffix predicate on the "name" field.
  234. func NameHasSuffix(v string) predicate.Agent {
  235. return predicate.Agent(sql.FieldHasSuffix(FieldName, v))
  236. }
  237. // NameEqualFold applies the EqualFold predicate on the "name" field.
  238. func NameEqualFold(v string) predicate.Agent {
  239. return predicate.Agent(sql.FieldEqualFold(FieldName, v))
  240. }
  241. // NameContainsFold applies the ContainsFold predicate on the "name" field.
  242. func NameContainsFold(v string) predicate.Agent {
  243. return predicate.Agent(sql.FieldContainsFold(FieldName, v))
  244. }
  245. // RoleEQ applies the EQ predicate on the "role" field.
  246. func RoleEQ(v string) predicate.Agent {
  247. return predicate.Agent(sql.FieldEQ(FieldRole, v))
  248. }
  249. // RoleNEQ applies the NEQ predicate on the "role" field.
  250. func RoleNEQ(v string) predicate.Agent {
  251. return predicate.Agent(sql.FieldNEQ(FieldRole, v))
  252. }
  253. // RoleIn applies the In predicate on the "role" field.
  254. func RoleIn(vs ...string) predicate.Agent {
  255. return predicate.Agent(sql.FieldIn(FieldRole, vs...))
  256. }
  257. // RoleNotIn applies the NotIn predicate on the "role" field.
  258. func RoleNotIn(vs ...string) predicate.Agent {
  259. return predicate.Agent(sql.FieldNotIn(FieldRole, vs...))
  260. }
  261. // RoleGT applies the GT predicate on the "role" field.
  262. func RoleGT(v string) predicate.Agent {
  263. return predicate.Agent(sql.FieldGT(FieldRole, v))
  264. }
  265. // RoleGTE applies the GTE predicate on the "role" field.
  266. func RoleGTE(v string) predicate.Agent {
  267. return predicate.Agent(sql.FieldGTE(FieldRole, v))
  268. }
  269. // RoleLT applies the LT predicate on the "role" field.
  270. func RoleLT(v string) predicate.Agent {
  271. return predicate.Agent(sql.FieldLT(FieldRole, v))
  272. }
  273. // RoleLTE applies the LTE predicate on the "role" field.
  274. func RoleLTE(v string) predicate.Agent {
  275. return predicate.Agent(sql.FieldLTE(FieldRole, v))
  276. }
  277. // RoleContains applies the Contains predicate on the "role" field.
  278. func RoleContains(v string) predicate.Agent {
  279. return predicate.Agent(sql.FieldContains(FieldRole, v))
  280. }
  281. // RoleHasPrefix applies the HasPrefix predicate on the "role" field.
  282. func RoleHasPrefix(v string) predicate.Agent {
  283. return predicate.Agent(sql.FieldHasPrefix(FieldRole, v))
  284. }
  285. // RoleHasSuffix applies the HasSuffix predicate on the "role" field.
  286. func RoleHasSuffix(v string) predicate.Agent {
  287. return predicate.Agent(sql.FieldHasSuffix(FieldRole, v))
  288. }
  289. // RoleEqualFold applies the EqualFold predicate on the "role" field.
  290. func RoleEqualFold(v string) predicate.Agent {
  291. return predicate.Agent(sql.FieldEqualFold(FieldRole, v))
  292. }
  293. // RoleContainsFold applies the ContainsFold predicate on the "role" field.
  294. func RoleContainsFold(v string) predicate.Agent {
  295. return predicate.Agent(sql.FieldContainsFold(FieldRole, v))
  296. }
  297. // StatusEQ applies the EQ predicate on the "status" field.
  298. func StatusEQ(v int) predicate.Agent {
  299. return predicate.Agent(sql.FieldEQ(FieldStatus, v))
  300. }
  301. // StatusNEQ applies the NEQ predicate on the "status" field.
  302. func StatusNEQ(v int) predicate.Agent {
  303. return predicate.Agent(sql.FieldNEQ(FieldStatus, v))
  304. }
  305. // StatusIn applies the In predicate on the "status" field.
  306. func StatusIn(vs ...int) predicate.Agent {
  307. return predicate.Agent(sql.FieldIn(FieldStatus, vs...))
  308. }
  309. // StatusNotIn applies the NotIn predicate on the "status" field.
  310. func StatusNotIn(vs ...int) predicate.Agent {
  311. return predicate.Agent(sql.FieldNotIn(FieldStatus, vs...))
  312. }
  313. // StatusGT applies the GT predicate on the "status" field.
  314. func StatusGT(v int) predicate.Agent {
  315. return predicate.Agent(sql.FieldGT(FieldStatus, v))
  316. }
  317. // StatusGTE applies the GTE predicate on the "status" field.
  318. func StatusGTE(v int) predicate.Agent {
  319. return predicate.Agent(sql.FieldGTE(FieldStatus, v))
  320. }
  321. // StatusLT applies the LT predicate on the "status" field.
  322. func StatusLT(v int) predicate.Agent {
  323. return predicate.Agent(sql.FieldLT(FieldStatus, v))
  324. }
  325. // StatusLTE applies the LTE predicate on the "status" field.
  326. func StatusLTE(v int) predicate.Agent {
  327. return predicate.Agent(sql.FieldLTE(FieldStatus, v))
  328. }
  329. // StatusIsNil applies the IsNil predicate on the "status" field.
  330. func StatusIsNil() predicate.Agent {
  331. return predicate.Agent(sql.FieldIsNull(FieldStatus))
  332. }
  333. // StatusNotNil applies the NotNil predicate on the "status" field.
  334. func StatusNotNil() predicate.Agent {
  335. return predicate.Agent(sql.FieldNotNull(FieldStatus))
  336. }
  337. // BackgroundEQ applies the EQ predicate on the "background" field.
  338. func BackgroundEQ(v string) predicate.Agent {
  339. return predicate.Agent(sql.FieldEQ(FieldBackground, v))
  340. }
  341. // BackgroundNEQ applies the NEQ predicate on the "background" field.
  342. func BackgroundNEQ(v string) predicate.Agent {
  343. return predicate.Agent(sql.FieldNEQ(FieldBackground, v))
  344. }
  345. // BackgroundIn applies the In predicate on the "background" field.
  346. func BackgroundIn(vs ...string) predicate.Agent {
  347. return predicate.Agent(sql.FieldIn(FieldBackground, vs...))
  348. }
  349. // BackgroundNotIn applies the NotIn predicate on the "background" field.
  350. func BackgroundNotIn(vs ...string) predicate.Agent {
  351. return predicate.Agent(sql.FieldNotIn(FieldBackground, vs...))
  352. }
  353. // BackgroundGT applies the GT predicate on the "background" field.
  354. func BackgroundGT(v string) predicate.Agent {
  355. return predicate.Agent(sql.FieldGT(FieldBackground, v))
  356. }
  357. // BackgroundGTE applies the GTE predicate on the "background" field.
  358. func BackgroundGTE(v string) predicate.Agent {
  359. return predicate.Agent(sql.FieldGTE(FieldBackground, v))
  360. }
  361. // BackgroundLT applies the LT predicate on the "background" field.
  362. func BackgroundLT(v string) predicate.Agent {
  363. return predicate.Agent(sql.FieldLT(FieldBackground, v))
  364. }
  365. // BackgroundLTE applies the LTE predicate on the "background" field.
  366. func BackgroundLTE(v string) predicate.Agent {
  367. return predicate.Agent(sql.FieldLTE(FieldBackground, v))
  368. }
  369. // BackgroundContains applies the Contains predicate on the "background" field.
  370. func BackgroundContains(v string) predicate.Agent {
  371. return predicate.Agent(sql.FieldContains(FieldBackground, v))
  372. }
  373. // BackgroundHasPrefix applies the HasPrefix predicate on the "background" field.
  374. func BackgroundHasPrefix(v string) predicate.Agent {
  375. return predicate.Agent(sql.FieldHasPrefix(FieldBackground, v))
  376. }
  377. // BackgroundHasSuffix applies the HasSuffix predicate on the "background" field.
  378. func BackgroundHasSuffix(v string) predicate.Agent {
  379. return predicate.Agent(sql.FieldHasSuffix(FieldBackground, v))
  380. }
  381. // BackgroundIsNil applies the IsNil predicate on the "background" field.
  382. func BackgroundIsNil() predicate.Agent {
  383. return predicate.Agent(sql.FieldIsNull(FieldBackground))
  384. }
  385. // BackgroundNotNil applies the NotNil predicate on the "background" field.
  386. func BackgroundNotNil() predicate.Agent {
  387. return predicate.Agent(sql.FieldNotNull(FieldBackground))
  388. }
  389. // BackgroundEqualFold applies the EqualFold predicate on the "background" field.
  390. func BackgroundEqualFold(v string) predicate.Agent {
  391. return predicate.Agent(sql.FieldEqualFold(FieldBackground, v))
  392. }
  393. // BackgroundContainsFold applies the ContainsFold predicate on the "background" field.
  394. func BackgroundContainsFold(v string) predicate.Agent {
  395. return predicate.Agent(sql.FieldContainsFold(FieldBackground, v))
  396. }
  397. // ExamplesEQ applies the EQ predicate on the "examples" field.
  398. func ExamplesEQ(v string) predicate.Agent {
  399. return predicate.Agent(sql.FieldEQ(FieldExamples, v))
  400. }
  401. // ExamplesNEQ applies the NEQ predicate on the "examples" field.
  402. func ExamplesNEQ(v string) predicate.Agent {
  403. return predicate.Agent(sql.FieldNEQ(FieldExamples, v))
  404. }
  405. // ExamplesIn applies the In predicate on the "examples" field.
  406. func ExamplesIn(vs ...string) predicate.Agent {
  407. return predicate.Agent(sql.FieldIn(FieldExamples, vs...))
  408. }
  409. // ExamplesNotIn applies the NotIn predicate on the "examples" field.
  410. func ExamplesNotIn(vs ...string) predicate.Agent {
  411. return predicate.Agent(sql.FieldNotIn(FieldExamples, vs...))
  412. }
  413. // ExamplesGT applies the GT predicate on the "examples" field.
  414. func ExamplesGT(v string) predicate.Agent {
  415. return predicate.Agent(sql.FieldGT(FieldExamples, v))
  416. }
  417. // ExamplesGTE applies the GTE predicate on the "examples" field.
  418. func ExamplesGTE(v string) predicate.Agent {
  419. return predicate.Agent(sql.FieldGTE(FieldExamples, v))
  420. }
  421. // ExamplesLT applies the LT predicate on the "examples" field.
  422. func ExamplesLT(v string) predicate.Agent {
  423. return predicate.Agent(sql.FieldLT(FieldExamples, v))
  424. }
  425. // ExamplesLTE applies the LTE predicate on the "examples" field.
  426. func ExamplesLTE(v string) predicate.Agent {
  427. return predicate.Agent(sql.FieldLTE(FieldExamples, v))
  428. }
  429. // ExamplesContains applies the Contains predicate on the "examples" field.
  430. func ExamplesContains(v string) predicate.Agent {
  431. return predicate.Agent(sql.FieldContains(FieldExamples, v))
  432. }
  433. // ExamplesHasPrefix applies the HasPrefix predicate on the "examples" field.
  434. func ExamplesHasPrefix(v string) predicate.Agent {
  435. return predicate.Agent(sql.FieldHasPrefix(FieldExamples, v))
  436. }
  437. // ExamplesHasSuffix applies the HasSuffix predicate on the "examples" field.
  438. func ExamplesHasSuffix(v string) predicate.Agent {
  439. return predicate.Agent(sql.FieldHasSuffix(FieldExamples, v))
  440. }
  441. // ExamplesIsNil applies the IsNil predicate on the "examples" field.
  442. func ExamplesIsNil() predicate.Agent {
  443. return predicate.Agent(sql.FieldIsNull(FieldExamples))
  444. }
  445. // ExamplesNotNil applies the NotNil predicate on the "examples" field.
  446. func ExamplesNotNil() predicate.Agent {
  447. return predicate.Agent(sql.FieldNotNull(FieldExamples))
  448. }
  449. // ExamplesEqualFold applies the EqualFold predicate on the "examples" field.
  450. func ExamplesEqualFold(v string) predicate.Agent {
  451. return predicate.Agent(sql.FieldEqualFold(FieldExamples, v))
  452. }
  453. // ExamplesContainsFold applies the ContainsFold predicate on the "examples" field.
  454. func ExamplesContainsFold(v string) predicate.Agent {
  455. return predicate.Agent(sql.FieldContainsFold(FieldExamples, v))
  456. }
  457. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  458. func OrganizationIDEQ(v uint64) predicate.Agent {
  459. return predicate.Agent(sql.FieldEQ(FieldOrganizationID, v))
  460. }
  461. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  462. func OrganizationIDNEQ(v uint64) predicate.Agent {
  463. return predicate.Agent(sql.FieldNEQ(FieldOrganizationID, v))
  464. }
  465. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  466. func OrganizationIDIn(vs ...uint64) predicate.Agent {
  467. return predicate.Agent(sql.FieldIn(FieldOrganizationID, vs...))
  468. }
  469. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  470. func OrganizationIDNotIn(vs ...uint64) predicate.Agent {
  471. return predicate.Agent(sql.FieldNotIn(FieldOrganizationID, vs...))
  472. }
  473. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  474. func OrganizationIDGT(v uint64) predicate.Agent {
  475. return predicate.Agent(sql.FieldGT(FieldOrganizationID, v))
  476. }
  477. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  478. func OrganizationIDGTE(v uint64) predicate.Agent {
  479. return predicate.Agent(sql.FieldGTE(FieldOrganizationID, v))
  480. }
  481. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  482. func OrganizationIDLT(v uint64) predicate.Agent {
  483. return predicate.Agent(sql.FieldLT(FieldOrganizationID, v))
  484. }
  485. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  486. func OrganizationIDLTE(v uint64) predicate.Agent {
  487. return predicate.Agent(sql.FieldLTE(FieldOrganizationID, v))
  488. }
  489. // DatasetIDEQ applies the EQ predicate on the "dataset_id" field.
  490. func DatasetIDEQ(v string) predicate.Agent {
  491. return predicate.Agent(sql.FieldEQ(FieldDatasetID, v))
  492. }
  493. // DatasetIDNEQ applies the NEQ predicate on the "dataset_id" field.
  494. func DatasetIDNEQ(v string) predicate.Agent {
  495. return predicate.Agent(sql.FieldNEQ(FieldDatasetID, v))
  496. }
  497. // DatasetIDIn applies the In predicate on the "dataset_id" field.
  498. func DatasetIDIn(vs ...string) predicate.Agent {
  499. return predicate.Agent(sql.FieldIn(FieldDatasetID, vs...))
  500. }
  501. // DatasetIDNotIn applies the NotIn predicate on the "dataset_id" field.
  502. func DatasetIDNotIn(vs ...string) predicate.Agent {
  503. return predicate.Agent(sql.FieldNotIn(FieldDatasetID, vs...))
  504. }
  505. // DatasetIDGT applies the GT predicate on the "dataset_id" field.
  506. func DatasetIDGT(v string) predicate.Agent {
  507. return predicate.Agent(sql.FieldGT(FieldDatasetID, v))
  508. }
  509. // DatasetIDGTE applies the GTE predicate on the "dataset_id" field.
  510. func DatasetIDGTE(v string) predicate.Agent {
  511. return predicate.Agent(sql.FieldGTE(FieldDatasetID, v))
  512. }
  513. // DatasetIDLT applies the LT predicate on the "dataset_id" field.
  514. func DatasetIDLT(v string) predicate.Agent {
  515. return predicate.Agent(sql.FieldLT(FieldDatasetID, v))
  516. }
  517. // DatasetIDLTE applies the LTE predicate on the "dataset_id" field.
  518. func DatasetIDLTE(v string) predicate.Agent {
  519. return predicate.Agent(sql.FieldLTE(FieldDatasetID, v))
  520. }
  521. // DatasetIDContains applies the Contains predicate on the "dataset_id" field.
  522. func DatasetIDContains(v string) predicate.Agent {
  523. return predicate.Agent(sql.FieldContains(FieldDatasetID, v))
  524. }
  525. // DatasetIDHasPrefix applies the HasPrefix predicate on the "dataset_id" field.
  526. func DatasetIDHasPrefix(v string) predicate.Agent {
  527. return predicate.Agent(sql.FieldHasPrefix(FieldDatasetID, v))
  528. }
  529. // DatasetIDHasSuffix applies the HasSuffix predicate on the "dataset_id" field.
  530. func DatasetIDHasSuffix(v string) predicate.Agent {
  531. return predicate.Agent(sql.FieldHasSuffix(FieldDatasetID, v))
  532. }
  533. // DatasetIDEqualFold applies the EqualFold predicate on the "dataset_id" field.
  534. func DatasetIDEqualFold(v string) predicate.Agent {
  535. return predicate.Agent(sql.FieldEqualFold(FieldDatasetID, v))
  536. }
  537. // DatasetIDContainsFold applies the ContainsFold predicate on the "dataset_id" field.
  538. func DatasetIDContainsFold(v string) predicate.Agent {
  539. return predicate.Agent(sql.FieldContainsFold(FieldDatasetID, v))
  540. }
  541. // CollectionIDEQ applies the EQ predicate on the "collection_id" field.
  542. func CollectionIDEQ(v string) predicate.Agent {
  543. return predicate.Agent(sql.FieldEQ(FieldCollectionID, v))
  544. }
  545. // CollectionIDNEQ applies the NEQ predicate on the "collection_id" field.
  546. func CollectionIDNEQ(v string) predicate.Agent {
  547. return predicate.Agent(sql.FieldNEQ(FieldCollectionID, v))
  548. }
  549. // CollectionIDIn applies the In predicate on the "collection_id" field.
  550. func CollectionIDIn(vs ...string) predicate.Agent {
  551. return predicate.Agent(sql.FieldIn(FieldCollectionID, vs...))
  552. }
  553. // CollectionIDNotIn applies the NotIn predicate on the "collection_id" field.
  554. func CollectionIDNotIn(vs ...string) predicate.Agent {
  555. return predicate.Agent(sql.FieldNotIn(FieldCollectionID, vs...))
  556. }
  557. // CollectionIDGT applies the GT predicate on the "collection_id" field.
  558. func CollectionIDGT(v string) predicate.Agent {
  559. return predicate.Agent(sql.FieldGT(FieldCollectionID, v))
  560. }
  561. // CollectionIDGTE applies the GTE predicate on the "collection_id" field.
  562. func CollectionIDGTE(v string) predicate.Agent {
  563. return predicate.Agent(sql.FieldGTE(FieldCollectionID, v))
  564. }
  565. // CollectionIDLT applies the LT predicate on the "collection_id" field.
  566. func CollectionIDLT(v string) predicate.Agent {
  567. return predicate.Agent(sql.FieldLT(FieldCollectionID, v))
  568. }
  569. // CollectionIDLTE applies the LTE predicate on the "collection_id" field.
  570. func CollectionIDLTE(v string) predicate.Agent {
  571. return predicate.Agent(sql.FieldLTE(FieldCollectionID, v))
  572. }
  573. // CollectionIDContains applies the Contains predicate on the "collection_id" field.
  574. func CollectionIDContains(v string) predicate.Agent {
  575. return predicate.Agent(sql.FieldContains(FieldCollectionID, v))
  576. }
  577. // CollectionIDHasPrefix applies the HasPrefix predicate on the "collection_id" field.
  578. func CollectionIDHasPrefix(v string) predicate.Agent {
  579. return predicate.Agent(sql.FieldHasPrefix(FieldCollectionID, v))
  580. }
  581. // CollectionIDHasSuffix applies the HasSuffix predicate on the "collection_id" field.
  582. func CollectionIDHasSuffix(v string) predicate.Agent {
  583. return predicate.Agent(sql.FieldHasSuffix(FieldCollectionID, v))
  584. }
  585. // CollectionIDEqualFold applies the EqualFold predicate on the "collection_id" field.
  586. func CollectionIDEqualFold(v string) predicate.Agent {
  587. return predicate.Agent(sql.FieldEqualFold(FieldCollectionID, v))
  588. }
  589. // CollectionIDContainsFold applies the ContainsFold predicate on the "collection_id" field.
  590. func CollectionIDContainsFold(v string) predicate.Agent {
  591. return predicate.Agent(sql.FieldContainsFold(FieldCollectionID, v))
  592. }
  593. // HasWxAgent applies the HasEdge predicate on the "wx_agent" edge.
  594. func HasWxAgent() predicate.Agent {
  595. return predicate.Agent(func(s *sql.Selector) {
  596. step := sqlgraph.NewStep(
  597. sqlgraph.From(Table, FieldID),
  598. sqlgraph.Edge(sqlgraph.O2M, false, WxAgentTable, WxAgentColumn),
  599. )
  600. sqlgraph.HasNeighbors(s, step)
  601. })
  602. }
  603. // HasWxAgentWith applies the HasEdge predicate on the "wx_agent" edge with a given conditions (other predicates).
  604. func HasWxAgentWith(preds ...predicate.Wx) predicate.Agent {
  605. return predicate.Agent(func(s *sql.Selector) {
  606. step := newWxAgentStep()
  607. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  608. for _, p := range preds {
  609. p(s)
  610. }
  611. })
  612. })
  613. }
  614. // HasTokenAgent applies the HasEdge predicate on the "token_agent" edge.
  615. func HasTokenAgent() predicate.Agent {
  616. return predicate.Agent(func(s *sql.Selector) {
  617. step := sqlgraph.NewStep(
  618. sqlgraph.From(Table, FieldID),
  619. sqlgraph.Edge(sqlgraph.O2M, false, TokenAgentTable, TokenAgentColumn),
  620. )
  621. sqlgraph.HasNeighbors(s, step)
  622. })
  623. }
  624. // HasTokenAgentWith applies the HasEdge predicate on the "token_agent" edge with a given conditions (other predicates).
  625. func HasTokenAgentWith(preds ...predicate.Token) predicate.Agent {
  626. return predicate.Agent(func(s *sql.Selector) {
  627. step := newTokenAgentStep()
  628. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  629. for _, p := range preds {
  630. p(s)
  631. }
  632. })
  633. })
  634. }
  635. // HasWaAgent applies the HasEdge predicate on the "wa_agent" edge.
  636. func HasWaAgent() predicate.Agent {
  637. return predicate.Agent(func(s *sql.Selector) {
  638. step := sqlgraph.NewStep(
  639. sqlgraph.From(Table, FieldID),
  640. sqlgraph.Edge(sqlgraph.O2M, false, WaAgentTable, WaAgentColumn),
  641. )
  642. sqlgraph.HasNeighbors(s, step)
  643. })
  644. }
  645. // HasWaAgentWith applies the HasEdge predicate on the "wa_agent" edge with a given conditions (other predicates).
  646. func HasWaAgentWith(preds ...predicate.Whatsapp) predicate.Agent {
  647. return predicate.Agent(func(s *sql.Selector) {
  648. step := newWaAgentStep()
  649. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  650. for _, p := range preds {
  651. p(s)
  652. }
  653. })
  654. })
  655. }
  656. // And groups predicates with the AND operator between them.
  657. func And(predicates ...predicate.Agent) predicate.Agent {
  658. return predicate.Agent(sql.AndPredicates(predicates...))
  659. }
  660. // Or groups predicates with the OR operator between them.
  661. func Or(predicates ...predicate.Agent) predicate.Agent {
  662. return predicate.Agent(sql.OrPredicates(predicates...))
  663. }
  664. // Not applies the not operator on the given predicate.
  665. func Not(p predicate.Agent) predicate.Agent {
  666. return predicate.Agent(sql.NotPredicates(p))
  667. }