| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125 |
- // Code generated by ent, DO NOT EDIT.
- package channelmonitor
- 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.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldID, id))
- }
- // IDEQ applies the EQ predicate on the ID field.
- func IDEQ(id int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldID, id))
- }
- // IDNEQ applies the NEQ predicate on the ID field.
- func IDNEQ(id int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldID, id))
- }
- // IDIn applies the In predicate on the ID field.
- func IDIn(ids ...int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldID, ids...))
- }
- // IDNotIn applies the NotIn predicate on the ID field.
- func IDNotIn(ids ...int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldID, ids...))
- }
- // IDGT applies the GT predicate on the ID field.
- func IDGT(id int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldID, id))
- }
- // IDGTE applies the GTE predicate on the ID field.
- func IDGTE(id int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldID, id))
- }
- // IDLT applies the LT predicate on the ID field.
- func IDLT(id int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldID, id))
- }
- // IDLTE applies the LTE predicate on the ID field.
- func IDLTE(id int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(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.ChannelMonitor {
- return predicate.ChannelMonitor(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.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
- func Name(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldName, v))
- }
- // CheckMode applies equality check predicate on the "check_mode" field. It's identical to CheckModeEQ.
- func CheckMode(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldCheckMode, v))
- }
- // AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.
- func AccountID(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldAccountID, v))
- }
- // APIMode applies equality check predicate on the "api_mode" field. It's identical to APIModeEQ.
- func APIMode(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldAPIMode, v))
- }
- // Endpoint applies equality check predicate on the "endpoint" field. It's identical to EndpointEQ.
- func Endpoint(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldEndpoint, v))
- }
- // APIKeyEncrypted applies equality check predicate on the "api_key_encrypted" field. It's identical to APIKeyEncryptedEQ.
- func APIKeyEncrypted(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldAPIKeyEncrypted, v))
- }
- // PrimaryModel applies equality check predicate on the "primary_model" field. It's identical to PrimaryModelEQ.
- func PrimaryModel(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldPrimaryModel, v))
- }
- // GroupName applies equality check predicate on the "group_name" field. It's identical to GroupNameEQ.
- func GroupName(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldGroupName, v))
- }
- // Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
- func Enabled(v bool) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldEnabled, v))
- }
- // IntervalSeconds applies equality check predicate on the "interval_seconds" field. It's identical to IntervalSecondsEQ.
- func IntervalSeconds(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldIntervalSeconds, v))
- }
- // JitterSeconds applies equality check predicate on the "jitter_seconds" field. It's identical to JitterSecondsEQ.
- func JitterSeconds(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldJitterSeconds, v))
- }
- // LastCheckedAt applies equality check predicate on the "last_checked_at" field. It's identical to LastCheckedAtEQ.
- func LastCheckedAt(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldLastCheckedAt, v))
- }
- // CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
- func CreatedBy(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldCreatedBy, v))
- }
- // TemplateID applies equality check predicate on the "template_id" field. It's identical to TemplateIDEQ.
- func TemplateID(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldTemplateID, v))
- }
- // BodyOverrideMode applies equality check predicate on the "body_override_mode" field. It's identical to BodyOverrideModeEQ.
- func BodyOverrideMode(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldBodyOverrideMode, v))
- }
- // CreatedAtEQ applies the EQ predicate on the "created_at" field.
- func CreatedAtEQ(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldCreatedAt, v))
- }
- // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
- func CreatedAtNEQ(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldCreatedAt, v))
- }
- // CreatedAtIn applies the In predicate on the "created_at" field.
- func CreatedAtIn(vs ...time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldCreatedAt, vs...))
- }
- // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
- func CreatedAtNotIn(vs ...time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldCreatedAt, vs...))
- }
- // CreatedAtGT applies the GT predicate on the "created_at" field.
- func CreatedAtGT(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldCreatedAt, v))
- }
- // CreatedAtGTE applies the GTE predicate on the "created_at" field.
- func CreatedAtGTE(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldCreatedAt, v))
- }
- // CreatedAtLT applies the LT predicate on the "created_at" field.
- func CreatedAtLT(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldCreatedAt, v))
- }
- // CreatedAtLTE applies the LTE predicate on the "created_at" field.
- func CreatedAtLTE(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldCreatedAt, v))
- }
- // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
- func UpdatedAtEQ(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
- func UpdatedAtNEQ(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtIn applies the In predicate on the "updated_at" field.
- func UpdatedAtIn(vs ...time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
- func UpdatedAtNotIn(vs ...time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtGT applies the GT predicate on the "updated_at" field.
- func UpdatedAtGT(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldUpdatedAt, v))
- }
- // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
- func UpdatedAtGTE(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldUpdatedAt, v))
- }
- // UpdatedAtLT applies the LT predicate on the "updated_at" field.
- func UpdatedAtLT(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldUpdatedAt, v))
- }
- // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
- func UpdatedAtLTE(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldUpdatedAt, v))
- }
- // NameEQ applies the EQ predicate on the "name" field.
- func NameEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldName, v))
- }
- // NameNEQ applies the NEQ predicate on the "name" field.
- func NameNEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldName, v))
- }
- // NameIn applies the In predicate on the "name" field.
- func NameIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldName, vs...))
- }
- // NameNotIn applies the NotIn predicate on the "name" field.
- func NameNotIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldName, vs...))
- }
- // NameGT applies the GT predicate on the "name" field.
- func NameGT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldName, v))
- }
- // NameGTE applies the GTE predicate on the "name" field.
- func NameGTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldName, v))
- }
- // NameLT applies the LT predicate on the "name" field.
- func NameLT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldName, v))
- }
- // NameLTE applies the LTE predicate on the "name" field.
- func NameLTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldName, v))
- }
- // NameContains applies the Contains predicate on the "name" field.
- func NameContains(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContains(FieldName, v))
- }
- // NameHasPrefix applies the HasPrefix predicate on the "name" field.
- func NameHasPrefix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldName, v))
- }
- // NameHasSuffix applies the HasSuffix predicate on the "name" field.
- func NameHasSuffix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldName, v))
- }
- // NameEqualFold applies the EqualFold predicate on the "name" field.
- func NameEqualFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEqualFold(FieldName, v))
- }
- // NameContainsFold applies the ContainsFold predicate on the "name" field.
- func NameContainsFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContainsFold(FieldName, v))
- }
- // ProviderEQ applies the EQ predicate on the "provider" field.
- func ProviderEQ(v Provider) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldProvider, v))
- }
- // ProviderNEQ applies the NEQ predicate on the "provider" field.
- func ProviderNEQ(v Provider) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldProvider, v))
- }
- // ProviderIn applies the In predicate on the "provider" field.
- func ProviderIn(vs ...Provider) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldProvider, vs...))
- }
- // ProviderNotIn applies the NotIn predicate on the "provider" field.
- func ProviderNotIn(vs ...Provider) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldProvider, vs...))
- }
- // CheckModeEQ applies the EQ predicate on the "check_mode" field.
- func CheckModeEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldCheckMode, v))
- }
- // CheckModeNEQ applies the NEQ predicate on the "check_mode" field.
- func CheckModeNEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldCheckMode, v))
- }
- // CheckModeIn applies the In predicate on the "check_mode" field.
- func CheckModeIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldCheckMode, vs...))
- }
- // CheckModeNotIn applies the NotIn predicate on the "check_mode" field.
- func CheckModeNotIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldCheckMode, vs...))
- }
- // CheckModeGT applies the GT predicate on the "check_mode" field.
- func CheckModeGT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldCheckMode, v))
- }
- // CheckModeGTE applies the GTE predicate on the "check_mode" field.
- func CheckModeGTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldCheckMode, v))
- }
- // CheckModeLT applies the LT predicate on the "check_mode" field.
- func CheckModeLT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldCheckMode, v))
- }
- // CheckModeLTE applies the LTE predicate on the "check_mode" field.
- func CheckModeLTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldCheckMode, v))
- }
- // CheckModeContains applies the Contains predicate on the "check_mode" field.
- func CheckModeContains(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContains(FieldCheckMode, v))
- }
- // CheckModeHasPrefix applies the HasPrefix predicate on the "check_mode" field.
- func CheckModeHasPrefix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldCheckMode, v))
- }
- // CheckModeHasSuffix applies the HasSuffix predicate on the "check_mode" field.
- func CheckModeHasSuffix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldCheckMode, v))
- }
- // CheckModeEqualFold applies the EqualFold predicate on the "check_mode" field.
- func CheckModeEqualFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEqualFold(FieldCheckMode, v))
- }
- // CheckModeContainsFold applies the ContainsFold predicate on the "check_mode" field.
- func CheckModeContainsFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContainsFold(FieldCheckMode, v))
- }
- // AccountIDEQ applies the EQ predicate on the "account_id" field.
- func AccountIDEQ(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldAccountID, v))
- }
- // AccountIDNEQ applies the NEQ predicate on the "account_id" field.
- func AccountIDNEQ(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldAccountID, v))
- }
- // AccountIDIn applies the In predicate on the "account_id" field.
- func AccountIDIn(vs ...int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldAccountID, vs...))
- }
- // AccountIDNotIn applies the NotIn predicate on the "account_id" field.
- func AccountIDNotIn(vs ...int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldAccountID, vs...))
- }
- // AccountIDGT applies the GT predicate on the "account_id" field.
- func AccountIDGT(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldAccountID, v))
- }
- // AccountIDGTE applies the GTE predicate on the "account_id" field.
- func AccountIDGTE(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldAccountID, v))
- }
- // AccountIDLT applies the LT predicate on the "account_id" field.
- func AccountIDLT(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldAccountID, v))
- }
- // AccountIDLTE applies the LTE predicate on the "account_id" field.
- func AccountIDLTE(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldAccountID, v))
- }
- // AccountIDIsNil applies the IsNil predicate on the "account_id" field.
- func AccountIDIsNil() predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIsNull(FieldAccountID))
- }
- // AccountIDNotNil applies the NotNil predicate on the "account_id" field.
- func AccountIDNotNil() predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotNull(FieldAccountID))
- }
- // APIModeEQ applies the EQ predicate on the "api_mode" field.
- func APIModeEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldAPIMode, v))
- }
- // APIModeNEQ applies the NEQ predicate on the "api_mode" field.
- func APIModeNEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldAPIMode, v))
- }
- // APIModeIn applies the In predicate on the "api_mode" field.
- func APIModeIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldAPIMode, vs...))
- }
- // APIModeNotIn applies the NotIn predicate on the "api_mode" field.
- func APIModeNotIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldAPIMode, vs...))
- }
- // APIModeGT applies the GT predicate on the "api_mode" field.
- func APIModeGT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldAPIMode, v))
- }
- // APIModeGTE applies the GTE predicate on the "api_mode" field.
- func APIModeGTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldAPIMode, v))
- }
- // APIModeLT applies the LT predicate on the "api_mode" field.
- func APIModeLT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldAPIMode, v))
- }
- // APIModeLTE applies the LTE predicate on the "api_mode" field.
- func APIModeLTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldAPIMode, v))
- }
- // APIModeContains applies the Contains predicate on the "api_mode" field.
- func APIModeContains(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContains(FieldAPIMode, v))
- }
- // APIModeHasPrefix applies the HasPrefix predicate on the "api_mode" field.
- func APIModeHasPrefix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldAPIMode, v))
- }
- // APIModeHasSuffix applies the HasSuffix predicate on the "api_mode" field.
- func APIModeHasSuffix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldAPIMode, v))
- }
- // APIModeEqualFold applies the EqualFold predicate on the "api_mode" field.
- func APIModeEqualFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEqualFold(FieldAPIMode, v))
- }
- // APIModeContainsFold applies the ContainsFold predicate on the "api_mode" field.
- func APIModeContainsFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContainsFold(FieldAPIMode, v))
- }
- // EndpointEQ applies the EQ predicate on the "endpoint" field.
- func EndpointEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldEndpoint, v))
- }
- // EndpointNEQ applies the NEQ predicate on the "endpoint" field.
- func EndpointNEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldEndpoint, v))
- }
- // EndpointIn applies the In predicate on the "endpoint" field.
- func EndpointIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldEndpoint, vs...))
- }
- // EndpointNotIn applies the NotIn predicate on the "endpoint" field.
- func EndpointNotIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldEndpoint, vs...))
- }
- // EndpointGT applies the GT predicate on the "endpoint" field.
- func EndpointGT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldEndpoint, v))
- }
- // EndpointGTE applies the GTE predicate on the "endpoint" field.
- func EndpointGTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldEndpoint, v))
- }
- // EndpointLT applies the LT predicate on the "endpoint" field.
- func EndpointLT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldEndpoint, v))
- }
- // EndpointLTE applies the LTE predicate on the "endpoint" field.
- func EndpointLTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldEndpoint, v))
- }
- // EndpointContains applies the Contains predicate on the "endpoint" field.
- func EndpointContains(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContains(FieldEndpoint, v))
- }
- // EndpointHasPrefix applies the HasPrefix predicate on the "endpoint" field.
- func EndpointHasPrefix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldEndpoint, v))
- }
- // EndpointHasSuffix applies the HasSuffix predicate on the "endpoint" field.
- func EndpointHasSuffix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldEndpoint, v))
- }
- // EndpointEqualFold applies the EqualFold predicate on the "endpoint" field.
- func EndpointEqualFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEqualFold(FieldEndpoint, v))
- }
- // EndpointContainsFold applies the ContainsFold predicate on the "endpoint" field.
- func EndpointContainsFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContainsFold(FieldEndpoint, v))
- }
- // APIKeyEncryptedEQ applies the EQ predicate on the "api_key_encrypted" field.
- func APIKeyEncryptedEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldAPIKeyEncrypted, v))
- }
- // APIKeyEncryptedNEQ applies the NEQ predicate on the "api_key_encrypted" field.
- func APIKeyEncryptedNEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldAPIKeyEncrypted, v))
- }
- // APIKeyEncryptedIn applies the In predicate on the "api_key_encrypted" field.
- func APIKeyEncryptedIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldAPIKeyEncrypted, vs...))
- }
- // APIKeyEncryptedNotIn applies the NotIn predicate on the "api_key_encrypted" field.
- func APIKeyEncryptedNotIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldAPIKeyEncrypted, vs...))
- }
- // APIKeyEncryptedGT applies the GT predicate on the "api_key_encrypted" field.
- func APIKeyEncryptedGT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldAPIKeyEncrypted, v))
- }
- // APIKeyEncryptedGTE applies the GTE predicate on the "api_key_encrypted" field.
- func APIKeyEncryptedGTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldAPIKeyEncrypted, v))
- }
- // APIKeyEncryptedLT applies the LT predicate on the "api_key_encrypted" field.
- func APIKeyEncryptedLT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldAPIKeyEncrypted, v))
- }
- // APIKeyEncryptedLTE applies the LTE predicate on the "api_key_encrypted" field.
- func APIKeyEncryptedLTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldAPIKeyEncrypted, v))
- }
- // APIKeyEncryptedContains applies the Contains predicate on the "api_key_encrypted" field.
- func APIKeyEncryptedContains(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContains(FieldAPIKeyEncrypted, v))
- }
- // APIKeyEncryptedHasPrefix applies the HasPrefix predicate on the "api_key_encrypted" field.
- func APIKeyEncryptedHasPrefix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldAPIKeyEncrypted, v))
- }
- // APIKeyEncryptedHasSuffix applies the HasSuffix predicate on the "api_key_encrypted" field.
- func APIKeyEncryptedHasSuffix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldAPIKeyEncrypted, v))
- }
- // APIKeyEncryptedEqualFold applies the EqualFold predicate on the "api_key_encrypted" field.
- func APIKeyEncryptedEqualFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEqualFold(FieldAPIKeyEncrypted, v))
- }
- // APIKeyEncryptedContainsFold applies the ContainsFold predicate on the "api_key_encrypted" field.
- func APIKeyEncryptedContainsFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContainsFold(FieldAPIKeyEncrypted, v))
- }
- // PrimaryModelEQ applies the EQ predicate on the "primary_model" field.
- func PrimaryModelEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldPrimaryModel, v))
- }
- // PrimaryModelNEQ applies the NEQ predicate on the "primary_model" field.
- func PrimaryModelNEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldPrimaryModel, v))
- }
- // PrimaryModelIn applies the In predicate on the "primary_model" field.
- func PrimaryModelIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldPrimaryModel, vs...))
- }
- // PrimaryModelNotIn applies the NotIn predicate on the "primary_model" field.
- func PrimaryModelNotIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldPrimaryModel, vs...))
- }
- // PrimaryModelGT applies the GT predicate on the "primary_model" field.
- func PrimaryModelGT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldPrimaryModel, v))
- }
- // PrimaryModelGTE applies the GTE predicate on the "primary_model" field.
- func PrimaryModelGTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldPrimaryModel, v))
- }
- // PrimaryModelLT applies the LT predicate on the "primary_model" field.
- func PrimaryModelLT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldPrimaryModel, v))
- }
- // PrimaryModelLTE applies the LTE predicate on the "primary_model" field.
- func PrimaryModelLTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldPrimaryModel, v))
- }
- // PrimaryModelContains applies the Contains predicate on the "primary_model" field.
- func PrimaryModelContains(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContains(FieldPrimaryModel, v))
- }
- // PrimaryModelHasPrefix applies the HasPrefix predicate on the "primary_model" field.
- func PrimaryModelHasPrefix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldPrimaryModel, v))
- }
- // PrimaryModelHasSuffix applies the HasSuffix predicate on the "primary_model" field.
- func PrimaryModelHasSuffix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldPrimaryModel, v))
- }
- // PrimaryModelEqualFold applies the EqualFold predicate on the "primary_model" field.
- func PrimaryModelEqualFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEqualFold(FieldPrimaryModel, v))
- }
- // PrimaryModelContainsFold applies the ContainsFold predicate on the "primary_model" field.
- func PrimaryModelContainsFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContainsFold(FieldPrimaryModel, v))
- }
- // GroupNameEQ applies the EQ predicate on the "group_name" field.
- func GroupNameEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldGroupName, v))
- }
- // GroupNameNEQ applies the NEQ predicate on the "group_name" field.
- func GroupNameNEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldGroupName, v))
- }
- // GroupNameIn applies the In predicate on the "group_name" field.
- func GroupNameIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldGroupName, vs...))
- }
- // GroupNameNotIn applies the NotIn predicate on the "group_name" field.
- func GroupNameNotIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldGroupName, vs...))
- }
- // GroupNameGT applies the GT predicate on the "group_name" field.
- func GroupNameGT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldGroupName, v))
- }
- // GroupNameGTE applies the GTE predicate on the "group_name" field.
- func GroupNameGTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldGroupName, v))
- }
- // GroupNameLT applies the LT predicate on the "group_name" field.
- func GroupNameLT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldGroupName, v))
- }
- // GroupNameLTE applies the LTE predicate on the "group_name" field.
- func GroupNameLTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldGroupName, v))
- }
- // GroupNameContains applies the Contains predicate on the "group_name" field.
- func GroupNameContains(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContains(FieldGroupName, v))
- }
- // GroupNameHasPrefix applies the HasPrefix predicate on the "group_name" field.
- func GroupNameHasPrefix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldGroupName, v))
- }
- // GroupNameHasSuffix applies the HasSuffix predicate on the "group_name" field.
- func GroupNameHasSuffix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldGroupName, v))
- }
- // GroupNameIsNil applies the IsNil predicate on the "group_name" field.
- func GroupNameIsNil() predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIsNull(FieldGroupName))
- }
- // GroupNameNotNil applies the NotNil predicate on the "group_name" field.
- func GroupNameNotNil() predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotNull(FieldGroupName))
- }
- // GroupNameEqualFold applies the EqualFold predicate on the "group_name" field.
- func GroupNameEqualFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEqualFold(FieldGroupName, v))
- }
- // GroupNameContainsFold applies the ContainsFold predicate on the "group_name" field.
- func GroupNameContainsFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContainsFold(FieldGroupName, v))
- }
- // EnabledEQ applies the EQ predicate on the "enabled" field.
- func EnabledEQ(v bool) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldEnabled, v))
- }
- // EnabledNEQ applies the NEQ predicate on the "enabled" field.
- func EnabledNEQ(v bool) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldEnabled, v))
- }
- // IntervalSecondsEQ applies the EQ predicate on the "interval_seconds" field.
- func IntervalSecondsEQ(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldIntervalSeconds, v))
- }
- // IntervalSecondsNEQ applies the NEQ predicate on the "interval_seconds" field.
- func IntervalSecondsNEQ(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldIntervalSeconds, v))
- }
- // IntervalSecondsIn applies the In predicate on the "interval_seconds" field.
- func IntervalSecondsIn(vs ...int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldIntervalSeconds, vs...))
- }
- // IntervalSecondsNotIn applies the NotIn predicate on the "interval_seconds" field.
- func IntervalSecondsNotIn(vs ...int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldIntervalSeconds, vs...))
- }
- // IntervalSecondsGT applies the GT predicate on the "interval_seconds" field.
- func IntervalSecondsGT(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldIntervalSeconds, v))
- }
- // IntervalSecondsGTE applies the GTE predicate on the "interval_seconds" field.
- func IntervalSecondsGTE(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldIntervalSeconds, v))
- }
- // IntervalSecondsLT applies the LT predicate on the "interval_seconds" field.
- func IntervalSecondsLT(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldIntervalSeconds, v))
- }
- // IntervalSecondsLTE applies the LTE predicate on the "interval_seconds" field.
- func IntervalSecondsLTE(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldIntervalSeconds, v))
- }
- // JitterSecondsEQ applies the EQ predicate on the "jitter_seconds" field.
- func JitterSecondsEQ(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldJitterSeconds, v))
- }
- // JitterSecondsNEQ applies the NEQ predicate on the "jitter_seconds" field.
- func JitterSecondsNEQ(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldJitterSeconds, v))
- }
- // JitterSecondsIn applies the In predicate on the "jitter_seconds" field.
- func JitterSecondsIn(vs ...int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldJitterSeconds, vs...))
- }
- // JitterSecondsNotIn applies the NotIn predicate on the "jitter_seconds" field.
- func JitterSecondsNotIn(vs ...int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldJitterSeconds, vs...))
- }
- // JitterSecondsGT applies the GT predicate on the "jitter_seconds" field.
- func JitterSecondsGT(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldJitterSeconds, v))
- }
- // JitterSecondsGTE applies the GTE predicate on the "jitter_seconds" field.
- func JitterSecondsGTE(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldJitterSeconds, v))
- }
- // JitterSecondsLT applies the LT predicate on the "jitter_seconds" field.
- func JitterSecondsLT(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldJitterSeconds, v))
- }
- // JitterSecondsLTE applies the LTE predicate on the "jitter_seconds" field.
- func JitterSecondsLTE(v int) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldJitterSeconds, v))
- }
- // LastCheckedAtEQ applies the EQ predicate on the "last_checked_at" field.
- func LastCheckedAtEQ(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldLastCheckedAt, v))
- }
- // LastCheckedAtNEQ applies the NEQ predicate on the "last_checked_at" field.
- func LastCheckedAtNEQ(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldLastCheckedAt, v))
- }
- // LastCheckedAtIn applies the In predicate on the "last_checked_at" field.
- func LastCheckedAtIn(vs ...time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldLastCheckedAt, vs...))
- }
- // LastCheckedAtNotIn applies the NotIn predicate on the "last_checked_at" field.
- func LastCheckedAtNotIn(vs ...time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldLastCheckedAt, vs...))
- }
- // LastCheckedAtGT applies the GT predicate on the "last_checked_at" field.
- func LastCheckedAtGT(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldLastCheckedAt, v))
- }
- // LastCheckedAtGTE applies the GTE predicate on the "last_checked_at" field.
- func LastCheckedAtGTE(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldLastCheckedAt, v))
- }
- // LastCheckedAtLT applies the LT predicate on the "last_checked_at" field.
- func LastCheckedAtLT(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldLastCheckedAt, v))
- }
- // LastCheckedAtLTE applies the LTE predicate on the "last_checked_at" field.
- func LastCheckedAtLTE(v time.Time) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldLastCheckedAt, v))
- }
- // LastCheckedAtIsNil applies the IsNil predicate on the "last_checked_at" field.
- func LastCheckedAtIsNil() predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIsNull(FieldLastCheckedAt))
- }
- // LastCheckedAtNotNil applies the NotNil predicate on the "last_checked_at" field.
- func LastCheckedAtNotNil() predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotNull(FieldLastCheckedAt))
- }
- // CreatedByEQ applies the EQ predicate on the "created_by" field.
- func CreatedByEQ(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldCreatedBy, v))
- }
- // CreatedByNEQ applies the NEQ predicate on the "created_by" field.
- func CreatedByNEQ(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldCreatedBy, v))
- }
- // CreatedByIn applies the In predicate on the "created_by" field.
- func CreatedByIn(vs ...int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldCreatedBy, vs...))
- }
- // CreatedByNotIn applies the NotIn predicate on the "created_by" field.
- func CreatedByNotIn(vs ...int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldCreatedBy, vs...))
- }
- // CreatedByGT applies the GT predicate on the "created_by" field.
- func CreatedByGT(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldCreatedBy, v))
- }
- // CreatedByGTE applies the GTE predicate on the "created_by" field.
- func CreatedByGTE(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldCreatedBy, v))
- }
- // CreatedByLT applies the LT predicate on the "created_by" field.
- func CreatedByLT(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldCreatedBy, v))
- }
- // CreatedByLTE applies the LTE predicate on the "created_by" field.
- func CreatedByLTE(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldCreatedBy, v))
- }
- // TemplateIDEQ applies the EQ predicate on the "template_id" field.
- func TemplateIDEQ(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldTemplateID, v))
- }
- // TemplateIDNEQ applies the NEQ predicate on the "template_id" field.
- func TemplateIDNEQ(v int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldTemplateID, v))
- }
- // TemplateIDIn applies the In predicate on the "template_id" field.
- func TemplateIDIn(vs ...int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldTemplateID, vs...))
- }
- // TemplateIDNotIn applies the NotIn predicate on the "template_id" field.
- func TemplateIDNotIn(vs ...int64) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldTemplateID, vs...))
- }
- // TemplateIDIsNil applies the IsNil predicate on the "template_id" field.
- func TemplateIDIsNil() predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIsNull(FieldTemplateID))
- }
- // TemplateIDNotNil applies the NotNil predicate on the "template_id" field.
- func TemplateIDNotNil() predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotNull(FieldTemplateID))
- }
- // BodyOverrideModeEQ applies the EQ predicate on the "body_override_mode" field.
- func BodyOverrideModeEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEQ(FieldBodyOverrideMode, v))
- }
- // BodyOverrideModeNEQ applies the NEQ predicate on the "body_override_mode" field.
- func BodyOverrideModeNEQ(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNEQ(FieldBodyOverrideMode, v))
- }
- // BodyOverrideModeIn applies the In predicate on the "body_override_mode" field.
- func BodyOverrideModeIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIn(FieldBodyOverrideMode, vs...))
- }
- // BodyOverrideModeNotIn applies the NotIn predicate on the "body_override_mode" field.
- func BodyOverrideModeNotIn(vs ...string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotIn(FieldBodyOverrideMode, vs...))
- }
- // BodyOverrideModeGT applies the GT predicate on the "body_override_mode" field.
- func BodyOverrideModeGT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGT(FieldBodyOverrideMode, v))
- }
- // BodyOverrideModeGTE applies the GTE predicate on the "body_override_mode" field.
- func BodyOverrideModeGTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldGTE(FieldBodyOverrideMode, v))
- }
- // BodyOverrideModeLT applies the LT predicate on the "body_override_mode" field.
- func BodyOverrideModeLT(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLT(FieldBodyOverrideMode, v))
- }
- // BodyOverrideModeLTE applies the LTE predicate on the "body_override_mode" field.
- func BodyOverrideModeLTE(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldLTE(FieldBodyOverrideMode, v))
- }
- // BodyOverrideModeContains applies the Contains predicate on the "body_override_mode" field.
- func BodyOverrideModeContains(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContains(FieldBodyOverrideMode, v))
- }
- // BodyOverrideModeHasPrefix applies the HasPrefix predicate on the "body_override_mode" field.
- func BodyOverrideModeHasPrefix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldBodyOverrideMode, v))
- }
- // BodyOverrideModeHasSuffix applies the HasSuffix predicate on the "body_override_mode" field.
- func BodyOverrideModeHasSuffix(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldBodyOverrideMode, v))
- }
- // BodyOverrideModeEqualFold applies the EqualFold predicate on the "body_override_mode" field.
- func BodyOverrideModeEqualFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldEqualFold(FieldBodyOverrideMode, v))
- }
- // BodyOverrideModeContainsFold applies the ContainsFold predicate on the "body_override_mode" field.
- func BodyOverrideModeContainsFold(v string) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldContainsFold(FieldBodyOverrideMode, v))
- }
- // BodyOverrideIsNil applies the IsNil predicate on the "body_override" field.
- func BodyOverrideIsNil() predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldIsNull(FieldBodyOverride))
- }
- // BodyOverrideNotNil applies the NotNil predicate on the "body_override" field.
- func BodyOverrideNotNil() predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.FieldNotNull(FieldBodyOverride))
- }
- // HasHistory applies the HasEdge predicate on the "history" edge.
- func HasHistory() predicate.ChannelMonitor {
- return predicate.ChannelMonitor(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, HistoryTable, HistoryColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasHistoryWith applies the HasEdge predicate on the "history" edge with a given conditions (other predicates).
- func HasHistoryWith(preds ...predicate.ChannelMonitorHistory) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(func(s *sql.Selector) {
- step := newHistoryStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasDailyRollups applies the HasEdge predicate on the "daily_rollups" edge.
- func HasDailyRollups() predicate.ChannelMonitor {
- return predicate.ChannelMonitor(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, DailyRollupsTable, DailyRollupsColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasDailyRollupsWith applies the HasEdge predicate on the "daily_rollups" edge with a given conditions (other predicates).
- func HasDailyRollupsWith(preds ...predicate.ChannelMonitorDailyRollup) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(func(s *sql.Selector) {
- step := newDailyRollupsStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasRequestTemplate applies the HasEdge predicate on the "request_template" edge.
- func HasRequestTemplate() predicate.ChannelMonitor {
- return predicate.ChannelMonitor(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.M2O, false, RequestTemplateTable, RequestTemplateColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasRequestTemplateWith applies the HasEdge predicate on the "request_template" edge with a given conditions (other predicates).
- func HasRequestTemplateWith(preds ...predicate.ChannelMonitorRequestTemplate) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(func(s *sql.Selector) {
- step := newRequestTemplateStep()
- 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.ChannelMonitor) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.AndPredicates(predicates...))
- }
- // Or groups predicates with the OR operator between them.
- func Or(predicates ...predicate.ChannelMonitor) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.OrPredicates(predicates...))
- }
- // Not applies the not operator on the given predicate.
- func Not(p predicate.ChannelMonitor) predicate.ChannelMonitor {
- return predicate.ChannelMonitor(sql.NotPredicates(p))
- }
|