where.go 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. // Code generated by ent, DO NOT EDIT.
  2. package token
  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.Token {
  10. return predicate.Token(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id uint64) predicate.Token {
  14. return predicate.Token(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id uint64) predicate.Token {
  18. return predicate.Token(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...uint64) predicate.Token {
  22. return predicate.Token(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...uint64) predicate.Token {
  26. return predicate.Token(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id uint64) predicate.Token {
  30. return predicate.Token(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id uint64) predicate.Token {
  34. return predicate.Token(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id uint64) predicate.Token {
  38. return predicate.Token(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id uint64) predicate.Token {
  42. return predicate.Token(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.Token {
  46. return predicate.Token(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.Token {
  50. return predicate.Token(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.Token {
  54. return predicate.Token(sql.FieldEQ(FieldDeletedAt, v))
  55. }
  56. // ExpireAt applies equality check predicate on the "expire_at" field. It's identical to ExpireAtEQ.
  57. func ExpireAt(v time.Time) predicate.Token {
  58. return predicate.Token(sql.FieldEQ(FieldExpireAt, v))
  59. }
  60. // Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
  61. func Token(v string) predicate.Token {
  62. return predicate.Token(sql.FieldEQ(FieldToken, v))
  63. }
  64. // MAC applies equality check predicate on the "mac" field. It's identical to MACEQ.
  65. func MAC(v string) predicate.Token {
  66. return predicate.Token(sql.FieldEQ(FieldMAC, v))
  67. }
  68. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  69. func OrganizationID(v uint64) predicate.Token {
  70. return predicate.Token(sql.FieldEQ(FieldOrganizationID, v))
  71. }
  72. // AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
  73. func AgentID(v uint64) predicate.Token {
  74. return predicate.Token(sql.FieldEQ(FieldAgentID, v))
  75. }
  76. // CustomAgentBase applies equality check predicate on the "custom_agent_base" field. It's identical to CustomAgentBaseEQ.
  77. func CustomAgentBase(v string) predicate.Token {
  78. return predicate.Token(sql.FieldEQ(FieldCustomAgentBase, v))
  79. }
  80. // CustomAgentKey applies equality check predicate on the "custom_agent_key" field. It's identical to CustomAgentKeyEQ.
  81. func CustomAgentKey(v string) predicate.Token {
  82. return predicate.Token(sql.FieldEQ(FieldCustomAgentKey, v))
  83. }
  84. // OpenaiBase applies equality check predicate on the "openai_base" field. It's identical to OpenaiBaseEQ.
  85. func OpenaiBase(v string) predicate.Token {
  86. return predicate.Token(sql.FieldEQ(FieldOpenaiBase, v))
  87. }
  88. // OpenaiKey applies equality check predicate on the "openai_key" field. It's identical to OpenaiKeyEQ.
  89. func OpenaiKey(v string) predicate.Token {
  90. return predicate.Token(sql.FieldEQ(FieldOpenaiKey, v))
  91. }
  92. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  93. func CreatedAtEQ(v time.Time) predicate.Token {
  94. return predicate.Token(sql.FieldEQ(FieldCreatedAt, v))
  95. }
  96. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  97. func CreatedAtNEQ(v time.Time) predicate.Token {
  98. return predicate.Token(sql.FieldNEQ(FieldCreatedAt, v))
  99. }
  100. // CreatedAtIn applies the In predicate on the "created_at" field.
  101. func CreatedAtIn(vs ...time.Time) predicate.Token {
  102. return predicate.Token(sql.FieldIn(FieldCreatedAt, vs...))
  103. }
  104. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  105. func CreatedAtNotIn(vs ...time.Time) predicate.Token {
  106. return predicate.Token(sql.FieldNotIn(FieldCreatedAt, vs...))
  107. }
  108. // CreatedAtGT applies the GT predicate on the "created_at" field.
  109. func CreatedAtGT(v time.Time) predicate.Token {
  110. return predicate.Token(sql.FieldGT(FieldCreatedAt, v))
  111. }
  112. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  113. func CreatedAtGTE(v time.Time) predicate.Token {
  114. return predicate.Token(sql.FieldGTE(FieldCreatedAt, v))
  115. }
  116. // CreatedAtLT applies the LT predicate on the "created_at" field.
  117. func CreatedAtLT(v time.Time) predicate.Token {
  118. return predicate.Token(sql.FieldLT(FieldCreatedAt, v))
  119. }
  120. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  121. func CreatedAtLTE(v time.Time) predicate.Token {
  122. return predicate.Token(sql.FieldLTE(FieldCreatedAt, v))
  123. }
  124. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  125. func UpdatedAtEQ(v time.Time) predicate.Token {
  126. return predicate.Token(sql.FieldEQ(FieldUpdatedAt, v))
  127. }
  128. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  129. func UpdatedAtNEQ(v time.Time) predicate.Token {
  130. return predicate.Token(sql.FieldNEQ(FieldUpdatedAt, v))
  131. }
  132. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  133. func UpdatedAtIn(vs ...time.Time) predicate.Token {
  134. return predicate.Token(sql.FieldIn(FieldUpdatedAt, vs...))
  135. }
  136. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  137. func UpdatedAtNotIn(vs ...time.Time) predicate.Token {
  138. return predicate.Token(sql.FieldNotIn(FieldUpdatedAt, vs...))
  139. }
  140. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  141. func UpdatedAtGT(v time.Time) predicate.Token {
  142. return predicate.Token(sql.FieldGT(FieldUpdatedAt, v))
  143. }
  144. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  145. func UpdatedAtGTE(v time.Time) predicate.Token {
  146. return predicate.Token(sql.FieldGTE(FieldUpdatedAt, v))
  147. }
  148. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  149. func UpdatedAtLT(v time.Time) predicate.Token {
  150. return predicate.Token(sql.FieldLT(FieldUpdatedAt, v))
  151. }
  152. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  153. func UpdatedAtLTE(v time.Time) predicate.Token {
  154. return predicate.Token(sql.FieldLTE(FieldUpdatedAt, v))
  155. }
  156. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  157. func DeletedAtEQ(v time.Time) predicate.Token {
  158. return predicate.Token(sql.FieldEQ(FieldDeletedAt, v))
  159. }
  160. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  161. func DeletedAtNEQ(v time.Time) predicate.Token {
  162. return predicate.Token(sql.FieldNEQ(FieldDeletedAt, v))
  163. }
  164. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  165. func DeletedAtIn(vs ...time.Time) predicate.Token {
  166. return predicate.Token(sql.FieldIn(FieldDeletedAt, vs...))
  167. }
  168. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  169. func DeletedAtNotIn(vs ...time.Time) predicate.Token {
  170. return predicate.Token(sql.FieldNotIn(FieldDeletedAt, vs...))
  171. }
  172. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  173. func DeletedAtGT(v time.Time) predicate.Token {
  174. return predicate.Token(sql.FieldGT(FieldDeletedAt, v))
  175. }
  176. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  177. func DeletedAtGTE(v time.Time) predicate.Token {
  178. return predicate.Token(sql.FieldGTE(FieldDeletedAt, v))
  179. }
  180. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  181. func DeletedAtLT(v time.Time) predicate.Token {
  182. return predicate.Token(sql.FieldLT(FieldDeletedAt, v))
  183. }
  184. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  185. func DeletedAtLTE(v time.Time) predicate.Token {
  186. return predicate.Token(sql.FieldLTE(FieldDeletedAt, v))
  187. }
  188. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  189. func DeletedAtIsNil() predicate.Token {
  190. return predicate.Token(sql.FieldIsNull(FieldDeletedAt))
  191. }
  192. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  193. func DeletedAtNotNil() predicate.Token {
  194. return predicate.Token(sql.FieldNotNull(FieldDeletedAt))
  195. }
  196. // ExpireAtEQ applies the EQ predicate on the "expire_at" field.
  197. func ExpireAtEQ(v time.Time) predicate.Token {
  198. return predicate.Token(sql.FieldEQ(FieldExpireAt, v))
  199. }
  200. // ExpireAtNEQ applies the NEQ predicate on the "expire_at" field.
  201. func ExpireAtNEQ(v time.Time) predicate.Token {
  202. return predicate.Token(sql.FieldNEQ(FieldExpireAt, v))
  203. }
  204. // ExpireAtIn applies the In predicate on the "expire_at" field.
  205. func ExpireAtIn(vs ...time.Time) predicate.Token {
  206. return predicate.Token(sql.FieldIn(FieldExpireAt, vs...))
  207. }
  208. // ExpireAtNotIn applies the NotIn predicate on the "expire_at" field.
  209. func ExpireAtNotIn(vs ...time.Time) predicate.Token {
  210. return predicate.Token(sql.FieldNotIn(FieldExpireAt, vs...))
  211. }
  212. // ExpireAtGT applies the GT predicate on the "expire_at" field.
  213. func ExpireAtGT(v time.Time) predicate.Token {
  214. return predicate.Token(sql.FieldGT(FieldExpireAt, v))
  215. }
  216. // ExpireAtGTE applies the GTE predicate on the "expire_at" field.
  217. func ExpireAtGTE(v time.Time) predicate.Token {
  218. return predicate.Token(sql.FieldGTE(FieldExpireAt, v))
  219. }
  220. // ExpireAtLT applies the LT predicate on the "expire_at" field.
  221. func ExpireAtLT(v time.Time) predicate.Token {
  222. return predicate.Token(sql.FieldLT(FieldExpireAt, v))
  223. }
  224. // ExpireAtLTE applies the LTE predicate on the "expire_at" field.
  225. func ExpireAtLTE(v time.Time) predicate.Token {
  226. return predicate.Token(sql.FieldLTE(FieldExpireAt, v))
  227. }
  228. // ExpireAtIsNil applies the IsNil predicate on the "expire_at" field.
  229. func ExpireAtIsNil() predicate.Token {
  230. return predicate.Token(sql.FieldIsNull(FieldExpireAt))
  231. }
  232. // ExpireAtNotNil applies the NotNil predicate on the "expire_at" field.
  233. func ExpireAtNotNil() predicate.Token {
  234. return predicate.Token(sql.FieldNotNull(FieldExpireAt))
  235. }
  236. // TokenEQ applies the EQ predicate on the "token" field.
  237. func TokenEQ(v string) predicate.Token {
  238. return predicate.Token(sql.FieldEQ(FieldToken, v))
  239. }
  240. // TokenNEQ applies the NEQ predicate on the "token" field.
  241. func TokenNEQ(v string) predicate.Token {
  242. return predicate.Token(sql.FieldNEQ(FieldToken, v))
  243. }
  244. // TokenIn applies the In predicate on the "token" field.
  245. func TokenIn(vs ...string) predicate.Token {
  246. return predicate.Token(sql.FieldIn(FieldToken, vs...))
  247. }
  248. // TokenNotIn applies the NotIn predicate on the "token" field.
  249. func TokenNotIn(vs ...string) predicate.Token {
  250. return predicate.Token(sql.FieldNotIn(FieldToken, vs...))
  251. }
  252. // TokenGT applies the GT predicate on the "token" field.
  253. func TokenGT(v string) predicate.Token {
  254. return predicate.Token(sql.FieldGT(FieldToken, v))
  255. }
  256. // TokenGTE applies the GTE predicate on the "token" field.
  257. func TokenGTE(v string) predicate.Token {
  258. return predicate.Token(sql.FieldGTE(FieldToken, v))
  259. }
  260. // TokenLT applies the LT predicate on the "token" field.
  261. func TokenLT(v string) predicate.Token {
  262. return predicate.Token(sql.FieldLT(FieldToken, v))
  263. }
  264. // TokenLTE applies the LTE predicate on the "token" field.
  265. func TokenLTE(v string) predicate.Token {
  266. return predicate.Token(sql.FieldLTE(FieldToken, v))
  267. }
  268. // TokenContains applies the Contains predicate on the "token" field.
  269. func TokenContains(v string) predicate.Token {
  270. return predicate.Token(sql.FieldContains(FieldToken, v))
  271. }
  272. // TokenHasPrefix applies the HasPrefix predicate on the "token" field.
  273. func TokenHasPrefix(v string) predicate.Token {
  274. return predicate.Token(sql.FieldHasPrefix(FieldToken, v))
  275. }
  276. // TokenHasSuffix applies the HasSuffix predicate on the "token" field.
  277. func TokenHasSuffix(v string) predicate.Token {
  278. return predicate.Token(sql.FieldHasSuffix(FieldToken, v))
  279. }
  280. // TokenIsNil applies the IsNil predicate on the "token" field.
  281. func TokenIsNil() predicate.Token {
  282. return predicate.Token(sql.FieldIsNull(FieldToken))
  283. }
  284. // TokenNotNil applies the NotNil predicate on the "token" field.
  285. func TokenNotNil() predicate.Token {
  286. return predicate.Token(sql.FieldNotNull(FieldToken))
  287. }
  288. // TokenEqualFold applies the EqualFold predicate on the "token" field.
  289. func TokenEqualFold(v string) predicate.Token {
  290. return predicate.Token(sql.FieldEqualFold(FieldToken, v))
  291. }
  292. // TokenContainsFold applies the ContainsFold predicate on the "token" field.
  293. func TokenContainsFold(v string) predicate.Token {
  294. return predicate.Token(sql.FieldContainsFold(FieldToken, v))
  295. }
  296. // MACEQ applies the EQ predicate on the "mac" field.
  297. func MACEQ(v string) predicate.Token {
  298. return predicate.Token(sql.FieldEQ(FieldMAC, v))
  299. }
  300. // MACNEQ applies the NEQ predicate on the "mac" field.
  301. func MACNEQ(v string) predicate.Token {
  302. return predicate.Token(sql.FieldNEQ(FieldMAC, v))
  303. }
  304. // MACIn applies the In predicate on the "mac" field.
  305. func MACIn(vs ...string) predicate.Token {
  306. return predicate.Token(sql.FieldIn(FieldMAC, vs...))
  307. }
  308. // MACNotIn applies the NotIn predicate on the "mac" field.
  309. func MACNotIn(vs ...string) predicate.Token {
  310. return predicate.Token(sql.FieldNotIn(FieldMAC, vs...))
  311. }
  312. // MACGT applies the GT predicate on the "mac" field.
  313. func MACGT(v string) predicate.Token {
  314. return predicate.Token(sql.FieldGT(FieldMAC, v))
  315. }
  316. // MACGTE applies the GTE predicate on the "mac" field.
  317. func MACGTE(v string) predicate.Token {
  318. return predicate.Token(sql.FieldGTE(FieldMAC, v))
  319. }
  320. // MACLT applies the LT predicate on the "mac" field.
  321. func MACLT(v string) predicate.Token {
  322. return predicate.Token(sql.FieldLT(FieldMAC, v))
  323. }
  324. // MACLTE applies the LTE predicate on the "mac" field.
  325. func MACLTE(v string) predicate.Token {
  326. return predicate.Token(sql.FieldLTE(FieldMAC, v))
  327. }
  328. // MACContains applies the Contains predicate on the "mac" field.
  329. func MACContains(v string) predicate.Token {
  330. return predicate.Token(sql.FieldContains(FieldMAC, v))
  331. }
  332. // MACHasPrefix applies the HasPrefix predicate on the "mac" field.
  333. func MACHasPrefix(v string) predicate.Token {
  334. return predicate.Token(sql.FieldHasPrefix(FieldMAC, v))
  335. }
  336. // MACHasSuffix applies the HasSuffix predicate on the "mac" field.
  337. func MACHasSuffix(v string) predicate.Token {
  338. return predicate.Token(sql.FieldHasSuffix(FieldMAC, v))
  339. }
  340. // MACEqualFold applies the EqualFold predicate on the "mac" field.
  341. func MACEqualFold(v string) predicate.Token {
  342. return predicate.Token(sql.FieldEqualFold(FieldMAC, v))
  343. }
  344. // MACContainsFold applies the ContainsFold predicate on the "mac" field.
  345. func MACContainsFold(v string) predicate.Token {
  346. return predicate.Token(sql.FieldContainsFold(FieldMAC, v))
  347. }
  348. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  349. func OrganizationIDEQ(v uint64) predicate.Token {
  350. return predicate.Token(sql.FieldEQ(FieldOrganizationID, v))
  351. }
  352. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  353. func OrganizationIDNEQ(v uint64) predicate.Token {
  354. return predicate.Token(sql.FieldNEQ(FieldOrganizationID, v))
  355. }
  356. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  357. func OrganizationIDIn(vs ...uint64) predicate.Token {
  358. return predicate.Token(sql.FieldIn(FieldOrganizationID, vs...))
  359. }
  360. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  361. func OrganizationIDNotIn(vs ...uint64) predicate.Token {
  362. return predicate.Token(sql.FieldNotIn(FieldOrganizationID, vs...))
  363. }
  364. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  365. func OrganizationIDGT(v uint64) predicate.Token {
  366. return predicate.Token(sql.FieldGT(FieldOrganizationID, v))
  367. }
  368. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  369. func OrganizationIDGTE(v uint64) predicate.Token {
  370. return predicate.Token(sql.FieldGTE(FieldOrganizationID, v))
  371. }
  372. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  373. func OrganizationIDLT(v uint64) predicate.Token {
  374. return predicate.Token(sql.FieldLT(FieldOrganizationID, v))
  375. }
  376. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  377. func OrganizationIDLTE(v uint64) predicate.Token {
  378. return predicate.Token(sql.FieldLTE(FieldOrganizationID, v))
  379. }
  380. // AgentIDEQ applies the EQ predicate on the "agent_id" field.
  381. func AgentIDEQ(v uint64) predicate.Token {
  382. return predicate.Token(sql.FieldEQ(FieldAgentID, v))
  383. }
  384. // AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
  385. func AgentIDNEQ(v uint64) predicate.Token {
  386. return predicate.Token(sql.FieldNEQ(FieldAgentID, v))
  387. }
  388. // AgentIDIn applies the In predicate on the "agent_id" field.
  389. func AgentIDIn(vs ...uint64) predicate.Token {
  390. return predicate.Token(sql.FieldIn(FieldAgentID, vs...))
  391. }
  392. // AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
  393. func AgentIDNotIn(vs ...uint64) predicate.Token {
  394. return predicate.Token(sql.FieldNotIn(FieldAgentID, vs...))
  395. }
  396. // AgentIDGT applies the GT predicate on the "agent_id" field.
  397. func AgentIDGT(v uint64) predicate.Token {
  398. return predicate.Token(sql.FieldGT(FieldAgentID, v))
  399. }
  400. // AgentIDGTE applies the GTE predicate on the "agent_id" field.
  401. func AgentIDGTE(v uint64) predicate.Token {
  402. return predicate.Token(sql.FieldGTE(FieldAgentID, v))
  403. }
  404. // AgentIDLT applies the LT predicate on the "agent_id" field.
  405. func AgentIDLT(v uint64) predicate.Token {
  406. return predicate.Token(sql.FieldLT(FieldAgentID, v))
  407. }
  408. // AgentIDLTE applies the LTE predicate on the "agent_id" field.
  409. func AgentIDLTE(v uint64) predicate.Token {
  410. return predicate.Token(sql.FieldLTE(FieldAgentID, v))
  411. }
  412. // CustomAgentBaseEQ applies the EQ predicate on the "custom_agent_base" field.
  413. func CustomAgentBaseEQ(v string) predicate.Token {
  414. return predicate.Token(sql.FieldEQ(FieldCustomAgentBase, v))
  415. }
  416. // CustomAgentBaseNEQ applies the NEQ predicate on the "custom_agent_base" field.
  417. func CustomAgentBaseNEQ(v string) predicate.Token {
  418. return predicate.Token(sql.FieldNEQ(FieldCustomAgentBase, v))
  419. }
  420. // CustomAgentBaseIn applies the In predicate on the "custom_agent_base" field.
  421. func CustomAgentBaseIn(vs ...string) predicate.Token {
  422. return predicate.Token(sql.FieldIn(FieldCustomAgentBase, vs...))
  423. }
  424. // CustomAgentBaseNotIn applies the NotIn predicate on the "custom_agent_base" field.
  425. func CustomAgentBaseNotIn(vs ...string) predicate.Token {
  426. return predicate.Token(sql.FieldNotIn(FieldCustomAgentBase, vs...))
  427. }
  428. // CustomAgentBaseGT applies the GT predicate on the "custom_agent_base" field.
  429. func CustomAgentBaseGT(v string) predicate.Token {
  430. return predicate.Token(sql.FieldGT(FieldCustomAgentBase, v))
  431. }
  432. // CustomAgentBaseGTE applies the GTE predicate on the "custom_agent_base" field.
  433. func CustomAgentBaseGTE(v string) predicate.Token {
  434. return predicate.Token(sql.FieldGTE(FieldCustomAgentBase, v))
  435. }
  436. // CustomAgentBaseLT applies the LT predicate on the "custom_agent_base" field.
  437. func CustomAgentBaseLT(v string) predicate.Token {
  438. return predicate.Token(sql.FieldLT(FieldCustomAgentBase, v))
  439. }
  440. // CustomAgentBaseLTE applies the LTE predicate on the "custom_agent_base" field.
  441. func CustomAgentBaseLTE(v string) predicate.Token {
  442. return predicate.Token(sql.FieldLTE(FieldCustomAgentBase, v))
  443. }
  444. // CustomAgentBaseContains applies the Contains predicate on the "custom_agent_base" field.
  445. func CustomAgentBaseContains(v string) predicate.Token {
  446. return predicate.Token(sql.FieldContains(FieldCustomAgentBase, v))
  447. }
  448. // CustomAgentBaseHasPrefix applies the HasPrefix predicate on the "custom_agent_base" field.
  449. func CustomAgentBaseHasPrefix(v string) predicate.Token {
  450. return predicate.Token(sql.FieldHasPrefix(FieldCustomAgentBase, v))
  451. }
  452. // CustomAgentBaseHasSuffix applies the HasSuffix predicate on the "custom_agent_base" field.
  453. func CustomAgentBaseHasSuffix(v string) predicate.Token {
  454. return predicate.Token(sql.FieldHasSuffix(FieldCustomAgentBase, v))
  455. }
  456. // CustomAgentBaseIsNil applies the IsNil predicate on the "custom_agent_base" field.
  457. func CustomAgentBaseIsNil() predicate.Token {
  458. return predicate.Token(sql.FieldIsNull(FieldCustomAgentBase))
  459. }
  460. // CustomAgentBaseNotNil applies the NotNil predicate on the "custom_agent_base" field.
  461. func CustomAgentBaseNotNil() predicate.Token {
  462. return predicate.Token(sql.FieldNotNull(FieldCustomAgentBase))
  463. }
  464. // CustomAgentBaseEqualFold applies the EqualFold predicate on the "custom_agent_base" field.
  465. func CustomAgentBaseEqualFold(v string) predicate.Token {
  466. return predicate.Token(sql.FieldEqualFold(FieldCustomAgentBase, v))
  467. }
  468. // CustomAgentBaseContainsFold applies the ContainsFold predicate on the "custom_agent_base" field.
  469. func CustomAgentBaseContainsFold(v string) predicate.Token {
  470. return predicate.Token(sql.FieldContainsFold(FieldCustomAgentBase, v))
  471. }
  472. // CustomAgentKeyEQ applies the EQ predicate on the "custom_agent_key" field.
  473. func CustomAgentKeyEQ(v string) predicate.Token {
  474. return predicate.Token(sql.FieldEQ(FieldCustomAgentKey, v))
  475. }
  476. // CustomAgentKeyNEQ applies the NEQ predicate on the "custom_agent_key" field.
  477. func CustomAgentKeyNEQ(v string) predicate.Token {
  478. return predicate.Token(sql.FieldNEQ(FieldCustomAgentKey, v))
  479. }
  480. // CustomAgentKeyIn applies the In predicate on the "custom_agent_key" field.
  481. func CustomAgentKeyIn(vs ...string) predicate.Token {
  482. return predicate.Token(sql.FieldIn(FieldCustomAgentKey, vs...))
  483. }
  484. // CustomAgentKeyNotIn applies the NotIn predicate on the "custom_agent_key" field.
  485. func CustomAgentKeyNotIn(vs ...string) predicate.Token {
  486. return predicate.Token(sql.FieldNotIn(FieldCustomAgentKey, vs...))
  487. }
  488. // CustomAgentKeyGT applies the GT predicate on the "custom_agent_key" field.
  489. func CustomAgentKeyGT(v string) predicate.Token {
  490. return predicate.Token(sql.FieldGT(FieldCustomAgentKey, v))
  491. }
  492. // CustomAgentKeyGTE applies the GTE predicate on the "custom_agent_key" field.
  493. func CustomAgentKeyGTE(v string) predicate.Token {
  494. return predicate.Token(sql.FieldGTE(FieldCustomAgentKey, v))
  495. }
  496. // CustomAgentKeyLT applies the LT predicate on the "custom_agent_key" field.
  497. func CustomAgentKeyLT(v string) predicate.Token {
  498. return predicate.Token(sql.FieldLT(FieldCustomAgentKey, v))
  499. }
  500. // CustomAgentKeyLTE applies the LTE predicate on the "custom_agent_key" field.
  501. func CustomAgentKeyLTE(v string) predicate.Token {
  502. return predicate.Token(sql.FieldLTE(FieldCustomAgentKey, v))
  503. }
  504. // CustomAgentKeyContains applies the Contains predicate on the "custom_agent_key" field.
  505. func CustomAgentKeyContains(v string) predicate.Token {
  506. return predicate.Token(sql.FieldContains(FieldCustomAgentKey, v))
  507. }
  508. // CustomAgentKeyHasPrefix applies the HasPrefix predicate on the "custom_agent_key" field.
  509. func CustomAgentKeyHasPrefix(v string) predicate.Token {
  510. return predicate.Token(sql.FieldHasPrefix(FieldCustomAgentKey, v))
  511. }
  512. // CustomAgentKeyHasSuffix applies the HasSuffix predicate on the "custom_agent_key" field.
  513. func CustomAgentKeyHasSuffix(v string) predicate.Token {
  514. return predicate.Token(sql.FieldHasSuffix(FieldCustomAgentKey, v))
  515. }
  516. // CustomAgentKeyIsNil applies the IsNil predicate on the "custom_agent_key" field.
  517. func CustomAgentKeyIsNil() predicate.Token {
  518. return predicate.Token(sql.FieldIsNull(FieldCustomAgentKey))
  519. }
  520. // CustomAgentKeyNotNil applies the NotNil predicate on the "custom_agent_key" field.
  521. func CustomAgentKeyNotNil() predicate.Token {
  522. return predicate.Token(sql.FieldNotNull(FieldCustomAgentKey))
  523. }
  524. // CustomAgentKeyEqualFold applies the EqualFold predicate on the "custom_agent_key" field.
  525. func CustomAgentKeyEqualFold(v string) predicate.Token {
  526. return predicate.Token(sql.FieldEqualFold(FieldCustomAgentKey, v))
  527. }
  528. // CustomAgentKeyContainsFold applies the ContainsFold predicate on the "custom_agent_key" field.
  529. func CustomAgentKeyContainsFold(v string) predicate.Token {
  530. return predicate.Token(sql.FieldContainsFold(FieldCustomAgentKey, v))
  531. }
  532. // OpenaiBaseEQ applies the EQ predicate on the "openai_base" field.
  533. func OpenaiBaseEQ(v string) predicate.Token {
  534. return predicate.Token(sql.FieldEQ(FieldOpenaiBase, v))
  535. }
  536. // OpenaiBaseNEQ applies the NEQ predicate on the "openai_base" field.
  537. func OpenaiBaseNEQ(v string) predicate.Token {
  538. return predicate.Token(sql.FieldNEQ(FieldOpenaiBase, v))
  539. }
  540. // OpenaiBaseIn applies the In predicate on the "openai_base" field.
  541. func OpenaiBaseIn(vs ...string) predicate.Token {
  542. return predicate.Token(sql.FieldIn(FieldOpenaiBase, vs...))
  543. }
  544. // OpenaiBaseNotIn applies the NotIn predicate on the "openai_base" field.
  545. func OpenaiBaseNotIn(vs ...string) predicate.Token {
  546. return predicate.Token(sql.FieldNotIn(FieldOpenaiBase, vs...))
  547. }
  548. // OpenaiBaseGT applies the GT predicate on the "openai_base" field.
  549. func OpenaiBaseGT(v string) predicate.Token {
  550. return predicate.Token(sql.FieldGT(FieldOpenaiBase, v))
  551. }
  552. // OpenaiBaseGTE applies the GTE predicate on the "openai_base" field.
  553. func OpenaiBaseGTE(v string) predicate.Token {
  554. return predicate.Token(sql.FieldGTE(FieldOpenaiBase, v))
  555. }
  556. // OpenaiBaseLT applies the LT predicate on the "openai_base" field.
  557. func OpenaiBaseLT(v string) predicate.Token {
  558. return predicate.Token(sql.FieldLT(FieldOpenaiBase, v))
  559. }
  560. // OpenaiBaseLTE applies the LTE predicate on the "openai_base" field.
  561. func OpenaiBaseLTE(v string) predicate.Token {
  562. return predicate.Token(sql.FieldLTE(FieldOpenaiBase, v))
  563. }
  564. // OpenaiBaseContains applies the Contains predicate on the "openai_base" field.
  565. func OpenaiBaseContains(v string) predicate.Token {
  566. return predicate.Token(sql.FieldContains(FieldOpenaiBase, v))
  567. }
  568. // OpenaiBaseHasPrefix applies the HasPrefix predicate on the "openai_base" field.
  569. func OpenaiBaseHasPrefix(v string) predicate.Token {
  570. return predicate.Token(sql.FieldHasPrefix(FieldOpenaiBase, v))
  571. }
  572. // OpenaiBaseHasSuffix applies the HasSuffix predicate on the "openai_base" field.
  573. func OpenaiBaseHasSuffix(v string) predicate.Token {
  574. return predicate.Token(sql.FieldHasSuffix(FieldOpenaiBase, v))
  575. }
  576. // OpenaiBaseIsNil applies the IsNil predicate on the "openai_base" field.
  577. func OpenaiBaseIsNil() predicate.Token {
  578. return predicate.Token(sql.FieldIsNull(FieldOpenaiBase))
  579. }
  580. // OpenaiBaseNotNil applies the NotNil predicate on the "openai_base" field.
  581. func OpenaiBaseNotNil() predicate.Token {
  582. return predicate.Token(sql.FieldNotNull(FieldOpenaiBase))
  583. }
  584. // OpenaiBaseEqualFold applies the EqualFold predicate on the "openai_base" field.
  585. func OpenaiBaseEqualFold(v string) predicate.Token {
  586. return predicate.Token(sql.FieldEqualFold(FieldOpenaiBase, v))
  587. }
  588. // OpenaiBaseContainsFold applies the ContainsFold predicate on the "openai_base" field.
  589. func OpenaiBaseContainsFold(v string) predicate.Token {
  590. return predicate.Token(sql.FieldContainsFold(FieldOpenaiBase, v))
  591. }
  592. // OpenaiKeyEQ applies the EQ predicate on the "openai_key" field.
  593. func OpenaiKeyEQ(v string) predicate.Token {
  594. return predicate.Token(sql.FieldEQ(FieldOpenaiKey, v))
  595. }
  596. // OpenaiKeyNEQ applies the NEQ predicate on the "openai_key" field.
  597. func OpenaiKeyNEQ(v string) predicate.Token {
  598. return predicate.Token(sql.FieldNEQ(FieldOpenaiKey, v))
  599. }
  600. // OpenaiKeyIn applies the In predicate on the "openai_key" field.
  601. func OpenaiKeyIn(vs ...string) predicate.Token {
  602. return predicate.Token(sql.FieldIn(FieldOpenaiKey, vs...))
  603. }
  604. // OpenaiKeyNotIn applies the NotIn predicate on the "openai_key" field.
  605. func OpenaiKeyNotIn(vs ...string) predicate.Token {
  606. return predicate.Token(sql.FieldNotIn(FieldOpenaiKey, vs...))
  607. }
  608. // OpenaiKeyGT applies the GT predicate on the "openai_key" field.
  609. func OpenaiKeyGT(v string) predicate.Token {
  610. return predicate.Token(sql.FieldGT(FieldOpenaiKey, v))
  611. }
  612. // OpenaiKeyGTE applies the GTE predicate on the "openai_key" field.
  613. func OpenaiKeyGTE(v string) predicate.Token {
  614. return predicate.Token(sql.FieldGTE(FieldOpenaiKey, v))
  615. }
  616. // OpenaiKeyLT applies the LT predicate on the "openai_key" field.
  617. func OpenaiKeyLT(v string) predicate.Token {
  618. return predicate.Token(sql.FieldLT(FieldOpenaiKey, v))
  619. }
  620. // OpenaiKeyLTE applies the LTE predicate on the "openai_key" field.
  621. func OpenaiKeyLTE(v string) predicate.Token {
  622. return predicate.Token(sql.FieldLTE(FieldOpenaiKey, v))
  623. }
  624. // OpenaiKeyContains applies the Contains predicate on the "openai_key" field.
  625. func OpenaiKeyContains(v string) predicate.Token {
  626. return predicate.Token(sql.FieldContains(FieldOpenaiKey, v))
  627. }
  628. // OpenaiKeyHasPrefix applies the HasPrefix predicate on the "openai_key" field.
  629. func OpenaiKeyHasPrefix(v string) predicate.Token {
  630. return predicate.Token(sql.FieldHasPrefix(FieldOpenaiKey, v))
  631. }
  632. // OpenaiKeyHasSuffix applies the HasSuffix predicate on the "openai_key" field.
  633. func OpenaiKeyHasSuffix(v string) predicate.Token {
  634. return predicate.Token(sql.FieldHasSuffix(FieldOpenaiKey, v))
  635. }
  636. // OpenaiKeyIsNil applies the IsNil predicate on the "openai_key" field.
  637. func OpenaiKeyIsNil() predicate.Token {
  638. return predicate.Token(sql.FieldIsNull(FieldOpenaiKey))
  639. }
  640. // OpenaiKeyNotNil applies the NotNil predicate on the "openai_key" field.
  641. func OpenaiKeyNotNil() predicate.Token {
  642. return predicate.Token(sql.FieldNotNull(FieldOpenaiKey))
  643. }
  644. // OpenaiKeyEqualFold applies the EqualFold predicate on the "openai_key" field.
  645. func OpenaiKeyEqualFold(v string) predicate.Token {
  646. return predicate.Token(sql.FieldEqualFold(FieldOpenaiKey, v))
  647. }
  648. // OpenaiKeyContainsFold applies the ContainsFold predicate on the "openai_key" field.
  649. func OpenaiKeyContainsFold(v string) predicate.Token {
  650. return predicate.Token(sql.FieldContainsFold(FieldOpenaiKey, v))
  651. }
  652. // And groups predicates with the AND operator between them.
  653. func And(predicates ...predicate.Token) predicate.Token {
  654. return predicate.Token(sql.AndPredicates(predicates...))
  655. }
  656. // Or groups predicates with the OR operator between them.
  657. func Or(predicates ...predicate.Token) predicate.Token {
  658. return predicate.Token(sql.OrPredicates(predicates...))
  659. }
  660. // Not applies the not operator on the given predicate.
  661. func Not(p predicate.Token) predicate.Token {
  662. return predicate.Token(sql.NotPredicates(p))
  663. }