初始化2
This commit is contained in:
@@ -0,0 +1,170 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package stepdata
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the stepdata type in the database.
|
||||
Label = "step_data"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldSn holds the string denoting the sn field in the database.
|
||||
FieldSn = "sn"
|
||||
// FieldProcessId holds the string denoting the processid field in the database.
|
||||
FieldProcessId = "process_id"
|
||||
// FieldStepId holds the string denoting the stepid field in the database.
|
||||
FieldStepId = "step_id"
|
||||
// FieldStepName holds the string denoting the stepname field in the database.
|
||||
FieldStepName = "step_name"
|
||||
// FieldCriterionId holds the string denoting the criterionid field in the database.
|
||||
FieldCriterionId = "criterion_id"
|
||||
// FieldCriterionName holds the string denoting the criterionname field in the database.
|
||||
FieldCriterionName = "criterion_name"
|
||||
// FieldCriterionLogic holds the string denoting the criterionlogic field in the database.
|
||||
FieldCriterionLogic = "criterion_logic"
|
||||
// FieldValue holds the string denoting the value field in the database.
|
||||
FieldValue = "value"
|
||||
// FieldValueText holds the string denoting the valuetext field in the database.
|
||||
FieldValueText = "value_text"
|
||||
// FieldIsOK holds the string denoting the isok field in the database.
|
||||
FieldIsOK = "is_ok"
|
||||
// FieldOperator holds the string denoting the operator field in the database.
|
||||
FieldOperator = "operator"
|
||||
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the stepdata in the database.
|
||||
Table = "step_data"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for stepdata fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldSn,
|
||||
FieldProcessId,
|
||||
FieldStepId,
|
||||
FieldStepName,
|
||||
FieldCriterionId,
|
||||
FieldCriterionName,
|
||||
FieldCriterionLogic,
|
||||
FieldValue,
|
||||
FieldValueText,
|
||||
FieldIsOK,
|
||||
FieldOperator,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// SnValidator is a validator for the "sn" field. It is called by the builders before save.
|
||||
SnValidator func(string) error
|
||||
// DefaultStepName holds the default value on creation for the "stepName" field.
|
||||
DefaultStepName string
|
||||
// StepNameValidator is a validator for the "stepName" field. It is called by the builders before save.
|
||||
StepNameValidator func(string) error
|
||||
// DefaultCriterionName holds the default value on creation for the "criterionName" field.
|
||||
DefaultCriterionName string
|
||||
// CriterionNameValidator is a validator for the "criterionName" field. It is called by the builders before save.
|
||||
CriterionNameValidator func(string) error
|
||||
// DefaultCriterionLogic holds the default value on creation for the "criterionLogic" field.
|
||||
DefaultCriterionLogic string
|
||||
// CriterionLogicValidator is a validator for the "criterionLogic" field. It is called by the builders before save.
|
||||
CriterionLogicValidator func(string) error
|
||||
// DefaultValue holds the default value on creation for the "value" field.
|
||||
DefaultValue float64
|
||||
// DefaultValueText holds the default value on creation for the "valueText" field.
|
||||
DefaultValueText string
|
||||
// ValueTextValidator is a validator for the "valueText" field. It is called by the builders before save.
|
||||
ValueTextValidator func(string) error
|
||||
// DefaultIsOK holds the default value on creation for the "isOK" field.
|
||||
DefaultIsOK bool
|
||||
// DefaultOperator holds the default value on creation for the "operator" field.
|
||||
DefaultOperator string
|
||||
// OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
OperatorValidator func(string) error
|
||||
// DefaultCreatedAt holds the default value on creation for the "createdAt" field.
|
||||
DefaultCreatedAt func() time.Time
|
||||
// IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
IDValidator func(int) error
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the StepData queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySn orders the results by the sn field.
|
||||
func BySn(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSn, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByProcessId orders the results by the processId field.
|
||||
func ByProcessId(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProcessId, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStepId orders the results by the stepId field.
|
||||
func ByStepId(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStepId, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStepName orders the results by the stepName field.
|
||||
func ByStepName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStepName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCriterionId orders the results by the criterionId field.
|
||||
func ByCriterionId(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCriterionId, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCriterionName orders the results by the criterionName field.
|
||||
func ByCriterionName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCriterionName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCriterionLogic orders the results by the criterionLogic field.
|
||||
func ByCriterionLogic(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCriterionLogic, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByValue orders the results by the value field.
|
||||
func ByValue(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldValue, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByValueText orders the results by the valueText field.
|
||||
func ByValueText(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldValueText, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByIsOK orders the results by the isOK field.
|
||||
func ByIsOK(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldIsOK, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOperator orders the results by the operator field.
|
||||
func ByOperator(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOperator, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the createdAt field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,750 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package stepdata
|
||||
|
||||
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.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.
|
||||
func Sn(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// ProcessId applies equality check predicate on the "processId" field. It's identical to ProcessIdEQ.
|
||||
func ProcessId(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldProcessId, v))
|
||||
}
|
||||
|
||||
// StepId applies equality check predicate on the "stepId" field. It's identical to StepIdEQ.
|
||||
func StepId(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldStepId, v))
|
||||
}
|
||||
|
||||
// StepName applies equality check predicate on the "stepName" field. It's identical to StepNameEQ.
|
||||
func StepName(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldStepName, v))
|
||||
}
|
||||
|
||||
// CriterionId applies equality check predicate on the "criterionId" field. It's identical to CriterionIdEQ.
|
||||
func CriterionId(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldCriterionId, v))
|
||||
}
|
||||
|
||||
// CriterionName applies equality check predicate on the "criterionName" field. It's identical to CriterionNameEQ.
|
||||
func CriterionName(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldCriterionName, v))
|
||||
}
|
||||
|
||||
// CriterionLogic applies equality check predicate on the "criterionLogic" field. It's identical to CriterionLogicEQ.
|
||||
func CriterionLogic(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldCriterionLogic, v))
|
||||
}
|
||||
|
||||
// Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
|
||||
func Value(v float64) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldValue, v))
|
||||
}
|
||||
|
||||
// ValueText applies equality check predicate on the "valueText" field. It's identical to ValueTextEQ.
|
||||
func ValueText(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldValueText, v))
|
||||
}
|
||||
|
||||
// IsOK applies equality check predicate on the "isOK" field. It's identical to IsOKEQ.
|
||||
func IsOK(v bool) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldIsOK, v))
|
||||
}
|
||||
|
||||
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
||||
func Operator(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// SnEQ applies the EQ predicate on the "sn" field.
|
||||
func SnEQ(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnNEQ applies the NEQ predicate on the "sn" field.
|
||||
func SnNEQ(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnIn applies the In predicate on the "sn" field.
|
||||
func SnIn(vs ...string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIn(FieldSn, vs...))
|
||||
}
|
||||
|
||||
// SnNotIn applies the NotIn predicate on the "sn" field.
|
||||
func SnNotIn(vs ...string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotIn(FieldSn, vs...))
|
||||
}
|
||||
|
||||
// SnGT applies the GT predicate on the "sn" field.
|
||||
func SnGT(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGT(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnGTE applies the GTE predicate on the "sn" field.
|
||||
func SnGTE(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGTE(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnLT applies the LT predicate on the "sn" field.
|
||||
func SnLT(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLT(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnLTE applies the LTE predicate on the "sn" field.
|
||||
func SnLTE(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLTE(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnContains applies the Contains predicate on the "sn" field.
|
||||
func SnContains(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldContains(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnHasPrefix applies the HasPrefix predicate on the "sn" field.
|
||||
func SnHasPrefix(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldHasPrefix(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnHasSuffix applies the HasSuffix predicate on the "sn" field.
|
||||
func SnHasSuffix(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldHasSuffix(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnEqualFold applies the EqualFold predicate on the "sn" field.
|
||||
func SnEqualFold(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEqualFold(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnContainsFold applies the ContainsFold predicate on the "sn" field.
|
||||
func SnContainsFold(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldContainsFold(FieldSn, v))
|
||||
}
|
||||
|
||||
// ProcessIdEQ applies the EQ predicate on the "processId" field.
|
||||
func ProcessIdEQ(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldProcessId, v))
|
||||
}
|
||||
|
||||
// ProcessIdNEQ applies the NEQ predicate on the "processId" field.
|
||||
func ProcessIdNEQ(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNEQ(FieldProcessId, v))
|
||||
}
|
||||
|
||||
// ProcessIdIn applies the In predicate on the "processId" field.
|
||||
func ProcessIdIn(vs ...int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIn(FieldProcessId, vs...))
|
||||
}
|
||||
|
||||
// ProcessIdNotIn applies the NotIn predicate on the "processId" field.
|
||||
func ProcessIdNotIn(vs ...int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotIn(FieldProcessId, vs...))
|
||||
}
|
||||
|
||||
// ProcessIdGT applies the GT predicate on the "processId" field.
|
||||
func ProcessIdGT(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGT(FieldProcessId, v))
|
||||
}
|
||||
|
||||
// ProcessIdGTE applies the GTE predicate on the "processId" field.
|
||||
func ProcessIdGTE(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGTE(FieldProcessId, v))
|
||||
}
|
||||
|
||||
// ProcessIdLT applies the LT predicate on the "processId" field.
|
||||
func ProcessIdLT(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLT(FieldProcessId, v))
|
||||
}
|
||||
|
||||
// ProcessIdLTE applies the LTE predicate on the "processId" field.
|
||||
func ProcessIdLTE(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLTE(FieldProcessId, v))
|
||||
}
|
||||
|
||||
// ProcessIdIsNil applies the IsNil predicate on the "processId" field.
|
||||
func ProcessIdIsNil() predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIsNull(FieldProcessId))
|
||||
}
|
||||
|
||||
// ProcessIdNotNil applies the NotNil predicate on the "processId" field.
|
||||
func ProcessIdNotNil() predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotNull(FieldProcessId))
|
||||
}
|
||||
|
||||
// StepIdEQ applies the EQ predicate on the "stepId" field.
|
||||
func StepIdEQ(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldStepId, v))
|
||||
}
|
||||
|
||||
// StepIdNEQ applies the NEQ predicate on the "stepId" field.
|
||||
func StepIdNEQ(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNEQ(FieldStepId, v))
|
||||
}
|
||||
|
||||
// StepIdIn applies the In predicate on the "stepId" field.
|
||||
func StepIdIn(vs ...int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIn(FieldStepId, vs...))
|
||||
}
|
||||
|
||||
// StepIdNotIn applies the NotIn predicate on the "stepId" field.
|
||||
func StepIdNotIn(vs ...int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotIn(FieldStepId, vs...))
|
||||
}
|
||||
|
||||
// StepIdGT applies the GT predicate on the "stepId" field.
|
||||
func StepIdGT(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGT(FieldStepId, v))
|
||||
}
|
||||
|
||||
// StepIdGTE applies the GTE predicate on the "stepId" field.
|
||||
func StepIdGTE(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGTE(FieldStepId, v))
|
||||
}
|
||||
|
||||
// StepIdLT applies the LT predicate on the "stepId" field.
|
||||
func StepIdLT(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLT(FieldStepId, v))
|
||||
}
|
||||
|
||||
// StepIdLTE applies the LTE predicate on the "stepId" field.
|
||||
func StepIdLTE(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLTE(FieldStepId, v))
|
||||
}
|
||||
|
||||
// StepNameEQ applies the EQ predicate on the "stepName" field.
|
||||
func StepNameEQ(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldStepName, v))
|
||||
}
|
||||
|
||||
// StepNameNEQ applies the NEQ predicate on the "stepName" field.
|
||||
func StepNameNEQ(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNEQ(FieldStepName, v))
|
||||
}
|
||||
|
||||
// StepNameIn applies the In predicate on the "stepName" field.
|
||||
func StepNameIn(vs ...string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIn(FieldStepName, vs...))
|
||||
}
|
||||
|
||||
// StepNameNotIn applies the NotIn predicate on the "stepName" field.
|
||||
func StepNameNotIn(vs ...string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotIn(FieldStepName, vs...))
|
||||
}
|
||||
|
||||
// StepNameGT applies the GT predicate on the "stepName" field.
|
||||
func StepNameGT(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGT(FieldStepName, v))
|
||||
}
|
||||
|
||||
// StepNameGTE applies the GTE predicate on the "stepName" field.
|
||||
func StepNameGTE(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGTE(FieldStepName, v))
|
||||
}
|
||||
|
||||
// StepNameLT applies the LT predicate on the "stepName" field.
|
||||
func StepNameLT(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLT(FieldStepName, v))
|
||||
}
|
||||
|
||||
// StepNameLTE applies the LTE predicate on the "stepName" field.
|
||||
func StepNameLTE(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLTE(FieldStepName, v))
|
||||
}
|
||||
|
||||
// StepNameContains applies the Contains predicate on the "stepName" field.
|
||||
func StepNameContains(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldContains(FieldStepName, v))
|
||||
}
|
||||
|
||||
// StepNameHasPrefix applies the HasPrefix predicate on the "stepName" field.
|
||||
func StepNameHasPrefix(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldHasPrefix(FieldStepName, v))
|
||||
}
|
||||
|
||||
// StepNameHasSuffix applies the HasSuffix predicate on the "stepName" field.
|
||||
func StepNameHasSuffix(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldHasSuffix(FieldStepName, v))
|
||||
}
|
||||
|
||||
// StepNameEqualFold applies the EqualFold predicate on the "stepName" field.
|
||||
func StepNameEqualFold(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEqualFold(FieldStepName, v))
|
||||
}
|
||||
|
||||
// StepNameContainsFold applies the ContainsFold predicate on the "stepName" field.
|
||||
func StepNameContainsFold(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldContainsFold(FieldStepName, v))
|
||||
}
|
||||
|
||||
// CriterionIdEQ applies the EQ predicate on the "criterionId" field.
|
||||
func CriterionIdEQ(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldCriterionId, v))
|
||||
}
|
||||
|
||||
// CriterionIdNEQ applies the NEQ predicate on the "criterionId" field.
|
||||
func CriterionIdNEQ(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNEQ(FieldCriterionId, v))
|
||||
}
|
||||
|
||||
// CriterionIdIn applies the In predicate on the "criterionId" field.
|
||||
func CriterionIdIn(vs ...int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIn(FieldCriterionId, vs...))
|
||||
}
|
||||
|
||||
// CriterionIdNotIn applies the NotIn predicate on the "criterionId" field.
|
||||
func CriterionIdNotIn(vs ...int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotIn(FieldCriterionId, vs...))
|
||||
}
|
||||
|
||||
// CriterionIdGT applies the GT predicate on the "criterionId" field.
|
||||
func CriterionIdGT(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGT(FieldCriterionId, v))
|
||||
}
|
||||
|
||||
// CriterionIdGTE applies the GTE predicate on the "criterionId" field.
|
||||
func CriterionIdGTE(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGTE(FieldCriterionId, v))
|
||||
}
|
||||
|
||||
// CriterionIdLT applies the LT predicate on the "criterionId" field.
|
||||
func CriterionIdLT(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLT(FieldCriterionId, v))
|
||||
}
|
||||
|
||||
// CriterionIdLTE applies the LTE predicate on the "criterionId" field.
|
||||
func CriterionIdLTE(v int) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLTE(FieldCriterionId, v))
|
||||
}
|
||||
|
||||
// CriterionIdIsNil applies the IsNil predicate on the "criterionId" field.
|
||||
func CriterionIdIsNil() predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIsNull(FieldCriterionId))
|
||||
}
|
||||
|
||||
// CriterionIdNotNil applies the NotNil predicate on the "criterionId" field.
|
||||
func CriterionIdNotNil() predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotNull(FieldCriterionId))
|
||||
}
|
||||
|
||||
// CriterionNameEQ applies the EQ predicate on the "criterionName" field.
|
||||
func CriterionNameEQ(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldCriterionName, v))
|
||||
}
|
||||
|
||||
// CriterionNameNEQ applies the NEQ predicate on the "criterionName" field.
|
||||
func CriterionNameNEQ(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNEQ(FieldCriterionName, v))
|
||||
}
|
||||
|
||||
// CriterionNameIn applies the In predicate on the "criterionName" field.
|
||||
func CriterionNameIn(vs ...string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIn(FieldCriterionName, vs...))
|
||||
}
|
||||
|
||||
// CriterionNameNotIn applies the NotIn predicate on the "criterionName" field.
|
||||
func CriterionNameNotIn(vs ...string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotIn(FieldCriterionName, vs...))
|
||||
}
|
||||
|
||||
// CriterionNameGT applies the GT predicate on the "criterionName" field.
|
||||
func CriterionNameGT(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGT(FieldCriterionName, v))
|
||||
}
|
||||
|
||||
// CriterionNameGTE applies the GTE predicate on the "criterionName" field.
|
||||
func CriterionNameGTE(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGTE(FieldCriterionName, v))
|
||||
}
|
||||
|
||||
// CriterionNameLT applies the LT predicate on the "criterionName" field.
|
||||
func CriterionNameLT(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLT(FieldCriterionName, v))
|
||||
}
|
||||
|
||||
// CriterionNameLTE applies the LTE predicate on the "criterionName" field.
|
||||
func CriterionNameLTE(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLTE(FieldCriterionName, v))
|
||||
}
|
||||
|
||||
// CriterionNameContains applies the Contains predicate on the "criterionName" field.
|
||||
func CriterionNameContains(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldContains(FieldCriterionName, v))
|
||||
}
|
||||
|
||||
// CriterionNameHasPrefix applies the HasPrefix predicate on the "criterionName" field.
|
||||
func CriterionNameHasPrefix(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldHasPrefix(FieldCriterionName, v))
|
||||
}
|
||||
|
||||
// CriterionNameHasSuffix applies the HasSuffix predicate on the "criterionName" field.
|
||||
func CriterionNameHasSuffix(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldHasSuffix(FieldCriterionName, v))
|
||||
}
|
||||
|
||||
// CriterionNameEqualFold applies the EqualFold predicate on the "criterionName" field.
|
||||
func CriterionNameEqualFold(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEqualFold(FieldCriterionName, v))
|
||||
}
|
||||
|
||||
// CriterionNameContainsFold applies the ContainsFold predicate on the "criterionName" field.
|
||||
func CriterionNameContainsFold(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldContainsFold(FieldCriterionName, v))
|
||||
}
|
||||
|
||||
// CriterionLogicEQ applies the EQ predicate on the "criterionLogic" field.
|
||||
func CriterionLogicEQ(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldCriterionLogic, v))
|
||||
}
|
||||
|
||||
// CriterionLogicNEQ applies the NEQ predicate on the "criterionLogic" field.
|
||||
func CriterionLogicNEQ(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNEQ(FieldCriterionLogic, v))
|
||||
}
|
||||
|
||||
// CriterionLogicIn applies the In predicate on the "criterionLogic" field.
|
||||
func CriterionLogicIn(vs ...string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIn(FieldCriterionLogic, vs...))
|
||||
}
|
||||
|
||||
// CriterionLogicNotIn applies the NotIn predicate on the "criterionLogic" field.
|
||||
func CriterionLogicNotIn(vs ...string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotIn(FieldCriterionLogic, vs...))
|
||||
}
|
||||
|
||||
// CriterionLogicGT applies the GT predicate on the "criterionLogic" field.
|
||||
func CriterionLogicGT(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGT(FieldCriterionLogic, v))
|
||||
}
|
||||
|
||||
// CriterionLogicGTE applies the GTE predicate on the "criterionLogic" field.
|
||||
func CriterionLogicGTE(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGTE(FieldCriterionLogic, v))
|
||||
}
|
||||
|
||||
// CriterionLogicLT applies the LT predicate on the "criterionLogic" field.
|
||||
func CriterionLogicLT(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLT(FieldCriterionLogic, v))
|
||||
}
|
||||
|
||||
// CriterionLogicLTE applies the LTE predicate on the "criterionLogic" field.
|
||||
func CriterionLogicLTE(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLTE(FieldCriterionLogic, v))
|
||||
}
|
||||
|
||||
// CriterionLogicContains applies the Contains predicate on the "criterionLogic" field.
|
||||
func CriterionLogicContains(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldContains(FieldCriterionLogic, v))
|
||||
}
|
||||
|
||||
// CriterionLogicHasPrefix applies the HasPrefix predicate on the "criterionLogic" field.
|
||||
func CriterionLogicHasPrefix(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldHasPrefix(FieldCriterionLogic, v))
|
||||
}
|
||||
|
||||
// CriterionLogicHasSuffix applies the HasSuffix predicate on the "criterionLogic" field.
|
||||
func CriterionLogicHasSuffix(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldHasSuffix(FieldCriterionLogic, v))
|
||||
}
|
||||
|
||||
// CriterionLogicEqualFold applies the EqualFold predicate on the "criterionLogic" field.
|
||||
func CriterionLogicEqualFold(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEqualFold(FieldCriterionLogic, v))
|
||||
}
|
||||
|
||||
// CriterionLogicContainsFold applies the ContainsFold predicate on the "criterionLogic" field.
|
||||
func CriterionLogicContainsFold(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldContainsFold(FieldCriterionLogic, v))
|
||||
}
|
||||
|
||||
// ValueEQ applies the EQ predicate on the "value" field.
|
||||
func ValueEQ(v float64) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldValue, v))
|
||||
}
|
||||
|
||||
// ValueNEQ applies the NEQ predicate on the "value" field.
|
||||
func ValueNEQ(v float64) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNEQ(FieldValue, v))
|
||||
}
|
||||
|
||||
// ValueIn applies the In predicate on the "value" field.
|
||||
func ValueIn(vs ...float64) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIn(FieldValue, vs...))
|
||||
}
|
||||
|
||||
// ValueNotIn applies the NotIn predicate on the "value" field.
|
||||
func ValueNotIn(vs ...float64) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotIn(FieldValue, vs...))
|
||||
}
|
||||
|
||||
// ValueGT applies the GT predicate on the "value" field.
|
||||
func ValueGT(v float64) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGT(FieldValue, v))
|
||||
}
|
||||
|
||||
// ValueGTE applies the GTE predicate on the "value" field.
|
||||
func ValueGTE(v float64) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGTE(FieldValue, v))
|
||||
}
|
||||
|
||||
// ValueLT applies the LT predicate on the "value" field.
|
||||
func ValueLT(v float64) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLT(FieldValue, v))
|
||||
}
|
||||
|
||||
// ValueLTE applies the LTE predicate on the "value" field.
|
||||
func ValueLTE(v float64) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLTE(FieldValue, v))
|
||||
}
|
||||
|
||||
// ValueTextEQ applies the EQ predicate on the "valueText" field.
|
||||
func ValueTextEQ(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldValueText, v))
|
||||
}
|
||||
|
||||
// ValueTextNEQ applies the NEQ predicate on the "valueText" field.
|
||||
func ValueTextNEQ(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNEQ(FieldValueText, v))
|
||||
}
|
||||
|
||||
// ValueTextIn applies the In predicate on the "valueText" field.
|
||||
func ValueTextIn(vs ...string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIn(FieldValueText, vs...))
|
||||
}
|
||||
|
||||
// ValueTextNotIn applies the NotIn predicate on the "valueText" field.
|
||||
func ValueTextNotIn(vs ...string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotIn(FieldValueText, vs...))
|
||||
}
|
||||
|
||||
// ValueTextGT applies the GT predicate on the "valueText" field.
|
||||
func ValueTextGT(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGT(FieldValueText, v))
|
||||
}
|
||||
|
||||
// ValueTextGTE applies the GTE predicate on the "valueText" field.
|
||||
func ValueTextGTE(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGTE(FieldValueText, v))
|
||||
}
|
||||
|
||||
// ValueTextLT applies the LT predicate on the "valueText" field.
|
||||
func ValueTextLT(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLT(FieldValueText, v))
|
||||
}
|
||||
|
||||
// ValueTextLTE applies the LTE predicate on the "valueText" field.
|
||||
func ValueTextLTE(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLTE(FieldValueText, v))
|
||||
}
|
||||
|
||||
// ValueTextContains applies the Contains predicate on the "valueText" field.
|
||||
func ValueTextContains(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldContains(FieldValueText, v))
|
||||
}
|
||||
|
||||
// ValueTextHasPrefix applies the HasPrefix predicate on the "valueText" field.
|
||||
func ValueTextHasPrefix(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldHasPrefix(FieldValueText, v))
|
||||
}
|
||||
|
||||
// ValueTextHasSuffix applies the HasSuffix predicate on the "valueText" field.
|
||||
func ValueTextHasSuffix(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldHasSuffix(FieldValueText, v))
|
||||
}
|
||||
|
||||
// ValueTextEqualFold applies the EqualFold predicate on the "valueText" field.
|
||||
func ValueTextEqualFold(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEqualFold(FieldValueText, v))
|
||||
}
|
||||
|
||||
// ValueTextContainsFold applies the ContainsFold predicate on the "valueText" field.
|
||||
func ValueTextContainsFold(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldContainsFold(FieldValueText, v))
|
||||
}
|
||||
|
||||
// IsOKEQ applies the EQ predicate on the "isOK" field.
|
||||
func IsOKEQ(v bool) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldIsOK, v))
|
||||
}
|
||||
|
||||
// IsOKNEQ applies the NEQ predicate on the "isOK" field.
|
||||
func IsOKNEQ(v bool) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNEQ(FieldIsOK, v))
|
||||
}
|
||||
|
||||
// OperatorEQ applies the EQ predicate on the "operator" field.
|
||||
func OperatorEQ(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
||||
func OperatorNEQ(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorIn applies the In predicate on the "operator" field.
|
||||
func OperatorIn(vs ...string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
||||
func OperatorNotIn(vs ...string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorGT applies the GT predicate on the "operator" field.
|
||||
func OperatorGT(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorGTE applies the GTE predicate on the "operator" field.
|
||||
func OperatorGTE(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLT applies the LT predicate on the "operator" field.
|
||||
func OperatorLT(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLTE applies the LTE predicate on the "operator" field.
|
||||
func OperatorLTE(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContains applies the Contains predicate on the "operator" field.
|
||||
func OperatorContains(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldContains(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
||||
func OperatorHasPrefix(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldHasPrefix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
||||
func OperatorHasSuffix(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldHasSuffix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
||||
func OperatorEqualFold(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEqualFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
||||
func OperatorContainsFold(v string) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldContainsFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
||||
func CreatedAtGT(v time.Time) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
||||
func CreatedAtLT(v time.Time) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.StepData {
|
||||
return predicate.StepData(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.StepData) predicate.StepData {
|
||||
return predicate.StepData(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.StepData) predicate.StepData {
|
||||
return predicate.StepData(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.StepData) predicate.StepData {
|
||||
return predicate.StepData(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user