| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975 |
- // Code generated by ent, DO NOT EDIT.
- package proxy
- import (
- "time"
- "entgo.io/ent/dialect/sql"
- "entgo.io/ent/dialect/sql/sqlgraph"
- "github.com/Wei-Shaw/sub2api/ent/predicate"
- )
- // ID filters vertices based on their ID field.
- func ID(id int64) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldID, id))
- }
- // IDEQ applies the EQ predicate on the ID field.
- func IDEQ(id int64) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldID, id))
- }
- // IDNEQ applies the NEQ predicate on the ID field.
- func IDNEQ(id int64) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldID, id))
- }
- // IDIn applies the In predicate on the ID field.
- func IDIn(ids ...int64) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldID, ids...))
- }
- // IDNotIn applies the NotIn predicate on the ID field.
- func IDNotIn(ids ...int64) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldID, ids...))
- }
- // IDGT applies the GT predicate on the ID field.
- func IDGT(id int64) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldID, id))
- }
- // IDGTE applies the GTE predicate on the ID field.
- func IDGTE(id int64) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldID, id))
- }
- // IDLT applies the LT predicate on the ID field.
- func IDLT(id int64) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldID, id))
- }
- // IDLTE applies the LTE predicate on the ID field.
- func IDLTE(id int64) predicate.Proxy {
- return predicate.Proxy(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.Proxy {
- return predicate.Proxy(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.Proxy {
- return predicate.Proxy(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.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldDeletedAt, v))
- }
- // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
- func Name(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldName, v))
- }
- // Protocol applies equality check predicate on the "protocol" field. It's identical to ProtocolEQ.
- func Protocol(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldProtocol, v))
- }
- // Host applies equality check predicate on the "host" field. It's identical to HostEQ.
- func Host(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldHost, v))
- }
- // Port applies equality check predicate on the "port" field. It's identical to PortEQ.
- func Port(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldPort, v))
- }
- // Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
- func Username(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldUsername, v))
- }
- // Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
- func Password(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldPassword, v))
- }
- // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
- func Status(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldStatus, v))
- }
- // ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
- func ExpiresAt(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldExpiresAt, v))
- }
- // FallbackMode applies equality check predicate on the "fallback_mode" field. It's identical to FallbackModeEQ.
- func FallbackMode(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldFallbackMode, v))
- }
- // BackupProxyID applies equality check predicate on the "backup_proxy_id" field. It's identical to BackupProxyIDEQ.
- func BackupProxyID(v int64) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldBackupProxyID, v))
- }
- // ExpiryWarnDays applies equality check predicate on the "expiry_warn_days" field. It's identical to ExpiryWarnDaysEQ.
- func ExpiryWarnDays(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldExpiryWarnDays, v))
- }
- // CreatedAtEQ applies the EQ predicate on the "created_at" field.
- func CreatedAtEQ(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldCreatedAt, v))
- }
- // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
- func CreatedAtNEQ(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldCreatedAt, v))
- }
- // CreatedAtIn applies the In predicate on the "created_at" field.
- func CreatedAtIn(vs ...time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldCreatedAt, vs...))
- }
- // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
- func CreatedAtNotIn(vs ...time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldCreatedAt, vs...))
- }
- // CreatedAtGT applies the GT predicate on the "created_at" field.
- func CreatedAtGT(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldCreatedAt, v))
- }
- // CreatedAtGTE applies the GTE predicate on the "created_at" field.
- func CreatedAtGTE(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldCreatedAt, v))
- }
- // CreatedAtLT applies the LT predicate on the "created_at" field.
- func CreatedAtLT(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldCreatedAt, v))
- }
- // CreatedAtLTE applies the LTE predicate on the "created_at" field.
- func CreatedAtLTE(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldLTE(FieldCreatedAt, v))
- }
- // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
- func UpdatedAtEQ(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
- func UpdatedAtNEQ(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtIn applies the In predicate on the "updated_at" field.
- func UpdatedAtIn(vs ...time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
- func UpdatedAtNotIn(vs ...time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtGT applies the GT predicate on the "updated_at" field.
- func UpdatedAtGT(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldUpdatedAt, v))
- }
- // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
- func UpdatedAtGTE(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldUpdatedAt, v))
- }
- // UpdatedAtLT applies the LT predicate on the "updated_at" field.
- func UpdatedAtLT(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldUpdatedAt, v))
- }
- // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
- func UpdatedAtLTE(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldLTE(FieldUpdatedAt, v))
- }
- // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
- func DeletedAtEQ(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldDeletedAt, v))
- }
- // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
- func DeletedAtNEQ(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldDeletedAt, v))
- }
- // DeletedAtIn applies the In predicate on the "deleted_at" field.
- func DeletedAtIn(vs ...time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldDeletedAt, vs...))
- }
- // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
- func DeletedAtNotIn(vs ...time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldDeletedAt, vs...))
- }
- // DeletedAtGT applies the GT predicate on the "deleted_at" field.
- func DeletedAtGT(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldDeletedAt, v))
- }
- // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
- func DeletedAtGTE(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldDeletedAt, v))
- }
- // DeletedAtLT applies the LT predicate on the "deleted_at" field.
- func DeletedAtLT(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldDeletedAt, v))
- }
- // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
- func DeletedAtLTE(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldLTE(FieldDeletedAt, v))
- }
- // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
- func DeletedAtIsNil() predicate.Proxy {
- return predicate.Proxy(sql.FieldIsNull(FieldDeletedAt))
- }
- // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
- func DeletedAtNotNil() predicate.Proxy {
- return predicate.Proxy(sql.FieldNotNull(FieldDeletedAt))
- }
- // NameEQ applies the EQ predicate on the "name" field.
- func NameEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldName, v))
- }
- // NameNEQ applies the NEQ predicate on the "name" field.
- func NameNEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldName, v))
- }
- // NameIn applies the In predicate on the "name" field.
- func NameIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldName, vs...))
- }
- // NameNotIn applies the NotIn predicate on the "name" field.
- func NameNotIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldName, vs...))
- }
- // NameGT applies the GT predicate on the "name" field.
- func NameGT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldName, v))
- }
- // NameGTE applies the GTE predicate on the "name" field.
- func NameGTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldName, v))
- }
- // NameLT applies the LT predicate on the "name" field.
- func NameLT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldName, v))
- }
- // NameLTE applies the LTE predicate on the "name" field.
- func NameLTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLTE(FieldName, v))
- }
- // NameContains applies the Contains predicate on the "name" field.
- func NameContains(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContains(FieldName, v))
- }
- // NameHasPrefix applies the HasPrefix predicate on the "name" field.
- func NameHasPrefix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasPrefix(FieldName, v))
- }
- // NameHasSuffix applies the HasSuffix predicate on the "name" field.
- func NameHasSuffix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasSuffix(FieldName, v))
- }
- // NameEqualFold applies the EqualFold predicate on the "name" field.
- func NameEqualFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEqualFold(FieldName, v))
- }
- // NameContainsFold applies the ContainsFold predicate on the "name" field.
- func NameContainsFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContainsFold(FieldName, v))
- }
- // ProtocolEQ applies the EQ predicate on the "protocol" field.
- func ProtocolEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldProtocol, v))
- }
- // ProtocolNEQ applies the NEQ predicate on the "protocol" field.
- func ProtocolNEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldProtocol, v))
- }
- // ProtocolIn applies the In predicate on the "protocol" field.
- func ProtocolIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldProtocol, vs...))
- }
- // ProtocolNotIn applies the NotIn predicate on the "protocol" field.
- func ProtocolNotIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldProtocol, vs...))
- }
- // ProtocolGT applies the GT predicate on the "protocol" field.
- func ProtocolGT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldProtocol, v))
- }
- // ProtocolGTE applies the GTE predicate on the "protocol" field.
- func ProtocolGTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldProtocol, v))
- }
- // ProtocolLT applies the LT predicate on the "protocol" field.
- func ProtocolLT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldProtocol, v))
- }
- // ProtocolLTE applies the LTE predicate on the "protocol" field.
- func ProtocolLTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLTE(FieldProtocol, v))
- }
- // ProtocolContains applies the Contains predicate on the "protocol" field.
- func ProtocolContains(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContains(FieldProtocol, v))
- }
- // ProtocolHasPrefix applies the HasPrefix predicate on the "protocol" field.
- func ProtocolHasPrefix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasPrefix(FieldProtocol, v))
- }
- // ProtocolHasSuffix applies the HasSuffix predicate on the "protocol" field.
- func ProtocolHasSuffix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasSuffix(FieldProtocol, v))
- }
- // ProtocolEqualFold applies the EqualFold predicate on the "protocol" field.
- func ProtocolEqualFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEqualFold(FieldProtocol, v))
- }
- // ProtocolContainsFold applies the ContainsFold predicate on the "protocol" field.
- func ProtocolContainsFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContainsFold(FieldProtocol, v))
- }
- // HostEQ applies the EQ predicate on the "host" field.
- func HostEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldHost, v))
- }
- // HostNEQ applies the NEQ predicate on the "host" field.
- func HostNEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldHost, v))
- }
- // HostIn applies the In predicate on the "host" field.
- func HostIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldHost, vs...))
- }
- // HostNotIn applies the NotIn predicate on the "host" field.
- func HostNotIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldHost, vs...))
- }
- // HostGT applies the GT predicate on the "host" field.
- func HostGT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldHost, v))
- }
- // HostGTE applies the GTE predicate on the "host" field.
- func HostGTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldHost, v))
- }
- // HostLT applies the LT predicate on the "host" field.
- func HostLT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldHost, v))
- }
- // HostLTE applies the LTE predicate on the "host" field.
- func HostLTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLTE(FieldHost, v))
- }
- // HostContains applies the Contains predicate on the "host" field.
- func HostContains(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContains(FieldHost, v))
- }
- // HostHasPrefix applies the HasPrefix predicate on the "host" field.
- func HostHasPrefix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasPrefix(FieldHost, v))
- }
- // HostHasSuffix applies the HasSuffix predicate on the "host" field.
- func HostHasSuffix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasSuffix(FieldHost, v))
- }
- // HostEqualFold applies the EqualFold predicate on the "host" field.
- func HostEqualFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEqualFold(FieldHost, v))
- }
- // HostContainsFold applies the ContainsFold predicate on the "host" field.
- func HostContainsFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContainsFold(FieldHost, v))
- }
- // PortEQ applies the EQ predicate on the "port" field.
- func PortEQ(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldPort, v))
- }
- // PortNEQ applies the NEQ predicate on the "port" field.
- func PortNEQ(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldPort, v))
- }
- // PortIn applies the In predicate on the "port" field.
- func PortIn(vs ...int) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldPort, vs...))
- }
- // PortNotIn applies the NotIn predicate on the "port" field.
- func PortNotIn(vs ...int) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldPort, vs...))
- }
- // PortGT applies the GT predicate on the "port" field.
- func PortGT(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldPort, v))
- }
- // PortGTE applies the GTE predicate on the "port" field.
- func PortGTE(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldPort, v))
- }
- // PortLT applies the LT predicate on the "port" field.
- func PortLT(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldPort, v))
- }
- // PortLTE applies the LTE predicate on the "port" field.
- func PortLTE(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldLTE(FieldPort, v))
- }
- // UsernameEQ applies the EQ predicate on the "username" field.
- func UsernameEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldUsername, v))
- }
- // UsernameNEQ applies the NEQ predicate on the "username" field.
- func UsernameNEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldUsername, v))
- }
- // UsernameIn applies the In predicate on the "username" field.
- func UsernameIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldUsername, vs...))
- }
- // UsernameNotIn applies the NotIn predicate on the "username" field.
- func UsernameNotIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldUsername, vs...))
- }
- // UsernameGT applies the GT predicate on the "username" field.
- func UsernameGT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldUsername, v))
- }
- // UsernameGTE applies the GTE predicate on the "username" field.
- func UsernameGTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldUsername, v))
- }
- // UsernameLT applies the LT predicate on the "username" field.
- func UsernameLT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldUsername, v))
- }
- // UsernameLTE applies the LTE predicate on the "username" field.
- func UsernameLTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLTE(FieldUsername, v))
- }
- // UsernameContains applies the Contains predicate on the "username" field.
- func UsernameContains(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContains(FieldUsername, v))
- }
- // UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
- func UsernameHasPrefix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasPrefix(FieldUsername, v))
- }
- // UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
- func UsernameHasSuffix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasSuffix(FieldUsername, v))
- }
- // UsernameIsNil applies the IsNil predicate on the "username" field.
- func UsernameIsNil() predicate.Proxy {
- return predicate.Proxy(sql.FieldIsNull(FieldUsername))
- }
- // UsernameNotNil applies the NotNil predicate on the "username" field.
- func UsernameNotNil() predicate.Proxy {
- return predicate.Proxy(sql.FieldNotNull(FieldUsername))
- }
- // UsernameEqualFold applies the EqualFold predicate on the "username" field.
- func UsernameEqualFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEqualFold(FieldUsername, v))
- }
- // UsernameContainsFold applies the ContainsFold predicate on the "username" field.
- func UsernameContainsFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContainsFold(FieldUsername, v))
- }
- // PasswordEQ applies the EQ predicate on the "password" field.
- func PasswordEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldPassword, v))
- }
- // PasswordNEQ applies the NEQ predicate on the "password" field.
- func PasswordNEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldPassword, v))
- }
- // PasswordIn applies the In predicate on the "password" field.
- func PasswordIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldPassword, vs...))
- }
- // PasswordNotIn applies the NotIn predicate on the "password" field.
- func PasswordNotIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldPassword, vs...))
- }
- // PasswordGT applies the GT predicate on the "password" field.
- func PasswordGT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldPassword, v))
- }
- // PasswordGTE applies the GTE predicate on the "password" field.
- func PasswordGTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldPassword, v))
- }
- // PasswordLT applies the LT predicate on the "password" field.
- func PasswordLT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldPassword, v))
- }
- // PasswordLTE applies the LTE predicate on the "password" field.
- func PasswordLTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLTE(FieldPassword, v))
- }
- // PasswordContains applies the Contains predicate on the "password" field.
- func PasswordContains(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContains(FieldPassword, v))
- }
- // PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
- func PasswordHasPrefix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasPrefix(FieldPassword, v))
- }
- // PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
- func PasswordHasSuffix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasSuffix(FieldPassword, v))
- }
- // PasswordIsNil applies the IsNil predicate on the "password" field.
- func PasswordIsNil() predicate.Proxy {
- return predicate.Proxy(sql.FieldIsNull(FieldPassword))
- }
- // PasswordNotNil applies the NotNil predicate on the "password" field.
- func PasswordNotNil() predicate.Proxy {
- return predicate.Proxy(sql.FieldNotNull(FieldPassword))
- }
- // PasswordEqualFold applies the EqualFold predicate on the "password" field.
- func PasswordEqualFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEqualFold(FieldPassword, v))
- }
- // PasswordContainsFold applies the ContainsFold predicate on the "password" field.
- func PasswordContainsFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContainsFold(FieldPassword, v))
- }
- // StatusEQ applies the EQ predicate on the "status" field.
- func StatusEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldStatus, v))
- }
- // StatusNEQ applies the NEQ predicate on the "status" field.
- func StatusNEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldStatus, v))
- }
- // StatusIn applies the In predicate on the "status" field.
- func StatusIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldStatus, vs...))
- }
- // StatusNotIn applies the NotIn predicate on the "status" field.
- func StatusNotIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldStatus, vs...))
- }
- // StatusGT applies the GT predicate on the "status" field.
- func StatusGT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldStatus, v))
- }
- // StatusGTE applies the GTE predicate on the "status" field.
- func StatusGTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldStatus, v))
- }
- // StatusLT applies the LT predicate on the "status" field.
- func StatusLT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldStatus, v))
- }
- // StatusLTE applies the LTE predicate on the "status" field.
- func StatusLTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLTE(FieldStatus, v))
- }
- // StatusContains applies the Contains predicate on the "status" field.
- func StatusContains(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContains(FieldStatus, v))
- }
- // StatusHasPrefix applies the HasPrefix predicate on the "status" field.
- func StatusHasPrefix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasPrefix(FieldStatus, v))
- }
- // StatusHasSuffix applies the HasSuffix predicate on the "status" field.
- func StatusHasSuffix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasSuffix(FieldStatus, v))
- }
- // StatusEqualFold applies the EqualFold predicate on the "status" field.
- func StatusEqualFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEqualFold(FieldStatus, v))
- }
- // StatusContainsFold applies the ContainsFold predicate on the "status" field.
- func StatusContainsFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContainsFold(FieldStatus, v))
- }
- // ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
- func ExpiresAtEQ(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldExpiresAt, v))
- }
- // ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
- func ExpiresAtNEQ(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldExpiresAt, v))
- }
- // ExpiresAtIn applies the In predicate on the "expires_at" field.
- func ExpiresAtIn(vs ...time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldExpiresAt, vs...))
- }
- // ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
- func ExpiresAtNotIn(vs ...time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldExpiresAt, vs...))
- }
- // ExpiresAtGT applies the GT predicate on the "expires_at" field.
- func ExpiresAtGT(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldExpiresAt, v))
- }
- // ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
- func ExpiresAtGTE(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldExpiresAt, v))
- }
- // ExpiresAtLT applies the LT predicate on the "expires_at" field.
- func ExpiresAtLT(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldExpiresAt, v))
- }
- // ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
- func ExpiresAtLTE(v time.Time) predicate.Proxy {
- return predicate.Proxy(sql.FieldLTE(FieldExpiresAt, v))
- }
- // ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
- func ExpiresAtIsNil() predicate.Proxy {
- return predicate.Proxy(sql.FieldIsNull(FieldExpiresAt))
- }
- // ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
- func ExpiresAtNotNil() predicate.Proxy {
- return predicate.Proxy(sql.FieldNotNull(FieldExpiresAt))
- }
- // FallbackModeEQ applies the EQ predicate on the "fallback_mode" field.
- func FallbackModeEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldFallbackMode, v))
- }
- // FallbackModeNEQ applies the NEQ predicate on the "fallback_mode" field.
- func FallbackModeNEQ(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldFallbackMode, v))
- }
- // FallbackModeIn applies the In predicate on the "fallback_mode" field.
- func FallbackModeIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldFallbackMode, vs...))
- }
- // FallbackModeNotIn applies the NotIn predicate on the "fallback_mode" field.
- func FallbackModeNotIn(vs ...string) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldFallbackMode, vs...))
- }
- // FallbackModeGT applies the GT predicate on the "fallback_mode" field.
- func FallbackModeGT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldFallbackMode, v))
- }
- // FallbackModeGTE applies the GTE predicate on the "fallback_mode" field.
- func FallbackModeGTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldFallbackMode, v))
- }
- // FallbackModeLT applies the LT predicate on the "fallback_mode" field.
- func FallbackModeLT(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldFallbackMode, v))
- }
- // FallbackModeLTE applies the LTE predicate on the "fallback_mode" field.
- func FallbackModeLTE(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldLTE(FieldFallbackMode, v))
- }
- // FallbackModeContains applies the Contains predicate on the "fallback_mode" field.
- func FallbackModeContains(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContains(FieldFallbackMode, v))
- }
- // FallbackModeHasPrefix applies the HasPrefix predicate on the "fallback_mode" field.
- func FallbackModeHasPrefix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasPrefix(FieldFallbackMode, v))
- }
- // FallbackModeHasSuffix applies the HasSuffix predicate on the "fallback_mode" field.
- func FallbackModeHasSuffix(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldHasSuffix(FieldFallbackMode, v))
- }
- // FallbackModeEqualFold applies the EqualFold predicate on the "fallback_mode" field.
- func FallbackModeEqualFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldEqualFold(FieldFallbackMode, v))
- }
- // FallbackModeContainsFold applies the ContainsFold predicate on the "fallback_mode" field.
- func FallbackModeContainsFold(v string) predicate.Proxy {
- return predicate.Proxy(sql.FieldContainsFold(FieldFallbackMode, v))
- }
- // BackupProxyIDEQ applies the EQ predicate on the "backup_proxy_id" field.
- func BackupProxyIDEQ(v int64) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldBackupProxyID, v))
- }
- // BackupProxyIDNEQ applies the NEQ predicate on the "backup_proxy_id" field.
- func BackupProxyIDNEQ(v int64) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldBackupProxyID, v))
- }
- // BackupProxyIDIn applies the In predicate on the "backup_proxy_id" field.
- func BackupProxyIDIn(vs ...int64) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldBackupProxyID, vs...))
- }
- // BackupProxyIDNotIn applies the NotIn predicate on the "backup_proxy_id" field.
- func BackupProxyIDNotIn(vs ...int64) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldBackupProxyID, vs...))
- }
- // BackupProxyIDIsNil applies the IsNil predicate on the "backup_proxy_id" field.
- func BackupProxyIDIsNil() predicate.Proxy {
- return predicate.Proxy(sql.FieldIsNull(FieldBackupProxyID))
- }
- // BackupProxyIDNotNil applies the NotNil predicate on the "backup_proxy_id" field.
- func BackupProxyIDNotNil() predicate.Proxy {
- return predicate.Proxy(sql.FieldNotNull(FieldBackupProxyID))
- }
- // ExpiryWarnDaysEQ applies the EQ predicate on the "expiry_warn_days" field.
- func ExpiryWarnDaysEQ(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldEQ(FieldExpiryWarnDays, v))
- }
- // ExpiryWarnDaysNEQ applies the NEQ predicate on the "expiry_warn_days" field.
- func ExpiryWarnDaysNEQ(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldNEQ(FieldExpiryWarnDays, v))
- }
- // ExpiryWarnDaysIn applies the In predicate on the "expiry_warn_days" field.
- func ExpiryWarnDaysIn(vs ...int) predicate.Proxy {
- return predicate.Proxy(sql.FieldIn(FieldExpiryWarnDays, vs...))
- }
- // ExpiryWarnDaysNotIn applies the NotIn predicate on the "expiry_warn_days" field.
- func ExpiryWarnDaysNotIn(vs ...int) predicate.Proxy {
- return predicate.Proxy(sql.FieldNotIn(FieldExpiryWarnDays, vs...))
- }
- // ExpiryWarnDaysGT applies the GT predicate on the "expiry_warn_days" field.
- func ExpiryWarnDaysGT(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldGT(FieldExpiryWarnDays, v))
- }
- // ExpiryWarnDaysGTE applies the GTE predicate on the "expiry_warn_days" field.
- func ExpiryWarnDaysGTE(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldGTE(FieldExpiryWarnDays, v))
- }
- // ExpiryWarnDaysLT applies the LT predicate on the "expiry_warn_days" field.
- func ExpiryWarnDaysLT(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldLT(FieldExpiryWarnDays, v))
- }
- // ExpiryWarnDaysLTE applies the LTE predicate on the "expiry_warn_days" field.
- func ExpiryWarnDaysLTE(v int) predicate.Proxy {
- return predicate.Proxy(sql.FieldLTE(FieldExpiryWarnDays, v))
- }
- // HasAccounts applies the HasEdge predicate on the "accounts" edge.
- func HasAccounts() predicate.Proxy {
- return predicate.Proxy(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, true, AccountsTable, AccountsColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasAccountsWith applies the HasEdge predicate on the "accounts" edge with a given conditions (other predicates).
- func HasAccountsWith(preds ...predicate.Account) predicate.Proxy {
- return predicate.Proxy(func(s *sql.Selector) {
- step := newAccountsStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasPrimaryProxies applies the HasEdge predicate on the "primary_proxies" edge.
- func HasPrimaryProxies() predicate.Proxy {
- return predicate.Proxy(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, true, PrimaryProxiesTable, PrimaryProxiesColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasPrimaryProxiesWith applies the HasEdge predicate on the "primary_proxies" edge with a given conditions (other predicates).
- func HasPrimaryProxiesWith(preds ...predicate.Proxy) predicate.Proxy {
- return predicate.Proxy(func(s *sql.Selector) {
- step := newPrimaryProxiesStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasBackupProxy applies the HasEdge predicate on the "backup_proxy" edge.
- func HasBackupProxy() predicate.Proxy {
- return predicate.Proxy(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.M2O, false, BackupProxyTable, BackupProxyColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasBackupProxyWith applies the HasEdge predicate on the "backup_proxy" edge with a given conditions (other predicates).
- func HasBackupProxyWith(preds ...predicate.Proxy) predicate.Proxy {
- return predicate.Proxy(func(s *sql.Selector) {
- step := newBackupProxyStep()
- 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.Proxy) predicate.Proxy {
- return predicate.Proxy(sql.AndPredicates(predicates...))
- }
- // Or groups predicates with the OR operator between them.
- func Or(predicates ...predicate.Proxy) predicate.Proxy {
- return predicate.Proxy(sql.OrPredicates(predicates...))
- }
- // Not applies the not operator on the given predicate.
- func Not(p predicate.Proxy) predicate.Proxy {
- return predicate.Proxy(sql.NotPredicates(p))
- }
|