123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789 |
- // Code generated by ent, DO NOT EDIT.
- package apikey
- import (
- "time"
- "wechat-api/ent/predicate"
- "entgo.io/ent/dialect/sql"
- "entgo.io/ent/dialect/sql/sqlgraph"
- )
- // ID filters vertices based on their ID field.
- func ID(id uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldID, id))
- }
- // IDEQ applies the EQ predicate on the ID field.
- func IDEQ(id uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldID, id))
- }
- // IDNEQ applies the NEQ predicate on the ID field.
- func IDNEQ(id uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNEQ(FieldID, id))
- }
- // IDIn applies the In predicate on the ID field.
- func IDIn(ids ...uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIn(FieldID, ids...))
- }
- // IDNotIn applies the NotIn predicate on the ID field.
- func IDNotIn(ids ...uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotIn(FieldID, ids...))
- }
- // IDGT applies the GT predicate on the ID field.
- func IDGT(id uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGT(FieldID, id))
- }
- // IDGTE applies the GTE predicate on the ID field.
- func IDGTE(id uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGTE(FieldID, id))
- }
- // IDLT applies the LT predicate on the ID field.
- func IDLT(id uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLT(FieldID, id))
- }
- // IDLTE applies the LTE predicate on the ID field.
- func IDLTE(id uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLTE(FieldID, id))
- }
- // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
- func CreatedAt(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldCreatedAt, v))
- }
- // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
- func UpdatedAt(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
- func DeletedAt(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldDeletedAt, v))
- }
- // Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
- func Title(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldTitle, v))
- }
- // Key applies equality check predicate on the "key" field. It's identical to KeyEQ.
- func Key(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldKey, v))
- }
- // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
- func OrganizationID(v uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldOrganizationID, v))
- }
- // AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
- func AgentID(v uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldAgentID, v))
- }
- // CustomAgentBase applies equality check predicate on the "custom_agent_base" field. It's identical to CustomAgentBaseEQ.
- func CustomAgentBase(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldCustomAgentBase, v))
- }
- // CustomAgentKey applies equality check predicate on the "custom_agent_key" field. It's identical to CustomAgentKeyEQ.
- func CustomAgentKey(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldCustomAgentKey, v))
- }
- // OpenaiBase applies equality check predicate on the "openai_base" field. It's identical to OpenaiBaseEQ.
- func OpenaiBase(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldOpenaiBase, v))
- }
- // OpenaiKey applies equality check predicate on the "openai_key" field. It's identical to OpenaiKeyEQ.
- func OpenaiKey(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldOpenaiKey, v))
- }
- // CreatedAtEQ applies the EQ predicate on the "created_at" field.
- func CreatedAtEQ(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldCreatedAt, v))
- }
- // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
- func CreatedAtNEQ(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNEQ(FieldCreatedAt, v))
- }
- // CreatedAtIn applies the In predicate on the "created_at" field.
- func CreatedAtIn(vs ...time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIn(FieldCreatedAt, vs...))
- }
- // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
- func CreatedAtNotIn(vs ...time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotIn(FieldCreatedAt, vs...))
- }
- // CreatedAtGT applies the GT predicate on the "created_at" field.
- func CreatedAtGT(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGT(FieldCreatedAt, v))
- }
- // CreatedAtGTE applies the GTE predicate on the "created_at" field.
- func CreatedAtGTE(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGTE(FieldCreatedAt, v))
- }
- // CreatedAtLT applies the LT predicate on the "created_at" field.
- func CreatedAtLT(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLT(FieldCreatedAt, v))
- }
- // CreatedAtLTE applies the LTE predicate on the "created_at" field.
- func CreatedAtLTE(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLTE(FieldCreatedAt, v))
- }
- // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
- func UpdatedAtEQ(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
- func UpdatedAtNEQ(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtIn applies the In predicate on the "updated_at" field.
- func UpdatedAtIn(vs ...time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
- func UpdatedAtNotIn(vs ...time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtGT applies the GT predicate on the "updated_at" field.
- func UpdatedAtGT(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGT(FieldUpdatedAt, v))
- }
- // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
- func UpdatedAtGTE(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGTE(FieldUpdatedAt, v))
- }
- // UpdatedAtLT applies the LT predicate on the "updated_at" field.
- func UpdatedAtLT(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLT(FieldUpdatedAt, v))
- }
- // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
- func UpdatedAtLTE(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLTE(FieldUpdatedAt, v))
- }
- // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
- func DeletedAtEQ(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldDeletedAt, v))
- }
- // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
- func DeletedAtNEQ(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNEQ(FieldDeletedAt, v))
- }
- // DeletedAtIn applies the In predicate on the "deleted_at" field.
- func DeletedAtIn(vs ...time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIn(FieldDeletedAt, vs...))
- }
- // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
- func DeletedAtNotIn(vs ...time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotIn(FieldDeletedAt, vs...))
- }
- // DeletedAtGT applies the GT predicate on the "deleted_at" field.
- func DeletedAtGT(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGT(FieldDeletedAt, v))
- }
- // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
- func DeletedAtGTE(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGTE(FieldDeletedAt, v))
- }
- // DeletedAtLT applies the LT predicate on the "deleted_at" field.
- func DeletedAtLT(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLT(FieldDeletedAt, v))
- }
- // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
- func DeletedAtLTE(v time.Time) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLTE(FieldDeletedAt, v))
- }
- // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
- func DeletedAtIsNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIsNull(FieldDeletedAt))
- }
- // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
- func DeletedAtNotNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotNull(FieldDeletedAt))
- }
- // TitleEQ applies the EQ predicate on the "title" field.
- func TitleEQ(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldTitle, v))
- }
- // TitleNEQ applies the NEQ predicate on the "title" field.
- func TitleNEQ(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNEQ(FieldTitle, v))
- }
- // TitleIn applies the In predicate on the "title" field.
- func TitleIn(vs ...string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIn(FieldTitle, vs...))
- }
- // TitleNotIn applies the NotIn predicate on the "title" field.
- func TitleNotIn(vs ...string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotIn(FieldTitle, vs...))
- }
- // TitleGT applies the GT predicate on the "title" field.
- func TitleGT(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGT(FieldTitle, v))
- }
- // TitleGTE applies the GTE predicate on the "title" field.
- func TitleGTE(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGTE(FieldTitle, v))
- }
- // TitleLT applies the LT predicate on the "title" field.
- func TitleLT(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLT(FieldTitle, v))
- }
- // TitleLTE applies the LTE predicate on the "title" field.
- func TitleLTE(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLTE(FieldTitle, v))
- }
- // TitleContains applies the Contains predicate on the "title" field.
- func TitleContains(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldContains(FieldTitle, v))
- }
- // TitleHasPrefix applies the HasPrefix predicate on the "title" field.
- func TitleHasPrefix(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldHasPrefix(FieldTitle, v))
- }
- // TitleHasSuffix applies the HasSuffix predicate on the "title" field.
- func TitleHasSuffix(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldHasSuffix(FieldTitle, v))
- }
- // TitleIsNil applies the IsNil predicate on the "title" field.
- func TitleIsNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIsNull(FieldTitle))
- }
- // TitleNotNil applies the NotNil predicate on the "title" field.
- func TitleNotNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotNull(FieldTitle))
- }
- // TitleEqualFold applies the EqualFold predicate on the "title" field.
- func TitleEqualFold(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEqualFold(FieldTitle, v))
- }
- // TitleContainsFold applies the ContainsFold predicate on the "title" field.
- func TitleContainsFold(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldContainsFold(FieldTitle, v))
- }
- // KeyEQ applies the EQ predicate on the "key" field.
- func KeyEQ(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldKey, v))
- }
- // KeyNEQ applies the NEQ predicate on the "key" field.
- func KeyNEQ(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNEQ(FieldKey, v))
- }
- // KeyIn applies the In predicate on the "key" field.
- func KeyIn(vs ...string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIn(FieldKey, vs...))
- }
- // KeyNotIn applies the NotIn predicate on the "key" field.
- func KeyNotIn(vs ...string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotIn(FieldKey, vs...))
- }
- // KeyGT applies the GT predicate on the "key" field.
- func KeyGT(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGT(FieldKey, v))
- }
- // KeyGTE applies the GTE predicate on the "key" field.
- func KeyGTE(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGTE(FieldKey, v))
- }
- // KeyLT applies the LT predicate on the "key" field.
- func KeyLT(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLT(FieldKey, v))
- }
- // KeyLTE applies the LTE predicate on the "key" field.
- func KeyLTE(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLTE(FieldKey, v))
- }
- // KeyContains applies the Contains predicate on the "key" field.
- func KeyContains(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldContains(FieldKey, v))
- }
- // KeyHasPrefix applies the HasPrefix predicate on the "key" field.
- func KeyHasPrefix(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldHasPrefix(FieldKey, v))
- }
- // KeyHasSuffix applies the HasSuffix predicate on the "key" field.
- func KeyHasSuffix(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldHasSuffix(FieldKey, v))
- }
- // KeyIsNil applies the IsNil predicate on the "key" field.
- func KeyIsNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIsNull(FieldKey))
- }
- // KeyNotNil applies the NotNil predicate on the "key" field.
- func KeyNotNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotNull(FieldKey))
- }
- // KeyEqualFold applies the EqualFold predicate on the "key" field.
- func KeyEqualFold(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEqualFold(FieldKey, v))
- }
- // KeyContainsFold applies the ContainsFold predicate on the "key" field.
- func KeyContainsFold(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldContainsFold(FieldKey, v))
- }
- // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
- func OrganizationIDEQ(v uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldOrganizationID, v))
- }
- // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
- func OrganizationIDNEQ(v uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNEQ(FieldOrganizationID, v))
- }
- // OrganizationIDIn applies the In predicate on the "organization_id" field.
- func OrganizationIDIn(vs ...uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIn(FieldOrganizationID, vs...))
- }
- // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
- func OrganizationIDNotIn(vs ...uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotIn(FieldOrganizationID, vs...))
- }
- // OrganizationIDGT applies the GT predicate on the "organization_id" field.
- func OrganizationIDGT(v uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGT(FieldOrganizationID, v))
- }
- // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
- func OrganizationIDGTE(v uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGTE(FieldOrganizationID, v))
- }
- // OrganizationIDLT applies the LT predicate on the "organization_id" field.
- func OrganizationIDLT(v uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLT(FieldOrganizationID, v))
- }
- // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
- func OrganizationIDLTE(v uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLTE(FieldOrganizationID, v))
- }
- // AgentIDEQ applies the EQ predicate on the "agent_id" field.
- func AgentIDEQ(v uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldAgentID, v))
- }
- // AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
- func AgentIDNEQ(v uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNEQ(FieldAgentID, v))
- }
- // AgentIDIn applies the In predicate on the "agent_id" field.
- func AgentIDIn(vs ...uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIn(FieldAgentID, vs...))
- }
- // AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
- func AgentIDNotIn(vs ...uint64) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotIn(FieldAgentID, vs...))
- }
- // CustomAgentBaseEQ applies the EQ predicate on the "custom_agent_base" field.
- func CustomAgentBaseEQ(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldCustomAgentBase, v))
- }
- // CustomAgentBaseNEQ applies the NEQ predicate on the "custom_agent_base" field.
- func CustomAgentBaseNEQ(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNEQ(FieldCustomAgentBase, v))
- }
- // CustomAgentBaseIn applies the In predicate on the "custom_agent_base" field.
- func CustomAgentBaseIn(vs ...string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIn(FieldCustomAgentBase, vs...))
- }
- // CustomAgentBaseNotIn applies the NotIn predicate on the "custom_agent_base" field.
- func CustomAgentBaseNotIn(vs ...string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotIn(FieldCustomAgentBase, vs...))
- }
- // CustomAgentBaseGT applies the GT predicate on the "custom_agent_base" field.
- func CustomAgentBaseGT(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGT(FieldCustomAgentBase, v))
- }
- // CustomAgentBaseGTE applies the GTE predicate on the "custom_agent_base" field.
- func CustomAgentBaseGTE(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGTE(FieldCustomAgentBase, v))
- }
- // CustomAgentBaseLT applies the LT predicate on the "custom_agent_base" field.
- func CustomAgentBaseLT(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLT(FieldCustomAgentBase, v))
- }
- // CustomAgentBaseLTE applies the LTE predicate on the "custom_agent_base" field.
- func CustomAgentBaseLTE(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLTE(FieldCustomAgentBase, v))
- }
- // CustomAgentBaseContains applies the Contains predicate on the "custom_agent_base" field.
- func CustomAgentBaseContains(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldContains(FieldCustomAgentBase, v))
- }
- // CustomAgentBaseHasPrefix applies the HasPrefix predicate on the "custom_agent_base" field.
- func CustomAgentBaseHasPrefix(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldHasPrefix(FieldCustomAgentBase, v))
- }
- // CustomAgentBaseHasSuffix applies the HasSuffix predicate on the "custom_agent_base" field.
- func CustomAgentBaseHasSuffix(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldHasSuffix(FieldCustomAgentBase, v))
- }
- // CustomAgentBaseIsNil applies the IsNil predicate on the "custom_agent_base" field.
- func CustomAgentBaseIsNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIsNull(FieldCustomAgentBase))
- }
- // CustomAgentBaseNotNil applies the NotNil predicate on the "custom_agent_base" field.
- func CustomAgentBaseNotNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotNull(FieldCustomAgentBase))
- }
- // CustomAgentBaseEqualFold applies the EqualFold predicate on the "custom_agent_base" field.
- func CustomAgentBaseEqualFold(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEqualFold(FieldCustomAgentBase, v))
- }
- // CustomAgentBaseContainsFold applies the ContainsFold predicate on the "custom_agent_base" field.
- func CustomAgentBaseContainsFold(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldContainsFold(FieldCustomAgentBase, v))
- }
- // CustomAgentKeyEQ applies the EQ predicate on the "custom_agent_key" field.
- func CustomAgentKeyEQ(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldCustomAgentKey, v))
- }
- // CustomAgentKeyNEQ applies the NEQ predicate on the "custom_agent_key" field.
- func CustomAgentKeyNEQ(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNEQ(FieldCustomAgentKey, v))
- }
- // CustomAgentKeyIn applies the In predicate on the "custom_agent_key" field.
- func CustomAgentKeyIn(vs ...string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIn(FieldCustomAgentKey, vs...))
- }
- // CustomAgentKeyNotIn applies the NotIn predicate on the "custom_agent_key" field.
- func CustomAgentKeyNotIn(vs ...string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotIn(FieldCustomAgentKey, vs...))
- }
- // CustomAgentKeyGT applies the GT predicate on the "custom_agent_key" field.
- func CustomAgentKeyGT(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGT(FieldCustomAgentKey, v))
- }
- // CustomAgentKeyGTE applies the GTE predicate on the "custom_agent_key" field.
- func CustomAgentKeyGTE(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGTE(FieldCustomAgentKey, v))
- }
- // CustomAgentKeyLT applies the LT predicate on the "custom_agent_key" field.
- func CustomAgentKeyLT(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLT(FieldCustomAgentKey, v))
- }
- // CustomAgentKeyLTE applies the LTE predicate on the "custom_agent_key" field.
- func CustomAgentKeyLTE(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLTE(FieldCustomAgentKey, v))
- }
- // CustomAgentKeyContains applies the Contains predicate on the "custom_agent_key" field.
- func CustomAgentKeyContains(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldContains(FieldCustomAgentKey, v))
- }
- // CustomAgentKeyHasPrefix applies the HasPrefix predicate on the "custom_agent_key" field.
- func CustomAgentKeyHasPrefix(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldHasPrefix(FieldCustomAgentKey, v))
- }
- // CustomAgentKeyHasSuffix applies the HasSuffix predicate on the "custom_agent_key" field.
- func CustomAgentKeyHasSuffix(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldHasSuffix(FieldCustomAgentKey, v))
- }
- // CustomAgentKeyIsNil applies the IsNil predicate on the "custom_agent_key" field.
- func CustomAgentKeyIsNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIsNull(FieldCustomAgentKey))
- }
- // CustomAgentKeyNotNil applies the NotNil predicate on the "custom_agent_key" field.
- func CustomAgentKeyNotNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotNull(FieldCustomAgentKey))
- }
- // CustomAgentKeyEqualFold applies the EqualFold predicate on the "custom_agent_key" field.
- func CustomAgentKeyEqualFold(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEqualFold(FieldCustomAgentKey, v))
- }
- // CustomAgentKeyContainsFold applies the ContainsFold predicate on the "custom_agent_key" field.
- func CustomAgentKeyContainsFold(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldContainsFold(FieldCustomAgentKey, v))
- }
- // OpenaiBaseEQ applies the EQ predicate on the "openai_base" field.
- func OpenaiBaseEQ(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldOpenaiBase, v))
- }
- // OpenaiBaseNEQ applies the NEQ predicate on the "openai_base" field.
- func OpenaiBaseNEQ(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNEQ(FieldOpenaiBase, v))
- }
- // OpenaiBaseIn applies the In predicate on the "openai_base" field.
- func OpenaiBaseIn(vs ...string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIn(FieldOpenaiBase, vs...))
- }
- // OpenaiBaseNotIn applies the NotIn predicate on the "openai_base" field.
- func OpenaiBaseNotIn(vs ...string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotIn(FieldOpenaiBase, vs...))
- }
- // OpenaiBaseGT applies the GT predicate on the "openai_base" field.
- func OpenaiBaseGT(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGT(FieldOpenaiBase, v))
- }
- // OpenaiBaseGTE applies the GTE predicate on the "openai_base" field.
- func OpenaiBaseGTE(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGTE(FieldOpenaiBase, v))
- }
- // OpenaiBaseLT applies the LT predicate on the "openai_base" field.
- func OpenaiBaseLT(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLT(FieldOpenaiBase, v))
- }
- // OpenaiBaseLTE applies the LTE predicate on the "openai_base" field.
- func OpenaiBaseLTE(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLTE(FieldOpenaiBase, v))
- }
- // OpenaiBaseContains applies the Contains predicate on the "openai_base" field.
- func OpenaiBaseContains(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldContains(FieldOpenaiBase, v))
- }
- // OpenaiBaseHasPrefix applies the HasPrefix predicate on the "openai_base" field.
- func OpenaiBaseHasPrefix(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldHasPrefix(FieldOpenaiBase, v))
- }
- // OpenaiBaseHasSuffix applies the HasSuffix predicate on the "openai_base" field.
- func OpenaiBaseHasSuffix(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldHasSuffix(FieldOpenaiBase, v))
- }
- // OpenaiBaseIsNil applies the IsNil predicate on the "openai_base" field.
- func OpenaiBaseIsNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIsNull(FieldOpenaiBase))
- }
- // OpenaiBaseNotNil applies the NotNil predicate on the "openai_base" field.
- func OpenaiBaseNotNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotNull(FieldOpenaiBase))
- }
- // OpenaiBaseEqualFold applies the EqualFold predicate on the "openai_base" field.
- func OpenaiBaseEqualFold(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEqualFold(FieldOpenaiBase, v))
- }
- // OpenaiBaseContainsFold applies the ContainsFold predicate on the "openai_base" field.
- func OpenaiBaseContainsFold(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldContainsFold(FieldOpenaiBase, v))
- }
- // OpenaiKeyEQ applies the EQ predicate on the "openai_key" field.
- func OpenaiKeyEQ(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEQ(FieldOpenaiKey, v))
- }
- // OpenaiKeyNEQ applies the NEQ predicate on the "openai_key" field.
- func OpenaiKeyNEQ(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNEQ(FieldOpenaiKey, v))
- }
- // OpenaiKeyIn applies the In predicate on the "openai_key" field.
- func OpenaiKeyIn(vs ...string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIn(FieldOpenaiKey, vs...))
- }
- // OpenaiKeyNotIn applies the NotIn predicate on the "openai_key" field.
- func OpenaiKeyNotIn(vs ...string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotIn(FieldOpenaiKey, vs...))
- }
- // OpenaiKeyGT applies the GT predicate on the "openai_key" field.
- func OpenaiKeyGT(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGT(FieldOpenaiKey, v))
- }
- // OpenaiKeyGTE applies the GTE predicate on the "openai_key" field.
- func OpenaiKeyGTE(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldGTE(FieldOpenaiKey, v))
- }
- // OpenaiKeyLT applies the LT predicate on the "openai_key" field.
- func OpenaiKeyLT(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLT(FieldOpenaiKey, v))
- }
- // OpenaiKeyLTE applies the LTE predicate on the "openai_key" field.
- func OpenaiKeyLTE(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldLTE(FieldOpenaiKey, v))
- }
- // OpenaiKeyContains applies the Contains predicate on the "openai_key" field.
- func OpenaiKeyContains(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldContains(FieldOpenaiKey, v))
- }
- // OpenaiKeyHasPrefix applies the HasPrefix predicate on the "openai_key" field.
- func OpenaiKeyHasPrefix(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldHasPrefix(FieldOpenaiKey, v))
- }
- // OpenaiKeyHasSuffix applies the HasSuffix predicate on the "openai_key" field.
- func OpenaiKeyHasSuffix(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldHasSuffix(FieldOpenaiKey, v))
- }
- // OpenaiKeyIsNil applies the IsNil predicate on the "openai_key" field.
- func OpenaiKeyIsNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldIsNull(FieldOpenaiKey))
- }
- // OpenaiKeyNotNil applies the NotNil predicate on the "openai_key" field.
- func OpenaiKeyNotNil() predicate.ApiKey {
- return predicate.ApiKey(sql.FieldNotNull(FieldOpenaiKey))
- }
- // OpenaiKeyEqualFold applies the EqualFold predicate on the "openai_key" field.
- func OpenaiKeyEqualFold(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldEqualFold(FieldOpenaiKey, v))
- }
- // OpenaiKeyContainsFold applies the ContainsFold predicate on the "openai_key" field.
- func OpenaiKeyContainsFold(v string) predicate.ApiKey {
- return predicate.ApiKey(sql.FieldContainsFold(FieldOpenaiKey, v))
- }
- // HasAgent applies the HasEdge predicate on the "agent" edge.
- func HasAgent() predicate.ApiKey {
- return predicate.ApiKey(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.M2O, true, AgentTable, AgentColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).
- func HasAgentWith(preds ...predicate.Agent) predicate.ApiKey {
- return predicate.ApiKey(func(s *sql.Selector) {
- step := newAgentStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // And groups predicates with the AND operator between them.
- func And(predicates ...predicate.ApiKey) predicate.ApiKey {
- return predicate.ApiKey(sql.AndPredicates(predicates...))
- }
- // Or groups predicates with the OR operator between them.
- func Or(predicates ...predicate.ApiKey) predicate.ApiKey {
- return predicate.ApiKey(sql.OrPredicates(predicates...))
- }
- // Not applies the not operator on the given predicate.
- func Not(p predicate.ApiKey) predicate.ApiKey {
- return predicate.ApiKey(sql.NotPredicates(p))
- }
|