where.go 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153
  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. // Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
  90. func Model(v string) predicate.Agent {
  91. return predicate.Agent(sql.FieldEQ(FieldModel, v))
  92. }
  93. // APIBase applies equality check predicate on the "api_base" field. It's identical to APIBaseEQ.
  94. func APIBase(v string) predicate.Agent {
  95. return predicate.Agent(sql.FieldEQ(FieldAPIBase, v))
  96. }
  97. // APIKey applies equality check predicate on the "api_key" field. It's identical to APIKeyEQ.
  98. func APIKey(v string) predicate.Agent {
  99. return predicate.Agent(sql.FieldEQ(FieldAPIKey, v))
  100. }
  101. // Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
  102. func Type(v int) predicate.Agent {
  103. return predicate.Agent(sql.FieldEQ(FieldType, v))
  104. }
  105. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  106. func CreatedAtEQ(v time.Time) predicate.Agent {
  107. return predicate.Agent(sql.FieldEQ(FieldCreatedAt, v))
  108. }
  109. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  110. func CreatedAtNEQ(v time.Time) predicate.Agent {
  111. return predicate.Agent(sql.FieldNEQ(FieldCreatedAt, v))
  112. }
  113. // CreatedAtIn applies the In predicate on the "created_at" field.
  114. func CreatedAtIn(vs ...time.Time) predicate.Agent {
  115. return predicate.Agent(sql.FieldIn(FieldCreatedAt, vs...))
  116. }
  117. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  118. func CreatedAtNotIn(vs ...time.Time) predicate.Agent {
  119. return predicate.Agent(sql.FieldNotIn(FieldCreatedAt, vs...))
  120. }
  121. // CreatedAtGT applies the GT predicate on the "created_at" field.
  122. func CreatedAtGT(v time.Time) predicate.Agent {
  123. return predicate.Agent(sql.FieldGT(FieldCreatedAt, v))
  124. }
  125. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  126. func CreatedAtGTE(v time.Time) predicate.Agent {
  127. return predicate.Agent(sql.FieldGTE(FieldCreatedAt, v))
  128. }
  129. // CreatedAtLT applies the LT predicate on the "created_at" field.
  130. func CreatedAtLT(v time.Time) predicate.Agent {
  131. return predicate.Agent(sql.FieldLT(FieldCreatedAt, v))
  132. }
  133. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  134. func CreatedAtLTE(v time.Time) predicate.Agent {
  135. return predicate.Agent(sql.FieldLTE(FieldCreatedAt, v))
  136. }
  137. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  138. func UpdatedAtEQ(v time.Time) predicate.Agent {
  139. return predicate.Agent(sql.FieldEQ(FieldUpdatedAt, v))
  140. }
  141. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  142. func UpdatedAtNEQ(v time.Time) predicate.Agent {
  143. return predicate.Agent(sql.FieldNEQ(FieldUpdatedAt, v))
  144. }
  145. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  146. func UpdatedAtIn(vs ...time.Time) predicate.Agent {
  147. return predicate.Agent(sql.FieldIn(FieldUpdatedAt, vs...))
  148. }
  149. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  150. func UpdatedAtNotIn(vs ...time.Time) predicate.Agent {
  151. return predicate.Agent(sql.FieldNotIn(FieldUpdatedAt, vs...))
  152. }
  153. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  154. func UpdatedAtGT(v time.Time) predicate.Agent {
  155. return predicate.Agent(sql.FieldGT(FieldUpdatedAt, v))
  156. }
  157. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  158. func UpdatedAtGTE(v time.Time) predicate.Agent {
  159. return predicate.Agent(sql.FieldGTE(FieldUpdatedAt, v))
  160. }
  161. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  162. func UpdatedAtLT(v time.Time) predicate.Agent {
  163. return predicate.Agent(sql.FieldLT(FieldUpdatedAt, v))
  164. }
  165. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  166. func UpdatedAtLTE(v time.Time) predicate.Agent {
  167. return predicate.Agent(sql.FieldLTE(FieldUpdatedAt, v))
  168. }
  169. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  170. func DeletedAtEQ(v time.Time) predicate.Agent {
  171. return predicate.Agent(sql.FieldEQ(FieldDeletedAt, v))
  172. }
  173. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  174. func DeletedAtNEQ(v time.Time) predicate.Agent {
  175. return predicate.Agent(sql.FieldNEQ(FieldDeletedAt, v))
  176. }
  177. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  178. func DeletedAtIn(vs ...time.Time) predicate.Agent {
  179. return predicate.Agent(sql.FieldIn(FieldDeletedAt, vs...))
  180. }
  181. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  182. func DeletedAtNotIn(vs ...time.Time) predicate.Agent {
  183. return predicate.Agent(sql.FieldNotIn(FieldDeletedAt, vs...))
  184. }
  185. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  186. func DeletedAtGT(v time.Time) predicate.Agent {
  187. return predicate.Agent(sql.FieldGT(FieldDeletedAt, v))
  188. }
  189. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  190. func DeletedAtGTE(v time.Time) predicate.Agent {
  191. return predicate.Agent(sql.FieldGTE(FieldDeletedAt, v))
  192. }
  193. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  194. func DeletedAtLT(v time.Time) predicate.Agent {
  195. return predicate.Agent(sql.FieldLT(FieldDeletedAt, v))
  196. }
  197. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  198. func DeletedAtLTE(v time.Time) predicate.Agent {
  199. return predicate.Agent(sql.FieldLTE(FieldDeletedAt, v))
  200. }
  201. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  202. func DeletedAtIsNil() predicate.Agent {
  203. return predicate.Agent(sql.FieldIsNull(FieldDeletedAt))
  204. }
  205. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  206. func DeletedAtNotNil() predicate.Agent {
  207. return predicate.Agent(sql.FieldNotNull(FieldDeletedAt))
  208. }
  209. // NameEQ applies the EQ predicate on the "name" field.
  210. func NameEQ(v string) predicate.Agent {
  211. return predicate.Agent(sql.FieldEQ(FieldName, v))
  212. }
  213. // NameNEQ applies the NEQ predicate on the "name" field.
  214. func NameNEQ(v string) predicate.Agent {
  215. return predicate.Agent(sql.FieldNEQ(FieldName, v))
  216. }
  217. // NameIn applies the In predicate on the "name" field.
  218. func NameIn(vs ...string) predicate.Agent {
  219. return predicate.Agent(sql.FieldIn(FieldName, vs...))
  220. }
  221. // NameNotIn applies the NotIn predicate on the "name" field.
  222. func NameNotIn(vs ...string) predicate.Agent {
  223. return predicate.Agent(sql.FieldNotIn(FieldName, vs...))
  224. }
  225. // NameGT applies the GT predicate on the "name" field.
  226. func NameGT(v string) predicate.Agent {
  227. return predicate.Agent(sql.FieldGT(FieldName, v))
  228. }
  229. // NameGTE applies the GTE predicate on the "name" field.
  230. func NameGTE(v string) predicate.Agent {
  231. return predicate.Agent(sql.FieldGTE(FieldName, v))
  232. }
  233. // NameLT applies the LT predicate on the "name" field.
  234. func NameLT(v string) predicate.Agent {
  235. return predicate.Agent(sql.FieldLT(FieldName, v))
  236. }
  237. // NameLTE applies the LTE predicate on the "name" field.
  238. func NameLTE(v string) predicate.Agent {
  239. return predicate.Agent(sql.FieldLTE(FieldName, v))
  240. }
  241. // NameContains applies the Contains predicate on the "name" field.
  242. func NameContains(v string) predicate.Agent {
  243. return predicate.Agent(sql.FieldContains(FieldName, v))
  244. }
  245. // NameHasPrefix applies the HasPrefix predicate on the "name" field.
  246. func NameHasPrefix(v string) predicate.Agent {
  247. return predicate.Agent(sql.FieldHasPrefix(FieldName, v))
  248. }
  249. // NameHasSuffix applies the HasSuffix predicate on the "name" field.
  250. func NameHasSuffix(v string) predicate.Agent {
  251. return predicate.Agent(sql.FieldHasSuffix(FieldName, v))
  252. }
  253. // NameEqualFold applies the EqualFold predicate on the "name" field.
  254. func NameEqualFold(v string) predicate.Agent {
  255. return predicate.Agent(sql.FieldEqualFold(FieldName, v))
  256. }
  257. // NameContainsFold applies the ContainsFold predicate on the "name" field.
  258. func NameContainsFold(v string) predicate.Agent {
  259. return predicate.Agent(sql.FieldContainsFold(FieldName, v))
  260. }
  261. // RoleEQ applies the EQ predicate on the "role" field.
  262. func RoleEQ(v string) predicate.Agent {
  263. return predicate.Agent(sql.FieldEQ(FieldRole, v))
  264. }
  265. // RoleNEQ applies the NEQ predicate on the "role" field.
  266. func RoleNEQ(v string) predicate.Agent {
  267. return predicate.Agent(sql.FieldNEQ(FieldRole, v))
  268. }
  269. // RoleIn applies the In predicate on the "role" field.
  270. func RoleIn(vs ...string) predicate.Agent {
  271. return predicate.Agent(sql.FieldIn(FieldRole, vs...))
  272. }
  273. // RoleNotIn applies the NotIn predicate on the "role" field.
  274. func RoleNotIn(vs ...string) predicate.Agent {
  275. return predicate.Agent(sql.FieldNotIn(FieldRole, vs...))
  276. }
  277. // RoleGT applies the GT predicate on the "role" field.
  278. func RoleGT(v string) predicate.Agent {
  279. return predicate.Agent(sql.FieldGT(FieldRole, v))
  280. }
  281. // RoleGTE applies the GTE predicate on the "role" field.
  282. func RoleGTE(v string) predicate.Agent {
  283. return predicate.Agent(sql.FieldGTE(FieldRole, v))
  284. }
  285. // RoleLT applies the LT predicate on the "role" field.
  286. func RoleLT(v string) predicate.Agent {
  287. return predicate.Agent(sql.FieldLT(FieldRole, v))
  288. }
  289. // RoleLTE applies the LTE predicate on the "role" field.
  290. func RoleLTE(v string) predicate.Agent {
  291. return predicate.Agent(sql.FieldLTE(FieldRole, v))
  292. }
  293. // RoleContains applies the Contains predicate on the "role" field.
  294. func RoleContains(v string) predicate.Agent {
  295. return predicate.Agent(sql.FieldContains(FieldRole, v))
  296. }
  297. // RoleHasPrefix applies the HasPrefix predicate on the "role" field.
  298. func RoleHasPrefix(v string) predicate.Agent {
  299. return predicate.Agent(sql.FieldHasPrefix(FieldRole, v))
  300. }
  301. // RoleHasSuffix applies the HasSuffix predicate on the "role" field.
  302. func RoleHasSuffix(v string) predicate.Agent {
  303. return predicate.Agent(sql.FieldHasSuffix(FieldRole, v))
  304. }
  305. // RoleIsNil applies the IsNil predicate on the "role" field.
  306. func RoleIsNil() predicate.Agent {
  307. return predicate.Agent(sql.FieldIsNull(FieldRole))
  308. }
  309. // RoleNotNil applies the NotNil predicate on the "role" field.
  310. func RoleNotNil() predicate.Agent {
  311. return predicate.Agent(sql.FieldNotNull(FieldRole))
  312. }
  313. // RoleEqualFold applies the EqualFold predicate on the "role" field.
  314. func RoleEqualFold(v string) predicate.Agent {
  315. return predicate.Agent(sql.FieldEqualFold(FieldRole, v))
  316. }
  317. // RoleContainsFold applies the ContainsFold predicate on the "role" field.
  318. func RoleContainsFold(v string) predicate.Agent {
  319. return predicate.Agent(sql.FieldContainsFold(FieldRole, v))
  320. }
  321. // StatusEQ applies the EQ predicate on the "status" field.
  322. func StatusEQ(v int) predicate.Agent {
  323. return predicate.Agent(sql.FieldEQ(FieldStatus, v))
  324. }
  325. // StatusNEQ applies the NEQ predicate on the "status" field.
  326. func StatusNEQ(v int) predicate.Agent {
  327. return predicate.Agent(sql.FieldNEQ(FieldStatus, v))
  328. }
  329. // StatusIn applies the In predicate on the "status" field.
  330. func StatusIn(vs ...int) predicate.Agent {
  331. return predicate.Agent(sql.FieldIn(FieldStatus, vs...))
  332. }
  333. // StatusNotIn applies the NotIn predicate on the "status" field.
  334. func StatusNotIn(vs ...int) predicate.Agent {
  335. return predicate.Agent(sql.FieldNotIn(FieldStatus, vs...))
  336. }
  337. // StatusGT applies the GT predicate on the "status" field.
  338. func StatusGT(v int) predicate.Agent {
  339. return predicate.Agent(sql.FieldGT(FieldStatus, v))
  340. }
  341. // StatusGTE applies the GTE predicate on the "status" field.
  342. func StatusGTE(v int) predicate.Agent {
  343. return predicate.Agent(sql.FieldGTE(FieldStatus, v))
  344. }
  345. // StatusLT applies the LT predicate on the "status" field.
  346. func StatusLT(v int) predicate.Agent {
  347. return predicate.Agent(sql.FieldLT(FieldStatus, v))
  348. }
  349. // StatusLTE applies the LTE predicate on the "status" field.
  350. func StatusLTE(v int) predicate.Agent {
  351. return predicate.Agent(sql.FieldLTE(FieldStatus, v))
  352. }
  353. // StatusIsNil applies the IsNil predicate on the "status" field.
  354. func StatusIsNil() predicate.Agent {
  355. return predicate.Agent(sql.FieldIsNull(FieldStatus))
  356. }
  357. // StatusNotNil applies the NotNil predicate on the "status" field.
  358. func StatusNotNil() predicate.Agent {
  359. return predicate.Agent(sql.FieldNotNull(FieldStatus))
  360. }
  361. // BackgroundEQ applies the EQ predicate on the "background" field.
  362. func BackgroundEQ(v string) predicate.Agent {
  363. return predicate.Agent(sql.FieldEQ(FieldBackground, v))
  364. }
  365. // BackgroundNEQ applies the NEQ predicate on the "background" field.
  366. func BackgroundNEQ(v string) predicate.Agent {
  367. return predicate.Agent(sql.FieldNEQ(FieldBackground, v))
  368. }
  369. // BackgroundIn applies the In predicate on the "background" field.
  370. func BackgroundIn(vs ...string) predicate.Agent {
  371. return predicate.Agent(sql.FieldIn(FieldBackground, vs...))
  372. }
  373. // BackgroundNotIn applies the NotIn predicate on the "background" field.
  374. func BackgroundNotIn(vs ...string) predicate.Agent {
  375. return predicate.Agent(sql.FieldNotIn(FieldBackground, vs...))
  376. }
  377. // BackgroundGT applies the GT predicate on the "background" field.
  378. func BackgroundGT(v string) predicate.Agent {
  379. return predicate.Agent(sql.FieldGT(FieldBackground, v))
  380. }
  381. // BackgroundGTE applies the GTE predicate on the "background" field.
  382. func BackgroundGTE(v string) predicate.Agent {
  383. return predicate.Agent(sql.FieldGTE(FieldBackground, v))
  384. }
  385. // BackgroundLT applies the LT predicate on the "background" field.
  386. func BackgroundLT(v string) predicate.Agent {
  387. return predicate.Agent(sql.FieldLT(FieldBackground, v))
  388. }
  389. // BackgroundLTE applies the LTE predicate on the "background" field.
  390. func BackgroundLTE(v string) predicate.Agent {
  391. return predicate.Agent(sql.FieldLTE(FieldBackground, v))
  392. }
  393. // BackgroundContains applies the Contains predicate on the "background" field.
  394. func BackgroundContains(v string) predicate.Agent {
  395. return predicate.Agent(sql.FieldContains(FieldBackground, v))
  396. }
  397. // BackgroundHasPrefix applies the HasPrefix predicate on the "background" field.
  398. func BackgroundHasPrefix(v string) predicate.Agent {
  399. return predicate.Agent(sql.FieldHasPrefix(FieldBackground, v))
  400. }
  401. // BackgroundHasSuffix applies the HasSuffix predicate on the "background" field.
  402. func BackgroundHasSuffix(v string) predicate.Agent {
  403. return predicate.Agent(sql.FieldHasSuffix(FieldBackground, v))
  404. }
  405. // BackgroundIsNil applies the IsNil predicate on the "background" field.
  406. func BackgroundIsNil() predicate.Agent {
  407. return predicate.Agent(sql.FieldIsNull(FieldBackground))
  408. }
  409. // BackgroundNotNil applies the NotNil predicate on the "background" field.
  410. func BackgroundNotNil() predicate.Agent {
  411. return predicate.Agent(sql.FieldNotNull(FieldBackground))
  412. }
  413. // BackgroundEqualFold applies the EqualFold predicate on the "background" field.
  414. func BackgroundEqualFold(v string) predicate.Agent {
  415. return predicate.Agent(sql.FieldEqualFold(FieldBackground, v))
  416. }
  417. // BackgroundContainsFold applies the ContainsFold predicate on the "background" field.
  418. func BackgroundContainsFold(v string) predicate.Agent {
  419. return predicate.Agent(sql.FieldContainsFold(FieldBackground, v))
  420. }
  421. // ExamplesEQ applies the EQ predicate on the "examples" field.
  422. func ExamplesEQ(v string) predicate.Agent {
  423. return predicate.Agent(sql.FieldEQ(FieldExamples, v))
  424. }
  425. // ExamplesNEQ applies the NEQ predicate on the "examples" field.
  426. func ExamplesNEQ(v string) predicate.Agent {
  427. return predicate.Agent(sql.FieldNEQ(FieldExamples, v))
  428. }
  429. // ExamplesIn applies the In predicate on the "examples" field.
  430. func ExamplesIn(vs ...string) predicate.Agent {
  431. return predicate.Agent(sql.FieldIn(FieldExamples, vs...))
  432. }
  433. // ExamplesNotIn applies the NotIn predicate on the "examples" field.
  434. func ExamplesNotIn(vs ...string) predicate.Agent {
  435. return predicate.Agent(sql.FieldNotIn(FieldExamples, vs...))
  436. }
  437. // ExamplesGT applies the GT predicate on the "examples" field.
  438. func ExamplesGT(v string) predicate.Agent {
  439. return predicate.Agent(sql.FieldGT(FieldExamples, v))
  440. }
  441. // ExamplesGTE applies the GTE predicate on the "examples" field.
  442. func ExamplesGTE(v string) predicate.Agent {
  443. return predicate.Agent(sql.FieldGTE(FieldExamples, v))
  444. }
  445. // ExamplesLT applies the LT predicate on the "examples" field.
  446. func ExamplesLT(v string) predicate.Agent {
  447. return predicate.Agent(sql.FieldLT(FieldExamples, v))
  448. }
  449. // ExamplesLTE applies the LTE predicate on the "examples" field.
  450. func ExamplesLTE(v string) predicate.Agent {
  451. return predicate.Agent(sql.FieldLTE(FieldExamples, v))
  452. }
  453. // ExamplesContains applies the Contains predicate on the "examples" field.
  454. func ExamplesContains(v string) predicate.Agent {
  455. return predicate.Agent(sql.FieldContains(FieldExamples, v))
  456. }
  457. // ExamplesHasPrefix applies the HasPrefix predicate on the "examples" field.
  458. func ExamplesHasPrefix(v string) predicate.Agent {
  459. return predicate.Agent(sql.FieldHasPrefix(FieldExamples, v))
  460. }
  461. // ExamplesHasSuffix applies the HasSuffix predicate on the "examples" field.
  462. func ExamplesHasSuffix(v string) predicate.Agent {
  463. return predicate.Agent(sql.FieldHasSuffix(FieldExamples, v))
  464. }
  465. // ExamplesIsNil applies the IsNil predicate on the "examples" field.
  466. func ExamplesIsNil() predicate.Agent {
  467. return predicate.Agent(sql.FieldIsNull(FieldExamples))
  468. }
  469. // ExamplesNotNil applies the NotNil predicate on the "examples" field.
  470. func ExamplesNotNil() predicate.Agent {
  471. return predicate.Agent(sql.FieldNotNull(FieldExamples))
  472. }
  473. // ExamplesEqualFold applies the EqualFold predicate on the "examples" field.
  474. func ExamplesEqualFold(v string) predicate.Agent {
  475. return predicate.Agent(sql.FieldEqualFold(FieldExamples, v))
  476. }
  477. // ExamplesContainsFold applies the ContainsFold predicate on the "examples" field.
  478. func ExamplesContainsFold(v string) predicate.Agent {
  479. return predicate.Agent(sql.FieldContainsFold(FieldExamples, v))
  480. }
  481. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  482. func OrganizationIDEQ(v uint64) predicate.Agent {
  483. return predicate.Agent(sql.FieldEQ(FieldOrganizationID, v))
  484. }
  485. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  486. func OrganizationIDNEQ(v uint64) predicate.Agent {
  487. return predicate.Agent(sql.FieldNEQ(FieldOrganizationID, v))
  488. }
  489. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  490. func OrganizationIDIn(vs ...uint64) predicate.Agent {
  491. return predicate.Agent(sql.FieldIn(FieldOrganizationID, vs...))
  492. }
  493. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  494. func OrganizationIDNotIn(vs ...uint64) predicate.Agent {
  495. return predicate.Agent(sql.FieldNotIn(FieldOrganizationID, vs...))
  496. }
  497. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  498. func OrganizationIDGT(v uint64) predicate.Agent {
  499. return predicate.Agent(sql.FieldGT(FieldOrganizationID, v))
  500. }
  501. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  502. func OrganizationIDGTE(v uint64) predicate.Agent {
  503. return predicate.Agent(sql.FieldGTE(FieldOrganizationID, v))
  504. }
  505. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  506. func OrganizationIDLT(v uint64) predicate.Agent {
  507. return predicate.Agent(sql.FieldLT(FieldOrganizationID, v))
  508. }
  509. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  510. func OrganizationIDLTE(v uint64) predicate.Agent {
  511. return predicate.Agent(sql.FieldLTE(FieldOrganizationID, v))
  512. }
  513. // DatasetIDEQ applies the EQ predicate on the "dataset_id" field.
  514. func DatasetIDEQ(v string) predicate.Agent {
  515. return predicate.Agent(sql.FieldEQ(FieldDatasetID, v))
  516. }
  517. // DatasetIDNEQ applies the NEQ predicate on the "dataset_id" field.
  518. func DatasetIDNEQ(v string) predicate.Agent {
  519. return predicate.Agent(sql.FieldNEQ(FieldDatasetID, v))
  520. }
  521. // DatasetIDIn applies the In predicate on the "dataset_id" field.
  522. func DatasetIDIn(vs ...string) predicate.Agent {
  523. return predicate.Agent(sql.FieldIn(FieldDatasetID, vs...))
  524. }
  525. // DatasetIDNotIn applies the NotIn predicate on the "dataset_id" field.
  526. func DatasetIDNotIn(vs ...string) predicate.Agent {
  527. return predicate.Agent(sql.FieldNotIn(FieldDatasetID, vs...))
  528. }
  529. // DatasetIDGT applies the GT predicate on the "dataset_id" field.
  530. func DatasetIDGT(v string) predicate.Agent {
  531. return predicate.Agent(sql.FieldGT(FieldDatasetID, v))
  532. }
  533. // DatasetIDGTE applies the GTE predicate on the "dataset_id" field.
  534. func DatasetIDGTE(v string) predicate.Agent {
  535. return predicate.Agent(sql.FieldGTE(FieldDatasetID, v))
  536. }
  537. // DatasetIDLT applies the LT predicate on the "dataset_id" field.
  538. func DatasetIDLT(v string) predicate.Agent {
  539. return predicate.Agent(sql.FieldLT(FieldDatasetID, v))
  540. }
  541. // DatasetIDLTE applies the LTE predicate on the "dataset_id" field.
  542. func DatasetIDLTE(v string) predicate.Agent {
  543. return predicate.Agent(sql.FieldLTE(FieldDatasetID, v))
  544. }
  545. // DatasetIDContains applies the Contains predicate on the "dataset_id" field.
  546. func DatasetIDContains(v string) predicate.Agent {
  547. return predicate.Agent(sql.FieldContains(FieldDatasetID, v))
  548. }
  549. // DatasetIDHasPrefix applies the HasPrefix predicate on the "dataset_id" field.
  550. func DatasetIDHasPrefix(v string) predicate.Agent {
  551. return predicate.Agent(sql.FieldHasPrefix(FieldDatasetID, v))
  552. }
  553. // DatasetIDHasSuffix applies the HasSuffix predicate on the "dataset_id" field.
  554. func DatasetIDHasSuffix(v string) predicate.Agent {
  555. return predicate.Agent(sql.FieldHasSuffix(FieldDatasetID, v))
  556. }
  557. // DatasetIDEqualFold applies the EqualFold predicate on the "dataset_id" field.
  558. func DatasetIDEqualFold(v string) predicate.Agent {
  559. return predicate.Agent(sql.FieldEqualFold(FieldDatasetID, v))
  560. }
  561. // DatasetIDContainsFold applies the ContainsFold predicate on the "dataset_id" field.
  562. func DatasetIDContainsFold(v string) predicate.Agent {
  563. return predicate.Agent(sql.FieldContainsFold(FieldDatasetID, v))
  564. }
  565. // CollectionIDEQ applies the EQ predicate on the "collection_id" field.
  566. func CollectionIDEQ(v string) predicate.Agent {
  567. return predicate.Agent(sql.FieldEQ(FieldCollectionID, v))
  568. }
  569. // CollectionIDNEQ applies the NEQ predicate on the "collection_id" field.
  570. func CollectionIDNEQ(v string) predicate.Agent {
  571. return predicate.Agent(sql.FieldNEQ(FieldCollectionID, v))
  572. }
  573. // CollectionIDIn applies the In predicate on the "collection_id" field.
  574. func CollectionIDIn(vs ...string) predicate.Agent {
  575. return predicate.Agent(sql.FieldIn(FieldCollectionID, vs...))
  576. }
  577. // CollectionIDNotIn applies the NotIn predicate on the "collection_id" field.
  578. func CollectionIDNotIn(vs ...string) predicate.Agent {
  579. return predicate.Agent(sql.FieldNotIn(FieldCollectionID, vs...))
  580. }
  581. // CollectionIDGT applies the GT predicate on the "collection_id" field.
  582. func CollectionIDGT(v string) predicate.Agent {
  583. return predicate.Agent(sql.FieldGT(FieldCollectionID, v))
  584. }
  585. // CollectionIDGTE applies the GTE predicate on the "collection_id" field.
  586. func CollectionIDGTE(v string) predicate.Agent {
  587. return predicate.Agent(sql.FieldGTE(FieldCollectionID, v))
  588. }
  589. // CollectionIDLT applies the LT predicate on the "collection_id" field.
  590. func CollectionIDLT(v string) predicate.Agent {
  591. return predicate.Agent(sql.FieldLT(FieldCollectionID, v))
  592. }
  593. // CollectionIDLTE applies the LTE predicate on the "collection_id" field.
  594. func CollectionIDLTE(v string) predicate.Agent {
  595. return predicate.Agent(sql.FieldLTE(FieldCollectionID, v))
  596. }
  597. // CollectionIDContains applies the Contains predicate on the "collection_id" field.
  598. func CollectionIDContains(v string) predicate.Agent {
  599. return predicate.Agent(sql.FieldContains(FieldCollectionID, v))
  600. }
  601. // CollectionIDHasPrefix applies the HasPrefix predicate on the "collection_id" field.
  602. func CollectionIDHasPrefix(v string) predicate.Agent {
  603. return predicate.Agent(sql.FieldHasPrefix(FieldCollectionID, v))
  604. }
  605. // CollectionIDHasSuffix applies the HasSuffix predicate on the "collection_id" field.
  606. func CollectionIDHasSuffix(v string) predicate.Agent {
  607. return predicate.Agent(sql.FieldHasSuffix(FieldCollectionID, v))
  608. }
  609. // CollectionIDEqualFold applies the EqualFold predicate on the "collection_id" field.
  610. func CollectionIDEqualFold(v string) predicate.Agent {
  611. return predicate.Agent(sql.FieldEqualFold(FieldCollectionID, v))
  612. }
  613. // CollectionIDContainsFold applies the ContainsFold predicate on the "collection_id" field.
  614. func CollectionIDContainsFold(v string) predicate.Agent {
  615. return predicate.Agent(sql.FieldContainsFold(FieldCollectionID, v))
  616. }
  617. // ModelEQ applies the EQ predicate on the "model" field.
  618. func ModelEQ(v string) predicate.Agent {
  619. return predicate.Agent(sql.FieldEQ(FieldModel, v))
  620. }
  621. // ModelNEQ applies the NEQ predicate on the "model" field.
  622. func ModelNEQ(v string) predicate.Agent {
  623. return predicate.Agent(sql.FieldNEQ(FieldModel, v))
  624. }
  625. // ModelIn applies the In predicate on the "model" field.
  626. func ModelIn(vs ...string) predicate.Agent {
  627. return predicate.Agent(sql.FieldIn(FieldModel, vs...))
  628. }
  629. // ModelNotIn applies the NotIn predicate on the "model" field.
  630. func ModelNotIn(vs ...string) predicate.Agent {
  631. return predicate.Agent(sql.FieldNotIn(FieldModel, vs...))
  632. }
  633. // ModelGT applies the GT predicate on the "model" field.
  634. func ModelGT(v string) predicate.Agent {
  635. return predicate.Agent(sql.FieldGT(FieldModel, v))
  636. }
  637. // ModelGTE applies the GTE predicate on the "model" field.
  638. func ModelGTE(v string) predicate.Agent {
  639. return predicate.Agent(sql.FieldGTE(FieldModel, v))
  640. }
  641. // ModelLT applies the LT predicate on the "model" field.
  642. func ModelLT(v string) predicate.Agent {
  643. return predicate.Agent(sql.FieldLT(FieldModel, v))
  644. }
  645. // ModelLTE applies the LTE predicate on the "model" field.
  646. func ModelLTE(v string) predicate.Agent {
  647. return predicate.Agent(sql.FieldLTE(FieldModel, v))
  648. }
  649. // ModelContains applies the Contains predicate on the "model" field.
  650. func ModelContains(v string) predicate.Agent {
  651. return predicate.Agent(sql.FieldContains(FieldModel, v))
  652. }
  653. // ModelHasPrefix applies the HasPrefix predicate on the "model" field.
  654. func ModelHasPrefix(v string) predicate.Agent {
  655. return predicate.Agent(sql.FieldHasPrefix(FieldModel, v))
  656. }
  657. // ModelHasSuffix applies the HasSuffix predicate on the "model" field.
  658. func ModelHasSuffix(v string) predicate.Agent {
  659. return predicate.Agent(sql.FieldHasSuffix(FieldModel, v))
  660. }
  661. // ModelIsNil applies the IsNil predicate on the "model" field.
  662. func ModelIsNil() predicate.Agent {
  663. return predicate.Agent(sql.FieldIsNull(FieldModel))
  664. }
  665. // ModelNotNil applies the NotNil predicate on the "model" field.
  666. func ModelNotNil() predicate.Agent {
  667. return predicate.Agent(sql.FieldNotNull(FieldModel))
  668. }
  669. // ModelEqualFold applies the EqualFold predicate on the "model" field.
  670. func ModelEqualFold(v string) predicate.Agent {
  671. return predicate.Agent(sql.FieldEqualFold(FieldModel, v))
  672. }
  673. // ModelContainsFold applies the ContainsFold predicate on the "model" field.
  674. func ModelContainsFold(v string) predicate.Agent {
  675. return predicate.Agent(sql.FieldContainsFold(FieldModel, v))
  676. }
  677. // APIBaseEQ applies the EQ predicate on the "api_base" field.
  678. func APIBaseEQ(v string) predicate.Agent {
  679. return predicate.Agent(sql.FieldEQ(FieldAPIBase, v))
  680. }
  681. // APIBaseNEQ applies the NEQ predicate on the "api_base" field.
  682. func APIBaseNEQ(v string) predicate.Agent {
  683. return predicate.Agent(sql.FieldNEQ(FieldAPIBase, v))
  684. }
  685. // APIBaseIn applies the In predicate on the "api_base" field.
  686. func APIBaseIn(vs ...string) predicate.Agent {
  687. return predicate.Agent(sql.FieldIn(FieldAPIBase, vs...))
  688. }
  689. // APIBaseNotIn applies the NotIn predicate on the "api_base" field.
  690. func APIBaseNotIn(vs ...string) predicate.Agent {
  691. return predicate.Agent(sql.FieldNotIn(FieldAPIBase, vs...))
  692. }
  693. // APIBaseGT applies the GT predicate on the "api_base" field.
  694. func APIBaseGT(v string) predicate.Agent {
  695. return predicate.Agent(sql.FieldGT(FieldAPIBase, v))
  696. }
  697. // APIBaseGTE applies the GTE predicate on the "api_base" field.
  698. func APIBaseGTE(v string) predicate.Agent {
  699. return predicate.Agent(sql.FieldGTE(FieldAPIBase, v))
  700. }
  701. // APIBaseLT applies the LT predicate on the "api_base" field.
  702. func APIBaseLT(v string) predicate.Agent {
  703. return predicate.Agent(sql.FieldLT(FieldAPIBase, v))
  704. }
  705. // APIBaseLTE applies the LTE predicate on the "api_base" field.
  706. func APIBaseLTE(v string) predicate.Agent {
  707. return predicate.Agent(sql.FieldLTE(FieldAPIBase, v))
  708. }
  709. // APIBaseContains applies the Contains predicate on the "api_base" field.
  710. func APIBaseContains(v string) predicate.Agent {
  711. return predicate.Agent(sql.FieldContains(FieldAPIBase, v))
  712. }
  713. // APIBaseHasPrefix applies the HasPrefix predicate on the "api_base" field.
  714. func APIBaseHasPrefix(v string) predicate.Agent {
  715. return predicate.Agent(sql.FieldHasPrefix(FieldAPIBase, v))
  716. }
  717. // APIBaseHasSuffix applies the HasSuffix predicate on the "api_base" field.
  718. func APIBaseHasSuffix(v string) predicate.Agent {
  719. return predicate.Agent(sql.FieldHasSuffix(FieldAPIBase, v))
  720. }
  721. // APIBaseIsNil applies the IsNil predicate on the "api_base" field.
  722. func APIBaseIsNil() predicate.Agent {
  723. return predicate.Agent(sql.FieldIsNull(FieldAPIBase))
  724. }
  725. // APIBaseNotNil applies the NotNil predicate on the "api_base" field.
  726. func APIBaseNotNil() predicate.Agent {
  727. return predicate.Agent(sql.FieldNotNull(FieldAPIBase))
  728. }
  729. // APIBaseEqualFold applies the EqualFold predicate on the "api_base" field.
  730. func APIBaseEqualFold(v string) predicate.Agent {
  731. return predicate.Agent(sql.FieldEqualFold(FieldAPIBase, v))
  732. }
  733. // APIBaseContainsFold applies the ContainsFold predicate on the "api_base" field.
  734. func APIBaseContainsFold(v string) predicate.Agent {
  735. return predicate.Agent(sql.FieldContainsFold(FieldAPIBase, v))
  736. }
  737. // APIKeyEQ applies the EQ predicate on the "api_key" field.
  738. func APIKeyEQ(v string) predicate.Agent {
  739. return predicate.Agent(sql.FieldEQ(FieldAPIKey, v))
  740. }
  741. // APIKeyNEQ applies the NEQ predicate on the "api_key" field.
  742. func APIKeyNEQ(v string) predicate.Agent {
  743. return predicate.Agent(sql.FieldNEQ(FieldAPIKey, v))
  744. }
  745. // APIKeyIn applies the In predicate on the "api_key" field.
  746. func APIKeyIn(vs ...string) predicate.Agent {
  747. return predicate.Agent(sql.FieldIn(FieldAPIKey, vs...))
  748. }
  749. // APIKeyNotIn applies the NotIn predicate on the "api_key" field.
  750. func APIKeyNotIn(vs ...string) predicate.Agent {
  751. return predicate.Agent(sql.FieldNotIn(FieldAPIKey, vs...))
  752. }
  753. // APIKeyGT applies the GT predicate on the "api_key" field.
  754. func APIKeyGT(v string) predicate.Agent {
  755. return predicate.Agent(sql.FieldGT(FieldAPIKey, v))
  756. }
  757. // APIKeyGTE applies the GTE predicate on the "api_key" field.
  758. func APIKeyGTE(v string) predicate.Agent {
  759. return predicate.Agent(sql.FieldGTE(FieldAPIKey, v))
  760. }
  761. // APIKeyLT applies the LT predicate on the "api_key" field.
  762. func APIKeyLT(v string) predicate.Agent {
  763. return predicate.Agent(sql.FieldLT(FieldAPIKey, v))
  764. }
  765. // APIKeyLTE applies the LTE predicate on the "api_key" field.
  766. func APIKeyLTE(v string) predicate.Agent {
  767. return predicate.Agent(sql.FieldLTE(FieldAPIKey, v))
  768. }
  769. // APIKeyContains applies the Contains predicate on the "api_key" field.
  770. func APIKeyContains(v string) predicate.Agent {
  771. return predicate.Agent(sql.FieldContains(FieldAPIKey, v))
  772. }
  773. // APIKeyHasPrefix applies the HasPrefix predicate on the "api_key" field.
  774. func APIKeyHasPrefix(v string) predicate.Agent {
  775. return predicate.Agent(sql.FieldHasPrefix(FieldAPIKey, v))
  776. }
  777. // APIKeyHasSuffix applies the HasSuffix predicate on the "api_key" field.
  778. func APIKeyHasSuffix(v string) predicate.Agent {
  779. return predicate.Agent(sql.FieldHasSuffix(FieldAPIKey, v))
  780. }
  781. // APIKeyIsNil applies the IsNil predicate on the "api_key" field.
  782. func APIKeyIsNil() predicate.Agent {
  783. return predicate.Agent(sql.FieldIsNull(FieldAPIKey))
  784. }
  785. // APIKeyNotNil applies the NotNil predicate on the "api_key" field.
  786. func APIKeyNotNil() predicate.Agent {
  787. return predicate.Agent(sql.FieldNotNull(FieldAPIKey))
  788. }
  789. // APIKeyEqualFold applies the EqualFold predicate on the "api_key" field.
  790. func APIKeyEqualFold(v string) predicate.Agent {
  791. return predicate.Agent(sql.FieldEqualFold(FieldAPIKey, v))
  792. }
  793. // APIKeyContainsFold applies the ContainsFold predicate on the "api_key" field.
  794. func APIKeyContainsFold(v string) predicate.Agent {
  795. return predicate.Agent(sql.FieldContainsFold(FieldAPIKey, v))
  796. }
  797. // TypeEQ applies the EQ predicate on the "type" field.
  798. func TypeEQ(v int) predicate.Agent {
  799. return predicate.Agent(sql.FieldEQ(FieldType, v))
  800. }
  801. // TypeNEQ applies the NEQ predicate on the "type" field.
  802. func TypeNEQ(v int) predicate.Agent {
  803. return predicate.Agent(sql.FieldNEQ(FieldType, v))
  804. }
  805. // TypeIn applies the In predicate on the "type" field.
  806. func TypeIn(vs ...int) predicate.Agent {
  807. return predicate.Agent(sql.FieldIn(FieldType, vs...))
  808. }
  809. // TypeNotIn applies the NotIn predicate on the "type" field.
  810. func TypeNotIn(vs ...int) predicate.Agent {
  811. return predicate.Agent(sql.FieldNotIn(FieldType, vs...))
  812. }
  813. // TypeGT applies the GT predicate on the "type" field.
  814. func TypeGT(v int) predicate.Agent {
  815. return predicate.Agent(sql.FieldGT(FieldType, v))
  816. }
  817. // TypeGTE applies the GTE predicate on the "type" field.
  818. func TypeGTE(v int) predicate.Agent {
  819. return predicate.Agent(sql.FieldGTE(FieldType, v))
  820. }
  821. // TypeLT applies the LT predicate on the "type" field.
  822. func TypeLT(v int) predicate.Agent {
  823. return predicate.Agent(sql.FieldLT(FieldType, v))
  824. }
  825. // TypeLTE applies the LTE predicate on the "type" field.
  826. func TypeLTE(v int) predicate.Agent {
  827. return predicate.Agent(sql.FieldLTE(FieldType, v))
  828. }
  829. // TypeIsNil applies the IsNil predicate on the "type" field.
  830. func TypeIsNil() predicate.Agent {
  831. return predicate.Agent(sql.FieldIsNull(FieldType))
  832. }
  833. // TypeNotNil applies the NotNil predicate on the "type" field.
  834. func TypeNotNil() predicate.Agent {
  835. return predicate.Agent(sql.FieldNotNull(FieldType))
  836. }
  837. // HasWxAgent applies the HasEdge predicate on the "wx_agent" edge.
  838. func HasWxAgent() predicate.Agent {
  839. return predicate.Agent(func(s *sql.Selector) {
  840. step := sqlgraph.NewStep(
  841. sqlgraph.From(Table, FieldID),
  842. sqlgraph.Edge(sqlgraph.O2M, false, WxAgentTable, WxAgentColumn),
  843. )
  844. sqlgraph.HasNeighbors(s, step)
  845. })
  846. }
  847. // HasWxAgentWith applies the HasEdge predicate on the "wx_agent" edge with a given conditions (other predicates).
  848. func HasWxAgentWith(preds ...predicate.Wx) predicate.Agent {
  849. return predicate.Agent(func(s *sql.Selector) {
  850. step := newWxAgentStep()
  851. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  852. for _, p := range preds {
  853. p(s)
  854. }
  855. })
  856. })
  857. }
  858. // HasTokenAgent applies the HasEdge predicate on the "token_agent" edge.
  859. func HasTokenAgent() predicate.Agent {
  860. return predicate.Agent(func(s *sql.Selector) {
  861. step := sqlgraph.NewStep(
  862. sqlgraph.From(Table, FieldID),
  863. sqlgraph.Edge(sqlgraph.O2M, false, TokenAgentTable, TokenAgentColumn),
  864. )
  865. sqlgraph.HasNeighbors(s, step)
  866. })
  867. }
  868. // HasTokenAgentWith applies the HasEdge predicate on the "token_agent" edge with a given conditions (other predicates).
  869. func HasTokenAgentWith(preds ...predicate.Token) predicate.Agent {
  870. return predicate.Agent(func(s *sql.Selector) {
  871. step := newTokenAgentStep()
  872. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  873. for _, p := range preds {
  874. p(s)
  875. }
  876. })
  877. })
  878. }
  879. // HasWaAgent applies the HasEdge predicate on the "wa_agent" edge.
  880. func HasWaAgent() predicate.Agent {
  881. return predicate.Agent(func(s *sql.Selector) {
  882. step := sqlgraph.NewStep(
  883. sqlgraph.From(Table, FieldID),
  884. sqlgraph.Edge(sqlgraph.O2M, false, WaAgentTable, WaAgentColumn),
  885. )
  886. sqlgraph.HasNeighbors(s, step)
  887. })
  888. }
  889. // HasWaAgentWith applies the HasEdge predicate on the "wa_agent" edge with a given conditions (other predicates).
  890. func HasWaAgentWith(preds ...predicate.Whatsapp) predicate.Agent {
  891. return predicate.Agent(func(s *sql.Selector) {
  892. step := newWaAgentStep()
  893. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  894. for _, p := range preds {
  895. p(s)
  896. }
  897. })
  898. })
  899. }
  900. // HasKeyAgent applies the HasEdge predicate on the "key_agent" edge.
  901. func HasKeyAgent() predicate.Agent {
  902. return predicate.Agent(func(s *sql.Selector) {
  903. step := sqlgraph.NewStep(
  904. sqlgraph.From(Table, FieldID),
  905. sqlgraph.Edge(sqlgraph.O2M, false, KeyAgentTable, KeyAgentColumn),
  906. )
  907. sqlgraph.HasNeighbors(s, step)
  908. })
  909. }
  910. // HasKeyAgentWith applies the HasEdge predicate on the "key_agent" edge with a given conditions (other predicates).
  911. func HasKeyAgentWith(preds ...predicate.ApiKey) predicate.Agent {
  912. return predicate.Agent(func(s *sql.Selector) {
  913. step := newKeyAgentStep()
  914. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  915. for _, p := range preds {
  916. p(s)
  917. }
  918. })
  919. })
  920. }
  921. // And groups predicates with the AND operator between them.
  922. func And(predicates ...predicate.Agent) predicate.Agent {
  923. return predicate.Agent(sql.AndPredicates(predicates...))
  924. }
  925. // Or groups predicates with the OR operator between them.
  926. func Or(predicates ...predicate.Agent) predicate.Agent {
  927. return predicate.Agent(sql.OrPredicates(predicates...))
  928. }
  929. // Not applies the not operator on the given predicate.
  930. func Not(p predicate.Agent) predicate.Agent {
  931. return predicate.Agent(sql.NotPredicates(p))
  932. }