where.go 30 KB

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