// Code generated by ent, DO NOT EDIT. package ent import ( "bj_power_mes/ent/alert" "bj_power_mes/ent/alertrule" "bj_power_mes/ent/associationtrace" "bj_power_mes/ent/attachment" "bj_power_mes/ent/bomitem" "bj_power_mes/ent/dailyplan" "bj_power_mes/ent/eventlog" "bj_power_mes/ent/inspectionrecord" "bj_power_mes/ent/linepoint" "bj_power_mes/ent/materialqtyreport" "bj_power_mes/ent/materialrequest" "bj_power_mes/ent/permission" "bj_power_mes/ent/plcmovecmd" "bj_power_mes/ent/plcsendlog" "bj_power_mes/ent/processflow" "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/station" "bj_power_mes/ent/stationprocess" "bj_power_mes/ent/stepcriterion" "bj_power_mes/ent/stepdata" "bj_power_mes/ent/torqueauditlog" "bj_power_mes/ent/torquerecord" "bj_power_mes/ent/user" "bj_power_mes/ent/userstation" "bj_power_mes/ent/workorder" "bj_power_mes/ent/workpiece" "bj_power_mes/ent/workpiecebind" "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() { alertFields := schema.Alert{}.Fields() _ = alertFields // alertDescRuleId is the schema descriptor for ruleId field. alertDescRuleId := alertFields[1].Descriptor() // alert.DefaultRuleId holds the default value on creation for the ruleId field. alert.DefaultRuleId = alertDescRuleId.Default.(int) // alertDescType is the schema descriptor for type field. alertDescType := alertFields[2].Descriptor() // alert.TypeValidator is a validator for the "type" field. It is called by the builders before save. alert.TypeValidator = alertDescType.Validators[0].(func(string) error) // alertDescTitle is the schema descriptor for title field. alertDescTitle := alertFields[3].Descriptor() // alert.TitleValidator is a validator for the "title" field. It is called by the builders before save. alert.TitleValidator = alertDescTitle.Validators[0].(func(string) error) // alertDescContent is the schema descriptor for content field. alertDescContent := alertFields[4].Descriptor() // alert.DefaultContent holds the default value on creation for the content field. alert.DefaultContent = alertDescContent.Default.(string) // alert.ContentValidator is a validator for the "content" field. It is called by the builders before save. alert.ContentValidator = alertDescContent.Validators[0].(func(string) error) // alertDescRefType is the schema descriptor for refType field. alertDescRefType := alertFields[5].Descriptor() // alert.DefaultRefType holds the default value on creation for the refType field. alert.DefaultRefType = alertDescRefType.Default.(string) // alert.RefTypeValidator is a validator for the "refType" field. It is called by the builders before save. alert.RefTypeValidator = alertDescRefType.Validators[0].(func(string) error) // alertDescRefId is the schema descriptor for refId field. alertDescRefId := alertFields[6].Descriptor() // alert.DefaultRefId holds the default value on creation for the refId field. alert.DefaultRefId = alertDescRefId.Default.(string) // alert.RefIdValidator is a validator for the "refId" field. It is called by the builders before save. alert.RefIdValidator = alertDescRefId.Validators[0].(func(string) error) // alertDescStatus is the schema descriptor for status field. alertDescStatus := alertFields[7].Descriptor() // alert.DefaultStatus holds the default value on creation for the status field. alert.DefaultStatus = alertDescStatus.Default.(string) // alert.StatusValidator is a validator for the "status" field. It is called by the builders before save. alert.StatusValidator = alertDescStatus.Validators[0].(func(string) error) // alertDescReceiver is the schema descriptor for receiver field. alertDescReceiver := alertFields[8].Descriptor() // alert.DefaultReceiver holds the default value on creation for the receiver field. alert.DefaultReceiver = alertDescReceiver.Default.(string) // alert.ReceiverValidator is a validator for the "receiver" field. It is called by the builders before save. alert.ReceiverValidator = alertDescReceiver.Validators[0].(func(string) error) // alertDescCreatedAt is the schema descriptor for createdAt field. alertDescCreatedAt := alertFields[9].Descriptor() // alert.DefaultCreatedAt holds the default value on creation for the createdAt field. alert.DefaultCreatedAt = alertDescCreatedAt.Default.(func() time.Time) // alertDescID is the schema descriptor for id field. alertDescID := alertFields[0].Descriptor() // alert.IDValidator is a validator for the "id" field. It is called by the builders before save. alert.IDValidator = alertDescID.Validators[0].(func(int) error) alertruleFields := schema.AlertRule{}.Fields() _ = alertruleFields // alertruleDescName is the schema descriptor for name field. alertruleDescName := alertruleFields[1].Descriptor() // alertrule.NameValidator is a validator for the "name" field. It is called by the builders before save. alertrule.NameValidator = alertruleDescName.Validators[0].(func(string) error) // alertruleDescType is the schema descriptor for type field. alertruleDescType := alertruleFields[2].Descriptor() // alertrule.TypeValidator is a validator for the "type" field. It is called by the builders before save. alertrule.TypeValidator = alertruleDescType.Validators[0].(func(string) error) // alertruleDescThreshold is the schema descriptor for threshold field. alertruleDescThreshold := alertruleFields[3].Descriptor() // alertrule.DefaultThreshold holds the default value on creation for the threshold field. alertrule.DefaultThreshold = alertruleDescThreshold.Default.(float64) // alertruleDescReceiver is the schema descriptor for receiver field. alertruleDescReceiver := alertruleFields[4].Descriptor() // alertrule.DefaultReceiver holds the default value on creation for the receiver field. alertrule.DefaultReceiver = alertruleDescReceiver.Default.(string) // alertrule.ReceiverValidator is a validator for the "receiver" field. It is called by the builders before save. alertrule.ReceiverValidator = alertruleDescReceiver.Validators[0].(func(string) error) // alertruleDescEnabled is the schema descriptor for enabled field. alertruleDescEnabled := alertruleFields[5].Descriptor() // alertrule.DefaultEnabled holds the default value on creation for the enabled field. alertrule.DefaultEnabled = alertruleDescEnabled.Default.(bool) // alertruleDescCreatedBy is the schema descriptor for createdBy field. alertruleDescCreatedBy := alertruleFields[6].Descriptor() // alertrule.DefaultCreatedBy holds the default value on creation for the createdBy field. alertrule.DefaultCreatedBy = alertruleDescCreatedBy.Default.(string) // alertrule.CreatedByValidator is a validator for the "createdBy" field. It is called by the builders before save. alertrule.CreatedByValidator = alertruleDescCreatedBy.Validators[0].(func(string) error) // alertruleDescCreatedAt is the schema descriptor for createdAt field. alertruleDescCreatedAt := alertruleFields[7].Descriptor() // alertrule.DefaultCreatedAt holds the default value on creation for the createdAt field. alertrule.DefaultCreatedAt = alertruleDescCreatedAt.Default.(func() time.Time) // alertruleDescID is the schema descriptor for id field. alertruleDescID := alertruleFields[0].Descriptor() // alertrule.IDValidator is a validator for the "id" field. It is called by the builders before save. alertrule.IDValidator = alertruleDescID.Validators[0].(func(int) error) 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) attachmentFields := schema.Attachment{}.Fields() _ = attachmentFields // attachmentDescBizType is the schema descriptor for bizType field. attachmentDescBizType := attachmentFields[1].Descriptor() // attachment.BizTypeValidator is a validator for the "bizType" field. It is called by the builders before save. attachment.BizTypeValidator = attachmentDescBizType.Validators[0].(func(string) error) // attachmentDescBizId is the schema descriptor for bizId field. attachmentDescBizId := attachmentFields[2].Descriptor() // attachment.BizIdValidator is a validator for the "bizId" field. It is called by the builders before save. attachment.BizIdValidator = attachmentDescBizId.Validators[0].(func(string) error) // attachmentDescFileName is the schema descriptor for fileName field. attachmentDescFileName := attachmentFields[3].Descriptor() // attachment.FileNameValidator is a validator for the "fileName" field. It is called by the builders before save. attachment.FileNameValidator = attachmentDescFileName.Validators[0].(func(string) error) // attachmentDescFilePath is the schema descriptor for filePath field. attachmentDescFilePath := attachmentFields[4].Descriptor() // attachment.FilePathValidator is a validator for the "filePath" field. It is called by the builders before save. attachment.FilePathValidator = attachmentDescFilePath.Validators[0].(func(string) error) // attachmentDescFileSize is the schema descriptor for fileSize field. attachmentDescFileSize := attachmentFields[5].Descriptor() // attachment.DefaultFileSize holds the default value on creation for the fileSize field. attachment.DefaultFileSize = attachmentDescFileSize.Default.(int) // attachmentDescUploader is the schema descriptor for uploader field. attachmentDescUploader := attachmentFields[6].Descriptor() // attachment.DefaultUploader holds the default value on creation for the uploader field. attachment.DefaultUploader = attachmentDescUploader.Default.(string) // attachment.UploaderValidator is a validator for the "uploader" field. It is called by the builders before save. attachment.UploaderValidator = attachmentDescUploader.Validators[0].(func(string) error) // attachmentDescCreatedAt is the schema descriptor for createdAt field. attachmentDescCreatedAt := attachmentFields[7].Descriptor() // attachment.DefaultCreatedAt holds the default value on creation for the createdAt field. attachment.DefaultCreatedAt = attachmentDescCreatedAt.Default.(func() time.Time) // attachmentDescID is the schema descriptor for id field. attachmentDescID := attachmentFields[0].Descriptor() // attachment.IDValidator is a validator for the "id" field. It is called by the builders before save. attachment.IDValidator = attachmentDescID.Validators[0].(func(int) error) bomitemFields := schema.BomItem{}.Fields() _ = bomitemFields // bomitemDescProductCode is the schema descriptor for productCode field. bomitemDescProductCode := bomitemFields[1].Descriptor() // bomitem.DefaultProductCode holds the default value on creation for the productCode field. bomitem.DefaultProductCode = bomitemDescProductCode.Default.(string) // bomitem.ProductCodeValidator is a validator for the "productCode" field. It is called by the builders before save. bomitem.ProductCodeValidator = bomitemDescProductCode.Validators[0].(func(string) error) // bomitemDescBomName is the schema descriptor for bomName field. bomitemDescBomName := bomitemFields[2].Descriptor() // bomitem.DefaultBomName holds the default value on creation for the bomName field. bomitem.DefaultBomName = bomitemDescBomName.Default.(string) // bomitem.BomNameValidator is a validator for the "bomName" field. It is called by the builders before save. bomitem.BomNameValidator = bomitemDescBomName.Validators[0].(func(string) error) // bomitemDescMaterialCode is the schema descriptor for materialCode field. bomitemDescMaterialCode := bomitemFields[3].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[4].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[5].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[6].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[7].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) // bomitemDescProcessCode is the schema descriptor for processCode field. bomitemDescProcessCode := bomitemFields[8].Descriptor() // bomitem.DefaultProcessCode holds the default value on creation for the processCode field. bomitem.DefaultProcessCode = bomitemDescProcessCode.Default.(int) // bomitemDescUnitQty is the schema descriptor for unitQty field. bomitemDescUnitQty := bomitemFields[9].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[10].Descriptor() // bomitem.DefaultLossRate holds the default value on creation for the lossRate field. bomitem.DefaultLossRate = bomitemDescLossRate.Default.(float64) // bomitemDescRelatedStandard is the schema descriptor for relatedStandard field. bomitemDescRelatedStandard := bomitemFields[11].Descriptor() // bomitem.DefaultRelatedStandard holds the default value on creation for the relatedStandard field. bomitem.DefaultRelatedStandard = bomitemDescRelatedStandard.Default.(string) // bomitem.RelatedStandardValidator is a validator for the "relatedStandard" field. It is called by the builders before save. bomitem.RelatedStandardValidator = bomitemDescRelatedStandard.Validators[0].(func(string) error) // bomitemDescRequiredQty is the schema descriptor for requiredQty field. bomitemDescRequiredQty := bomitemFields[12].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[14].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[6].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[7].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[8].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[9].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) inspectionrecordFields := schema.InspectionRecord{}.Fields() _ = inspectionrecordFields // inspectionrecordDescCategory is the schema descriptor for category field. inspectionrecordDescCategory := inspectionrecordFields[1].Descriptor() // inspectionrecord.CategoryValidator is a validator for the "category" field. It is called by the builders before save. inspectionrecord.CategoryValidator = inspectionrecordDescCategory.Validators[0].(func(string) error) // inspectionrecordDescStationNo is the schema descriptor for stationNo field. inspectionrecordDescStationNo := inspectionrecordFields[2].Descriptor() // inspectionrecord.DefaultStationNo holds the default value on creation for the stationNo field. inspectionrecord.DefaultStationNo = inspectionrecordDescStationNo.Default.(string) // inspectionrecord.StationNoValidator is a validator for the "stationNo" field. It is called by the builders before save. inspectionrecord.StationNoValidator = inspectionrecordDescStationNo.Validators[0].(func(string) error) // inspectionrecordDescShift is the schema descriptor for shift field. inspectionrecordDescShift := inspectionrecordFields[3].Descriptor() // inspectionrecord.DefaultShift holds the default value on creation for the shift field. inspectionrecord.DefaultShift = inspectionrecordDescShift.Default.(string) // inspectionrecord.ShiftValidator is a validator for the "shift" field. It is called by the builders before save. inspectionrecord.ShiftValidator = inspectionrecordDescShift.Validators[0].(func(string) error) // inspectionrecordDescOrderNo is the schema descriptor for orderNo field. inspectionrecordDescOrderNo := inspectionrecordFields[4].Descriptor() // inspectionrecord.DefaultOrderNo holds the default value on creation for the orderNo field. inspectionrecord.DefaultOrderNo = inspectionrecordDescOrderNo.Default.(string) // inspectionrecord.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save. inspectionrecord.OrderNoValidator = inspectionrecordDescOrderNo.Validators[0].(func(string) error) // inspectionrecordDescSn is the schema descriptor for sn field. inspectionrecordDescSn := inspectionrecordFields[5].Descriptor() // inspectionrecord.DefaultSn holds the default value on creation for the sn field. inspectionrecord.DefaultSn = inspectionrecordDescSn.Default.(string) // inspectionrecord.SnValidator is a validator for the "sn" field. It is called by the builders before save. inspectionrecord.SnValidator = inspectionrecordDescSn.Validators[0].(func(string) error) // inspectionrecordDescResult is the schema descriptor for result field. inspectionrecordDescResult := inspectionrecordFields[6].Descriptor() // inspectionrecord.DefaultResult holds the default value on creation for the result field. inspectionrecord.DefaultResult = inspectionrecordDescResult.Default.(string) // inspectionrecord.ResultValidator is a validator for the "result" field. It is called by the builders before save. inspectionrecord.ResultValidator = inspectionrecordDescResult.Validators[0].(func(string) error) // inspectionrecordDescPhoto is the schema descriptor for photo field. inspectionrecordDescPhoto := inspectionrecordFields[8].Descriptor() // inspectionrecord.DefaultPhoto holds the default value on creation for the photo field. inspectionrecord.DefaultPhoto = inspectionrecordDescPhoto.Default.(string) // inspectionrecord.PhotoValidator is a validator for the "photo" field. It is called by the builders before save. inspectionrecord.PhotoValidator = inspectionrecordDescPhoto.Validators[0].(func(string) error) // inspectionrecordDescRemark is the schema descriptor for remark field. inspectionrecordDescRemark := inspectionrecordFields[9].Descriptor() // inspectionrecord.DefaultRemark holds the default value on creation for the remark field. inspectionrecord.DefaultRemark = inspectionrecordDescRemark.Default.(string) // inspectionrecord.RemarkValidator is a validator for the "remark" field. It is called by the builders before save. inspectionrecord.RemarkValidator = inspectionrecordDescRemark.Validators[0].(func(string) error) // inspectionrecordDescOperator is the schema descriptor for operator field. inspectionrecordDescOperator := inspectionrecordFields[10].Descriptor() // inspectionrecord.DefaultOperator holds the default value on creation for the operator field. inspectionrecord.DefaultOperator = inspectionrecordDescOperator.Default.(string) // inspectionrecord.OperatorValidator is a validator for the "operator" field. It is called by the builders before save. inspectionrecord.OperatorValidator = inspectionrecordDescOperator.Validators[0].(func(string) error) // inspectionrecordDescProcessCode is the schema descriptor for processCode field. inspectionrecordDescProcessCode := inspectionrecordFields[11].Descriptor() // inspectionrecord.DefaultProcessCode holds the default value on creation for the processCode field. inspectionrecord.DefaultProcessCode = inspectionrecordDescProcessCode.Default.(int) // inspectionrecordDescStepId is the schema descriptor for stepId field. inspectionrecordDescStepId := inspectionrecordFields[12].Descriptor() // inspectionrecord.DefaultStepId holds the default value on creation for the stepId field. inspectionrecord.DefaultStepId = inspectionrecordDescStepId.Default.(int) // inspectionrecordDescStepName is the schema descriptor for stepName field. inspectionrecordDescStepName := inspectionrecordFields[13].Descriptor() // inspectionrecord.DefaultStepName holds the default value on creation for the stepName field. inspectionrecord.DefaultStepName = inspectionrecordDescStepName.Default.(string) // inspectionrecord.StepNameValidator is a validator for the "stepName" field. It is called by the builders before save. inspectionrecord.StepNameValidator = inspectionrecordDescStepName.Validators[0].(func(string) error) // inspectionrecordDescMeasuredValue is the schema descriptor for measuredValue field. inspectionrecordDescMeasuredValue := inspectionrecordFields[14].Descriptor() // inspectionrecord.DefaultMeasuredValue holds the default value on creation for the measuredValue field. inspectionrecord.DefaultMeasuredValue = inspectionrecordDescMeasuredValue.Default.(string) // inspectionrecord.MeasuredValueValidator is a validator for the "measuredValue" field. It is called by the builders before save. inspectionrecord.MeasuredValueValidator = inspectionrecordDescMeasuredValue.Validators[0].(func(string) error) // inspectionrecordDescReportNo is the schema descriptor for reportNo field. inspectionrecordDescReportNo := inspectionrecordFields[15].Descriptor() // inspectionrecord.DefaultReportNo holds the default value on creation for the reportNo field. inspectionrecord.DefaultReportNo = inspectionrecordDescReportNo.Default.(string) // inspectionrecord.ReportNoValidator is a validator for the "reportNo" field. It is called by the builders before save. inspectionrecord.ReportNoValidator = inspectionrecordDescReportNo.Validators[0].(func(string) error) // inspectionrecordDescMaterialCode is the schema descriptor for materialCode field. inspectionrecordDescMaterialCode := inspectionrecordFields[16].Descriptor() // inspectionrecord.DefaultMaterialCode holds the default value on creation for the materialCode field. inspectionrecord.DefaultMaterialCode = inspectionrecordDescMaterialCode.Default.(string) // inspectionrecord.MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save. inspectionrecord.MaterialCodeValidator = inspectionrecordDescMaterialCode.Validators[0].(func(string) error) // inspectionrecordDescMaterialName is the schema descriptor for materialName field. inspectionrecordDescMaterialName := inspectionrecordFields[17].Descriptor() // inspectionrecord.DefaultMaterialName holds the default value on creation for the materialName field. inspectionrecord.DefaultMaterialName = inspectionrecordDescMaterialName.Default.(string) // inspectionrecord.MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save. inspectionrecord.MaterialNameValidator = inspectionrecordDescMaterialName.Validators[0].(func(string) error) // inspectionrecordDescManufacturer is the schema descriptor for manufacturer field. inspectionrecordDescManufacturer := inspectionrecordFields[18].Descriptor() // inspectionrecord.DefaultManufacturer holds the default value on creation for the manufacturer field. inspectionrecord.DefaultManufacturer = inspectionrecordDescManufacturer.Default.(string) // inspectionrecord.ManufacturerValidator is a validator for the "manufacturer" field. It is called by the builders before save. inspectionrecord.ManufacturerValidator = inspectionrecordDescManufacturer.Validators[0].(func(string) error) // inspectionrecordDescInspectionNo is the schema descriptor for inspectionNo field. inspectionrecordDescInspectionNo := inspectionrecordFields[19].Descriptor() // inspectionrecord.DefaultInspectionNo holds the default value on creation for the inspectionNo field. inspectionrecord.DefaultInspectionNo = inspectionrecordDescInspectionNo.Default.(string) // inspectionrecord.InspectionNoValidator is a validator for the "inspectionNo" field. It is called by the builders before save. inspectionrecord.InspectionNoValidator = inspectionrecordDescInspectionNo.Validators[0].(func(string) error) // inspectionrecordDescAttachmentIds is the schema descriptor for attachmentIds field. inspectionrecordDescAttachmentIds := inspectionrecordFields[20].Descriptor() // inspectionrecord.DefaultAttachmentIds holds the default value on creation for the attachmentIds field. inspectionrecord.DefaultAttachmentIds = inspectionrecordDescAttachmentIds.Default.(string) // inspectionrecord.AttachmentIdsValidator is a validator for the "attachmentIds" field. It is called by the builders before save. inspectionrecord.AttachmentIdsValidator = inspectionrecordDescAttachmentIds.Validators[0].(func(string) error) // inspectionrecordDescDisposalType is the schema descriptor for disposalType field. inspectionrecordDescDisposalType := inspectionrecordFields[21].Descriptor() // inspectionrecord.DefaultDisposalType holds the default value on creation for the disposalType field. inspectionrecord.DefaultDisposalType = inspectionrecordDescDisposalType.Default.(string) // inspectionrecord.DisposalTypeValidator is a validator for the "disposalType" field. It is called by the builders before save. inspectionrecord.DisposalTypeValidator = inspectionrecordDescDisposalType.Validators[0].(func(string) error) // inspectionrecordDescDisposalRemark is the schema descriptor for disposalRemark field. inspectionrecordDescDisposalRemark := inspectionrecordFields[22].Descriptor() // inspectionrecord.DefaultDisposalRemark holds the default value on creation for the disposalRemark field. inspectionrecord.DefaultDisposalRemark = inspectionrecordDescDisposalRemark.Default.(string) // inspectionrecord.DisposalRemarkValidator is a validator for the "disposalRemark" field. It is called by the builders before save. inspectionrecord.DisposalRemarkValidator = inspectionrecordDescDisposalRemark.Validators[0].(func(string) error) // inspectionrecordDescCreatedAt is the schema descriptor for createdAt field. inspectionrecordDescCreatedAt := inspectionrecordFields[23].Descriptor() // inspectionrecord.DefaultCreatedAt holds the default value on creation for the createdAt field. inspectionrecord.DefaultCreatedAt = inspectionrecordDescCreatedAt.Default.(func() time.Time) // inspectionrecordDescID is the schema descriptor for id field. inspectionrecordDescID := inspectionrecordFields[0].Descriptor() // inspectionrecord.IDValidator is a validator for the "id" field. It is called by the builders before save. inspectionrecord.IDValidator = inspectionrecordDescID.Validators[0].(func(int) error) linepointFields := schema.LinePoint{}.Fields() _ = linepointFields // linepointDescPointType is the schema descriptor for pointType field. linepointDescPointType := linepointFields[1].Descriptor() // linepoint.PointTypeValidator is a validator for the "pointType" field. It is called by the builders before save. linepoint.PointTypeValidator = linepointDescPointType.Validators[0].(func(string) error) // linepointDescPointNo is the schema descriptor for pointNo field. linepointDescPointNo := linepointFields[2].Descriptor() // linepoint.PointNoValidator is a validator for the "pointNo" field. It is called by the builders before save. linepoint.PointNoValidator = linepointDescPointNo.Validators[0].(func(string) error) // linepointDescLabel is the schema descriptor for label field. linepointDescLabel := linepointFields[3].Descriptor() // linepoint.DefaultLabel holds the default value on creation for the label field. linepoint.DefaultLabel = linepointDescLabel.Default.(string) // linepoint.LabelValidator is a validator for the "label" field. It is called by the builders before save. linepoint.LabelValidator = linepointDescLabel.Validators[0].(func(string) error) // linepointDescSeq is the schema descriptor for seq field. linepointDescSeq := linepointFields[4].Descriptor() // linepoint.DefaultSeq holds the default value on creation for the seq field. linepoint.DefaultSeq = linepointDescSeq.Default.(int) // linepointDescStationNo is the schema descriptor for stationNo field. linepointDescStationNo := linepointFields[5].Descriptor() // linepoint.DefaultStationNo holds the default value on creation for the stationNo field. linepoint.DefaultStationNo = linepointDescStationNo.Default.(int) // linepointDescCurrentSn is the schema descriptor for currentSn field. linepointDescCurrentSn := linepointFields[6].Descriptor() // linepoint.DefaultCurrentSn holds the default value on creation for the currentSn field. linepoint.DefaultCurrentSn = linepointDescCurrentSn.Default.(string) // linepoint.CurrentSnValidator is a validator for the "currentSn" field. It is called by the builders before save. linepoint.CurrentSnValidator = linepointDescCurrentSn.Validators[0].(func(string) error) // linepointDescOrderNo is the schema descriptor for orderNo field. linepointDescOrderNo := linepointFields[7].Descriptor() // linepoint.DefaultOrderNo holds the default value on creation for the orderNo field. linepoint.DefaultOrderNo = linepointDescOrderNo.Default.(string) // linepoint.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save. linepoint.OrderNoValidator = linepointDescOrderNo.Validators[0].(func(string) error) // linepointDescOccupied is the schema descriptor for occupied field. linepointDescOccupied := linepointFields[8].Descriptor() // linepoint.DefaultOccupied holds the default value on creation for the occupied field. linepoint.DefaultOccupied = linepointDescOccupied.Default.(bool) // linepointDescUpdatedAt is the schema descriptor for updatedAt field. linepointDescUpdatedAt := linepointFields[9].Descriptor() // linepoint.DefaultUpdatedAt holds the default value on creation for the updatedAt field. linepoint.DefaultUpdatedAt = linepointDescUpdatedAt.Default.(func() time.Time) // linepoint.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field. linepoint.UpdateDefaultUpdatedAt = linepointDescUpdatedAt.UpdateDefault.(func() time.Time) // linepointDescID is the schema descriptor for id field. linepointDescID := linepointFields[0].Descriptor() // linepoint.IDValidator is a validator for the "id" field. It is called by the builders before save. linepoint.IDValidator = linepointDescID.Validators[0].(func(int) error) materialqtyreportFields := schema.MaterialQtyReport{}.Fields() _ = materialqtyreportFields // materialqtyreportDescStationNo is the schema descriptor for stationNo field. materialqtyreportDescStationNo := materialqtyreportFields[1].Descriptor() // materialqtyreport.DefaultStationNo holds the default value on creation for the stationNo field. materialqtyreport.DefaultStationNo = materialqtyreportDescStationNo.Default.(int) // materialqtyreportDescOrderNo is the schema descriptor for orderNo field. materialqtyreportDescOrderNo := materialqtyreportFields[2].Descriptor() // materialqtyreport.DefaultOrderNo holds the default value on creation for the orderNo field. materialqtyreport.DefaultOrderNo = materialqtyreportDescOrderNo.Default.(string) // materialqtyreport.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save. materialqtyreport.OrderNoValidator = materialqtyreportDescOrderNo.Validators[0].(func(string) error) // materialqtyreportDescSn is the schema descriptor for sn field. materialqtyreportDescSn := materialqtyreportFields[3].Descriptor() // materialqtyreport.DefaultSn holds the default value on creation for the sn field. materialqtyreport.DefaultSn = materialqtyreportDescSn.Default.(string) // materialqtyreport.SnValidator is a validator for the "sn" field. It is called by the builders before save. materialqtyreport.SnValidator = materialqtyreportDescSn.Validators[0].(func(string) error) // materialqtyreportDescMaterialCode is the schema descriptor for materialCode field. materialqtyreportDescMaterialCode := materialqtyreportFields[4].Descriptor() // materialqtyreport.DefaultMaterialCode holds the default value on creation for the materialCode field. materialqtyreport.DefaultMaterialCode = materialqtyreportDescMaterialCode.Default.(string) // materialqtyreport.MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save. materialqtyreport.MaterialCodeValidator = materialqtyreportDescMaterialCode.Validators[0].(func(string) error) // materialqtyreportDescMaterialName is the schema descriptor for materialName field. materialqtyreportDescMaterialName := materialqtyreportFields[5].Descriptor() // materialqtyreport.DefaultMaterialName holds the default value on creation for the materialName field. materialqtyreport.DefaultMaterialName = materialqtyreportDescMaterialName.Default.(string) // materialqtyreport.MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save. materialqtyreport.MaterialNameValidator = materialqtyreportDescMaterialName.Validators[0].(func(string) error) // materialqtyreportDescPlanQty is the schema descriptor for planQty field. materialqtyreportDescPlanQty := materialqtyreportFields[6].Descriptor() // materialqtyreport.DefaultPlanQty holds the default value on creation for the planQty field. materialqtyreport.DefaultPlanQty = materialqtyreportDescPlanQty.Default.(int) // materialqtyreportDescActualQty is the schema descriptor for actualQty field. materialqtyreportDescActualQty := materialqtyreportFields[7].Descriptor() // materialqtyreport.DefaultActualQty holds the default value on creation for the actualQty field. materialqtyreport.DefaultActualQty = materialqtyreportDescActualQty.Default.(int) // materialqtyreportDescDiffQty is the schema descriptor for diffQty field. materialqtyreportDescDiffQty := materialqtyreportFields[8].Descriptor() // materialqtyreport.DefaultDiffQty holds the default value on creation for the diffQty field. materialqtyreport.DefaultDiffQty = materialqtyreportDescDiffQty.Default.(int) // materialqtyreportDescCause is the schema descriptor for cause field. materialqtyreportDescCause := materialqtyreportFields[9].Descriptor() // materialqtyreport.DefaultCause holds the default value on creation for the cause field. materialqtyreport.DefaultCause = materialqtyreportDescCause.Default.(string) // materialqtyreport.CauseValidator is a validator for the "cause" field. It is called by the builders before save. materialqtyreport.CauseValidator = materialqtyreportDescCause.Validators[0].(func(string) error) // materialqtyreportDescStatus is the schema descriptor for status field. materialqtyreportDescStatus := materialqtyreportFields[10].Descriptor() // materialqtyreport.DefaultStatus holds the default value on creation for the status field. materialqtyreport.DefaultStatus = materialqtyreportDescStatus.Default.(string) // materialqtyreport.StatusValidator is a validator for the "status" field. It is called by the builders before save. materialqtyreport.StatusValidator = materialqtyreportDescStatus.Validators[0].(func(string) error) // materialqtyreportDescOperator is the schema descriptor for operator field. materialqtyreportDescOperator := materialqtyreportFields[11].Descriptor() // materialqtyreport.DefaultOperator holds the default value on creation for the operator field. materialqtyreport.DefaultOperator = materialqtyreportDescOperator.Default.(string) // materialqtyreport.OperatorValidator is a validator for the "operator" field. It is called by the builders before save. materialqtyreport.OperatorValidator = materialqtyreportDescOperator.Validators[0].(func(string) error) // materialqtyreportDescCreatedAt is the schema descriptor for createdAt field. materialqtyreportDescCreatedAt := materialqtyreportFields[12].Descriptor() // materialqtyreport.DefaultCreatedAt holds the default value on creation for the createdAt field. materialqtyreport.DefaultCreatedAt = materialqtyreportDescCreatedAt.Default.(func() time.Time) // materialqtyreportDescID is the schema descriptor for id field. materialqtyreportDescID := materialqtyreportFields[0].Descriptor() // materialqtyreport.IDValidator is a validator for the "id" field. It is called by the builders before save. materialqtyreport.IDValidator = materialqtyreportDescID.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) // permissionDescParentCode is the schema descriptor for parentCode field. permissionDescParentCode := permissionFields[4].Descriptor() // permission.DefaultParentCode holds the default value on creation for the parentCode field. permission.DefaultParentCode = permissionDescParentCode.Default.(string) // permission.ParentCodeValidator is a validator for the "parentCode" field. It is called by the builders before save. permission.ParentCodeValidator = permissionDescParentCode.Validators[0].(func(string) error) // permissionDescPath is the schema descriptor for path field. permissionDescPath := permissionFields[5].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[6].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[7].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[8].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[9].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) plcmovecmdFields := schema.PlcMoveCmd{}.Fields() _ = plcmovecmdFields // plcmovecmdDescCmdNo is the schema descriptor for cmdNo field. plcmovecmdDescCmdNo := plcmovecmdFields[1].Descriptor() // plcmovecmd.CmdNoValidator is a validator for the "cmdNo" field. It is called by the builders before save. plcmovecmd.CmdNoValidator = plcmovecmdDescCmdNo.Validators[0].(func(string) error) // plcmovecmdDescSn is the schema descriptor for sn field. plcmovecmdDescSn := plcmovecmdFields[2].Descriptor() // plcmovecmd.SnValidator is a validator for the "sn" field. It is called by the builders before save. plcmovecmd.SnValidator = plcmovecmdDescSn.Validators[0].(func(string) error) // plcmovecmdDescOrderNo is the schema descriptor for orderNo field. plcmovecmdDescOrderNo := plcmovecmdFields[3].Descriptor() // plcmovecmd.DefaultOrderNo holds the default value on creation for the orderNo field. plcmovecmd.DefaultOrderNo = plcmovecmdDescOrderNo.Default.(string) // plcmovecmd.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save. plcmovecmd.OrderNoValidator = plcmovecmdDescOrderNo.Validators[0].(func(string) error) // plcmovecmdDescFromPoint is the schema descriptor for fromPoint field. plcmovecmdDescFromPoint := plcmovecmdFields[4].Descriptor() // plcmovecmd.FromPointValidator is a validator for the "fromPoint" field. It is called by the builders before save. plcmovecmd.FromPointValidator = plcmovecmdDescFromPoint.Validators[0].(func(string) error) // plcmovecmdDescToPoint is the schema descriptor for toPoint field. plcmovecmdDescToPoint := plcmovecmdFields[5].Descriptor() // plcmovecmd.ToPointValidator is a validator for the "toPoint" field. It is called by the builders before save. plcmovecmd.ToPointValidator = plcmovecmdDescToPoint.Validators[0].(func(string) error) // plcmovecmdDescStatus is the schema descriptor for status field. plcmovecmdDescStatus := plcmovecmdFields[6].Descriptor() // plcmovecmd.DefaultStatus holds the default value on creation for the status field. plcmovecmd.DefaultStatus = plcmovecmdDescStatus.Default.(string) // plcmovecmd.StatusValidator is a validator for the "status" field. It is called by the builders before save. plcmovecmd.StatusValidator = plcmovecmdDescStatus.Validators[0].(func(string) error) // plcmovecmdDescOperator is the schema descriptor for operator field. plcmovecmdDescOperator := plcmovecmdFields[7].Descriptor() // plcmovecmd.DefaultOperator holds the default value on creation for the operator field. plcmovecmd.DefaultOperator = plcmovecmdDescOperator.Default.(string) // plcmovecmd.OperatorValidator is a validator for the "operator" field. It is called by the builders before save. plcmovecmd.OperatorValidator = plcmovecmdDescOperator.Validators[0].(func(string) error) // plcmovecmdDescMessage is the schema descriptor for message field. plcmovecmdDescMessage := plcmovecmdFields[8].Descriptor() // plcmovecmd.DefaultMessage holds the default value on creation for the message field. plcmovecmd.DefaultMessage = plcmovecmdDescMessage.Default.(string) // plcmovecmd.MessageValidator is a validator for the "message" field. It is called by the builders before save. plcmovecmd.MessageValidator = plcmovecmdDescMessage.Validators[0].(func(string) error) // plcmovecmdDescCreatedAt is the schema descriptor for createdAt field. plcmovecmdDescCreatedAt := plcmovecmdFields[9].Descriptor() // plcmovecmd.DefaultCreatedAt holds the default value on creation for the createdAt field. plcmovecmd.DefaultCreatedAt = plcmovecmdDescCreatedAt.Default.(func() time.Time) // plcmovecmdDescUpdatedAt is the schema descriptor for updatedAt field. plcmovecmdDescUpdatedAt := plcmovecmdFields[10].Descriptor() // plcmovecmd.DefaultUpdatedAt holds the default value on creation for the updatedAt field. plcmovecmd.DefaultUpdatedAt = plcmovecmdDescUpdatedAt.Default.(func() time.Time) // plcmovecmd.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field. plcmovecmd.UpdateDefaultUpdatedAt = plcmovecmdDescUpdatedAt.UpdateDefault.(func() time.Time) // plcmovecmdDescID is the schema descriptor for id field. plcmovecmdDescID := plcmovecmdFields[0].Descriptor() // plcmovecmd.IDValidator is a validator for the "id" field. It is called by the builders before save. plcmovecmd.IDValidator = plcmovecmdDescID.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) processflowFields := schema.ProcessFlow{}.Fields() _ = processflowFields // processflowDescName is the schema descriptor for name field. processflowDescName := processflowFields[1].Descriptor() // processflow.NameValidator is a validator for the "name" field. It is called by the builders before save. processflow.NameValidator = processflowDescName.Validators[0].(func(string) error) // processflowDescPdfFile is the schema descriptor for pdfFile field. processflowDescPdfFile := processflowFields[2].Descriptor() // processflow.DefaultPdfFile holds the default value on creation for the pdfFile field. processflow.DefaultPdfFile = processflowDescPdfFile.Default.(string) // processflow.PdfFileValidator is a validator for the "pdfFile" field. It is called by the builders before save. processflow.PdfFileValidator = processflowDescPdfFile.Validators[0].(func(string) error) // processflowDescStatus is the schema descriptor for status field. processflowDescStatus := processflowFields[3].Descriptor() // processflow.DefaultStatus holds the default value on creation for the status field. processflow.DefaultStatus = processflowDescStatus.Default.(string) // processflow.StatusValidator is a validator for the "status" field. It is called by the builders before save. processflow.StatusValidator = processflowDescStatus.Validators[0].(func(string) error) // processflowDescRemark is the schema descriptor for remark field. processflowDescRemark := processflowFields[4].Descriptor() // processflow.DefaultRemark holds the default value on creation for the remark field. processflow.DefaultRemark = processflowDescRemark.Default.(string) // processflow.RemarkValidator is a validator for the "remark" field. It is called by the builders before save. processflow.RemarkValidator = processflowDescRemark.Validators[0].(func(string) error) // processflowDescCreatedAt is the schema descriptor for createdAt field. processflowDescCreatedAt := processflowFields[5].Descriptor() // processflow.DefaultCreatedAt holds the default value on creation for the createdAt field. processflow.DefaultCreatedAt = processflowDescCreatedAt.Default.(func() time.Time) // processflowDescUpdatedAt is the schema descriptor for updatedAt field. processflowDescUpdatedAt := processflowFields[6].Descriptor() // processflow.DefaultUpdatedAt holds the default value on creation for the updatedAt field. processflow.DefaultUpdatedAt = processflowDescUpdatedAt.Default.(func() time.Time) // processflow.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field. processflow.UpdateDefaultUpdatedAt = processflowDescUpdatedAt.UpdateDefault.(func() time.Time) // processflowDescID is the schema descriptor for id field. processflowDescID := processflowFields[0].Descriptor() // processflow.IDValidator is a validator for the "id" field. It is called by the builders before save. processflow.IDValidator = processflowDescID.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) // processstepDescNeedCheck is the schema descriptor for needCheck field. processstepDescNeedCheck := processstepFields[6].Descriptor() // processstep.DefaultNeedCheck holds the default value on creation for the needCheck field. processstep.DefaultNeedCheck = processstepDescNeedCheck.Default.(bool) // processstepDescRemark is the schema descriptor for remark field. processstepDescRemark := processstepFields[8].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[9].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) stationFields := schema.Station{}.Fields() _ = stationFields // stationDescName is the schema descriptor for name field. stationDescName := stationFields[2].Descriptor() // station.DefaultName holds the default value on creation for the name field. station.DefaultName = stationDescName.Default.(string) // station.NameValidator is a validator for the "name" field. It is called by the builders before save. station.NameValidator = stationDescName.Validators[0].(func(string) error) // stationDescStationType is the schema descriptor for stationType field. stationDescStationType := stationFields[4].Descriptor() // station.DefaultStationType holds the default value on creation for the stationType field. station.DefaultStationType = stationDescStationType.Default.(string) // station.StationTypeValidator is a validator for the "stationType" field. It is called by the builders before save. station.StationTypeValidator = stationDescStationType.Validators[0].(func(string) error) // stationDescStatus is the schema descriptor for status field. stationDescStatus := stationFields[5].Descriptor() // station.DefaultStatus holds the default value on creation for the status field. station.DefaultStatus = stationDescStatus.Default.(string) // station.StatusValidator is a validator for the "status" field. It is called by the builders before save. station.StatusValidator = stationDescStatus.Validators[0].(func(string) error) // stationDescCreatedAt is the schema descriptor for createdAt field. stationDescCreatedAt := stationFields[6].Descriptor() // station.DefaultCreatedAt holds the default value on creation for the createdAt field. station.DefaultCreatedAt = stationDescCreatedAt.Default.(func() time.Time) // stationDescID is the schema descriptor for id field. stationDescID := stationFields[0].Descriptor() // station.IDValidator is a validator for the "id" field. It is called by the builders before save. station.IDValidator = stationDescID.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) torqueauditlogFields := schema.TorqueAuditLog{}.Fields() _ = torqueauditlogFields // torqueauditlogDescAction is the schema descriptor for action field. torqueauditlogDescAction := torqueauditlogFields[2].Descriptor() // torqueauditlog.ActionValidator is a validator for the "action" field. It is called by the builders before save. torqueauditlog.ActionValidator = torqueauditlogDescAction.Validators[0].(func(string) error) // torqueauditlogDescFieldName is the schema descriptor for fieldName field. torqueauditlogDescFieldName := torqueauditlogFields[3].Descriptor() // torqueauditlog.DefaultFieldName holds the default value on creation for the fieldName field. torqueauditlog.DefaultFieldName = torqueauditlogDescFieldName.Default.(string) // torqueauditlog.FieldNameValidator is a validator for the "fieldName" field. It is called by the builders before save. torqueauditlog.FieldNameValidator = torqueauditlogDescFieldName.Validators[0].(func(string) error) // torqueauditlogDescOldVal is the schema descriptor for oldVal field. torqueauditlogDescOldVal := torqueauditlogFields[4].Descriptor() // torqueauditlog.DefaultOldVal holds the default value on creation for the oldVal field. torqueauditlog.DefaultOldVal = torqueauditlogDescOldVal.Default.(string) // torqueauditlog.OldValValidator is a validator for the "oldVal" field. It is called by the builders before save. torqueauditlog.OldValValidator = torqueauditlogDescOldVal.Validators[0].(func(string) error) // torqueauditlogDescNewVal is the schema descriptor for newVal field. torqueauditlogDescNewVal := torqueauditlogFields[5].Descriptor() // torqueauditlog.DefaultNewVal holds the default value on creation for the newVal field. torqueauditlog.DefaultNewVal = torqueauditlogDescNewVal.Default.(string) // torqueauditlog.NewValValidator is a validator for the "newVal" field. It is called by the builders before save. torqueauditlog.NewValValidator = torqueauditlogDescNewVal.Validators[0].(func(string) error) // torqueauditlogDescOperator is the schema descriptor for operator field. torqueauditlogDescOperator := torqueauditlogFields[6].Descriptor() // torqueauditlog.OperatorValidator is a validator for the "operator" field. It is called by the builders before save. torqueauditlog.OperatorValidator = torqueauditlogDescOperator.Validators[0].(func(string) error) // torqueauditlogDescRemark is the schema descriptor for remark field. torqueauditlogDescRemark := torqueauditlogFields[7].Descriptor() // torqueauditlog.DefaultRemark holds the default value on creation for the remark field. torqueauditlog.DefaultRemark = torqueauditlogDescRemark.Default.(string) // torqueauditlog.RemarkValidator is a validator for the "remark" field. It is called by the builders before save. torqueauditlog.RemarkValidator = torqueauditlogDescRemark.Validators[0].(func(string) error) // torqueauditlogDescCreatedAt is the schema descriptor for createdAt field. torqueauditlogDescCreatedAt := torqueauditlogFields[8].Descriptor() // torqueauditlog.DefaultCreatedAt holds the default value on creation for the createdAt field. torqueauditlog.DefaultCreatedAt = torqueauditlogDescCreatedAt.Default.(func() time.Time) // torqueauditlogDescID is the schema descriptor for id field. torqueauditlogDescID := torqueauditlogFields[0].Descriptor() // torqueauditlog.IDValidator is a validator for the "id" field. It is called by the builders before save. torqueauditlog.IDValidator = torqueauditlogDescID.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) // torquerecordDescAuditBy is the schema descriptor for auditBy field. torquerecordDescAuditBy := torquerecordFields[11].Descriptor() // torquerecord.DefaultAuditBy holds the default value on creation for the auditBy field. torquerecord.DefaultAuditBy = torquerecordDescAuditBy.Default.(string) // torquerecord.AuditByValidator is a validator for the "auditBy" field. It is called by the builders before save. torquerecord.AuditByValidator = torquerecordDescAuditBy.Validators[0].(func(string) error) // torquerecordDescCreatedAt is the schema descriptor for createdAt field. torquerecordDescCreatedAt := torquerecordFields[13].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) // userDescCanLoginWorkstation is the schema descriptor for canLoginWorkstation field. userDescCanLoginWorkstation := userFields[5].Descriptor() // user.DefaultCanLoginWorkstation holds the default value on creation for the canLoginWorkstation field. user.DefaultCanLoginWorkstation = userDescCanLoginWorkstation.Default.(bool) // userDescWorkstationPassword is the schema descriptor for workstationPassword field. userDescWorkstationPassword := userFields[6].Descriptor() // user.WorkstationPasswordValidator is a validator for the "workstationPassword" field. It is called by the builders before save. user.WorkstationPasswordValidator = userDescWorkstationPassword.Validators[0].(func(string) error) // userDescStatus is the schema descriptor for status field. userDescStatus := userFields[7].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[9].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[10].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) userstationFields := schema.UserStation{}.Fields() _ = userstationFields // userstationDescCreatedAt is the schema descriptor for createdAt field. userstationDescCreatedAt := userstationFields[3].Descriptor() // userstation.DefaultCreatedAt holds the default value on creation for the createdAt field. userstation.DefaultCreatedAt = userstationDescCreatedAt.Default.(func() time.Time) // userstationDescID is the schema descriptor for id field. userstationDescID := userstationFields[0].Descriptor() // userstation.IDValidator is a validator for the "id" field. It is called by the builders before save. userstation.IDValidator = userstationDescID.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) // workorderDescContractNo is the schema descriptor for contractNo field. workorderDescContractNo := workorderFields[9].Descriptor() // workorder.DefaultContractNo holds the default value on creation for the contractNo field. workorder.DefaultContractNo = workorderDescContractNo.Default.(string) // workorder.ContractNoValidator is a validator for the "contractNo" field. It is called by the builders before save. workorder.ContractNoValidator = workorderDescContractNo.Validators[0].(func(string) error) // workorderDescProjectNo is the schema descriptor for projectNo field. workorderDescProjectNo := workorderFields[10].Descriptor() // workorder.DefaultProjectNo holds the default value on creation for the projectNo field. workorder.DefaultProjectNo = workorderDescProjectNo.Default.(string) // workorder.ProjectNoValidator is a validator for the "projectNo" field. It is called by the builders before save. workorder.ProjectNoValidator = workorderDescProjectNo.Validators[0].(func(string) error) // workorderDescProductSerial is the schema descriptor for productSerial field. workorderDescProductSerial := workorderFields[11].Descriptor() // workorder.DefaultProductSerial holds the default value on creation for the productSerial field. workorder.DefaultProductSerial = workorderDescProductSerial.Default.(string) // workorder.ProductSerialValidator is a validator for the "productSerial" field. It is called by the builders before save. workorder.ProductSerialValidator = workorderDescProductSerial.Validators[0].(func(string) error) // workorderDescCreatedBy is the schema descriptor for createdBy field. workorderDescCreatedBy := workorderFields[12].Descriptor() // workorder.DefaultCreatedBy holds the default value on creation for the createdBy field. workorder.DefaultCreatedBy = workorderDescCreatedBy.Default.(string) // workorder.CreatedByValidator is a validator for the "createdBy" field. It is called by the builders before save. workorder.CreatedByValidator = workorderDescCreatedBy.Validators[0].(func(string) error) // workorderDescStatus is the schema descriptor for status field. workorderDescStatus := workorderFields[14].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[19].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[20].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) workpiecebindFields := schema.WorkpieceBind{}.Fields() _ = workpiecebindFields // workpiecebindDescSn is the schema descriptor for sn field. workpiecebindDescSn := workpiecebindFields[1].Descriptor() // workpiecebind.SnValidator is a validator for the "sn" field. It is called by the builders before save. workpiecebind.SnValidator = workpiecebindDescSn.Validators[0].(func(string) error) // workpiecebindDescOrderNo is the schema descriptor for orderNo field. workpiecebindDescOrderNo := workpiecebindFields[2].Descriptor() // workpiecebind.DefaultOrderNo holds the default value on creation for the orderNo field. workpiecebind.DefaultOrderNo = workpiecebindDescOrderNo.Default.(string) // workpiecebind.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save. workpiecebind.OrderNoValidator = workpiecebindDescOrderNo.Validators[0].(func(string) error) // workpiecebindDescStationNo is the schema descriptor for stationNo field. workpiecebindDescStationNo := workpiecebindFields[4].Descriptor() // workpiecebind.DefaultStationNo holds the default value on creation for the stationNo field. workpiecebind.DefaultStationNo = workpiecebindDescStationNo.Default.(string) // workpiecebind.StationNoValidator is a validator for the "stationNo" field. It is called by the builders before save. workpiecebind.StationNoValidator = workpiecebindDescStationNo.Validators[0].(func(string) error) // workpiecebindDescMaterialCode is the schema descriptor for materialCode field. workpiecebindDescMaterialCode := workpiecebindFields[5].Descriptor() // workpiecebind.MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save. workpiecebind.MaterialCodeValidator = workpiecebindDescMaterialCode.Validators[0].(func(string) error) // workpiecebindDescMaterialName is the schema descriptor for materialName field. workpiecebindDescMaterialName := workpiecebindFields[6].Descriptor() // workpiecebind.DefaultMaterialName holds the default value on creation for the materialName field. workpiecebind.DefaultMaterialName = workpiecebindDescMaterialName.Default.(string) // workpiecebind.MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save. workpiecebind.MaterialNameValidator = workpiecebindDescMaterialName.Validators[0].(func(string) error) // workpiecebindDescSpec is the schema descriptor for spec field. workpiecebindDescSpec := workpiecebindFields[7].Descriptor() // workpiecebind.DefaultSpec holds the default value on creation for the spec field. workpiecebind.DefaultSpec = workpiecebindDescSpec.Default.(string) // workpiecebind.SpecValidator is a validator for the "spec" field. It is called by the builders before save. workpiecebind.SpecValidator = workpiecebindDescSpec.Validators[0].(func(string) error) // workpiecebindDescUnit is the schema descriptor for unit field. workpiecebindDescUnit := workpiecebindFields[8].Descriptor() // workpiecebind.DefaultUnit holds the default value on creation for the unit field. workpiecebind.DefaultUnit = workpiecebindDescUnit.Default.(string) // workpiecebind.UnitValidator is a validator for the "unit" field. It is called by the builders before save. workpiecebind.UnitValidator = workpiecebindDescUnit.Validators[0].(func(string) error) // workpiecebindDescManageMode is the schema descriptor for manageMode field. workpiecebindDescManageMode := workpiecebindFields[9].Descriptor() // workpiecebind.DefaultManageMode holds the default value on creation for the manageMode field. workpiecebind.DefaultManageMode = workpiecebindDescManageMode.Default.(string) // workpiecebind.ManageModeValidator is a validator for the "manageMode" field. It is called by the builders before save. workpiecebind.ManageModeValidator = workpiecebindDescManageMode.Validators[0].(func(string) error) // workpiecebindDescBindValue is the schema descriptor for bindValue field. workpiecebindDescBindValue := workpiecebindFields[10].Descriptor() // workpiecebind.BindValueValidator is a validator for the "bindValue" field. It is called by the builders before save. workpiecebind.BindValueValidator = workpiecebindDescBindValue.Validators[0].(func(string) error) // workpiecebindDescBindType is the schema descriptor for bindType field. workpiecebindDescBindType := workpiecebindFields[11].Descriptor() // workpiecebind.DefaultBindType holds the default value on creation for the bindType field. workpiecebind.DefaultBindType = workpiecebindDescBindType.Default.(string) // workpiecebind.BindTypeValidator is a validator for the "bindType" field. It is called by the builders before save. workpiecebind.BindTypeValidator = workpiecebindDescBindType.Validators[0].(func(string) error) // workpiecebindDescOperator is the schema descriptor for operator field. workpiecebindDescOperator := workpiecebindFields[12].Descriptor() // workpiecebind.DefaultOperator holds the default value on creation for the operator field. workpiecebind.DefaultOperator = workpiecebindDescOperator.Default.(string) // workpiecebind.OperatorValidator is a validator for the "operator" field. It is called by the builders before save. workpiecebind.OperatorValidator = workpiecebindDescOperator.Validators[0].(func(string) error) // workpiecebindDescCreatedAt is the schema descriptor for createdAt field. workpiecebindDescCreatedAt := workpiecebindFields[13].Descriptor() // workpiecebind.DefaultCreatedAt holds the default value on creation for the createdAt field. workpiecebind.DefaultCreatedAt = workpiecebindDescCreatedAt.Default.(func() time.Time) // workpiecebindDescID is the schema descriptor for id field. workpiecebindDescID := workpiecebindFields[0].Descriptor() // workpiecebind.IDValidator is a validator for the "id" field. It is called by the builders before save. workpiecebind.IDValidator = workpiecebindDescID.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) // workpieceprocessDescDurationSec is the schema descriptor for durationSec field. workpieceprocessDescDurationSec := workpieceprocessFields[11].Descriptor() // workpieceprocess.DefaultDurationSec holds the default value on creation for the durationSec field. workpieceprocess.DefaultDurationSec = workpieceprocessDescDurationSec.Default.(int) // workpieceprocessDescRemark is the schema descriptor for remark field. workpieceprocessDescRemark := workpieceprocessFields[12].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[13].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) }