初始化2
This commit is contained in:
@@ -0,0 +1,908 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package ent
|
||||
|
||||
import (
|
||||
"bj_power_mes/ent/associationtrace"
|
||||
"bj_power_mes/ent/bomitem"
|
||||
"bj_power_mes/ent/dailyplan"
|
||||
"bj_power_mes/ent/eventlog"
|
||||
"bj_power_mes/ent/materialrequest"
|
||||
"bj_power_mes/ent/permission"
|
||||
"bj_power_mes/ent/plcsendlog"
|
||||
"bj_power_mes/ent/processstep"
|
||||
"bj_power_mes/ent/producttype"
|
||||
"bj_power_mes/ent/role"
|
||||
"bj_power_mes/ent/scanrecord"
|
||||
"bj_power_mes/ent/semiflow"
|
||||
"bj_power_mes/ent/stationprocess"
|
||||
"bj_power_mes/ent/stepcriterion"
|
||||
"bj_power_mes/ent/stepdata"
|
||||
"bj_power_mes/ent/torquerecord"
|
||||
"bj_power_mes/ent/user"
|
||||
"bj_power_mes/ent/workorder"
|
||||
"bj_power_mes/ent/workpiece"
|
||||
"bj_power_mes/ent/workpieceprocess"
|
||||
"bj_power_mes/schema"
|
||||
"time"
|
||||
)
|
||||
|
||||
// The init function reads all schema descriptors with runtime code
|
||||
// (default values, validators, hooks and policies) and stitches it
|
||||
// to their package variables.
|
||||
func init() {
|
||||
associationtraceFields := schema.AssociationTrace{}.Fields()
|
||||
_ = associationtraceFields
|
||||
// associationtraceDescFinishedSn is the schema descriptor for finishedSn field.
|
||||
associationtraceDescFinishedSn := associationtraceFields[1].Descriptor()
|
||||
// associationtrace.FinishedSnValidator is a validator for the "finishedSn" field. It is called by the builders before save.
|
||||
associationtrace.FinishedSnValidator = associationtraceDescFinishedSn.Validators[0].(func(string) error)
|
||||
// associationtraceDescOrderNo is the schema descriptor for orderNo field.
|
||||
associationtraceDescOrderNo := associationtraceFields[2].Descriptor()
|
||||
// associationtrace.DefaultOrderNo holds the default value on creation for the orderNo field.
|
||||
associationtrace.DefaultOrderNo = associationtraceDescOrderNo.Default.(string)
|
||||
// associationtrace.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
associationtrace.OrderNoValidator = associationtraceDescOrderNo.Validators[0].(func(string) error)
|
||||
// associationtraceDescProcessCode is the schema descriptor for processCode field.
|
||||
associationtraceDescProcessCode := associationtraceFields[3].Descriptor()
|
||||
// associationtrace.DefaultProcessCode holds the default value on creation for the processCode field.
|
||||
associationtrace.DefaultProcessCode = associationtraceDescProcessCode.Default.(string)
|
||||
// associationtrace.ProcessCodeValidator is a validator for the "processCode" field. It is called by the builders before save.
|
||||
associationtrace.ProcessCodeValidator = associationtraceDescProcessCode.Validators[0].(func(string) error)
|
||||
// associationtraceDescOperator is the schema descriptor for operator field.
|
||||
associationtraceDescOperator := associationtraceFields[6].Descriptor()
|
||||
// associationtrace.DefaultOperator holds the default value on creation for the operator field.
|
||||
associationtrace.DefaultOperator = associationtraceDescOperator.Default.(string)
|
||||
// associationtrace.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
associationtrace.OperatorValidator = associationtraceDescOperator.Validators[0].(func(string) error)
|
||||
// associationtraceDescCreatedAt is the schema descriptor for createdAt field.
|
||||
associationtraceDescCreatedAt := associationtraceFields[7].Descriptor()
|
||||
// associationtrace.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
associationtrace.DefaultCreatedAt = associationtraceDescCreatedAt.Default.(func() time.Time)
|
||||
// associationtraceDescID is the schema descriptor for id field.
|
||||
associationtraceDescID := associationtraceFields[0].Descriptor()
|
||||
// associationtrace.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
associationtrace.IDValidator = associationtraceDescID.Validators[0].(func(int) error)
|
||||
bomitemFields := schema.BomItem{}.Fields()
|
||||
_ = bomitemFields
|
||||
// bomitemDescWorkOrderNo is the schema descriptor for workOrderNo field.
|
||||
bomitemDescWorkOrderNo := bomitemFields[1].Descriptor()
|
||||
// bomitem.WorkOrderNoValidator is a validator for the "workOrderNo" field. It is called by the builders before save.
|
||||
bomitem.WorkOrderNoValidator = bomitemDescWorkOrderNo.Validators[0].(func(string) error)
|
||||
// bomitemDescMaterialCode is the schema descriptor for materialCode field.
|
||||
bomitemDescMaterialCode := bomitemFields[2].Descriptor()
|
||||
// bomitem.MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
|
||||
bomitem.MaterialCodeValidator = bomitemDescMaterialCode.Validators[0].(func(string) error)
|
||||
// bomitemDescMaterialName is the schema descriptor for materialName field.
|
||||
bomitemDescMaterialName := bomitemFields[3].Descriptor()
|
||||
// bomitem.DefaultMaterialName holds the default value on creation for the materialName field.
|
||||
bomitem.DefaultMaterialName = bomitemDescMaterialName.Default.(string)
|
||||
// bomitem.MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
|
||||
bomitem.MaterialNameValidator = bomitemDescMaterialName.Validators[0].(func(string) error)
|
||||
// bomitemDescSpec is the schema descriptor for spec field.
|
||||
bomitemDescSpec := bomitemFields[4].Descriptor()
|
||||
// bomitem.DefaultSpec holds the default value on creation for the spec field.
|
||||
bomitem.DefaultSpec = bomitemDescSpec.Default.(string)
|
||||
// bomitem.SpecValidator is a validator for the "spec" field. It is called by the builders before save.
|
||||
bomitem.SpecValidator = bomitemDescSpec.Validators[0].(func(string) error)
|
||||
// bomitemDescUnit is the schema descriptor for unit field.
|
||||
bomitemDescUnit := bomitemFields[5].Descriptor()
|
||||
// bomitem.DefaultUnit holds the default value on creation for the unit field.
|
||||
bomitem.DefaultUnit = bomitemDescUnit.Default.(string)
|
||||
// bomitem.UnitValidator is a validator for the "unit" field. It is called by the builders before save.
|
||||
bomitem.UnitValidator = bomitemDescUnit.Validators[0].(func(string) error)
|
||||
// bomitemDescManageMode is the schema descriptor for manageMode field.
|
||||
bomitemDescManageMode := bomitemFields[6].Descriptor()
|
||||
// bomitem.DefaultManageMode holds the default value on creation for the manageMode field.
|
||||
bomitem.DefaultManageMode = bomitemDescManageMode.Default.(string)
|
||||
// bomitem.ManageModeValidator is a validator for the "manageMode" field. It is called by the builders before save.
|
||||
bomitem.ManageModeValidator = bomitemDescManageMode.Validators[0].(func(string) error)
|
||||
// bomitemDescUnitQty is the schema descriptor for unitQty field.
|
||||
bomitemDescUnitQty := bomitemFields[7].Descriptor()
|
||||
// bomitem.DefaultUnitQty holds the default value on creation for the unitQty field.
|
||||
bomitem.DefaultUnitQty = bomitemDescUnitQty.Default.(float64)
|
||||
// bomitemDescLossRate is the schema descriptor for lossRate field.
|
||||
bomitemDescLossRate := bomitemFields[8].Descriptor()
|
||||
// bomitem.DefaultLossRate holds the default value on creation for the lossRate field.
|
||||
bomitem.DefaultLossRate = bomitemDescLossRate.Default.(float64)
|
||||
// bomitemDescRequiredQty is the schema descriptor for requiredQty field.
|
||||
bomitemDescRequiredQty := bomitemFields[9].Descriptor()
|
||||
// bomitem.DefaultRequiredQty holds the default value on creation for the requiredQty field.
|
||||
bomitem.DefaultRequiredQty = bomitemDescRequiredQty.Default.(float64)
|
||||
// bomitemDescCreatedAt is the schema descriptor for createdAt field.
|
||||
bomitemDescCreatedAt := bomitemFields[11].Descriptor()
|
||||
// bomitem.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
bomitem.DefaultCreatedAt = bomitemDescCreatedAt.Default.(func() time.Time)
|
||||
// bomitemDescID is the schema descriptor for id field.
|
||||
bomitemDescID := bomitemFields[0].Descriptor()
|
||||
// bomitem.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
bomitem.IDValidator = bomitemDescID.Validators[0].(func(int) error)
|
||||
dailyplanFields := schema.DailyPlan{}.Fields()
|
||||
_ = dailyplanFields
|
||||
// dailyplanDescOrderNo is the schema descriptor for orderNo field.
|
||||
dailyplanDescOrderNo := dailyplanFields[1].Descriptor()
|
||||
// dailyplan.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
dailyplan.OrderNoValidator = dailyplanDescOrderNo.Validators[0].(func(string) error)
|
||||
// dailyplanDescPlanDate is the schema descriptor for planDate field.
|
||||
dailyplanDescPlanDate := dailyplanFields[2].Descriptor()
|
||||
// dailyplan.PlanDateValidator is a validator for the "planDate" field. It is called by the builders before save.
|
||||
dailyplan.PlanDateValidator = dailyplanDescPlanDate.Validators[0].(func(string) error)
|
||||
// dailyplanDescPlanQty is the schema descriptor for planQty field.
|
||||
dailyplanDescPlanQty := dailyplanFields[3].Descriptor()
|
||||
// dailyplan.DefaultPlanQty holds the default value on creation for the planQty field.
|
||||
dailyplan.DefaultPlanQty = dailyplanDescPlanQty.Default.(int)
|
||||
// dailyplanDescCompletedQty is the schema descriptor for completedQty field.
|
||||
dailyplanDescCompletedQty := dailyplanFields[4].Descriptor()
|
||||
// dailyplan.DefaultCompletedQty holds the default value on creation for the completedQty field.
|
||||
dailyplan.DefaultCompletedQty = dailyplanDescCompletedQty.Default.(int)
|
||||
// dailyplanDescStatus is the schema descriptor for status field.
|
||||
dailyplanDescStatus := dailyplanFields[5].Descriptor()
|
||||
// dailyplan.DefaultStatus holds the default value on creation for the status field.
|
||||
dailyplan.DefaultStatus = dailyplanDescStatus.Default.(string)
|
||||
// dailyplan.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
dailyplan.StatusValidator = dailyplanDescStatus.Validators[0].(func(string) error)
|
||||
// dailyplanDescOperator is the schema descriptor for operator field.
|
||||
dailyplanDescOperator := dailyplanFields[6].Descriptor()
|
||||
// dailyplan.DefaultOperator holds the default value on creation for the operator field.
|
||||
dailyplan.DefaultOperator = dailyplanDescOperator.Default.(string)
|
||||
// dailyplan.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
dailyplan.OperatorValidator = dailyplanDescOperator.Validators[0].(func(string) error)
|
||||
// dailyplanDescCreatedAt is the schema descriptor for createdAt field.
|
||||
dailyplanDescCreatedAt := dailyplanFields[7].Descriptor()
|
||||
// dailyplan.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
dailyplan.DefaultCreatedAt = dailyplanDescCreatedAt.Default.(func() time.Time)
|
||||
// dailyplanDescUpdatedAt is the schema descriptor for updatedAt field.
|
||||
dailyplanDescUpdatedAt := dailyplanFields[8].Descriptor()
|
||||
// dailyplan.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
|
||||
dailyplan.DefaultUpdatedAt = dailyplanDescUpdatedAt.Default.(func() time.Time)
|
||||
// dailyplan.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
dailyplan.UpdateDefaultUpdatedAt = dailyplanDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||||
// dailyplanDescID is the schema descriptor for id field.
|
||||
dailyplanDescID := dailyplanFields[0].Descriptor()
|
||||
// dailyplan.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
dailyplan.IDValidator = dailyplanDescID.Validators[0].(func(int) error)
|
||||
eventlogFields := schema.EventLog{}.Fields()
|
||||
_ = eventlogFields
|
||||
// eventlogDescEventType is the schema descriptor for eventType field.
|
||||
eventlogDescEventType := eventlogFields[1].Descriptor()
|
||||
// eventlog.EventTypeValidator is a validator for the "eventType" field. It is called by the builders before save.
|
||||
eventlog.EventTypeValidator = eventlogDescEventType.Validators[0].(func(string) error)
|
||||
// eventlogDescWorkOrderNo is the schema descriptor for workOrderNo field.
|
||||
eventlogDescWorkOrderNo := eventlogFields[2].Descriptor()
|
||||
// eventlog.DefaultWorkOrderNo holds the default value on creation for the workOrderNo field.
|
||||
eventlog.DefaultWorkOrderNo = eventlogDescWorkOrderNo.Default.(string)
|
||||
// eventlog.WorkOrderNoValidator is a validator for the "workOrderNo" field. It is called by the builders before save.
|
||||
eventlog.WorkOrderNoValidator = eventlogDescWorkOrderNo.Validators[0].(func(string) error)
|
||||
// eventlogDescOperator is the schema descriptor for operator field.
|
||||
eventlogDescOperator := eventlogFields[3].Descriptor()
|
||||
// eventlog.DefaultOperator holds the default value on creation for the operator field.
|
||||
eventlog.DefaultOperator = eventlogDescOperator.Default.(string)
|
||||
// eventlog.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
eventlog.OperatorValidator = eventlogDescOperator.Validators[0].(func(string) error)
|
||||
// eventlogDescEntityType is the schema descriptor for entityType field.
|
||||
eventlogDescEntityType := eventlogFields[4].Descriptor()
|
||||
// eventlog.DefaultEntityType holds the default value on creation for the entityType field.
|
||||
eventlog.DefaultEntityType = eventlogDescEntityType.Default.(string)
|
||||
// eventlog.EntityTypeValidator is a validator for the "entityType" field. It is called by the builders before save.
|
||||
eventlog.EntityTypeValidator = eventlogDescEntityType.Validators[0].(func(string) error)
|
||||
// eventlogDescEntityId is the schema descriptor for entityId field.
|
||||
eventlogDescEntityId := eventlogFields[5].Descriptor()
|
||||
// eventlog.DefaultEntityId holds the default value on creation for the entityId field.
|
||||
eventlog.DefaultEntityId = eventlogDescEntityId.Default.(string)
|
||||
// eventlog.EntityIdValidator is a validator for the "entityId" field. It is called by the builders before save.
|
||||
eventlog.EntityIdValidator = eventlogDescEntityId.Validators[0].(func(string) error)
|
||||
// eventlogDescDescription is the schema descriptor for description field.
|
||||
eventlogDescDescription := eventlogFields[6].Descriptor()
|
||||
// eventlog.DefaultDescription holds the default value on creation for the description field.
|
||||
eventlog.DefaultDescription = eventlogDescDescription.Default.(string)
|
||||
// eventlogDescCreatedAt is the schema descriptor for createdAt field.
|
||||
eventlogDescCreatedAt := eventlogFields[8].Descriptor()
|
||||
// eventlog.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
eventlog.DefaultCreatedAt = eventlogDescCreatedAt.Default.(func() time.Time)
|
||||
// eventlogDescID is the schema descriptor for id field.
|
||||
eventlogDescID := eventlogFields[0].Descriptor()
|
||||
// eventlog.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
eventlog.IDValidator = eventlogDescID.Validators[0].(func(int) error)
|
||||
materialrequestFields := schema.MaterialRequest{}.Fields()
|
||||
_ = materialrequestFields
|
||||
// materialrequestDescRequestNo is the schema descriptor for requestNo field.
|
||||
materialrequestDescRequestNo := materialrequestFields[1].Descriptor()
|
||||
// materialrequest.RequestNoValidator is a validator for the "requestNo" field. It is called by the builders before save.
|
||||
materialrequest.RequestNoValidator = materialrequestDescRequestNo.Validators[0].(func(string) error)
|
||||
// materialrequestDescOrderNo is the schema descriptor for orderNo field.
|
||||
materialrequestDescOrderNo := materialrequestFields[2].Descriptor()
|
||||
// materialrequest.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
materialrequest.OrderNoValidator = materialrequestDescOrderNo.Validators[0].(func(string) error)
|
||||
// materialrequestDescPlanDate is the schema descriptor for planDate field.
|
||||
materialrequestDescPlanDate := materialrequestFields[3].Descriptor()
|
||||
// materialrequest.PlanDateValidator is a validator for the "planDate" field. It is called by the builders before save.
|
||||
materialrequest.PlanDateValidator = materialrequestDescPlanDate.Validators[0].(func(string) error)
|
||||
// materialrequestDescMaterialCode is the schema descriptor for materialCode field.
|
||||
materialrequestDescMaterialCode := materialrequestFields[4].Descriptor()
|
||||
// materialrequest.MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
|
||||
materialrequest.MaterialCodeValidator = materialrequestDescMaterialCode.Validators[0].(func(string) error)
|
||||
// materialrequestDescMaterialName is the schema descriptor for materialName field.
|
||||
materialrequestDescMaterialName := materialrequestFields[5].Descriptor()
|
||||
// materialrequest.DefaultMaterialName holds the default value on creation for the materialName field.
|
||||
materialrequest.DefaultMaterialName = materialrequestDescMaterialName.Default.(string)
|
||||
// materialrequest.MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
|
||||
materialrequest.MaterialNameValidator = materialrequestDescMaterialName.Validators[0].(func(string) error)
|
||||
// materialrequestDescUnit is the schema descriptor for unit field.
|
||||
materialrequestDescUnit := materialrequestFields[6].Descriptor()
|
||||
// materialrequest.DefaultUnit holds the default value on creation for the unit field.
|
||||
materialrequest.DefaultUnit = materialrequestDescUnit.Default.(string)
|
||||
// materialrequest.UnitValidator is a validator for the "unit" field. It is called by the builders before save.
|
||||
materialrequest.UnitValidator = materialrequestDescUnit.Validators[0].(func(string) error)
|
||||
// materialrequestDescManageMode is the schema descriptor for manageMode field.
|
||||
materialrequestDescManageMode := materialrequestFields[7].Descriptor()
|
||||
// materialrequest.DefaultManageMode holds the default value on creation for the manageMode field.
|
||||
materialrequest.DefaultManageMode = materialrequestDescManageMode.Default.(string)
|
||||
// materialrequest.ManageModeValidator is a validator for the "manageMode" field. It is called by the builders before save.
|
||||
materialrequest.ManageModeValidator = materialrequestDescManageMode.Validators[0].(func(string) error)
|
||||
// materialrequestDescReqQty is the schema descriptor for reqQty field.
|
||||
materialrequestDescReqQty := materialrequestFields[8].Descriptor()
|
||||
// materialrequest.DefaultReqQty holds the default value on creation for the reqQty field.
|
||||
materialrequest.DefaultReqQty = materialrequestDescReqQty.Default.(float64)
|
||||
// materialrequestDescStatus is the schema descriptor for status field.
|
||||
materialrequestDescStatus := materialrequestFields[9].Descriptor()
|
||||
// materialrequest.DefaultStatus holds the default value on creation for the status field.
|
||||
materialrequest.DefaultStatus = materialrequestDescStatus.Default.(string)
|
||||
// materialrequest.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
materialrequest.StatusValidator = materialrequestDescStatus.Validators[0].(func(string) error)
|
||||
// materialrequestDescTargetDock is the schema descriptor for targetDock field.
|
||||
materialrequestDescTargetDock := materialrequestFields[10].Descriptor()
|
||||
// materialrequest.DefaultTargetDock holds the default value on creation for the targetDock field.
|
||||
materialrequest.DefaultTargetDock = materialrequestDescTargetDock.Default.(string)
|
||||
// materialrequest.TargetDockValidator is a validator for the "targetDock" field. It is called by the builders before save.
|
||||
materialrequest.TargetDockValidator = materialrequestDescTargetDock.Validators[0].(func(string) error)
|
||||
// materialrequestDescOperator is the schema descriptor for operator field.
|
||||
materialrequestDescOperator := materialrequestFields[11].Descriptor()
|
||||
// materialrequest.DefaultOperator holds the default value on creation for the operator field.
|
||||
materialrequest.DefaultOperator = materialrequestDescOperator.Default.(string)
|
||||
// materialrequest.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
materialrequest.OperatorValidator = materialrequestDescOperator.Validators[0].(func(string) error)
|
||||
// materialrequestDescCreatedAt is the schema descriptor for createdAt field.
|
||||
materialrequestDescCreatedAt := materialrequestFields[12].Descriptor()
|
||||
// materialrequest.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
materialrequest.DefaultCreatedAt = materialrequestDescCreatedAt.Default.(func() time.Time)
|
||||
// materialrequestDescUpdatedAt is the schema descriptor for updatedAt field.
|
||||
materialrequestDescUpdatedAt := materialrequestFields[13].Descriptor()
|
||||
// materialrequest.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
|
||||
materialrequest.DefaultUpdatedAt = materialrequestDescUpdatedAt.Default.(func() time.Time)
|
||||
// materialrequest.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
materialrequest.UpdateDefaultUpdatedAt = materialrequestDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||||
// materialrequestDescID is the schema descriptor for id field.
|
||||
materialrequestDescID := materialrequestFields[0].Descriptor()
|
||||
// materialrequest.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
materialrequest.IDValidator = materialrequestDescID.Validators[0].(func(int) error)
|
||||
permissionFields := schema.Permission{}.Fields()
|
||||
_ = permissionFields
|
||||
// permissionDescCode is the schema descriptor for code field.
|
||||
permissionDescCode := permissionFields[1].Descriptor()
|
||||
// permission.CodeValidator is a validator for the "code" field. It is called by the builders before save.
|
||||
permission.CodeValidator = permissionDescCode.Validators[0].(func(string) error)
|
||||
// permissionDescName is the schema descriptor for name field.
|
||||
permissionDescName := permissionFields[2].Descriptor()
|
||||
// permission.NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
permission.NameValidator = permissionDescName.Validators[0].(func(string) error)
|
||||
// permissionDescType is the schema descriptor for type field.
|
||||
permissionDescType := permissionFields[3].Descriptor()
|
||||
// permission.DefaultType holds the default value on creation for the type field.
|
||||
permission.DefaultType = permissionDescType.Default.(string)
|
||||
// permission.TypeValidator is a validator for the "type" field. It is called by the builders before save.
|
||||
permission.TypeValidator = permissionDescType.Validators[0].(func(string) error)
|
||||
// permissionDescPath is the schema descriptor for path field.
|
||||
permissionDescPath := permissionFields[4].Descriptor()
|
||||
// permission.DefaultPath holds the default value on creation for the path field.
|
||||
permission.DefaultPath = permissionDescPath.Default.(string)
|
||||
// permission.PathValidator is a validator for the "path" field. It is called by the builders before save.
|
||||
permission.PathValidator = permissionDescPath.Validators[0].(func(string) error)
|
||||
// permissionDescIcon is the schema descriptor for icon field.
|
||||
permissionDescIcon := permissionFields[5].Descriptor()
|
||||
// permission.DefaultIcon holds the default value on creation for the icon field.
|
||||
permission.DefaultIcon = permissionDescIcon.Default.(string)
|
||||
// permission.IconValidator is a validator for the "icon" field. It is called by the builders before save.
|
||||
permission.IconValidator = permissionDescIcon.Validators[0].(func(string) error)
|
||||
// permissionDescSort is the schema descriptor for sort field.
|
||||
permissionDescSort := permissionFields[6].Descriptor()
|
||||
// permission.DefaultSort holds the default value on creation for the sort field.
|
||||
permission.DefaultSort = permissionDescSort.Default.(int)
|
||||
// permissionDescRemark is the schema descriptor for remark field.
|
||||
permissionDescRemark := permissionFields[7].Descriptor()
|
||||
// permission.DefaultRemark holds the default value on creation for the remark field.
|
||||
permission.DefaultRemark = permissionDescRemark.Default.(string)
|
||||
// permission.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
permission.RemarkValidator = permissionDescRemark.Validators[0].(func(string) error)
|
||||
// permissionDescCreatedAt is the schema descriptor for createdAt field.
|
||||
permissionDescCreatedAt := permissionFields[8].Descriptor()
|
||||
// permission.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
permission.DefaultCreatedAt = permissionDescCreatedAt.Default.(func() time.Time)
|
||||
// permissionDescID is the schema descriptor for id field.
|
||||
permissionDescID := permissionFields[0].Descriptor()
|
||||
// permission.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
permission.IDValidator = permissionDescID.Validators[0].(func(int) error)
|
||||
plcsendlogFields := schema.PlcSendLog{}.Fields()
|
||||
_ = plcsendlogFields
|
||||
// plcsendlogDescOrderNo is the schema descriptor for orderNo field.
|
||||
plcsendlogDescOrderNo := plcsendlogFields[1].Descriptor()
|
||||
// plcsendlog.DefaultOrderNo holds the default value on creation for the orderNo field.
|
||||
plcsendlog.DefaultOrderNo = plcsendlogDescOrderNo.Default.(string)
|
||||
// plcsendlog.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
plcsendlog.OrderNoValidator = plcsendlogDescOrderNo.Validators[0].(func(string) error)
|
||||
// plcsendlogDescSn is the schema descriptor for sn field.
|
||||
plcsendlogDescSn := plcsendlogFields[2].Descriptor()
|
||||
// plcsendlog.DefaultSn holds the default value on creation for the sn field.
|
||||
plcsendlog.DefaultSn = plcsendlogDescSn.Default.(string)
|
||||
// plcsendlog.SnValidator is a validator for the "sn" field. It is called by the builders before save.
|
||||
plcsendlog.SnValidator = plcsendlogDescSn.Validators[0].(func(string) error)
|
||||
// plcsendlogDescProcessCombination is the schema descriptor for processCombination field.
|
||||
plcsendlogDescProcessCombination := plcsendlogFields[4].Descriptor()
|
||||
// plcsendlog.DefaultProcessCombination holds the default value on creation for the processCombination field.
|
||||
plcsendlog.DefaultProcessCombination = plcsendlogDescProcessCombination.Default.(string)
|
||||
// plcsendlog.ProcessCombinationValidator is a validator for the "processCombination" field. It is called by the builders before save.
|
||||
plcsendlog.ProcessCombinationValidator = plcsendlogDescProcessCombination.Validators[0].(func(string) error)
|
||||
// plcsendlogDescStatus is the schema descriptor for status field.
|
||||
plcsendlogDescStatus := plcsendlogFields[6].Descriptor()
|
||||
// plcsendlog.DefaultStatus holds the default value on creation for the status field.
|
||||
plcsendlog.DefaultStatus = plcsendlogDescStatus.Default.(string)
|
||||
// plcsendlog.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
plcsendlog.StatusValidator = plcsendlogDescStatus.Validators[0].(func(string) error)
|
||||
// plcsendlogDescAck is the schema descriptor for ack field.
|
||||
plcsendlogDescAck := plcsendlogFields[9].Descriptor()
|
||||
// plcsendlog.DefaultAck holds the default value on creation for the ack field.
|
||||
plcsendlog.DefaultAck = plcsendlogDescAck.Default.(bool)
|
||||
// plcsendlogDescRemark is the schema descriptor for remark field.
|
||||
plcsendlogDescRemark := plcsendlogFields[10].Descriptor()
|
||||
// plcsendlog.DefaultRemark holds the default value on creation for the remark field.
|
||||
plcsendlog.DefaultRemark = plcsendlogDescRemark.Default.(string)
|
||||
// plcsendlog.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
plcsendlog.RemarkValidator = plcsendlogDescRemark.Validators[0].(func(string) error)
|
||||
// plcsendlogDescOperator is the schema descriptor for operator field.
|
||||
plcsendlogDescOperator := plcsendlogFields[11].Descriptor()
|
||||
// plcsendlog.DefaultOperator holds the default value on creation for the operator field.
|
||||
plcsendlog.DefaultOperator = plcsendlogDescOperator.Default.(string)
|
||||
// plcsendlog.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
plcsendlog.OperatorValidator = plcsendlogDescOperator.Validators[0].(func(string) error)
|
||||
// plcsendlogDescCreatedAt is the schema descriptor for createdAt field.
|
||||
plcsendlogDescCreatedAt := plcsendlogFields[12].Descriptor()
|
||||
// plcsendlog.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
plcsendlog.DefaultCreatedAt = plcsendlogDescCreatedAt.Default.(func() time.Time)
|
||||
// plcsendlogDescID is the schema descriptor for id field.
|
||||
plcsendlogDescID := plcsendlogFields[0].Descriptor()
|
||||
// plcsendlog.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
plcsendlog.IDValidator = plcsendlogDescID.Validators[0].(func(int) error)
|
||||
processstepFields := schema.ProcessStep{}.Fields()
|
||||
_ = processstepFields
|
||||
// processstepDescSeq is the schema descriptor for seq field.
|
||||
processstepDescSeq := processstepFields[2].Descriptor()
|
||||
// processstep.DefaultSeq holds the default value on creation for the seq field.
|
||||
processstep.DefaultSeq = processstepDescSeq.Default.(int)
|
||||
// processstepDescName is the schema descriptor for name field.
|
||||
processstepDescName := processstepFields[3].Descriptor()
|
||||
// processstep.NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
processstep.NameValidator = processstepDescName.Validators[0].(func(string) error)
|
||||
// processstepDescCollectType is the schema descriptor for collectType field.
|
||||
processstepDescCollectType := processstepFields[4].Descriptor()
|
||||
// processstep.DefaultCollectType holds the default value on creation for the collectType field.
|
||||
processstep.DefaultCollectType = processstepDescCollectType.Default.(string)
|
||||
// processstep.CollectTypeValidator is a validator for the "collectType" field. It is called by the builders before save.
|
||||
processstep.CollectTypeValidator = processstepDescCollectType.Validators[0].(func(string) error)
|
||||
// processstepDescIsTorque is the schema descriptor for isTorque field.
|
||||
processstepDescIsTorque := processstepFields[5].Descriptor()
|
||||
// processstep.DefaultIsTorque holds the default value on creation for the isTorque field.
|
||||
processstep.DefaultIsTorque = processstepDescIsTorque.Default.(bool)
|
||||
// processstepDescRemark is the schema descriptor for remark field.
|
||||
processstepDescRemark := processstepFields[6].Descriptor()
|
||||
// processstep.DefaultRemark holds the default value on creation for the remark field.
|
||||
processstep.DefaultRemark = processstepDescRemark.Default.(string)
|
||||
// processstep.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
processstep.RemarkValidator = processstepDescRemark.Validators[0].(func(string) error)
|
||||
// processstepDescCreatedAt is the schema descriptor for createdAt field.
|
||||
processstepDescCreatedAt := processstepFields[7].Descriptor()
|
||||
// processstep.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
processstep.DefaultCreatedAt = processstepDescCreatedAt.Default.(func() time.Time)
|
||||
// processstepDescID is the schema descriptor for id field.
|
||||
processstepDescID := processstepFields[0].Descriptor()
|
||||
// processstep.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
processstep.IDValidator = processstepDescID.Validators[0].(func(int) error)
|
||||
producttypeFields := schema.ProductType{}.Fields()
|
||||
_ = producttypeFields
|
||||
// producttypeDescName is the schema descriptor for name field.
|
||||
producttypeDescName := producttypeFields[1].Descriptor()
|
||||
// producttype.NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
producttype.NameValidator = producttypeDescName.Validators[0].(func(string) error)
|
||||
// producttypeDescCode is the schema descriptor for code field.
|
||||
producttypeDescCode := producttypeFields[2].Descriptor()
|
||||
// producttype.CodeValidator is a validator for the "code" field. It is called by the builders before save.
|
||||
producttype.CodeValidator = producttypeDescCode.Validators[0].(func(string) error)
|
||||
// producttypeDescCategory is the schema descriptor for category field.
|
||||
producttypeDescCategory := producttypeFields[3].Descriptor()
|
||||
// producttype.DefaultCategory holds the default value on creation for the category field.
|
||||
producttype.DefaultCategory = producttypeDescCategory.Default.(string)
|
||||
// producttype.CategoryValidator is a validator for the "category" field. It is called by the builders before save.
|
||||
producttype.CategoryValidator = producttypeDescCategory.Validators[0].(func(string) error)
|
||||
// producttypeDescRemark is the schema descriptor for remark field.
|
||||
producttypeDescRemark := producttypeFields[4].Descriptor()
|
||||
// producttype.DefaultRemark holds the default value on creation for the remark field.
|
||||
producttype.DefaultRemark = producttypeDescRemark.Default.(string)
|
||||
// producttype.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
producttype.RemarkValidator = producttypeDescRemark.Validators[0].(func(string) error)
|
||||
// producttypeDescIsActive is the schema descriptor for isActive field.
|
||||
producttypeDescIsActive := producttypeFields[5].Descriptor()
|
||||
// producttype.DefaultIsActive holds the default value on creation for the isActive field.
|
||||
producttype.DefaultIsActive = producttypeDescIsActive.Default.(bool)
|
||||
// producttypeDescCreatedAt is the schema descriptor for createdAt field.
|
||||
producttypeDescCreatedAt := producttypeFields[6].Descriptor()
|
||||
// producttype.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
producttype.DefaultCreatedAt = producttypeDescCreatedAt.Default.(func() time.Time)
|
||||
// producttypeDescUpdatedAt is the schema descriptor for updatedAt field.
|
||||
producttypeDescUpdatedAt := producttypeFields[7].Descriptor()
|
||||
// producttype.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
|
||||
producttype.DefaultUpdatedAt = producttypeDescUpdatedAt.Default.(func() time.Time)
|
||||
// producttype.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
producttype.UpdateDefaultUpdatedAt = producttypeDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||||
// producttypeDescID is the schema descriptor for id field.
|
||||
producttypeDescID := producttypeFields[0].Descriptor()
|
||||
// producttype.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
producttype.IDValidator = producttypeDescID.Validators[0].(func(int) error)
|
||||
roleFields := schema.Role{}.Fields()
|
||||
_ = roleFields
|
||||
// roleDescName is the schema descriptor for name field.
|
||||
roleDescName := roleFields[1].Descriptor()
|
||||
// role.NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
role.NameValidator = roleDescName.Validators[0].(func(string) error)
|
||||
// roleDescCode is the schema descriptor for code field.
|
||||
roleDescCode := roleFields[2].Descriptor()
|
||||
// role.CodeValidator is a validator for the "code" field. It is called by the builders before save.
|
||||
role.CodeValidator = roleDescCode.Validators[0].(func(string) error)
|
||||
// roleDescRemark is the schema descriptor for remark field.
|
||||
roleDescRemark := roleFields[3].Descriptor()
|
||||
// role.DefaultRemark holds the default value on creation for the remark field.
|
||||
role.DefaultRemark = roleDescRemark.Default.(string)
|
||||
// role.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
role.RemarkValidator = roleDescRemark.Validators[0].(func(string) error)
|
||||
// roleDescCreatedAt is the schema descriptor for createdAt field.
|
||||
roleDescCreatedAt := roleFields[5].Descriptor()
|
||||
// role.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
role.DefaultCreatedAt = roleDescCreatedAt.Default.(func() time.Time)
|
||||
// roleDescID is the schema descriptor for id field.
|
||||
roleDescID := roleFields[0].Descriptor()
|
||||
// role.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
role.IDValidator = roleDescID.Validators[0].(func(int) error)
|
||||
scanrecordFields := schema.ScanRecord{}.Fields()
|
||||
_ = scanrecordFields
|
||||
// scanrecordDescStation is the schema descriptor for station field.
|
||||
scanrecordDescStation := scanrecordFields[1].Descriptor()
|
||||
// scanrecord.DefaultStation holds the default value on creation for the station field.
|
||||
scanrecord.DefaultStation = scanrecordDescStation.Default.(string)
|
||||
// scanrecord.StationValidator is a validator for the "station" field. It is called by the builders before save.
|
||||
scanrecord.StationValidator = scanrecordDescStation.Validators[0].(func(string) error)
|
||||
// scanrecordDescSn is the schema descriptor for sn field.
|
||||
scanrecordDescSn := scanrecordFields[2].Descriptor()
|
||||
// scanrecord.SnValidator is a validator for the "sn" field. It is called by the builders before save.
|
||||
scanrecord.SnValidator = scanrecordDescSn.Validators[0].(func(string) error)
|
||||
// scanrecordDescOrderNo is the schema descriptor for orderNo field.
|
||||
scanrecordDescOrderNo := scanrecordFields[3].Descriptor()
|
||||
// scanrecord.DefaultOrderNo holds the default value on creation for the orderNo field.
|
||||
scanrecord.DefaultOrderNo = scanrecordDescOrderNo.Default.(string)
|
||||
// scanrecord.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
scanrecord.OrderNoValidator = scanrecordDescOrderNo.Validators[0].(func(string) error)
|
||||
// scanrecordDescType is the schema descriptor for type field.
|
||||
scanrecordDescType := scanrecordFields[4].Descriptor()
|
||||
// scanrecord.DefaultType holds the default value on creation for the type field.
|
||||
scanrecord.DefaultType = scanrecordDescType.Default.(string)
|
||||
// scanrecord.TypeValidator is a validator for the "type" field. It is called by the builders before save.
|
||||
scanrecord.TypeValidator = scanrecordDescType.Validators[0].(func(string) error)
|
||||
// scanrecordDescOperator is the schema descriptor for operator field.
|
||||
scanrecordDescOperator := scanrecordFields[6].Descriptor()
|
||||
// scanrecord.DefaultOperator holds the default value on creation for the operator field.
|
||||
scanrecord.DefaultOperator = scanrecordDescOperator.Default.(string)
|
||||
// scanrecord.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
scanrecord.OperatorValidator = scanrecordDescOperator.Validators[0].(func(string) error)
|
||||
// scanrecordDescTime is the schema descriptor for time field.
|
||||
scanrecordDescTime := scanrecordFields[7].Descriptor()
|
||||
// scanrecord.DefaultTime holds the default value on creation for the time field.
|
||||
scanrecord.DefaultTime = scanrecordDescTime.Default.(func() time.Time)
|
||||
// scanrecordDescCreatedAt is the schema descriptor for createdAt field.
|
||||
scanrecordDescCreatedAt := scanrecordFields[8].Descriptor()
|
||||
// scanrecord.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
scanrecord.DefaultCreatedAt = scanrecordDescCreatedAt.Default.(func() time.Time)
|
||||
// scanrecordDescID is the schema descriptor for id field.
|
||||
scanrecordDescID := scanrecordFields[0].Descriptor()
|
||||
// scanrecord.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
scanrecord.IDValidator = scanrecordDescID.Validators[0].(func(int) error)
|
||||
semiflowFields := schema.SemiFlow{}.Fields()
|
||||
_ = semiflowFields
|
||||
// semiflowDescSn is the schema descriptor for sn field.
|
||||
semiflowDescSn := semiflowFields[1].Descriptor()
|
||||
// semiflow.SnValidator is a validator for the "sn" field. It is called by the builders before save.
|
||||
semiflow.SnValidator = semiflowDescSn.Validators[0].(func(string) error)
|
||||
// semiflowDescOrderNo is the schema descriptor for orderNo field.
|
||||
semiflowDescOrderNo := semiflowFields[2].Descriptor()
|
||||
// semiflow.DefaultOrderNo holds the default value on creation for the orderNo field.
|
||||
semiflow.DefaultOrderNo = semiflowDescOrderNo.Default.(string)
|
||||
// semiflow.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
semiflow.OrderNoValidator = semiflowDescOrderNo.Validators[0].(func(string) error)
|
||||
// semiflowDescAction is the schema descriptor for action field.
|
||||
semiflowDescAction := semiflowFields[4].Descriptor()
|
||||
// semiflow.DefaultAction holds the default value on creation for the action field.
|
||||
semiflow.DefaultAction = semiflowDescAction.Default.(string)
|
||||
// semiflow.ActionValidator is a validator for the "action" field. It is called by the builders before save.
|
||||
semiflow.ActionValidator = semiflowDescAction.Validators[0].(func(string) error)
|
||||
// semiflowDescTargetDock is the schema descriptor for targetDock field.
|
||||
semiflowDescTargetDock := semiflowFields[5].Descriptor()
|
||||
// semiflow.DefaultTargetDock holds the default value on creation for the targetDock field.
|
||||
semiflow.DefaultTargetDock = semiflowDescTargetDock.Default.(string)
|
||||
// semiflow.TargetDockValidator is a validator for the "targetDock" field. It is called by the builders before save.
|
||||
semiflow.TargetDockValidator = semiflowDescTargetDock.Validators[0].(func(string) error)
|
||||
// semiflowDescOperator is the schema descriptor for operator field.
|
||||
semiflowDescOperator := semiflowFields[6].Descriptor()
|
||||
// semiflow.DefaultOperator holds the default value on creation for the operator field.
|
||||
semiflow.DefaultOperator = semiflowDescOperator.Default.(string)
|
||||
// semiflow.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
semiflow.OperatorValidator = semiflowDescOperator.Validators[0].(func(string) error)
|
||||
// semiflowDescCreatedAt is the schema descriptor for createdAt field.
|
||||
semiflowDescCreatedAt := semiflowFields[7].Descriptor()
|
||||
// semiflow.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
semiflow.DefaultCreatedAt = semiflowDescCreatedAt.Default.(func() time.Time)
|
||||
// semiflowDescID is the schema descriptor for id field.
|
||||
semiflowDescID := semiflowFields[0].Descriptor()
|
||||
// semiflow.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
semiflow.IDValidator = semiflowDescID.Validators[0].(func(int) error)
|
||||
stationprocessFields := schema.StationProcess{}.Fields()
|
||||
_ = stationprocessFields
|
||||
// stationprocessDescEffectDate is the schema descriptor for effectDate field.
|
||||
stationprocessDescEffectDate := stationprocessFields[3].Descriptor()
|
||||
// stationprocess.DefaultEffectDate holds the default value on creation for the effectDate field.
|
||||
stationprocess.DefaultEffectDate = stationprocessDescEffectDate.Default.(string)
|
||||
// stationprocess.EffectDateValidator is a validator for the "effectDate" field. It is called by the builders before save.
|
||||
stationprocess.EffectDateValidator = stationprocessDescEffectDate.Validators[0].(func(string) error)
|
||||
// stationprocessDescShift is the schema descriptor for shift field.
|
||||
stationprocessDescShift := stationprocessFields[4].Descriptor()
|
||||
// stationprocess.DefaultShift holds the default value on creation for the shift field.
|
||||
stationprocess.DefaultShift = stationprocessDescShift.Default.(string)
|
||||
// stationprocess.ShiftValidator is a validator for the "shift" field. It is called by the builders before save.
|
||||
stationprocess.ShiftValidator = stationprocessDescShift.Validators[0].(func(string) error)
|
||||
// stationprocessDescOperator is the schema descriptor for operator field.
|
||||
stationprocessDescOperator := stationprocessFields[5].Descriptor()
|
||||
// stationprocess.DefaultOperator holds the default value on creation for the operator field.
|
||||
stationprocess.DefaultOperator = stationprocessDescOperator.Default.(string)
|
||||
// stationprocess.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
stationprocess.OperatorValidator = stationprocessDescOperator.Validators[0].(func(string) error)
|
||||
// stationprocessDescCreatedAt is the schema descriptor for createdAt field.
|
||||
stationprocessDescCreatedAt := stationprocessFields[6].Descriptor()
|
||||
// stationprocess.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
stationprocess.DefaultCreatedAt = stationprocessDescCreatedAt.Default.(func() time.Time)
|
||||
// stationprocessDescID is the schema descriptor for id field.
|
||||
stationprocessDescID := stationprocessFields[0].Descriptor()
|
||||
// stationprocess.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
stationprocess.IDValidator = stationprocessDescID.Validators[0].(func(int) error)
|
||||
stepcriterionFields := schema.StepCriterion{}.Fields()
|
||||
_ = stepcriterionFields
|
||||
// stepcriterionDescName is the schema descriptor for name field.
|
||||
stepcriterionDescName := stepcriterionFields[2].Descriptor()
|
||||
// stepcriterion.NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
stepcriterion.NameValidator = stepcriterionDescName.Validators[0].(func(string) error)
|
||||
// stepcriterionDescUnit is the schema descriptor for unit field.
|
||||
stepcriterionDescUnit := stepcriterionFields[3].Descriptor()
|
||||
// stepcriterion.DefaultUnit holds the default value on creation for the unit field.
|
||||
stepcriterion.DefaultUnit = stepcriterionDescUnit.Default.(string)
|
||||
// stepcriterion.UnitValidator is a validator for the "unit" field. It is called by the builders before save.
|
||||
stepcriterion.UnitValidator = stepcriterionDescUnit.Validators[0].(func(string) error)
|
||||
// stepcriterionDescLogic is the schema descriptor for logic field.
|
||||
stepcriterionDescLogic := stepcriterionFields[4].Descriptor()
|
||||
// stepcriterion.DefaultLogic holds the default value on creation for the logic field.
|
||||
stepcriterion.DefaultLogic = stepcriterionDescLogic.Default.(string)
|
||||
// stepcriterion.LogicValidator is a validator for the "logic" field. It is called by the builders before save.
|
||||
stepcriterion.LogicValidator = stepcriterionDescLogic.Validators[0].(func(string) error)
|
||||
// stepcriterionDescTarget is the schema descriptor for target field.
|
||||
stepcriterionDescTarget := stepcriterionFields[5].Descriptor()
|
||||
// stepcriterion.DefaultTarget holds the default value on creation for the target field.
|
||||
stepcriterion.DefaultTarget = stepcriterionDescTarget.Default.(float64)
|
||||
// stepcriterionDescCreatedAt is the schema descriptor for createdAt field.
|
||||
stepcriterionDescCreatedAt := stepcriterionFields[8].Descriptor()
|
||||
// stepcriterion.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
stepcriterion.DefaultCreatedAt = stepcriterionDescCreatedAt.Default.(func() time.Time)
|
||||
// stepcriterionDescID is the schema descriptor for id field.
|
||||
stepcriterionDescID := stepcriterionFields[0].Descriptor()
|
||||
// stepcriterion.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
stepcriterion.IDValidator = stepcriterionDescID.Validators[0].(func(int) error)
|
||||
stepdataFields := schema.StepData{}.Fields()
|
||||
_ = stepdataFields
|
||||
// stepdataDescSn is the schema descriptor for sn field.
|
||||
stepdataDescSn := stepdataFields[1].Descriptor()
|
||||
// stepdata.SnValidator is a validator for the "sn" field. It is called by the builders before save.
|
||||
stepdata.SnValidator = stepdataDescSn.Validators[0].(func(string) error)
|
||||
// stepdataDescStepName is the schema descriptor for stepName field.
|
||||
stepdataDescStepName := stepdataFields[4].Descriptor()
|
||||
// stepdata.DefaultStepName holds the default value on creation for the stepName field.
|
||||
stepdata.DefaultStepName = stepdataDescStepName.Default.(string)
|
||||
// stepdata.StepNameValidator is a validator for the "stepName" field. It is called by the builders before save.
|
||||
stepdata.StepNameValidator = stepdataDescStepName.Validators[0].(func(string) error)
|
||||
// stepdataDescCriterionName is the schema descriptor for criterionName field.
|
||||
stepdataDescCriterionName := stepdataFields[6].Descriptor()
|
||||
// stepdata.DefaultCriterionName holds the default value on creation for the criterionName field.
|
||||
stepdata.DefaultCriterionName = stepdataDescCriterionName.Default.(string)
|
||||
// stepdata.CriterionNameValidator is a validator for the "criterionName" field. It is called by the builders before save.
|
||||
stepdata.CriterionNameValidator = stepdataDescCriterionName.Validators[0].(func(string) error)
|
||||
// stepdataDescCriterionLogic is the schema descriptor for criterionLogic field.
|
||||
stepdataDescCriterionLogic := stepdataFields[7].Descriptor()
|
||||
// stepdata.DefaultCriterionLogic holds the default value on creation for the criterionLogic field.
|
||||
stepdata.DefaultCriterionLogic = stepdataDescCriterionLogic.Default.(string)
|
||||
// stepdata.CriterionLogicValidator is a validator for the "criterionLogic" field. It is called by the builders before save.
|
||||
stepdata.CriterionLogicValidator = stepdataDescCriterionLogic.Validators[0].(func(string) error)
|
||||
// stepdataDescValue is the schema descriptor for value field.
|
||||
stepdataDescValue := stepdataFields[8].Descriptor()
|
||||
// stepdata.DefaultValue holds the default value on creation for the value field.
|
||||
stepdata.DefaultValue = stepdataDescValue.Default.(float64)
|
||||
// stepdataDescValueText is the schema descriptor for valueText field.
|
||||
stepdataDescValueText := stepdataFields[9].Descriptor()
|
||||
// stepdata.DefaultValueText holds the default value on creation for the valueText field.
|
||||
stepdata.DefaultValueText = stepdataDescValueText.Default.(string)
|
||||
// stepdata.ValueTextValidator is a validator for the "valueText" field. It is called by the builders before save.
|
||||
stepdata.ValueTextValidator = stepdataDescValueText.Validators[0].(func(string) error)
|
||||
// stepdataDescIsOK is the schema descriptor for isOK field.
|
||||
stepdataDescIsOK := stepdataFields[10].Descriptor()
|
||||
// stepdata.DefaultIsOK holds the default value on creation for the isOK field.
|
||||
stepdata.DefaultIsOK = stepdataDescIsOK.Default.(bool)
|
||||
// stepdataDescOperator is the schema descriptor for operator field.
|
||||
stepdataDescOperator := stepdataFields[11].Descriptor()
|
||||
// stepdata.DefaultOperator holds the default value on creation for the operator field.
|
||||
stepdata.DefaultOperator = stepdataDescOperator.Default.(string)
|
||||
// stepdata.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
stepdata.OperatorValidator = stepdataDescOperator.Validators[0].(func(string) error)
|
||||
// stepdataDescCreatedAt is the schema descriptor for createdAt field.
|
||||
stepdataDescCreatedAt := stepdataFields[12].Descriptor()
|
||||
// stepdata.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
stepdata.DefaultCreatedAt = stepdataDescCreatedAt.Default.(func() time.Time)
|
||||
// stepdataDescID is the schema descriptor for id field.
|
||||
stepdataDescID := stepdataFields[0].Descriptor()
|
||||
// stepdata.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
stepdata.IDValidator = stepdataDescID.Validators[0].(func(int) error)
|
||||
torquerecordFields := schema.TorqueRecord{}.Fields()
|
||||
_ = torquerecordFields
|
||||
// torquerecordDescWorkOrderNo is the schema descriptor for workOrderNo field.
|
||||
torquerecordDescWorkOrderNo := torquerecordFields[1].Descriptor()
|
||||
// torquerecord.DefaultWorkOrderNo holds the default value on creation for the workOrderNo field.
|
||||
torquerecord.DefaultWorkOrderNo = torquerecordDescWorkOrderNo.Default.(string)
|
||||
// torquerecord.WorkOrderNoValidator is a validator for the "workOrderNo" field. It is called by the builders before save.
|
||||
torquerecord.WorkOrderNoValidator = torquerecordDescWorkOrderNo.Validators[0].(func(string) error)
|
||||
// torquerecordDescSn is the schema descriptor for sn field.
|
||||
torquerecordDescSn := torquerecordFields[2].Descriptor()
|
||||
// torquerecord.SnValidator is a validator for the "sn" field. It is called by the builders before save.
|
||||
torquerecord.SnValidator = torquerecordDescSn.Validators[0].(func(string) error)
|
||||
// torquerecordDescScrewNo is the schema descriptor for screwNo field.
|
||||
torquerecordDescScrewNo := torquerecordFields[3].Descriptor()
|
||||
// torquerecord.DefaultScrewNo holds the default value on creation for the screwNo field.
|
||||
torquerecord.DefaultScrewNo = torquerecordDescScrewNo.Default.(string)
|
||||
// torquerecord.ScrewNoValidator is a validator for the "screwNo" field. It is called by the builders before save.
|
||||
torquerecord.ScrewNoValidator = torquerecordDescScrewNo.Validators[0].(func(string) error)
|
||||
// torquerecordDescStrain is the schema descriptor for strain field.
|
||||
torquerecordDescStrain := torquerecordFields[4].Descriptor()
|
||||
// torquerecord.DefaultStrain holds the default value on creation for the strain field.
|
||||
torquerecord.DefaultStrain = torquerecordDescStrain.Default.(float64)
|
||||
// torquerecordDescTorque is the schema descriptor for torque field.
|
||||
torquerecordDescTorque := torquerecordFields[5].Descriptor()
|
||||
// torquerecord.DefaultTorque holds the default value on creation for the torque field.
|
||||
torquerecord.DefaultTorque = torquerecordDescTorque.Default.(float64)
|
||||
// torquerecordDescAngle is the schema descriptor for angle field.
|
||||
torquerecordDescAngle := torquerecordFields[6].Descriptor()
|
||||
// torquerecord.DefaultAngle holds the default value on creation for the angle field.
|
||||
torquerecord.DefaultAngle = torquerecordDescAngle.Default.(float64)
|
||||
// torquerecordDescResult is the schema descriptor for result field.
|
||||
torquerecordDescResult := torquerecordFields[7].Descriptor()
|
||||
// torquerecord.DefaultResult holds the default value on creation for the result field.
|
||||
torquerecord.DefaultResult = torquerecordDescResult.Default.(string)
|
||||
// torquerecord.ResultValidator is a validator for the "result" field. It is called by the builders before save.
|
||||
torquerecord.ResultValidator = torquerecordDescResult.Validators[0].(func(string) error)
|
||||
// torquerecordDescOperator is the schema descriptor for operator field.
|
||||
torquerecordDescOperator := torquerecordFields[8].Descriptor()
|
||||
// torquerecord.DefaultOperator holds the default value on creation for the operator field.
|
||||
torquerecord.DefaultOperator = torquerecordDescOperator.Default.(string)
|
||||
// torquerecord.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
torquerecord.OperatorValidator = torquerecordDescOperator.Validators[0].(func(string) error)
|
||||
// torquerecordDescStationNo is the schema descriptor for stationNo field.
|
||||
torquerecordDescStationNo := torquerecordFields[9].Descriptor()
|
||||
// torquerecord.DefaultStationNo holds the default value on creation for the stationNo field.
|
||||
torquerecord.DefaultStationNo = torquerecordDescStationNo.Default.(string)
|
||||
// torquerecord.StationNoValidator is a validator for the "stationNo" field. It is called by the builders before save.
|
||||
torquerecord.StationNoValidator = torquerecordDescStationNo.Validators[0].(func(string) error)
|
||||
// torquerecordDescTime is the schema descriptor for time field.
|
||||
torquerecordDescTime := torquerecordFields[10].Descriptor()
|
||||
// torquerecord.DefaultTime holds the default value on creation for the time field.
|
||||
torquerecord.DefaultTime = torquerecordDescTime.Default.(func() time.Time)
|
||||
// torquerecordDescCreatedAt is the schema descriptor for createdAt field.
|
||||
torquerecordDescCreatedAt := torquerecordFields[11].Descriptor()
|
||||
// torquerecord.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
torquerecord.DefaultCreatedAt = torquerecordDescCreatedAt.Default.(func() time.Time)
|
||||
// torquerecordDescID is the schema descriptor for id field.
|
||||
torquerecordDescID := torquerecordFields[0].Descriptor()
|
||||
// torquerecord.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
torquerecord.IDValidator = torquerecordDescID.Validators[0].(func(int) error)
|
||||
userFields := schema.User{}.Fields()
|
||||
_ = userFields
|
||||
// userDescUsername is the schema descriptor for username field.
|
||||
userDescUsername := userFields[1].Descriptor()
|
||||
// user.UsernameValidator is a validator for the "username" field. It is called by the builders before save.
|
||||
user.UsernameValidator = userDescUsername.Validators[0].(func(string) error)
|
||||
// userDescPassword is the schema descriptor for password field.
|
||||
userDescPassword := userFields[2].Descriptor()
|
||||
// user.PasswordValidator is a validator for the "password" field. It is called by the builders before save.
|
||||
user.PasswordValidator = userDescPassword.Validators[0].(func(string) error)
|
||||
// userDescName is the schema descriptor for name field.
|
||||
userDescName := userFields[3].Descriptor()
|
||||
// user.DefaultName holds the default value on creation for the name field.
|
||||
user.DefaultName = userDescName.Default.(string)
|
||||
// user.NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
user.NameValidator = userDescName.Validators[0].(func(string) error)
|
||||
// userDescStatus is the schema descriptor for status field.
|
||||
userDescStatus := userFields[5].Descriptor()
|
||||
// user.DefaultStatus holds the default value on creation for the status field.
|
||||
user.DefaultStatus = userDescStatus.Default.(string)
|
||||
// user.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
user.StatusValidator = userDescStatus.Validators[0].(func(string) error)
|
||||
// userDescCreatedAt is the schema descriptor for createdAt field.
|
||||
userDescCreatedAt := userFields[6].Descriptor()
|
||||
// user.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
user.DefaultCreatedAt = userDescCreatedAt.Default.(func() time.Time)
|
||||
// userDescUpdatedAt is the schema descriptor for updatedAt field.
|
||||
userDescUpdatedAt := userFields[7].Descriptor()
|
||||
// user.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
|
||||
user.DefaultUpdatedAt = userDescUpdatedAt.Default.(func() time.Time)
|
||||
// user.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
user.UpdateDefaultUpdatedAt = userDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||||
// userDescID is the schema descriptor for id field.
|
||||
userDescID := userFields[0].Descriptor()
|
||||
// user.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
user.IDValidator = userDescID.Validators[0].(func(int) error)
|
||||
workorderFields := schema.WorkOrder{}.Fields()
|
||||
_ = workorderFields
|
||||
// workorderDescWorkOrderNo is the schema descriptor for workOrderNo field.
|
||||
workorderDescWorkOrderNo := workorderFields[1].Descriptor()
|
||||
// workorder.WorkOrderNoValidator is a validator for the "workOrderNo" field. It is called by the builders before save.
|
||||
workorder.WorkOrderNoValidator = workorderDescWorkOrderNo.Validators[0].(func(string) error)
|
||||
// workorderDescProductCode is the schema descriptor for productCode field.
|
||||
workorderDescProductCode := workorderFields[3].Descriptor()
|
||||
// workorder.DefaultProductCode holds the default value on creation for the productCode field.
|
||||
workorder.DefaultProductCode = workorderDescProductCode.Default.(string)
|
||||
// workorder.ProductCodeValidator is a validator for the "productCode" field. It is called by the builders before save.
|
||||
workorder.ProductCodeValidator = workorderDescProductCode.Validators[0].(func(string) error)
|
||||
// workorderDescProductName is the schema descriptor for productName field.
|
||||
workorderDescProductName := workorderFields[4].Descriptor()
|
||||
// workorder.DefaultProductName holds the default value on creation for the productName field.
|
||||
workorder.DefaultProductName = workorderDescProductName.Default.(string)
|
||||
// workorder.ProductNameValidator is a validator for the "productName" field. It is called by the builders before save.
|
||||
workorder.ProductNameValidator = workorderDescProductName.Validators[0].(func(string) error)
|
||||
// workorderDescQuantity is the schema descriptor for quantity field.
|
||||
workorderDescQuantity := workorderFields[5].Descriptor()
|
||||
// workorder.DefaultQuantity holds the default value on creation for the quantity field.
|
||||
workorder.DefaultQuantity = workorderDescQuantity.Default.(int)
|
||||
// workorderDescFinishedNum is the schema descriptor for finishedNum field.
|
||||
workorderDescFinishedNum := workorderFields[6].Descriptor()
|
||||
// workorder.DefaultFinishedNum holds the default value on creation for the finishedNum field.
|
||||
workorder.DefaultFinishedNum = workorderDescFinishedNum.Default.(int)
|
||||
// workorderDescFailNum is the schema descriptor for failNum field.
|
||||
workorderDescFailNum := workorderFields[7].Descriptor()
|
||||
// workorder.DefaultFailNum holds the default value on creation for the failNum field.
|
||||
workorder.DefaultFailNum = workorderDescFailNum.Default.(int)
|
||||
// workorderDescProcessSeq is the schema descriptor for processSeq field.
|
||||
workorderDescProcessSeq := workorderFields[8].Descriptor()
|
||||
// workorder.DefaultProcessSeq holds the default value on creation for the processSeq field.
|
||||
workorder.DefaultProcessSeq = workorderDescProcessSeq.Default.(string)
|
||||
// workorder.ProcessSeqValidator is a validator for the "processSeq" field. It is called by the builders before save.
|
||||
workorder.ProcessSeqValidator = workorderDescProcessSeq.Validators[0].(func(string) error)
|
||||
// workorderDescStatus is the schema descriptor for status field.
|
||||
workorderDescStatus := workorderFields[9].Descriptor()
|
||||
// workorder.DefaultStatus holds the default value on creation for the status field.
|
||||
workorder.DefaultStatus = workorderDescStatus.Default.(string)
|
||||
// workorder.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
workorder.StatusValidator = workorderDescStatus.Validators[0].(func(string) error)
|
||||
// workorderDescCreatedAt is the schema descriptor for createdAt field.
|
||||
workorderDescCreatedAt := workorderFields[14].Descriptor()
|
||||
// workorder.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
workorder.DefaultCreatedAt = workorderDescCreatedAt.Default.(func() time.Time)
|
||||
// workorderDescUpdatedAt is the schema descriptor for updatedAt field.
|
||||
workorderDescUpdatedAt := workorderFields[15].Descriptor()
|
||||
// workorder.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
|
||||
workorder.DefaultUpdatedAt = workorderDescUpdatedAt.Default.(func() time.Time)
|
||||
// workorder.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
workorder.UpdateDefaultUpdatedAt = workorderDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||||
// workorderDescID is the schema descriptor for id field.
|
||||
workorderDescID := workorderFields[0].Descriptor()
|
||||
// workorder.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
workorder.IDValidator = workorderDescID.Validators[0].(func(int) error)
|
||||
workpieceFields := schema.Workpiece{}.Fields()
|
||||
_ = workpieceFields
|
||||
// workpieceDescSn is the schema descriptor for sn field.
|
||||
workpieceDescSn := workpieceFields[1].Descriptor()
|
||||
// workpiece.SnValidator is a validator for the "sn" field. It is called by the builders before save.
|
||||
workpiece.SnValidator = workpieceDescSn.Validators[0].(func(string) error)
|
||||
// workpieceDescOrderNo is the schema descriptor for orderNo field.
|
||||
workpieceDescOrderNo := workpieceFields[2].Descriptor()
|
||||
// workpiece.DefaultOrderNo holds the default value on creation for the orderNo field.
|
||||
workpiece.DefaultOrderNo = workpieceDescOrderNo.Default.(string)
|
||||
// workpiece.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
workpiece.OrderNoValidator = workpieceDescOrderNo.Validators[0].(func(string) error)
|
||||
// workpieceDescProcessSeq is the schema descriptor for processSeq field.
|
||||
workpieceDescProcessSeq := workpieceFields[4].Descriptor()
|
||||
// workpiece.DefaultProcessSeq holds the default value on creation for the processSeq field.
|
||||
workpiece.DefaultProcessSeq = workpieceDescProcessSeq.Default.(string)
|
||||
// workpiece.ProcessSeqValidator is a validator for the "processSeq" field. It is called by the builders before save.
|
||||
workpiece.ProcessSeqValidator = workpieceDescProcessSeq.Validators[0].(func(string) error)
|
||||
// workpieceDescStatus is the schema descriptor for status field.
|
||||
workpieceDescStatus := workpieceFields[6].Descriptor()
|
||||
// workpiece.DefaultStatus holds the default value on creation for the status field.
|
||||
workpiece.DefaultStatus = workpieceDescStatus.Default.(string)
|
||||
// workpiece.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
workpiece.StatusValidator = workpieceDescStatus.Validators[0].(func(string) error)
|
||||
// workpieceDescCreatedAt is the schema descriptor for createdAt field.
|
||||
workpieceDescCreatedAt := workpieceFields[9].Descriptor()
|
||||
// workpiece.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
workpiece.DefaultCreatedAt = workpieceDescCreatedAt.Default.(func() time.Time)
|
||||
// workpieceDescUpdatedAt is the schema descriptor for updatedAt field.
|
||||
workpieceDescUpdatedAt := workpieceFields[10].Descriptor()
|
||||
// workpiece.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
|
||||
workpiece.DefaultUpdatedAt = workpieceDescUpdatedAt.Default.(func() time.Time)
|
||||
// workpiece.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
workpiece.UpdateDefaultUpdatedAt = workpieceDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||||
// workpieceDescID is the schema descriptor for id field.
|
||||
workpieceDescID := workpieceFields[0].Descriptor()
|
||||
// workpiece.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
workpiece.IDValidator = workpieceDescID.Validators[0].(func(int) error)
|
||||
workpieceprocessFields := schema.WorkpieceProcess{}.Fields()
|
||||
_ = workpieceprocessFields
|
||||
// workpieceprocessDescSn is the schema descriptor for sn field.
|
||||
workpieceprocessDescSn := workpieceprocessFields[1].Descriptor()
|
||||
// workpieceprocess.SnValidator is a validator for the "sn" field. It is called by the builders before save.
|
||||
workpieceprocess.SnValidator = workpieceprocessDescSn.Validators[0].(func(string) error)
|
||||
// workpieceprocessDescStationNo is the schema descriptor for stationNo field.
|
||||
workpieceprocessDescStationNo := workpieceprocessFields[3].Descriptor()
|
||||
// workpieceprocess.DefaultStationNo holds the default value on creation for the stationNo field.
|
||||
workpieceprocess.DefaultStationNo = workpieceprocessDescStationNo.Default.(string)
|
||||
// workpieceprocess.StationNoValidator is a validator for the "stationNo" field. It is called by the builders before save.
|
||||
workpieceprocess.StationNoValidator = workpieceprocessDescStationNo.Validators[0].(func(string) error)
|
||||
// workpieceprocessDescOrderNo is the schema descriptor for orderNo field.
|
||||
workpieceprocessDescOrderNo := workpieceprocessFields[4].Descriptor()
|
||||
// workpieceprocess.DefaultOrderNo holds the default value on creation for the orderNo field.
|
||||
workpieceprocess.DefaultOrderNo = workpieceprocessDescOrderNo.Default.(string)
|
||||
// workpieceprocess.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
workpieceprocess.OrderNoValidator = workpieceprocessDescOrderNo.Validators[0].(func(string) error)
|
||||
// workpieceprocessDescProcessName is the schema descriptor for processName field.
|
||||
workpieceprocessDescProcessName := workpieceprocessFields[5].Descriptor()
|
||||
// workpieceprocess.DefaultProcessName holds the default value on creation for the processName field.
|
||||
workpieceprocess.DefaultProcessName = workpieceprocessDescProcessName.Default.(string)
|
||||
// workpieceprocess.ProcessNameValidator is a validator for the "processName" field. It is called by the builders before save.
|
||||
workpieceprocess.ProcessNameValidator = workpieceprocessDescProcessName.Validators[0].(func(string) error)
|
||||
// workpieceprocessDescStatus is the schema descriptor for status field.
|
||||
workpieceprocessDescStatus := workpieceprocessFields[6].Descriptor()
|
||||
// workpieceprocess.DefaultStatus holds the default value on creation for the status field.
|
||||
workpieceprocess.DefaultStatus = workpieceprocessDescStatus.Default.(string)
|
||||
// workpieceprocess.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
workpieceprocess.StatusValidator = workpieceprocessDescStatus.Validators[0].(func(string) error)
|
||||
// workpieceprocessDescOperator is the schema descriptor for operator field.
|
||||
workpieceprocessDescOperator := workpieceprocessFields[7].Descriptor()
|
||||
// workpieceprocess.DefaultOperator holds the default value on creation for the operator field.
|
||||
workpieceprocess.DefaultOperator = workpieceprocessDescOperator.Default.(string)
|
||||
// workpieceprocess.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
workpieceprocess.OperatorValidator = workpieceprocessDescOperator.Validators[0].(func(string) error)
|
||||
// workpieceprocessDescResult is the schema descriptor for result field.
|
||||
workpieceprocessDescResult := workpieceprocessFields[8].Descriptor()
|
||||
// workpieceprocess.DefaultResult holds the default value on creation for the result field.
|
||||
workpieceprocess.DefaultResult = workpieceprocessDescResult.Default.(string)
|
||||
// workpieceprocess.ResultValidator is a validator for the "result" field. It is called by the builders before save.
|
||||
workpieceprocess.ResultValidator = workpieceprocessDescResult.Validators[0].(func(string) error)
|
||||
// workpieceprocessDescRemark is the schema descriptor for remark field.
|
||||
workpieceprocessDescRemark := workpieceprocessFields[11].Descriptor()
|
||||
// workpieceprocess.DefaultRemark holds the default value on creation for the remark field.
|
||||
workpieceprocess.DefaultRemark = workpieceprocessDescRemark.Default.(string)
|
||||
// workpieceprocess.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
workpieceprocess.RemarkValidator = workpieceprocessDescRemark.Validators[0].(func(string) error)
|
||||
// workpieceprocessDescCreatedAt is the schema descriptor for createdAt field.
|
||||
workpieceprocessDescCreatedAt := workpieceprocessFields[12].Descriptor()
|
||||
// workpieceprocess.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
workpieceprocess.DefaultCreatedAt = workpieceprocessDescCreatedAt.Default.(func() time.Time)
|
||||
// workpieceprocessDescID is the schema descriptor for id field.
|
||||
workpieceprocessDescID := workpieceprocessFields[0].Descriptor()
|
||||
// workpieceprocess.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
workpieceprocess.IDValidator = workpieceprocessDescID.Validators[0].(func(int) error)
|
||||
}
|
||||
Reference in New Issue
Block a user