where.go 28 KB

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