// Code generated by ent, DO NOT EDIT. package alert import ( "bj_power_mes/ent/predicate" "time" "entgo.io/ent/dialect/sql" ) // ID filters vertices based on their ID field. func ID(id int) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id int) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id int) predicate.Alert { return predicate.Alert(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.Alert { return predicate.Alert(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...int) predicate.Alert { return predicate.Alert(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id int) predicate.Alert { return predicate.Alert(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id int) predicate.Alert { return predicate.Alert(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id int) predicate.Alert { return predicate.Alert(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id int) predicate.Alert { return predicate.Alert(sql.FieldLTE(FieldID, id)) } // RuleId applies equality check predicate on the "ruleId" field. It's identical to RuleIdEQ. func RuleId(v int) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldRuleId, v)) } // Type applies equality check predicate on the "type" field. It's identical to TypeEQ. func Type(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldType, v)) } // Title applies equality check predicate on the "title" field. It's identical to TitleEQ. func Title(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldTitle, v)) } // Content applies equality check predicate on the "content" field. It's identical to ContentEQ. func Content(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldContent, v)) } // RefType applies equality check predicate on the "refType" field. It's identical to RefTypeEQ. func RefType(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldRefType, v)) } // RefId applies equality check predicate on the "refId" field. It's identical to RefIdEQ. func RefId(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldRefId, v)) } // Status applies equality check predicate on the "status" field. It's identical to StatusEQ. func Status(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldStatus, v)) } // Receiver applies equality check predicate on the "receiver" field. It's identical to ReceiverEQ. func Receiver(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldReceiver, v)) } // CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ. func CreatedAt(v time.Time) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldCreatedAt, v)) } // RuleIdEQ applies the EQ predicate on the "ruleId" field. func RuleIdEQ(v int) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldRuleId, v)) } // RuleIdNEQ applies the NEQ predicate on the "ruleId" field. func RuleIdNEQ(v int) predicate.Alert { return predicate.Alert(sql.FieldNEQ(FieldRuleId, v)) } // RuleIdIn applies the In predicate on the "ruleId" field. func RuleIdIn(vs ...int) predicate.Alert { return predicate.Alert(sql.FieldIn(FieldRuleId, vs...)) } // RuleIdNotIn applies the NotIn predicate on the "ruleId" field. func RuleIdNotIn(vs ...int) predicate.Alert { return predicate.Alert(sql.FieldNotIn(FieldRuleId, vs...)) } // RuleIdGT applies the GT predicate on the "ruleId" field. func RuleIdGT(v int) predicate.Alert { return predicate.Alert(sql.FieldGT(FieldRuleId, v)) } // RuleIdGTE applies the GTE predicate on the "ruleId" field. func RuleIdGTE(v int) predicate.Alert { return predicate.Alert(sql.FieldGTE(FieldRuleId, v)) } // RuleIdLT applies the LT predicate on the "ruleId" field. func RuleIdLT(v int) predicate.Alert { return predicate.Alert(sql.FieldLT(FieldRuleId, v)) } // RuleIdLTE applies the LTE predicate on the "ruleId" field. func RuleIdLTE(v int) predicate.Alert { return predicate.Alert(sql.FieldLTE(FieldRuleId, v)) } // TypeEQ applies the EQ predicate on the "type" field. func TypeEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldType, v)) } // TypeNEQ applies the NEQ predicate on the "type" field. func TypeNEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldNEQ(FieldType, v)) } // TypeIn applies the In predicate on the "type" field. func TypeIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldIn(FieldType, vs...)) } // TypeNotIn applies the NotIn predicate on the "type" field. func TypeNotIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldNotIn(FieldType, vs...)) } // TypeGT applies the GT predicate on the "type" field. func TypeGT(v string) predicate.Alert { return predicate.Alert(sql.FieldGT(FieldType, v)) } // TypeGTE applies the GTE predicate on the "type" field. func TypeGTE(v string) predicate.Alert { return predicate.Alert(sql.FieldGTE(FieldType, v)) } // TypeLT applies the LT predicate on the "type" field. func TypeLT(v string) predicate.Alert { return predicate.Alert(sql.FieldLT(FieldType, v)) } // TypeLTE applies the LTE predicate on the "type" field. func TypeLTE(v string) predicate.Alert { return predicate.Alert(sql.FieldLTE(FieldType, v)) } // TypeContains applies the Contains predicate on the "type" field. func TypeContains(v string) predicate.Alert { return predicate.Alert(sql.FieldContains(FieldType, v)) } // TypeHasPrefix applies the HasPrefix predicate on the "type" field. func TypeHasPrefix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasPrefix(FieldType, v)) } // TypeHasSuffix applies the HasSuffix predicate on the "type" field. func TypeHasSuffix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasSuffix(FieldType, v)) } // TypeEqualFold applies the EqualFold predicate on the "type" field. func TypeEqualFold(v string) predicate.Alert { return predicate.Alert(sql.FieldEqualFold(FieldType, v)) } // TypeContainsFold applies the ContainsFold predicate on the "type" field. func TypeContainsFold(v string) predicate.Alert { return predicate.Alert(sql.FieldContainsFold(FieldType, v)) } // TitleEQ applies the EQ predicate on the "title" field. func TitleEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldTitle, v)) } // TitleNEQ applies the NEQ predicate on the "title" field. func TitleNEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldNEQ(FieldTitle, v)) } // TitleIn applies the In predicate on the "title" field. func TitleIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldIn(FieldTitle, vs...)) } // TitleNotIn applies the NotIn predicate on the "title" field. func TitleNotIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldNotIn(FieldTitle, vs...)) } // TitleGT applies the GT predicate on the "title" field. func TitleGT(v string) predicate.Alert { return predicate.Alert(sql.FieldGT(FieldTitle, v)) } // TitleGTE applies the GTE predicate on the "title" field. func TitleGTE(v string) predicate.Alert { return predicate.Alert(sql.FieldGTE(FieldTitle, v)) } // TitleLT applies the LT predicate on the "title" field. func TitleLT(v string) predicate.Alert { return predicate.Alert(sql.FieldLT(FieldTitle, v)) } // TitleLTE applies the LTE predicate on the "title" field. func TitleLTE(v string) predicate.Alert { return predicate.Alert(sql.FieldLTE(FieldTitle, v)) } // TitleContains applies the Contains predicate on the "title" field. func TitleContains(v string) predicate.Alert { return predicate.Alert(sql.FieldContains(FieldTitle, v)) } // TitleHasPrefix applies the HasPrefix predicate on the "title" field. func TitleHasPrefix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasPrefix(FieldTitle, v)) } // TitleHasSuffix applies the HasSuffix predicate on the "title" field. func TitleHasSuffix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasSuffix(FieldTitle, v)) } // TitleEqualFold applies the EqualFold predicate on the "title" field. func TitleEqualFold(v string) predicate.Alert { return predicate.Alert(sql.FieldEqualFold(FieldTitle, v)) } // TitleContainsFold applies the ContainsFold predicate on the "title" field. func TitleContainsFold(v string) predicate.Alert { return predicate.Alert(sql.FieldContainsFold(FieldTitle, v)) } // ContentEQ applies the EQ predicate on the "content" field. func ContentEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldContent, v)) } // ContentNEQ applies the NEQ predicate on the "content" field. func ContentNEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldNEQ(FieldContent, v)) } // ContentIn applies the In predicate on the "content" field. func ContentIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldIn(FieldContent, vs...)) } // ContentNotIn applies the NotIn predicate on the "content" field. func ContentNotIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldNotIn(FieldContent, vs...)) } // ContentGT applies the GT predicate on the "content" field. func ContentGT(v string) predicate.Alert { return predicate.Alert(sql.FieldGT(FieldContent, v)) } // ContentGTE applies the GTE predicate on the "content" field. func ContentGTE(v string) predicate.Alert { return predicate.Alert(sql.FieldGTE(FieldContent, v)) } // ContentLT applies the LT predicate on the "content" field. func ContentLT(v string) predicate.Alert { return predicate.Alert(sql.FieldLT(FieldContent, v)) } // ContentLTE applies the LTE predicate on the "content" field. func ContentLTE(v string) predicate.Alert { return predicate.Alert(sql.FieldLTE(FieldContent, v)) } // ContentContains applies the Contains predicate on the "content" field. func ContentContains(v string) predicate.Alert { return predicate.Alert(sql.FieldContains(FieldContent, v)) } // ContentHasPrefix applies the HasPrefix predicate on the "content" field. func ContentHasPrefix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasPrefix(FieldContent, v)) } // ContentHasSuffix applies the HasSuffix predicate on the "content" field. func ContentHasSuffix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasSuffix(FieldContent, v)) } // ContentEqualFold applies the EqualFold predicate on the "content" field. func ContentEqualFold(v string) predicate.Alert { return predicate.Alert(sql.FieldEqualFold(FieldContent, v)) } // ContentContainsFold applies the ContainsFold predicate on the "content" field. func ContentContainsFold(v string) predicate.Alert { return predicate.Alert(sql.FieldContainsFold(FieldContent, v)) } // RefTypeEQ applies the EQ predicate on the "refType" field. func RefTypeEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldRefType, v)) } // RefTypeNEQ applies the NEQ predicate on the "refType" field. func RefTypeNEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldNEQ(FieldRefType, v)) } // RefTypeIn applies the In predicate on the "refType" field. func RefTypeIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldIn(FieldRefType, vs...)) } // RefTypeNotIn applies the NotIn predicate on the "refType" field. func RefTypeNotIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldNotIn(FieldRefType, vs...)) } // RefTypeGT applies the GT predicate on the "refType" field. func RefTypeGT(v string) predicate.Alert { return predicate.Alert(sql.FieldGT(FieldRefType, v)) } // RefTypeGTE applies the GTE predicate on the "refType" field. func RefTypeGTE(v string) predicate.Alert { return predicate.Alert(sql.FieldGTE(FieldRefType, v)) } // RefTypeLT applies the LT predicate on the "refType" field. func RefTypeLT(v string) predicate.Alert { return predicate.Alert(sql.FieldLT(FieldRefType, v)) } // RefTypeLTE applies the LTE predicate on the "refType" field. func RefTypeLTE(v string) predicate.Alert { return predicate.Alert(sql.FieldLTE(FieldRefType, v)) } // RefTypeContains applies the Contains predicate on the "refType" field. func RefTypeContains(v string) predicate.Alert { return predicate.Alert(sql.FieldContains(FieldRefType, v)) } // RefTypeHasPrefix applies the HasPrefix predicate on the "refType" field. func RefTypeHasPrefix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasPrefix(FieldRefType, v)) } // RefTypeHasSuffix applies the HasSuffix predicate on the "refType" field. func RefTypeHasSuffix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasSuffix(FieldRefType, v)) } // RefTypeEqualFold applies the EqualFold predicate on the "refType" field. func RefTypeEqualFold(v string) predicate.Alert { return predicate.Alert(sql.FieldEqualFold(FieldRefType, v)) } // RefTypeContainsFold applies the ContainsFold predicate on the "refType" field. func RefTypeContainsFold(v string) predicate.Alert { return predicate.Alert(sql.FieldContainsFold(FieldRefType, v)) } // RefIdEQ applies the EQ predicate on the "refId" field. func RefIdEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldRefId, v)) } // RefIdNEQ applies the NEQ predicate on the "refId" field. func RefIdNEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldNEQ(FieldRefId, v)) } // RefIdIn applies the In predicate on the "refId" field. func RefIdIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldIn(FieldRefId, vs...)) } // RefIdNotIn applies the NotIn predicate on the "refId" field. func RefIdNotIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldNotIn(FieldRefId, vs...)) } // RefIdGT applies the GT predicate on the "refId" field. func RefIdGT(v string) predicate.Alert { return predicate.Alert(sql.FieldGT(FieldRefId, v)) } // RefIdGTE applies the GTE predicate on the "refId" field. func RefIdGTE(v string) predicate.Alert { return predicate.Alert(sql.FieldGTE(FieldRefId, v)) } // RefIdLT applies the LT predicate on the "refId" field. func RefIdLT(v string) predicate.Alert { return predicate.Alert(sql.FieldLT(FieldRefId, v)) } // RefIdLTE applies the LTE predicate on the "refId" field. func RefIdLTE(v string) predicate.Alert { return predicate.Alert(sql.FieldLTE(FieldRefId, v)) } // RefIdContains applies the Contains predicate on the "refId" field. func RefIdContains(v string) predicate.Alert { return predicate.Alert(sql.FieldContains(FieldRefId, v)) } // RefIdHasPrefix applies the HasPrefix predicate on the "refId" field. func RefIdHasPrefix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasPrefix(FieldRefId, v)) } // RefIdHasSuffix applies the HasSuffix predicate on the "refId" field. func RefIdHasSuffix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasSuffix(FieldRefId, v)) } // RefIdEqualFold applies the EqualFold predicate on the "refId" field. func RefIdEqualFold(v string) predicate.Alert { return predicate.Alert(sql.FieldEqualFold(FieldRefId, v)) } // RefIdContainsFold applies the ContainsFold predicate on the "refId" field. func RefIdContainsFold(v string) predicate.Alert { return predicate.Alert(sql.FieldContainsFold(FieldRefId, v)) } // StatusEQ applies the EQ predicate on the "status" field. func StatusEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldStatus, v)) } // StatusNEQ applies the NEQ predicate on the "status" field. func StatusNEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldNEQ(FieldStatus, v)) } // StatusIn applies the In predicate on the "status" field. func StatusIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldIn(FieldStatus, vs...)) } // StatusNotIn applies the NotIn predicate on the "status" field. func StatusNotIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldNotIn(FieldStatus, vs...)) } // StatusGT applies the GT predicate on the "status" field. func StatusGT(v string) predicate.Alert { return predicate.Alert(sql.FieldGT(FieldStatus, v)) } // StatusGTE applies the GTE predicate on the "status" field. func StatusGTE(v string) predicate.Alert { return predicate.Alert(sql.FieldGTE(FieldStatus, v)) } // StatusLT applies the LT predicate on the "status" field. func StatusLT(v string) predicate.Alert { return predicate.Alert(sql.FieldLT(FieldStatus, v)) } // StatusLTE applies the LTE predicate on the "status" field. func StatusLTE(v string) predicate.Alert { return predicate.Alert(sql.FieldLTE(FieldStatus, v)) } // StatusContains applies the Contains predicate on the "status" field. func StatusContains(v string) predicate.Alert { return predicate.Alert(sql.FieldContains(FieldStatus, v)) } // StatusHasPrefix applies the HasPrefix predicate on the "status" field. func StatusHasPrefix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasPrefix(FieldStatus, v)) } // StatusHasSuffix applies the HasSuffix predicate on the "status" field. func StatusHasSuffix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasSuffix(FieldStatus, v)) } // StatusEqualFold applies the EqualFold predicate on the "status" field. func StatusEqualFold(v string) predicate.Alert { return predicate.Alert(sql.FieldEqualFold(FieldStatus, v)) } // StatusContainsFold applies the ContainsFold predicate on the "status" field. func StatusContainsFold(v string) predicate.Alert { return predicate.Alert(sql.FieldContainsFold(FieldStatus, v)) } // ReceiverEQ applies the EQ predicate on the "receiver" field. func ReceiverEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldReceiver, v)) } // ReceiverNEQ applies the NEQ predicate on the "receiver" field. func ReceiverNEQ(v string) predicate.Alert { return predicate.Alert(sql.FieldNEQ(FieldReceiver, v)) } // ReceiverIn applies the In predicate on the "receiver" field. func ReceiverIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldIn(FieldReceiver, vs...)) } // ReceiverNotIn applies the NotIn predicate on the "receiver" field. func ReceiverNotIn(vs ...string) predicate.Alert { return predicate.Alert(sql.FieldNotIn(FieldReceiver, vs...)) } // ReceiverGT applies the GT predicate on the "receiver" field. func ReceiverGT(v string) predicate.Alert { return predicate.Alert(sql.FieldGT(FieldReceiver, v)) } // ReceiverGTE applies the GTE predicate on the "receiver" field. func ReceiverGTE(v string) predicate.Alert { return predicate.Alert(sql.FieldGTE(FieldReceiver, v)) } // ReceiverLT applies the LT predicate on the "receiver" field. func ReceiverLT(v string) predicate.Alert { return predicate.Alert(sql.FieldLT(FieldReceiver, v)) } // ReceiverLTE applies the LTE predicate on the "receiver" field. func ReceiverLTE(v string) predicate.Alert { return predicate.Alert(sql.FieldLTE(FieldReceiver, v)) } // ReceiverContains applies the Contains predicate on the "receiver" field. func ReceiverContains(v string) predicate.Alert { return predicate.Alert(sql.FieldContains(FieldReceiver, v)) } // ReceiverHasPrefix applies the HasPrefix predicate on the "receiver" field. func ReceiverHasPrefix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasPrefix(FieldReceiver, v)) } // ReceiverHasSuffix applies the HasSuffix predicate on the "receiver" field. func ReceiverHasSuffix(v string) predicate.Alert { return predicate.Alert(sql.FieldHasSuffix(FieldReceiver, v)) } // ReceiverEqualFold applies the EqualFold predicate on the "receiver" field. func ReceiverEqualFold(v string) predicate.Alert { return predicate.Alert(sql.FieldEqualFold(FieldReceiver, v)) } // ReceiverContainsFold applies the ContainsFold predicate on the "receiver" field. func ReceiverContainsFold(v string) predicate.Alert { return predicate.Alert(sql.FieldContainsFold(FieldReceiver, v)) } // CreatedAtEQ applies the EQ predicate on the "createdAt" field. func CreatedAtEQ(v time.Time) predicate.Alert { return predicate.Alert(sql.FieldEQ(FieldCreatedAt, v)) } // CreatedAtNEQ applies the NEQ predicate on the "createdAt" field. func CreatedAtNEQ(v time.Time) predicate.Alert { return predicate.Alert(sql.FieldNEQ(FieldCreatedAt, v)) } // CreatedAtIn applies the In predicate on the "createdAt" field. func CreatedAtIn(vs ...time.Time) predicate.Alert { return predicate.Alert(sql.FieldIn(FieldCreatedAt, vs...)) } // CreatedAtNotIn applies the NotIn predicate on the "createdAt" field. func CreatedAtNotIn(vs ...time.Time) predicate.Alert { return predicate.Alert(sql.FieldNotIn(FieldCreatedAt, vs...)) } // CreatedAtGT applies the GT predicate on the "createdAt" field. func CreatedAtGT(v time.Time) predicate.Alert { return predicate.Alert(sql.FieldGT(FieldCreatedAt, v)) } // CreatedAtGTE applies the GTE predicate on the "createdAt" field. func CreatedAtGTE(v time.Time) predicate.Alert { return predicate.Alert(sql.FieldGTE(FieldCreatedAt, v)) } // CreatedAtLT applies the LT predicate on the "createdAt" field. func CreatedAtLT(v time.Time) predicate.Alert { return predicate.Alert(sql.FieldLT(FieldCreatedAt, v)) } // CreatedAtLTE applies the LTE predicate on the "createdAt" field. func CreatedAtLTE(v time.Time) predicate.Alert { return predicate.Alert(sql.FieldLTE(FieldCreatedAt, v)) } // And groups predicates with the AND operator between them. func And(predicates ...predicate.Alert) predicate.Alert { return predicate.Alert(sql.AndPredicates(predicates...)) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.Alert) predicate.Alert { return predicate.Alert(sql.OrPredicates(predicates...)) } // Not applies the not operator on the given predicate. func Not(p predicate.Alert) predicate.Alert { return predicate.Alert(sql.NotPredicates(p)) }