// Code generated by ent, DO NOT EDIT. package stepcriterion import ( "bj_power_mes/predicate" "time" "entgo.io/ent/dialect/sql" ) // ID filters vertices based on their ID field. func ID(id int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLTE(FieldID, id)) } // StepId applies equality check predicate on the "stepId" field. It's identical to StepIdEQ. func StepId(v int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldStepId, v)) } // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldName, v)) } // Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ. func Unit(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldUnit, v)) } // Logic applies equality check predicate on the "logic" field. It's identical to LogicEQ. func Logic(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldLogic, v)) } // Target applies equality check predicate on the "target" field. It's identical to TargetEQ. func Target(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldTarget, v)) } // Min applies equality check predicate on the "min" field. It's identical to MinEQ. func Min(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldMin, v)) } // Max applies equality check predicate on the "max" field. It's identical to MaxEQ. func Max(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldMax, v)) } // CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ. func CreatedAt(v time.Time) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldCreatedAt, v)) } // StepIdEQ applies the EQ predicate on the "stepId" field. func StepIdEQ(v int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldStepId, v)) } // StepIdNEQ applies the NEQ predicate on the "stepId" field. func StepIdNEQ(v int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNEQ(FieldStepId, v)) } // StepIdIn applies the In predicate on the "stepId" field. func StepIdIn(vs ...int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldIn(FieldStepId, vs...)) } // StepIdNotIn applies the NotIn predicate on the "stepId" field. func StepIdNotIn(vs ...int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNotIn(FieldStepId, vs...)) } // StepIdGT applies the GT predicate on the "stepId" field. func StepIdGT(v int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGT(FieldStepId, v)) } // StepIdGTE applies the GTE predicate on the "stepId" field. func StepIdGTE(v int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGTE(FieldStepId, v)) } // StepIdLT applies the LT predicate on the "stepId" field. func StepIdLT(v int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLT(FieldStepId, v)) } // StepIdLTE applies the LTE predicate on the "stepId" field. func StepIdLTE(v int) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLTE(FieldStepId, v)) } // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldName, v)) } // NameNEQ applies the NEQ predicate on the "name" field. func NameNEQ(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNEQ(FieldName, v)) } // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldIn(FieldName, vs...)) } // NameNotIn applies the NotIn predicate on the "name" field. func NameNotIn(vs ...string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNotIn(FieldName, vs...)) } // NameGT applies the GT predicate on the "name" field. func NameGT(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGT(FieldName, v)) } // NameGTE applies the GTE predicate on the "name" field. func NameGTE(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGTE(FieldName, v)) } // NameLT applies the LT predicate on the "name" field. func NameLT(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLT(FieldName, v)) } // NameLTE applies the LTE predicate on the "name" field. func NameLTE(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLTE(FieldName, v)) } // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldContains(FieldName, v)) } // NameHasPrefix applies the HasPrefix predicate on the "name" field. func NameHasPrefix(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldHasPrefix(FieldName, v)) } // NameHasSuffix applies the HasSuffix predicate on the "name" field. func NameHasSuffix(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldHasSuffix(FieldName, v)) } // NameEqualFold applies the EqualFold predicate on the "name" field. func NameEqualFold(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEqualFold(FieldName, v)) } // NameContainsFold applies the ContainsFold predicate on the "name" field. func NameContainsFold(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldContainsFold(FieldName, v)) } // UnitEQ applies the EQ predicate on the "unit" field. func UnitEQ(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldUnit, v)) } // UnitNEQ applies the NEQ predicate on the "unit" field. func UnitNEQ(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNEQ(FieldUnit, v)) } // UnitIn applies the In predicate on the "unit" field. func UnitIn(vs ...string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldIn(FieldUnit, vs...)) } // UnitNotIn applies the NotIn predicate on the "unit" field. func UnitNotIn(vs ...string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNotIn(FieldUnit, vs...)) } // UnitGT applies the GT predicate on the "unit" field. func UnitGT(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGT(FieldUnit, v)) } // UnitGTE applies the GTE predicate on the "unit" field. func UnitGTE(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGTE(FieldUnit, v)) } // UnitLT applies the LT predicate on the "unit" field. func UnitLT(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLT(FieldUnit, v)) } // UnitLTE applies the LTE predicate on the "unit" field. func UnitLTE(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLTE(FieldUnit, v)) } // UnitContains applies the Contains predicate on the "unit" field. func UnitContains(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldContains(FieldUnit, v)) } // UnitHasPrefix applies the HasPrefix predicate on the "unit" field. func UnitHasPrefix(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldHasPrefix(FieldUnit, v)) } // UnitHasSuffix applies the HasSuffix predicate on the "unit" field. func UnitHasSuffix(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldHasSuffix(FieldUnit, v)) } // UnitEqualFold applies the EqualFold predicate on the "unit" field. func UnitEqualFold(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEqualFold(FieldUnit, v)) } // UnitContainsFold applies the ContainsFold predicate on the "unit" field. func UnitContainsFold(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldContainsFold(FieldUnit, v)) } // LogicEQ applies the EQ predicate on the "logic" field. func LogicEQ(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldLogic, v)) } // LogicNEQ applies the NEQ predicate on the "logic" field. func LogicNEQ(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNEQ(FieldLogic, v)) } // LogicIn applies the In predicate on the "logic" field. func LogicIn(vs ...string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldIn(FieldLogic, vs...)) } // LogicNotIn applies the NotIn predicate on the "logic" field. func LogicNotIn(vs ...string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNotIn(FieldLogic, vs...)) } // LogicGT applies the GT predicate on the "logic" field. func LogicGT(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGT(FieldLogic, v)) } // LogicGTE applies the GTE predicate on the "logic" field. func LogicGTE(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGTE(FieldLogic, v)) } // LogicLT applies the LT predicate on the "logic" field. func LogicLT(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLT(FieldLogic, v)) } // LogicLTE applies the LTE predicate on the "logic" field. func LogicLTE(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLTE(FieldLogic, v)) } // LogicContains applies the Contains predicate on the "logic" field. func LogicContains(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldContains(FieldLogic, v)) } // LogicHasPrefix applies the HasPrefix predicate on the "logic" field. func LogicHasPrefix(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldHasPrefix(FieldLogic, v)) } // LogicHasSuffix applies the HasSuffix predicate on the "logic" field. func LogicHasSuffix(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldHasSuffix(FieldLogic, v)) } // LogicEqualFold applies the EqualFold predicate on the "logic" field. func LogicEqualFold(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEqualFold(FieldLogic, v)) } // LogicContainsFold applies the ContainsFold predicate on the "logic" field. func LogicContainsFold(v string) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldContainsFold(FieldLogic, v)) } // TargetEQ applies the EQ predicate on the "target" field. func TargetEQ(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldTarget, v)) } // TargetNEQ applies the NEQ predicate on the "target" field. func TargetNEQ(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNEQ(FieldTarget, v)) } // TargetIn applies the In predicate on the "target" field. func TargetIn(vs ...float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldIn(FieldTarget, vs...)) } // TargetNotIn applies the NotIn predicate on the "target" field. func TargetNotIn(vs ...float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNotIn(FieldTarget, vs...)) } // TargetGT applies the GT predicate on the "target" field. func TargetGT(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGT(FieldTarget, v)) } // TargetGTE applies the GTE predicate on the "target" field. func TargetGTE(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGTE(FieldTarget, v)) } // TargetLT applies the LT predicate on the "target" field. func TargetLT(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLT(FieldTarget, v)) } // TargetLTE applies the LTE predicate on the "target" field. func TargetLTE(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLTE(FieldTarget, v)) } // MinEQ applies the EQ predicate on the "min" field. func MinEQ(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldMin, v)) } // MinNEQ applies the NEQ predicate on the "min" field. func MinNEQ(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNEQ(FieldMin, v)) } // MinIn applies the In predicate on the "min" field. func MinIn(vs ...float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldIn(FieldMin, vs...)) } // MinNotIn applies the NotIn predicate on the "min" field. func MinNotIn(vs ...float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNotIn(FieldMin, vs...)) } // MinGT applies the GT predicate on the "min" field. func MinGT(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGT(FieldMin, v)) } // MinGTE applies the GTE predicate on the "min" field. func MinGTE(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGTE(FieldMin, v)) } // MinLT applies the LT predicate on the "min" field. func MinLT(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLT(FieldMin, v)) } // MinLTE applies the LTE predicate on the "min" field. func MinLTE(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLTE(FieldMin, v)) } // MinIsNil applies the IsNil predicate on the "min" field. func MinIsNil() predicate.StepCriterion { return predicate.StepCriterion(sql.FieldIsNull(FieldMin)) } // MinNotNil applies the NotNil predicate on the "min" field. func MinNotNil() predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNotNull(FieldMin)) } // MaxEQ applies the EQ predicate on the "max" field. func MaxEQ(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldMax, v)) } // MaxNEQ applies the NEQ predicate on the "max" field. func MaxNEQ(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNEQ(FieldMax, v)) } // MaxIn applies the In predicate on the "max" field. func MaxIn(vs ...float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldIn(FieldMax, vs...)) } // MaxNotIn applies the NotIn predicate on the "max" field. func MaxNotIn(vs ...float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNotIn(FieldMax, vs...)) } // MaxGT applies the GT predicate on the "max" field. func MaxGT(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGT(FieldMax, v)) } // MaxGTE applies the GTE predicate on the "max" field. func MaxGTE(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGTE(FieldMax, v)) } // MaxLT applies the LT predicate on the "max" field. func MaxLT(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLT(FieldMax, v)) } // MaxLTE applies the LTE predicate on the "max" field. func MaxLTE(v float64) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLTE(FieldMax, v)) } // MaxIsNil applies the IsNil predicate on the "max" field. func MaxIsNil() predicate.StepCriterion { return predicate.StepCriterion(sql.FieldIsNull(FieldMax)) } // MaxNotNil applies the NotNil predicate on the "max" field. func MaxNotNil() predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNotNull(FieldMax)) } // CreatedAtEQ applies the EQ predicate on the "createdAt" field. func CreatedAtEQ(v time.Time) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldEQ(FieldCreatedAt, v)) } // CreatedAtNEQ applies the NEQ predicate on the "createdAt" field. func CreatedAtNEQ(v time.Time) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNEQ(FieldCreatedAt, v)) } // CreatedAtIn applies the In predicate on the "createdAt" field. func CreatedAtIn(vs ...time.Time) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldIn(FieldCreatedAt, vs...)) } // CreatedAtNotIn applies the NotIn predicate on the "createdAt" field. func CreatedAtNotIn(vs ...time.Time) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldNotIn(FieldCreatedAt, vs...)) } // CreatedAtGT applies the GT predicate on the "createdAt" field. func CreatedAtGT(v time.Time) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGT(FieldCreatedAt, v)) } // CreatedAtGTE applies the GTE predicate on the "createdAt" field. func CreatedAtGTE(v time.Time) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldGTE(FieldCreatedAt, v)) } // CreatedAtLT applies the LT predicate on the "createdAt" field. func CreatedAtLT(v time.Time) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLT(FieldCreatedAt, v)) } // CreatedAtLTE applies the LTE predicate on the "createdAt" field. func CreatedAtLTE(v time.Time) predicate.StepCriterion { return predicate.StepCriterion(sql.FieldLTE(FieldCreatedAt, v)) } // And groups predicates with the AND operator between them. func And(predicates ...predicate.StepCriterion) predicate.StepCriterion { return predicate.StepCriterion(sql.AndPredicates(predicates...)) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.StepCriterion) predicate.StepCriterion { return predicate.StepCriterion(sql.OrPredicates(predicates...)) } // Not applies the not operator on the given predicate. func Not(p predicate.StepCriterion) predicate.StepCriterion { return predicate.StepCriterion(sql.NotPredicates(p)) }