| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694 |
- // Code generated by ent, DO NOT EDIT.
- package announcement
- 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.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldID, id))
- }
- // IDEQ applies the EQ predicate on the ID field.
- func IDEQ(id int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldID, id))
- }
- // IDNEQ applies the NEQ predicate on the ID field.
- func IDNEQ(id int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldNEQ(FieldID, id))
- }
- // IDIn applies the In predicate on the ID field.
- func IDIn(ids ...int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldIn(FieldID, ids...))
- }
- // IDNotIn applies the NotIn predicate on the ID field.
- func IDNotIn(ids ...int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldNotIn(FieldID, ids...))
- }
- // IDGT applies the GT predicate on the ID field.
- func IDGT(id int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldGT(FieldID, id))
- }
- // IDGTE applies the GTE predicate on the ID field.
- func IDGTE(id int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldGTE(FieldID, id))
- }
- // IDLT applies the LT predicate on the ID field.
- func IDLT(id int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldLT(FieldID, id))
- }
- // IDLTE applies the LTE predicate on the ID field.
- func IDLTE(id int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldLTE(FieldID, id))
- }
- // Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
- func Title(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldTitle, v))
- }
- // Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
- func Content(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldContent, v))
- }
- // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
- func Status(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldStatus, v))
- }
- // NotifyMode applies equality check predicate on the "notify_mode" field. It's identical to NotifyModeEQ.
- func NotifyMode(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldNotifyMode, v))
- }
- // StartsAt applies equality check predicate on the "starts_at" field. It's identical to StartsAtEQ.
- func StartsAt(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldStartsAt, v))
- }
- // EndsAt applies equality check predicate on the "ends_at" field. It's identical to EndsAtEQ.
- func EndsAt(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldEndsAt, v))
- }
- // CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
- func CreatedBy(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldCreatedBy, v))
- }
- // UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
- func UpdatedBy(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldUpdatedBy, v))
- }
- // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
- func CreatedAt(v time.Time) predicate.Announcement {
- return predicate.Announcement(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.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // TitleEQ applies the EQ predicate on the "title" field.
- func TitleEQ(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldTitle, v))
- }
- // TitleNEQ applies the NEQ predicate on the "title" field.
- func TitleNEQ(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldNEQ(FieldTitle, v))
- }
- // TitleIn applies the In predicate on the "title" field.
- func TitleIn(vs ...string) predicate.Announcement {
- return predicate.Announcement(sql.FieldIn(FieldTitle, vs...))
- }
- // TitleNotIn applies the NotIn predicate on the "title" field.
- func TitleNotIn(vs ...string) predicate.Announcement {
- return predicate.Announcement(sql.FieldNotIn(FieldTitle, vs...))
- }
- // TitleGT applies the GT predicate on the "title" field.
- func TitleGT(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldGT(FieldTitle, v))
- }
- // TitleGTE applies the GTE predicate on the "title" field.
- func TitleGTE(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldGTE(FieldTitle, v))
- }
- // TitleLT applies the LT predicate on the "title" field.
- func TitleLT(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldLT(FieldTitle, v))
- }
- // TitleLTE applies the LTE predicate on the "title" field.
- func TitleLTE(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldLTE(FieldTitle, v))
- }
- // TitleContains applies the Contains predicate on the "title" field.
- func TitleContains(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldContains(FieldTitle, v))
- }
- // TitleHasPrefix applies the HasPrefix predicate on the "title" field.
- func TitleHasPrefix(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldHasPrefix(FieldTitle, v))
- }
- // TitleHasSuffix applies the HasSuffix predicate on the "title" field.
- func TitleHasSuffix(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldHasSuffix(FieldTitle, v))
- }
- // TitleEqualFold applies the EqualFold predicate on the "title" field.
- func TitleEqualFold(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldEqualFold(FieldTitle, v))
- }
- // TitleContainsFold applies the ContainsFold predicate on the "title" field.
- func TitleContainsFold(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldContainsFold(FieldTitle, v))
- }
- // ContentEQ applies the EQ predicate on the "content" field.
- func ContentEQ(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldContent, v))
- }
- // ContentNEQ applies the NEQ predicate on the "content" field.
- func ContentNEQ(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldNEQ(FieldContent, v))
- }
- // ContentIn applies the In predicate on the "content" field.
- func ContentIn(vs ...string) predicate.Announcement {
- return predicate.Announcement(sql.FieldIn(FieldContent, vs...))
- }
- // ContentNotIn applies the NotIn predicate on the "content" field.
- func ContentNotIn(vs ...string) predicate.Announcement {
- return predicate.Announcement(sql.FieldNotIn(FieldContent, vs...))
- }
- // ContentGT applies the GT predicate on the "content" field.
- func ContentGT(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldGT(FieldContent, v))
- }
- // ContentGTE applies the GTE predicate on the "content" field.
- func ContentGTE(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldGTE(FieldContent, v))
- }
- // ContentLT applies the LT predicate on the "content" field.
- func ContentLT(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldLT(FieldContent, v))
- }
- // ContentLTE applies the LTE predicate on the "content" field.
- func ContentLTE(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldLTE(FieldContent, v))
- }
- // ContentContains applies the Contains predicate on the "content" field.
- func ContentContains(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldContains(FieldContent, v))
- }
- // ContentHasPrefix applies the HasPrefix predicate on the "content" field.
- func ContentHasPrefix(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldHasPrefix(FieldContent, v))
- }
- // ContentHasSuffix applies the HasSuffix predicate on the "content" field.
- func ContentHasSuffix(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldHasSuffix(FieldContent, v))
- }
- // ContentEqualFold applies the EqualFold predicate on the "content" field.
- func ContentEqualFold(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldEqualFold(FieldContent, v))
- }
- // ContentContainsFold applies the ContainsFold predicate on the "content" field.
- func ContentContainsFold(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldContainsFold(FieldContent, v))
- }
- // StatusEQ applies the EQ predicate on the "status" field.
- func StatusEQ(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldStatus, v))
- }
- // StatusNEQ applies the NEQ predicate on the "status" field.
- func StatusNEQ(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldNEQ(FieldStatus, v))
- }
- // StatusIn applies the In predicate on the "status" field.
- func StatusIn(vs ...string) predicate.Announcement {
- return predicate.Announcement(sql.FieldIn(FieldStatus, vs...))
- }
- // StatusNotIn applies the NotIn predicate on the "status" field.
- func StatusNotIn(vs ...string) predicate.Announcement {
- return predicate.Announcement(sql.FieldNotIn(FieldStatus, vs...))
- }
- // StatusGT applies the GT predicate on the "status" field.
- func StatusGT(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldGT(FieldStatus, v))
- }
- // StatusGTE applies the GTE predicate on the "status" field.
- func StatusGTE(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldGTE(FieldStatus, v))
- }
- // StatusLT applies the LT predicate on the "status" field.
- func StatusLT(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldLT(FieldStatus, v))
- }
- // StatusLTE applies the LTE predicate on the "status" field.
- func StatusLTE(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldLTE(FieldStatus, v))
- }
- // StatusContains applies the Contains predicate on the "status" field.
- func StatusContains(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldContains(FieldStatus, v))
- }
- // StatusHasPrefix applies the HasPrefix predicate on the "status" field.
- func StatusHasPrefix(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldHasPrefix(FieldStatus, v))
- }
- // StatusHasSuffix applies the HasSuffix predicate on the "status" field.
- func StatusHasSuffix(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldHasSuffix(FieldStatus, v))
- }
- // StatusEqualFold applies the EqualFold predicate on the "status" field.
- func StatusEqualFold(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldEqualFold(FieldStatus, v))
- }
- // StatusContainsFold applies the ContainsFold predicate on the "status" field.
- func StatusContainsFold(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldContainsFold(FieldStatus, v))
- }
- // NotifyModeEQ applies the EQ predicate on the "notify_mode" field.
- func NotifyModeEQ(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldNotifyMode, v))
- }
- // NotifyModeNEQ applies the NEQ predicate on the "notify_mode" field.
- func NotifyModeNEQ(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldNEQ(FieldNotifyMode, v))
- }
- // NotifyModeIn applies the In predicate on the "notify_mode" field.
- func NotifyModeIn(vs ...string) predicate.Announcement {
- return predicate.Announcement(sql.FieldIn(FieldNotifyMode, vs...))
- }
- // NotifyModeNotIn applies the NotIn predicate on the "notify_mode" field.
- func NotifyModeNotIn(vs ...string) predicate.Announcement {
- return predicate.Announcement(sql.FieldNotIn(FieldNotifyMode, vs...))
- }
- // NotifyModeGT applies the GT predicate on the "notify_mode" field.
- func NotifyModeGT(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldGT(FieldNotifyMode, v))
- }
- // NotifyModeGTE applies the GTE predicate on the "notify_mode" field.
- func NotifyModeGTE(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldGTE(FieldNotifyMode, v))
- }
- // NotifyModeLT applies the LT predicate on the "notify_mode" field.
- func NotifyModeLT(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldLT(FieldNotifyMode, v))
- }
- // NotifyModeLTE applies the LTE predicate on the "notify_mode" field.
- func NotifyModeLTE(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldLTE(FieldNotifyMode, v))
- }
- // NotifyModeContains applies the Contains predicate on the "notify_mode" field.
- func NotifyModeContains(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldContains(FieldNotifyMode, v))
- }
- // NotifyModeHasPrefix applies the HasPrefix predicate on the "notify_mode" field.
- func NotifyModeHasPrefix(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldHasPrefix(FieldNotifyMode, v))
- }
- // NotifyModeHasSuffix applies the HasSuffix predicate on the "notify_mode" field.
- func NotifyModeHasSuffix(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldHasSuffix(FieldNotifyMode, v))
- }
- // NotifyModeEqualFold applies the EqualFold predicate on the "notify_mode" field.
- func NotifyModeEqualFold(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldEqualFold(FieldNotifyMode, v))
- }
- // NotifyModeContainsFold applies the ContainsFold predicate on the "notify_mode" field.
- func NotifyModeContainsFold(v string) predicate.Announcement {
- return predicate.Announcement(sql.FieldContainsFold(FieldNotifyMode, v))
- }
- // TargetingIsNil applies the IsNil predicate on the "targeting" field.
- func TargetingIsNil() predicate.Announcement {
- return predicate.Announcement(sql.FieldIsNull(FieldTargeting))
- }
- // TargetingNotNil applies the NotNil predicate on the "targeting" field.
- func TargetingNotNil() predicate.Announcement {
- return predicate.Announcement(sql.FieldNotNull(FieldTargeting))
- }
- // StartsAtEQ applies the EQ predicate on the "starts_at" field.
- func StartsAtEQ(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldStartsAt, v))
- }
- // StartsAtNEQ applies the NEQ predicate on the "starts_at" field.
- func StartsAtNEQ(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldNEQ(FieldStartsAt, v))
- }
- // StartsAtIn applies the In predicate on the "starts_at" field.
- func StartsAtIn(vs ...time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldIn(FieldStartsAt, vs...))
- }
- // StartsAtNotIn applies the NotIn predicate on the "starts_at" field.
- func StartsAtNotIn(vs ...time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldNotIn(FieldStartsAt, vs...))
- }
- // StartsAtGT applies the GT predicate on the "starts_at" field.
- func StartsAtGT(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldGT(FieldStartsAt, v))
- }
- // StartsAtGTE applies the GTE predicate on the "starts_at" field.
- func StartsAtGTE(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldGTE(FieldStartsAt, v))
- }
- // StartsAtLT applies the LT predicate on the "starts_at" field.
- func StartsAtLT(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldLT(FieldStartsAt, v))
- }
- // StartsAtLTE applies the LTE predicate on the "starts_at" field.
- func StartsAtLTE(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldLTE(FieldStartsAt, v))
- }
- // StartsAtIsNil applies the IsNil predicate on the "starts_at" field.
- func StartsAtIsNil() predicate.Announcement {
- return predicate.Announcement(sql.FieldIsNull(FieldStartsAt))
- }
- // StartsAtNotNil applies the NotNil predicate on the "starts_at" field.
- func StartsAtNotNil() predicate.Announcement {
- return predicate.Announcement(sql.FieldNotNull(FieldStartsAt))
- }
- // EndsAtEQ applies the EQ predicate on the "ends_at" field.
- func EndsAtEQ(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldEndsAt, v))
- }
- // EndsAtNEQ applies the NEQ predicate on the "ends_at" field.
- func EndsAtNEQ(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldNEQ(FieldEndsAt, v))
- }
- // EndsAtIn applies the In predicate on the "ends_at" field.
- func EndsAtIn(vs ...time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldIn(FieldEndsAt, vs...))
- }
- // EndsAtNotIn applies the NotIn predicate on the "ends_at" field.
- func EndsAtNotIn(vs ...time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldNotIn(FieldEndsAt, vs...))
- }
- // EndsAtGT applies the GT predicate on the "ends_at" field.
- func EndsAtGT(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldGT(FieldEndsAt, v))
- }
- // EndsAtGTE applies the GTE predicate on the "ends_at" field.
- func EndsAtGTE(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldGTE(FieldEndsAt, v))
- }
- // EndsAtLT applies the LT predicate on the "ends_at" field.
- func EndsAtLT(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldLT(FieldEndsAt, v))
- }
- // EndsAtLTE applies the LTE predicate on the "ends_at" field.
- func EndsAtLTE(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldLTE(FieldEndsAt, v))
- }
- // EndsAtIsNil applies the IsNil predicate on the "ends_at" field.
- func EndsAtIsNil() predicate.Announcement {
- return predicate.Announcement(sql.FieldIsNull(FieldEndsAt))
- }
- // EndsAtNotNil applies the NotNil predicate on the "ends_at" field.
- func EndsAtNotNil() predicate.Announcement {
- return predicate.Announcement(sql.FieldNotNull(FieldEndsAt))
- }
- // CreatedByEQ applies the EQ predicate on the "created_by" field.
- func CreatedByEQ(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldCreatedBy, v))
- }
- // CreatedByNEQ applies the NEQ predicate on the "created_by" field.
- func CreatedByNEQ(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldNEQ(FieldCreatedBy, v))
- }
- // CreatedByIn applies the In predicate on the "created_by" field.
- func CreatedByIn(vs ...int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldIn(FieldCreatedBy, vs...))
- }
- // CreatedByNotIn applies the NotIn predicate on the "created_by" field.
- func CreatedByNotIn(vs ...int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldNotIn(FieldCreatedBy, vs...))
- }
- // CreatedByGT applies the GT predicate on the "created_by" field.
- func CreatedByGT(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldGT(FieldCreatedBy, v))
- }
- // CreatedByGTE applies the GTE predicate on the "created_by" field.
- func CreatedByGTE(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldGTE(FieldCreatedBy, v))
- }
- // CreatedByLT applies the LT predicate on the "created_by" field.
- func CreatedByLT(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldLT(FieldCreatedBy, v))
- }
- // CreatedByLTE applies the LTE predicate on the "created_by" field.
- func CreatedByLTE(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldLTE(FieldCreatedBy, v))
- }
- // CreatedByIsNil applies the IsNil predicate on the "created_by" field.
- func CreatedByIsNil() predicate.Announcement {
- return predicate.Announcement(sql.FieldIsNull(FieldCreatedBy))
- }
- // CreatedByNotNil applies the NotNil predicate on the "created_by" field.
- func CreatedByNotNil() predicate.Announcement {
- return predicate.Announcement(sql.FieldNotNull(FieldCreatedBy))
- }
- // UpdatedByEQ applies the EQ predicate on the "updated_by" field.
- func UpdatedByEQ(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldUpdatedBy, v))
- }
- // UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
- func UpdatedByNEQ(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldNEQ(FieldUpdatedBy, v))
- }
- // UpdatedByIn applies the In predicate on the "updated_by" field.
- func UpdatedByIn(vs ...int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldIn(FieldUpdatedBy, vs...))
- }
- // UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
- func UpdatedByNotIn(vs ...int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldNotIn(FieldUpdatedBy, vs...))
- }
- // UpdatedByGT applies the GT predicate on the "updated_by" field.
- func UpdatedByGT(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldGT(FieldUpdatedBy, v))
- }
- // UpdatedByGTE applies the GTE predicate on the "updated_by" field.
- func UpdatedByGTE(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldGTE(FieldUpdatedBy, v))
- }
- // UpdatedByLT applies the LT predicate on the "updated_by" field.
- func UpdatedByLT(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldLT(FieldUpdatedBy, v))
- }
- // UpdatedByLTE applies the LTE predicate on the "updated_by" field.
- func UpdatedByLTE(v int64) predicate.Announcement {
- return predicate.Announcement(sql.FieldLTE(FieldUpdatedBy, v))
- }
- // UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
- func UpdatedByIsNil() predicate.Announcement {
- return predicate.Announcement(sql.FieldIsNull(FieldUpdatedBy))
- }
- // UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
- func UpdatedByNotNil() predicate.Announcement {
- return predicate.Announcement(sql.FieldNotNull(FieldUpdatedBy))
- }
- // CreatedAtEQ applies the EQ predicate on the "created_at" field.
- func CreatedAtEQ(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldCreatedAt, v))
- }
- // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
- func CreatedAtNEQ(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldNEQ(FieldCreatedAt, v))
- }
- // CreatedAtIn applies the In predicate on the "created_at" field.
- func CreatedAtIn(vs ...time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldIn(FieldCreatedAt, vs...))
- }
- // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
- func CreatedAtNotIn(vs ...time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldNotIn(FieldCreatedAt, vs...))
- }
- // CreatedAtGT applies the GT predicate on the "created_at" field.
- func CreatedAtGT(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldGT(FieldCreatedAt, v))
- }
- // CreatedAtGTE applies the GTE predicate on the "created_at" field.
- func CreatedAtGTE(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldGTE(FieldCreatedAt, v))
- }
- // CreatedAtLT applies the LT predicate on the "created_at" field.
- func CreatedAtLT(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldLT(FieldCreatedAt, v))
- }
- // CreatedAtLTE applies the LTE predicate on the "created_at" field.
- func CreatedAtLTE(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldLTE(FieldCreatedAt, v))
- }
- // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
- func UpdatedAtEQ(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
- func UpdatedAtNEQ(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldNEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtIn applies the In predicate on the "updated_at" field.
- func UpdatedAtIn(vs ...time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
- func UpdatedAtNotIn(vs ...time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldNotIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtGT applies the GT predicate on the "updated_at" field.
- func UpdatedAtGT(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldGT(FieldUpdatedAt, v))
- }
- // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
- func UpdatedAtGTE(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldGTE(FieldUpdatedAt, v))
- }
- // UpdatedAtLT applies the LT predicate on the "updated_at" field.
- func UpdatedAtLT(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldLT(FieldUpdatedAt, v))
- }
- // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
- func UpdatedAtLTE(v time.Time) predicate.Announcement {
- return predicate.Announcement(sql.FieldLTE(FieldUpdatedAt, v))
- }
- // HasReads applies the HasEdge predicate on the "reads" edge.
- func HasReads() predicate.Announcement {
- return predicate.Announcement(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.O2M, false, ReadsTable, ReadsColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasReadsWith applies the HasEdge predicate on the "reads" edge with a given conditions (other predicates).
- func HasReadsWith(preds ...predicate.AnnouncementRead) predicate.Announcement {
- return predicate.Announcement(func(s *sql.Selector) {
- step := newReadsStep()
- 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.Announcement) predicate.Announcement {
- return predicate.Announcement(sql.AndPredicates(predicates...))
- }
- // Or groups predicates with the OR operator between them.
- func Or(predicates ...predicate.Announcement) predicate.Announcement {
- return predicate.Announcement(sql.OrPredicates(predicates...))
- }
- // Not applies the not operator on the given predicate.
- func Not(p predicate.Announcement) predicate.Announcement {
- return predicate.Announcement(sql.NotPredicates(p))
- }
|