where.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  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. )
  8. // ID filters vertices based on their ID field.
  9. func ID(id uint64) predicate.Agent {
  10. return predicate.Agent(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id uint64) predicate.Agent {
  14. return predicate.Agent(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id uint64) predicate.Agent {
  18. return predicate.Agent(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...uint64) predicate.Agent {
  22. return predicate.Agent(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...uint64) predicate.Agent {
  26. return predicate.Agent(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id uint64) predicate.Agent {
  30. return predicate.Agent(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id uint64) predicate.Agent {
  34. return predicate.Agent(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id uint64) predicate.Agent {
  38. return predicate.Agent(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id uint64) predicate.Agent {
  42. return predicate.Agent(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.Agent {
  46. return predicate.Agent(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.Agent {
  50. return predicate.Agent(sql.FieldEQ(FieldUpdatedAt, v))
  51. }
  52. // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
  53. func DeletedAt(v time.Time) predicate.Agent {
  54. return predicate.Agent(sql.FieldEQ(FieldDeletedAt, v))
  55. }
  56. // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
  57. func Name(v string) predicate.Agent {
  58. return predicate.Agent(sql.FieldEQ(FieldName, v))
  59. }
  60. // Role applies equality check predicate on the "role" field. It's identical to RoleEQ.
  61. func Role(v string) predicate.Agent {
  62. return predicate.Agent(sql.FieldEQ(FieldRole, v))
  63. }
  64. // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
  65. func Status(v int) predicate.Agent {
  66. return predicate.Agent(sql.FieldEQ(FieldStatus, v))
  67. }
  68. // Background applies equality check predicate on the "background" field. It's identical to BackgroundEQ.
  69. func Background(v string) predicate.Agent {
  70. return predicate.Agent(sql.FieldEQ(FieldBackground, v))
  71. }
  72. // Examples applies equality check predicate on the "examples" field. It's identical to ExamplesEQ.
  73. func Examples(v string) predicate.Agent {
  74. return predicate.Agent(sql.FieldEQ(FieldExamples, v))
  75. }
  76. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  77. func OrganizationID(v uint64) predicate.Agent {
  78. return predicate.Agent(sql.FieldEQ(FieldOrganizationID, v))
  79. }
  80. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  81. func CreatedAtEQ(v time.Time) predicate.Agent {
  82. return predicate.Agent(sql.FieldEQ(FieldCreatedAt, v))
  83. }
  84. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  85. func CreatedAtNEQ(v time.Time) predicate.Agent {
  86. return predicate.Agent(sql.FieldNEQ(FieldCreatedAt, v))
  87. }
  88. // CreatedAtIn applies the In predicate on the "created_at" field.
  89. func CreatedAtIn(vs ...time.Time) predicate.Agent {
  90. return predicate.Agent(sql.FieldIn(FieldCreatedAt, vs...))
  91. }
  92. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  93. func CreatedAtNotIn(vs ...time.Time) predicate.Agent {
  94. return predicate.Agent(sql.FieldNotIn(FieldCreatedAt, vs...))
  95. }
  96. // CreatedAtGT applies the GT predicate on the "created_at" field.
  97. func CreatedAtGT(v time.Time) predicate.Agent {
  98. return predicate.Agent(sql.FieldGT(FieldCreatedAt, v))
  99. }
  100. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  101. func CreatedAtGTE(v time.Time) predicate.Agent {
  102. return predicate.Agent(sql.FieldGTE(FieldCreatedAt, v))
  103. }
  104. // CreatedAtLT applies the LT predicate on the "created_at" field.
  105. func CreatedAtLT(v time.Time) predicate.Agent {
  106. return predicate.Agent(sql.FieldLT(FieldCreatedAt, v))
  107. }
  108. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  109. func CreatedAtLTE(v time.Time) predicate.Agent {
  110. return predicate.Agent(sql.FieldLTE(FieldCreatedAt, v))
  111. }
  112. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  113. func UpdatedAtEQ(v time.Time) predicate.Agent {
  114. return predicate.Agent(sql.FieldEQ(FieldUpdatedAt, v))
  115. }
  116. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  117. func UpdatedAtNEQ(v time.Time) predicate.Agent {
  118. return predicate.Agent(sql.FieldNEQ(FieldUpdatedAt, v))
  119. }
  120. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  121. func UpdatedAtIn(vs ...time.Time) predicate.Agent {
  122. return predicate.Agent(sql.FieldIn(FieldUpdatedAt, vs...))
  123. }
  124. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  125. func UpdatedAtNotIn(vs ...time.Time) predicate.Agent {
  126. return predicate.Agent(sql.FieldNotIn(FieldUpdatedAt, vs...))
  127. }
  128. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  129. func UpdatedAtGT(v time.Time) predicate.Agent {
  130. return predicate.Agent(sql.FieldGT(FieldUpdatedAt, v))
  131. }
  132. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  133. func UpdatedAtGTE(v time.Time) predicate.Agent {
  134. return predicate.Agent(sql.FieldGTE(FieldUpdatedAt, v))
  135. }
  136. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  137. func UpdatedAtLT(v time.Time) predicate.Agent {
  138. return predicate.Agent(sql.FieldLT(FieldUpdatedAt, v))
  139. }
  140. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  141. func UpdatedAtLTE(v time.Time) predicate.Agent {
  142. return predicate.Agent(sql.FieldLTE(FieldUpdatedAt, v))
  143. }
  144. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  145. func DeletedAtEQ(v time.Time) predicate.Agent {
  146. return predicate.Agent(sql.FieldEQ(FieldDeletedAt, v))
  147. }
  148. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  149. func DeletedAtNEQ(v time.Time) predicate.Agent {
  150. return predicate.Agent(sql.FieldNEQ(FieldDeletedAt, v))
  151. }
  152. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  153. func DeletedAtIn(vs ...time.Time) predicate.Agent {
  154. return predicate.Agent(sql.FieldIn(FieldDeletedAt, vs...))
  155. }
  156. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  157. func DeletedAtNotIn(vs ...time.Time) predicate.Agent {
  158. return predicate.Agent(sql.FieldNotIn(FieldDeletedAt, vs...))
  159. }
  160. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  161. func DeletedAtGT(v time.Time) predicate.Agent {
  162. return predicate.Agent(sql.FieldGT(FieldDeletedAt, v))
  163. }
  164. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  165. func DeletedAtGTE(v time.Time) predicate.Agent {
  166. return predicate.Agent(sql.FieldGTE(FieldDeletedAt, v))
  167. }
  168. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  169. func DeletedAtLT(v time.Time) predicate.Agent {
  170. return predicate.Agent(sql.FieldLT(FieldDeletedAt, v))
  171. }
  172. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  173. func DeletedAtLTE(v time.Time) predicate.Agent {
  174. return predicate.Agent(sql.FieldLTE(FieldDeletedAt, v))
  175. }
  176. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  177. func DeletedAtIsNil() predicate.Agent {
  178. return predicate.Agent(sql.FieldIsNull(FieldDeletedAt))
  179. }
  180. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  181. func DeletedAtNotNil() predicate.Agent {
  182. return predicate.Agent(sql.FieldNotNull(FieldDeletedAt))
  183. }
  184. // NameEQ applies the EQ predicate on the "name" field.
  185. func NameEQ(v string) predicate.Agent {
  186. return predicate.Agent(sql.FieldEQ(FieldName, v))
  187. }
  188. // NameNEQ applies the NEQ predicate on the "name" field.
  189. func NameNEQ(v string) predicate.Agent {
  190. return predicate.Agent(sql.FieldNEQ(FieldName, v))
  191. }
  192. // NameIn applies the In predicate on the "name" field.
  193. func NameIn(vs ...string) predicate.Agent {
  194. return predicate.Agent(sql.FieldIn(FieldName, vs...))
  195. }
  196. // NameNotIn applies the NotIn predicate on the "name" field.
  197. func NameNotIn(vs ...string) predicate.Agent {
  198. return predicate.Agent(sql.FieldNotIn(FieldName, vs...))
  199. }
  200. // NameGT applies the GT predicate on the "name" field.
  201. func NameGT(v string) predicate.Agent {
  202. return predicate.Agent(sql.FieldGT(FieldName, v))
  203. }
  204. // NameGTE applies the GTE predicate on the "name" field.
  205. func NameGTE(v string) predicate.Agent {
  206. return predicate.Agent(sql.FieldGTE(FieldName, v))
  207. }
  208. // NameLT applies the LT predicate on the "name" field.
  209. func NameLT(v string) predicate.Agent {
  210. return predicate.Agent(sql.FieldLT(FieldName, v))
  211. }
  212. // NameLTE applies the LTE predicate on the "name" field.
  213. func NameLTE(v string) predicate.Agent {
  214. return predicate.Agent(sql.FieldLTE(FieldName, v))
  215. }
  216. // NameContains applies the Contains predicate on the "name" field.
  217. func NameContains(v string) predicate.Agent {
  218. return predicate.Agent(sql.FieldContains(FieldName, v))
  219. }
  220. // NameHasPrefix applies the HasPrefix predicate on the "name" field.
  221. func NameHasPrefix(v string) predicate.Agent {
  222. return predicate.Agent(sql.FieldHasPrefix(FieldName, v))
  223. }
  224. // NameHasSuffix applies the HasSuffix predicate on the "name" field.
  225. func NameHasSuffix(v string) predicate.Agent {
  226. return predicate.Agent(sql.FieldHasSuffix(FieldName, v))
  227. }
  228. // NameEqualFold applies the EqualFold predicate on the "name" field.
  229. func NameEqualFold(v string) predicate.Agent {
  230. return predicate.Agent(sql.FieldEqualFold(FieldName, v))
  231. }
  232. // NameContainsFold applies the ContainsFold predicate on the "name" field.
  233. func NameContainsFold(v string) predicate.Agent {
  234. return predicate.Agent(sql.FieldContainsFold(FieldName, v))
  235. }
  236. // RoleEQ applies the EQ predicate on the "role" field.
  237. func RoleEQ(v string) predicate.Agent {
  238. return predicate.Agent(sql.FieldEQ(FieldRole, v))
  239. }
  240. // RoleNEQ applies the NEQ predicate on the "role" field.
  241. func RoleNEQ(v string) predicate.Agent {
  242. return predicate.Agent(sql.FieldNEQ(FieldRole, v))
  243. }
  244. // RoleIn applies the In predicate on the "role" field.
  245. func RoleIn(vs ...string) predicate.Agent {
  246. return predicate.Agent(sql.FieldIn(FieldRole, vs...))
  247. }
  248. // RoleNotIn applies the NotIn predicate on the "role" field.
  249. func RoleNotIn(vs ...string) predicate.Agent {
  250. return predicate.Agent(sql.FieldNotIn(FieldRole, vs...))
  251. }
  252. // RoleGT applies the GT predicate on the "role" field.
  253. func RoleGT(v string) predicate.Agent {
  254. return predicate.Agent(sql.FieldGT(FieldRole, v))
  255. }
  256. // RoleGTE applies the GTE predicate on the "role" field.
  257. func RoleGTE(v string) predicate.Agent {
  258. return predicate.Agent(sql.FieldGTE(FieldRole, v))
  259. }
  260. // RoleLT applies the LT predicate on the "role" field.
  261. func RoleLT(v string) predicate.Agent {
  262. return predicate.Agent(sql.FieldLT(FieldRole, v))
  263. }
  264. // RoleLTE applies the LTE predicate on the "role" field.
  265. func RoleLTE(v string) predicate.Agent {
  266. return predicate.Agent(sql.FieldLTE(FieldRole, v))
  267. }
  268. // RoleContains applies the Contains predicate on the "role" field.
  269. func RoleContains(v string) predicate.Agent {
  270. return predicate.Agent(sql.FieldContains(FieldRole, v))
  271. }
  272. // RoleHasPrefix applies the HasPrefix predicate on the "role" field.
  273. func RoleHasPrefix(v string) predicate.Agent {
  274. return predicate.Agent(sql.FieldHasPrefix(FieldRole, v))
  275. }
  276. // RoleHasSuffix applies the HasSuffix predicate on the "role" field.
  277. func RoleHasSuffix(v string) predicate.Agent {
  278. return predicate.Agent(sql.FieldHasSuffix(FieldRole, v))
  279. }
  280. // RoleEqualFold applies the EqualFold predicate on the "role" field.
  281. func RoleEqualFold(v string) predicate.Agent {
  282. return predicate.Agent(sql.FieldEqualFold(FieldRole, v))
  283. }
  284. // RoleContainsFold applies the ContainsFold predicate on the "role" field.
  285. func RoleContainsFold(v string) predicate.Agent {
  286. return predicate.Agent(sql.FieldContainsFold(FieldRole, v))
  287. }
  288. // StatusEQ applies the EQ predicate on the "status" field.
  289. func StatusEQ(v int) predicate.Agent {
  290. return predicate.Agent(sql.FieldEQ(FieldStatus, v))
  291. }
  292. // StatusNEQ applies the NEQ predicate on the "status" field.
  293. func StatusNEQ(v int) predicate.Agent {
  294. return predicate.Agent(sql.FieldNEQ(FieldStatus, v))
  295. }
  296. // StatusIn applies the In predicate on the "status" field.
  297. func StatusIn(vs ...int) predicate.Agent {
  298. return predicate.Agent(sql.FieldIn(FieldStatus, vs...))
  299. }
  300. // StatusNotIn applies the NotIn predicate on the "status" field.
  301. func StatusNotIn(vs ...int) predicate.Agent {
  302. return predicate.Agent(sql.FieldNotIn(FieldStatus, vs...))
  303. }
  304. // StatusGT applies the GT predicate on the "status" field.
  305. func StatusGT(v int) predicate.Agent {
  306. return predicate.Agent(sql.FieldGT(FieldStatus, v))
  307. }
  308. // StatusGTE applies the GTE predicate on the "status" field.
  309. func StatusGTE(v int) predicate.Agent {
  310. return predicate.Agent(sql.FieldGTE(FieldStatus, v))
  311. }
  312. // StatusLT applies the LT predicate on the "status" field.
  313. func StatusLT(v int) predicate.Agent {
  314. return predicate.Agent(sql.FieldLT(FieldStatus, v))
  315. }
  316. // StatusLTE applies the LTE predicate on the "status" field.
  317. func StatusLTE(v int) predicate.Agent {
  318. return predicate.Agent(sql.FieldLTE(FieldStatus, v))
  319. }
  320. // StatusIsNil applies the IsNil predicate on the "status" field.
  321. func StatusIsNil() predicate.Agent {
  322. return predicate.Agent(sql.FieldIsNull(FieldStatus))
  323. }
  324. // StatusNotNil applies the NotNil predicate on the "status" field.
  325. func StatusNotNil() predicate.Agent {
  326. return predicate.Agent(sql.FieldNotNull(FieldStatus))
  327. }
  328. // BackgroundEQ applies the EQ predicate on the "background" field.
  329. func BackgroundEQ(v string) predicate.Agent {
  330. return predicate.Agent(sql.FieldEQ(FieldBackground, v))
  331. }
  332. // BackgroundNEQ applies the NEQ predicate on the "background" field.
  333. func BackgroundNEQ(v string) predicate.Agent {
  334. return predicate.Agent(sql.FieldNEQ(FieldBackground, v))
  335. }
  336. // BackgroundIn applies the In predicate on the "background" field.
  337. func BackgroundIn(vs ...string) predicate.Agent {
  338. return predicate.Agent(sql.FieldIn(FieldBackground, vs...))
  339. }
  340. // BackgroundNotIn applies the NotIn predicate on the "background" field.
  341. func BackgroundNotIn(vs ...string) predicate.Agent {
  342. return predicate.Agent(sql.FieldNotIn(FieldBackground, vs...))
  343. }
  344. // BackgroundGT applies the GT predicate on the "background" field.
  345. func BackgroundGT(v string) predicate.Agent {
  346. return predicate.Agent(sql.FieldGT(FieldBackground, v))
  347. }
  348. // BackgroundGTE applies the GTE predicate on the "background" field.
  349. func BackgroundGTE(v string) predicate.Agent {
  350. return predicate.Agent(sql.FieldGTE(FieldBackground, v))
  351. }
  352. // BackgroundLT applies the LT predicate on the "background" field.
  353. func BackgroundLT(v string) predicate.Agent {
  354. return predicate.Agent(sql.FieldLT(FieldBackground, v))
  355. }
  356. // BackgroundLTE applies the LTE predicate on the "background" field.
  357. func BackgroundLTE(v string) predicate.Agent {
  358. return predicate.Agent(sql.FieldLTE(FieldBackground, v))
  359. }
  360. // BackgroundContains applies the Contains predicate on the "background" field.
  361. func BackgroundContains(v string) predicate.Agent {
  362. return predicate.Agent(sql.FieldContains(FieldBackground, v))
  363. }
  364. // BackgroundHasPrefix applies the HasPrefix predicate on the "background" field.
  365. func BackgroundHasPrefix(v string) predicate.Agent {
  366. return predicate.Agent(sql.FieldHasPrefix(FieldBackground, v))
  367. }
  368. // BackgroundHasSuffix applies the HasSuffix predicate on the "background" field.
  369. func BackgroundHasSuffix(v string) predicate.Agent {
  370. return predicate.Agent(sql.FieldHasSuffix(FieldBackground, v))
  371. }
  372. // BackgroundEqualFold applies the EqualFold predicate on the "background" field.
  373. func BackgroundEqualFold(v string) predicate.Agent {
  374. return predicate.Agent(sql.FieldEqualFold(FieldBackground, v))
  375. }
  376. // BackgroundContainsFold applies the ContainsFold predicate on the "background" field.
  377. func BackgroundContainsFold(v string) predicate.Agent {
  378. return predicate.Agent(sql.FieldContainsFold(FieldBackground, v))
  379. }
  380. // ExamplesEQ applies the EQ predicate on the "examples" field.
  381. func ExamplesEQ(v string) predicate.Agent {
  382. return predicate.Agent(sql.FieldEQ(FieldExamples, v))
  383. }
  384. // ExamplesNEQ applies the NEQ predicate on the "examples" field.
  385. func ExamplesNEQ(v string) predicate.Agent {
  386. return predicate.Agent(sql.FieldNEQ(FieldExamples, v))
  387. }
  388. // ExamplesIn applies the In predicate on the "examples" field.
  389. func ExamplesIn(vs ...string) predicate.Agent {
  390. return predicate.Agent(sql.FieldIn(FieldExamples, vs...))
  391. }
  392. // ExamplesNotIn applies the NotIn predicate on the "examples" field.
  393. func ExamplesNotIn(vs ...string) predicate.Agent {
  394. return predicate.Agent(sql.FieldNotIn(FieldExamples, vs...))
  395. }
  396. // ExamplesGT applies the GT predicate on the "examples" field.
  397. func ExamplesGT(v string) predicate.Agent {
  398. return predicate.Agent(sql.FieldGT(FieldExamples, v))
  399. }
  400. // ExamplesGTE applies the GTE predicate on the "examples" field.
  401. func ExamplesGTE(v string) predicate.Agent {
  402. return predicate.Agent(sql.FieldGTE(FieldExamples, v))
  403. }
  404. // ExamplesLT applies the LT predicate on the "examples" field.
  405. func ExamplesLT(v string) predicate.Agent {
  406. return predicate.Agent(sql.FieldLT(FieldExamples, v))
  407. }
  408. // ExamplesLTE applies the LTE predicate on the "examples" field.
  409. func ExamplesLTE(v string) predicate.Agent {
  410. return predicate.Agent(sql.FieldLTE(FieldExamples, v))
  411. }
  412. // ExamplesContains applies the Contains predicate on the "examples" field.
  413. func ExamplesContains(v string) predicate.Agent {
  414. return predicate.Agent(sql.FieldContains(FieldExamples, v))
  415. }
  416. // ExamplesHasPrefix applies the HasPrefix predicate on the "examples" field.
  417. func ExamplesHasPrefix(v string) predicate.Agent {
  418. return predicate.Agent(sql.FieldHasPrefix(FieldExamples, v))
  419. }
  420. // ExamplesHasSuffix applies the HasSuffix predicate on the "examples" field.
  421. func ExamplesHasSuffix(v string) predicate.Agent {
  422. return predicate.Agent(sql.FieldHasSuffix(FieldExamples, v))
  423. }
  424. // ExamplesEqualFold applies the EqualFold predicate on the "examples" field.
  425. func ExamplesEqualFold(v string) predicate.Agent {
  426. return predicate.Agent(sql.FieldEqualFold(FieldExamples, v))
  427. }
  428. // ExamplesContainsFold applies the ContainsFold predicate on the "examples" field.
  429. func ExamplesContainsFold(v string) predicate.Agent {
  430. return predicate.Agent(sql.FieldContainsFold(FieldExamples, v))
  431. }
  432. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  433. func OrganizationIDEQ(v uint64) predicate.Agent {
  434. return predicate.Agent(sql.FieldEQ(FieldOrganizationID, v))
  435. }
  436. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  437. func OrganizationIDNEQ(v uint64) predicate.Agent {
  438. return predicate.Agent(sql.FieldNEQ(FieldOrganizationID, v))
  439. }
  440. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  441. func OrganizationIDIn(vs ...uint64) predicate.Agent {
  442. return predicate.Agent(sql.FieldIn(FieldOrganizationID, vs...))
  443. }
  444. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  445. func OrganizationIDNotIn(vs ...uint64) predicate.Agent {
  446. return predicate.Agent(sql.FieldNotIn(FieldOrganizationID, vs...))
  447. }
  448. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  449. func OrganizationIDGT(v uint64) predicate.Agent {
  450. return predicate.Agent(sql.FieldGT(FieldOrganizationID, v))
  451. }
  452. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  453. func OrganizationIDGTE(v uint64) predicate.Agent {
  454. return predicate.Agent(sql.FieldGTE(FieldOrganizationID, v))
  455. }
  456. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  457. func OrganizationIDLT(v uint64) predicate.Agent {
  458. return predicate.Agent(sql.FieldLT(FieldOrganizationID, v))
  459. }
  460. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  461. func OrganizationIDLTE(v uint64) predicate.Agent {
  462. return predicate.Agent(sql.FieldLTE(FieldOrganizationID, v))
  463. }
  464. // And groups predicates with the AND operator between them.
  465. func And(predicates ...predicate.Agent) predicate.Agent {
  466. return predicate.Agent(sql.AndPredicates(predicates...))
  467. }
  468. // Or groups predicates with the OR operator between them.
  469. func Or(predicates ...predicate.Agent) predicate.Agent {
  470. return predicate.Agent(sql.OrPredicates(predicates...))
  471. }
  472. // Not applies the not operator on the given predicate.
  473. func Not(p predicate.Agent) predicate.Agent {
  474. return predicate.Agent(sql.NotPredicates(p))
  475. }