Files
bj_power/bj_power_mes/ent/runtime.go
T

2115 lines
164 KiB
Go

// Code generated by ent, DO NOT EDIT.
package ent
import (
"bj_power_mes/ent/agvtask"
"bj_power_mes/ent/alert"
"bj_power_mes/ent/alertrule"
"bj_power_mes/ent/associationtrace"
"bj_power_mes/ent/attachment"
"bj_power_mes/ent/backuprecord"
"bj_power_mes/ent/callpool"
"bj_power_mes/ent/dailyplan"
"bj_power_mes/ent/dock"
"bj_power_mes/ent/eventlog"
"bj_power_mes/ent/flowmaterial"
"bj_power_mes/ent/inspectionrecord"
"bj_power_mes/ent/linepoint"
"bj_power_mes/ent/material"
"bj_power_mes/ent/materialqtyreport"
"bj_power_mes/ent/materialrequest"
"bj_power_mes/ent/permission"
"bj_power_mes/ent/plcsendlog"
"bj_power_mes/ent/processflow"
"bj_power_mes/ent/processstep"
"bj_power_mes/ent/productprocess"
"bj_power_mes/ent/productprocessitem"
"bj_power_mes/ent/role"
"bj_power_mes/ent/semiflow"
"bj_power_mes/ent/station"
"bj_power_mes/ent/stationstate"
"bj_power_mes/ent/stepcriterion"
"bj_power_mes/ent/stepdata"
"bj_power_mes/ent/stepsignrecord"
"bj_power_mes/ent/sysconfig"
"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/workpiecelifecyclelog"
"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() {
agvtaskFields := schema.AgvTask{}.Fields()
_ = agvtaskFields
// agvtaskDescTaskNo is the schema descriptor for task_no field.
agvtaskDescTaskNo := agvtaskFields[0].Descriptor()
// agvtask.TaskNoValidator is a validator for the "task_no" field. It is called by the builders before save.
agvtask.TaskNoValidator = agvtaskDescTaskNo.Validators[0].(func(string) error)
// agvtaskDescHikTaskCode is the schema descriptor for hik_task_code field.
agvtaskDescHikTaskCode := agvtaskFields[1].Descriptor()
// agvtask.DefaultHikTaskCode holds the default value on creation for the hik_task_code field.
agvtask.DefaultHikTaskCode = agvtaskDescHikTaskCode.Default.(string)
// agvtask.HikTaskCodeValidator is a validator for the "hik_task_code" field. It is called by the builders before save.
agvtask.HikTaskCodeValidator = agvtaskDescHikTaskCode.Validators[0].(func(string) error)
// agvtaskDescSourceDock is the schema descriptor for source_dock field.
agvtaskDescSourceDock := agvtaskFields[2].Descriptor()
// agvtask.DefaultSourceDock holds the default value on creation for the source_dock field.
agvtask.DefaultSourceDock = agvtaskDescSourceDock.Default.(string)
// agvtask.SourceDockValidator is a validator for the "source_dock" field. It is called by the builders before save.
agvtask.SourceDockValidator = agvtaskDescSourceDock.Validators[0].(func(string) error)
// agvtaskDescTargetDock is the schema descriptor for target_dock field.
agvtaskDescTargetDock := agvtaskFields[3].Descriptor()
// agvtask.DefaultTargetDock holds the default value on creation for the target_dock field.
agvtask.DefaultTargetDock = agvtaskDescTargetDock.Default.(string)
// agvtask.TargetDockValidator is a validator for the "target_dock" field. It is called by the builders before save.
agvtask.TargetDockValidator = agvtaskDescTargetDock.Validators[0].(func(string) error)
// agvtaskDescMaterialsJSON is the schema descriptor for materials_json field.
agvtaskDescMaterialsJSON := agvtaskFields[4].Descriptor()
// agvtask.DefaultMaterialsJSON holds the default value on creation for the materials_json field.
agvtask.DefaultMaterialsJSON = agvtaskDescMaterialsJSON.Default.(string)
// agvtask.MaterialsJSONValidator is a validator for the "materials_json" field. It is called by the builders before save.
agvtask.MaterialsJSONValidator = agvtaskDescMaterialsJSON.Validators[0].(func(string) error)
// agvtaskDescRelatedRequestNo is the schema descriptor for related_request_no field.
agvtaskDescRelatedRequestNo := agvtaskFields[5].Descriptor()
// agvtask.DefaultRelatedRequestNo holds the default value on creation for the related_request_no field.
agvtask.DefaultRelatedRequestNo = agvtaskDescRelatedRequestNo.Default.(string)
// agvtask.RelatedRequestNoValidator is a validator for the "related_request_no" field. It is called by the builders before save.
agvtask.RelatedRequestNoValidator = agvtaskDescRelatedRequestNo.Validators[0].(func(string) error)
// agvtaskDescRelatedOutboundNo is the schema descriptor for related_outbound_no field.
agvtaskDescRelatedOutboundNo := agvtaskFields[6].Descriptor()
// agvtask.DefaultRelatedOutboundNo holds the default value on creation for the related_outbound_no field.
agvtask.DefaultRelatedOutboundNo = agvtaskDescRelatedOutboundNo.Default.(string)
// agvtask.RelatedOutboundNoValidator is a validator for the "related_outbound_no" field. It is called by the builders before save.
agvtask.RelatedOutboundNoValidator = agvtaskDescRelatedOutboundNo.Validators[0].(func(string) error)
// agvtaskDescStatus is the schema descriptor for status field.
agvtaskDescStatus := agvtaskFields[7].Descriptor()
// agvtask.DefaultStatus holds the default value on creation for the status field.
agvtask.DefaultStatus = agvtaskDescStatus.Default.(string)
// agvtask.StatusValidator is a validator for the "status" field. It is called by the builders before save.
agvtask.StatusValidator = agvtaskDescStatus.Validators[0].(func(string) error)
// agvtaskDescOperator is the schema descriptor for operator field.
agvtaskDescOperator := agvtaskFields[8].Descriptor()
// agvtask.DefaultOperator holds the default value on creation for the operator field.
agvtask.DefaultOperator = agvtaskDescOperator.Default.(string)
// agvtask.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
agvtask.OperatorValidator = agvtaskDescOperator.Validators[0].(func(string) error)
// agvtaskDescDispatchedAt is the schema descriptor for dispatched_at field.
agvtaskDescDispatchedAt := agvtaskFields[9].Descriptor()
// agvtask.DefaultDispatchedAt holds the default value on creation for the dispatched_at field.
agvtask.DefaultDispatchedAt = agvtaskDescDispatchedAt.Default.(int64)
// agvtaskDescArrivedAt is the schema descriptor for arrived_at field.
agvtaskDescArrivedAt := agvtaskFields[10].Descriptor()
// agvtask.DefaultArrivedAt holds the default value on creation for the arrived_at field.
agvtask.DefaultArrivedAt = agvtaskDescArrivedAt.Default.(int64)
// agvtaskDescRemark is the schema descriptor for remark field.
agvtaskDescRemark := agvtaskFields[11].Descriptor()
// agvtask.DefaultRemark holds the default value on creation for the remark field.
agvtask.DefaultRemark = agvtaskDescRemark.Default.(string)
// agvtask.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
agvtask.RemarkValidator = agvtaskDescRemark.Validators[0].(func(string) error)
// agvtaskDescCreatedAt is the schema descriptor for created_at field.
agvtaskDescCreatedAt := agvtaskFields[12].Descriptor()
// agvtask.DefaultCreatedAt holds the default value on creation for the created_at field.
agvtask.DefaultCreatedAt = agvtaskDescCreatedAt.Default.(func() int64)
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)
// alertDescLevel is the schema descriptor for level field.
alertDescLevel := alertFields[3].Descriptor()
// alert.DefaultLevel holds the default value on creation for the level field.
alert.DefaultLevel = alertDescLevel.Default.(string)
// alert.LevelValidator is a validator for the "level" field. It is called by the builders before save.
alert.LevelValidator = alertDescLevel.Validators[0].(func(string) error)
// alertDescTarget is the schema descriptor for target field.
alertDescTarget := alertFields[4].Descriptor()
// alert.DefaultTarget holds the default value on creation for the target field.
alert.DefaultTarget = alertDescTarget.Default.(string)
// alert.TargetValidator is a validator for the "target" field. It is called by the builders before save.
alert.TargetValidator = alertDescTarget.Validators[0].(func(string) error)
// alertDescTitle is the schema descriptor for title field.
alertDescTitle := alertFields[5].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[6].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[7].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[8].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)
// alertDescOrderNo is the schema descriptor for orderNo field.
alertDescOrderNo := alertFields[9].Descriptor()
// alert.DefaultOrderNo holds the default value on creation for the orderNo field.
alert.DefaultOrderNo = alertDescOrderNo.Default.(string)
// alert.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
alert.OrderNoValidator = alertDescOrderNo.Validators[0].(func(string) error)
// alertDescStatus is the schema descriptor for status field.
alertDescStatus := alertFields[10].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[11].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)
// alertDescResolvedBy is the schema descriptor for resolvedBy field.
alertDescResolvedBy := alertFields[13].Descriptor()
// alert.DefaultResolvedBy holds the default value on creation for the resolvedBy field.
alert.DefaultResolvedBy = alertDescResolvedBy.Default.(string)
// alert.ResolvedByValidator is a validator for the "resolvedBy" field. It is called by the builders before save.
alert.ResolvedByValidator = alertDescResolvedBy.Validators[0].(func(string) error)
// alertDescCreatedAt is the schema descriptor for createdAt field.
alertDescCreatedAt := alertFields[14].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)
// alertruleDescEnabled is the schema descriptor for enabled field.
alertruleDescEnabled := alertruleFields[4].Descriptor()
// alertrule.DefaultEnabled holds the default value on creation for the enabled field.
alertrule.DefaultEnabled = alertruleDescEnabled.Default.(bool)
// alertruleDescNotifyChannels is the schema descriptor for notifyChannels field.
alertruleDescNotifyChannels := alertruleFields[5].Descriptor()
// alertrule.DefaultNotifyChannels holds the default value on creation for the notifyChannels field.
alertrule.DefaultNotifyChannels = alertruleDescNotifyChannels.Default.(string)
// alertrule.NotifyChannelsValidator is a validator for the "notifyChannels" field. It is called by the builders before save.
alertrule.NotifyChannelsValidator = alertruleDescNotifyChannels.Validators[0].(func(string) error)
// 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)
// attachmentDescFileType is the schema descriptor for fileType field.
attachmentDescFileType := attachmentFields[8].Descriptor()
// attachment.DefaultFileType holds the default value on creation for the fileType field.
attachment.DefaultFileType = attachmentDescFileType.Default.(string)
// attachment.FileTypeValidator is a validator for the "fileType" field. It is called by the builders before save.
attachment.FileTypeValidator = attachmentDescFileType.Validators[0].(func(string) error)
// attachmentDescFileExt is the schema descriptor for fileExt field.
attachmentDescFileExt := attachmentFields[9].Descriptor()
// attachment.DefaultFileExt holds the default value on creation for the fileExt field.
attachment.DefaultFileExt = attachmentDescFileExt.Default.(string)
// attachment.FileExtValidator is a validator for the "fileExt" field. It is called by the builders before save.
attachment.FileExtValidator = attachmentDescFileExt.Validators[0].(func(string) error)
// attachmentDescFileMd5 is the schema descriptor for fileMd5 field.
attachmentDescFileMd5 := attachmentFields[10].Descriptor()
// attachment.DefaultFileMd5 holds the default value on creation for the fileMd5 field.
attachment.DefaultFileMd5 = attachmentDescFileMd5.Default.(string)
// attachment.FileMd5Validator is a validator for the "fileMd5" field. It is called by the builders before save.
attachment.FileMd5Validator = attachmentDescFileMd5.Validators[0].(func(string) error)
// attachmentDescMimeType is the schema descriptor for mimeType field.
attachmentDescMimeType := attachmentFields[11].Descriptor()
// attachment.DefaultMimeType holds the default value on creation for the mimeType field.
attachment.DefaultMimeType = attachmentDescMimeType.Default.(string)
// attachment.MimeTypeValidator is a validator for the "mimeType" field. It is called by the builders before save.
attachment.MimeTypeValidator = attachmentDescMimeType.Validators[0].(func(string) error)
// attachmentDescArchived is the schema descriptor for archived field.
attachmentDescArchived := attachmentFields[12].Descriptor()
// attachment.DefaultArchived holds the default value on creation for the archived field.
attachment.DefaultArchived = attachmentDescArchived.Default.(bool)
// attachmentDescArchivedAt is the schema descriptor for archivedAt field.
attachmentDescArchivedAt := attachmentFields[13].Descriptor()
// attachment.DefaultArchivedAt holds the default value on creation for the archivedAt field.
attachment.DefaultArchivedAt = attachmentDescArchivedAt.Default.(int64)
// attachmentDescDeleted is the schema descriptor for deleted field.
attachmentDescDeleted := attachmentFields[14].Descriptor()
// attachment.DefaultDeleted holds the default value on creation for the deleted field.
attachment.DefaultDeleted = attachmentDescDeleted.Default.(bool)
// attachmentDescDeletedAt is the schema descriptor for deletedAt field.
attachmentDescDeletedAt := attachmentFields[15].Descriptor()
// attachment.DefaultDeletedAt holds the default value on creation for the deletedAt field.
attachment.DefaultDeletedAt = attachmentDescDeletedAt.Default.(int64)
// attachmentDescDeletedBy is the schema descriptor for deletedBy field.
attachmentDescDeletedBy := attachmentFields[16].Descriptor()
// attachment.DefaultDeletedBy holds the default value on creation for the deletedBy field.
attachment.DefaultDeletedBy = attachmentDescDeletedBy.Default.(string)
// attachment.DeletedByValidator is a validator for the "deletedBy" field. It is called by the builders before save.
attachment.DeletedByValidator = attachmentDescDeletedBy.Validators[0].(func(string) error)
// attachmentDescDeletedReason is the schema descriptor for deletedReason field.
attachmentDescDeletedReason := attachmentFields[17].Descriptor()
// attachment.DefaultDeletedReason holds the default value on creation for the deletedReason field.
attachment.DefaultDeletedReason = attachmentDescDeletedReason.Default.(string)
// attachment.DeletedReasonValidator is a validator for the "deletedReason" field. It is called by the builders before save.
attachment.DeletedReasonValidator = attachmentDescDeletedReason.Validators[0].(func(string) error)
// attachmentDescPurgedAt is the schema descriptor for purgedAt field.
attachmentDescPurgedAt := attachmentFields[18].Descriptor()
// attachment.DefaultPurgedAt holds the default value on creation for the purgedAt field.
attachment.DefaultPurgedAt = attachmentDescPurgedAt.Default.(int64)
// attachmentDescPurgedBy is the schema descriptor for purgedBy field.
attachmentDescPurgedBy := attachmentFields[19].Descriptor()
// attachment.DefaultPurgedBy holds the default value on creation for the purgedBy field.
attachment.DefaultPurgedBy = attachmentDescPurgedBy.Default.(string)
// attachment.PurgedByValidator is a validator for the "purgedBy" field. It is called by the builders before save.
attachment.PurgedByValidator = attachmentDescPurgedBy.Validators[0].(func(string) error)
// 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)
backuprecordFields := schema.BackupRecord{}.Fields()
_ = backuprecordFields
// backuprecordDescExecutedAt is the schema descriptor for executedAt field.
backuprecordDescExecutedAt := backuprecordFields[1].Descriptor()
// backuprecord.DefaultExecutedAt holds the default value on creation for the executedAt field.
backuprecord.DefaultExecutedAt = backuprecordDescExecutedAt.Default.(func() int64)
// backuprecordDescTotalSize is the schema descriptor for totalSize field.
backuprecordDescTotalSize := backuprecordFields[5].Descriptor()
// backuprecord.DefaultTotalSize holds the default value on creation for the totalSize field.
backuprecord.DefaultTotalSize = backuprecordDescTotalSize.Default.(int64)
// backuprecordDescStatus is the schema descriptor for status field.
backuprecordDescStatus := backuprecordFields[7].Descriptor()
// backuprecord.DefaultStatus holds the default value on creation for the status field.
backuprecord.DefaultStatus = backuprecordDescStatus.Default.(string)
// backuprecord.StatusValidator is a validator for the "status" field. It is called by the builders before save.
backuprecord.StatusValidator = backuprecordDescStatus.Validators[0].(func(string) error)
// backuprecordDescOperator is the schema descriptor for operator field.
backuprecordDescOperator := backuprecordFields[8].Descriptor()
// backuprecord.DefaultOperator holds the default value on creation for the operator field.
backuprecord.DefaultOperator = backuprecordDescOperator.Default.(string)
// backuprecord.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
backuprecord.OperatorValidator = backuprecordDescOperator.Validators[0].(func(string) error)
// backuprecordDescChecksum is the schema descriptor for checksum field.
backuprecordDescChecksum := backuprecordFields[9].Descriptor()
// backuprecord.DefaultChecksum holds the default value on creation for the checksum field.
backuprecord.DefaultChecksum = backuprecordDescChecksum.Default.(string)
// backuprecord.ChecksumValidator is a validator for the "checksum" field. It is called by the builders before save.
backuprecord.ChecksumValidator = backuprecordDescChecksum.Validators[0].(func(string) error)
// backuprecordDescScope is the schema descriptor for scope field.
backuprecordDescScope := backuprecordFields[10].Descriptor()
// backuprecord.DefaultScope holds the default value on creation for the scope field.
backuprecord.DefaultScope = backuprecordDescScope.Default.(string)
// backuprecord.ScopeValidator is a validator for the "scope" field. It is called by the builders before save.
backuprecord.ScopeValidator = backuprecordDescScope.Validators[0].(func(string) error)
// backuprecordDescAckName is the schema descriptor for ackName field.
backuprecordDescAckName := backuprecordFields[11].Descriptor()
// backuprecord.DefaultAckName holds the default value on creation for the ackName field.
backuprecord.DefaultAckName = backuprecordDescAckName.Default.(string)
// backuprecord.AckNameValidator is a validator for the "ackName" field. It is called by the builders before save.
backuprecord.AckNameValidator = backuprecordDescAckName.Validators[0].(func(string) error)
// backuprecordDescAckPhone is the schema descriptor for ackPhone field.
backuprecordDescAckPhone := backuprecordFields[12].Descriptor()
// backuprecord.DefaultAckPhone holds the default value on creation for the ackPhone field.
backuprecord.DefaultAckPhone = backuprecordDescAckPhone.Default.(string)
// backuprecord.AckPhoneValidator is a validator for the "ackPhone" field. It is called by the builders before save.
backuprecord.AckPhoneValidator = backuprecordDescAckPhone.Validators[0].(func(string) error)
// backuprecordDescID is the schema descriptor for id field.
backuprecordDescID := backuprecordFields[0].Descriptor()
// backuprecord.IDValidator is a validator for the "id" field. It is called by the builders before save.
backuprecord.IDValidator = backuprecordDescID.Validators[0].(func(int) error)
callpoolFields := schema.CallPool{}.Fields()
_ = callpoolFields
// callpoolDescMaterialCode is the schema descriptor for materialCode field.
callpoolDescMaterialCode := callpoolFields[2].Descriptor()
// callpool.MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
callpool.MaterialCodeValidator = callpoolDescMaterialCode.Validators[0].(func(string) error)
// callpoolDescMaterialName is the schema descriptor for materialName field.
callpoolDescMaterialName := callpoolFields[3].Descriptor()
// callpool.DefaultMaterialName holds the default value on creation for the materialName field.
callpool.DefaultMaterialName = callpoolDescMaterialName.Default.(string)
// callpool.MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
callpool.MaterialNameValidator = callpoolDescMaterialName.Validators[0].(func(string) error)
// callpoolDescUnit is the schema descriptor for unit field.
callpoolDescUnit := callpoolFields[4].Descriptor()
// callpool.DefaultUnit holds the default value on creation for the unit field.
callpool.DefaultUnit = callpoolDescUnit.Default.(string)
// callpool.UnitValidator is a validator for the "unit" field. It is called by the builders before save.
callpool.UnitValidator = callpoolDescUnit.Validators[0].(func(string) error)
// callpoolDescSnMode is the schema descriptor for snMode field.
callpoolDescSnMode := callpoolFields[5].Descriptor()
// callpool.DefaultSnMode holds the default value on creation for the snMode field.
callpool.DefaultSnMode = callpoolDescSnMode.Default.(int)
// callpoolDescReqQty is the schema descriptor for reqQty field.
callpoolDescReqQty := callpoolFields[6].Descriptor()
// callpool.DefaultReqQty holds the default value on creation for the reqQty field.
callpool.DefaultReqQty = callpoolDescReqQty.Default.(int)
// callpoolDescAdjQty is the schema descriptor for adjQty field.
callpoolDescAdjQty := callpoolFields[7].Descriptor()
// callpool.DefaultAdjQty holds the default value on creation for the adjQty field.
callpool.DefaultAdjQty = callpoolDescAdjQty.Default.(int)
// callpoolDescSentQty is the schema descriptor for sentQty field.
callpoolDescSentQty := callpoolFields[8].Descriptor()
// callpool.DefaultSentQty holds the default value on creation for the sentQty field.
callpool.DefaultSentQty = callpoolDescSentQty.Default.(int)
// callpoolDescReservedQty is the schema descriptor for reservedQty field.
callpoolDescReservedQty := callpoolFields[9].Descriptor()
// callpool.DefaultReservedQty holds the default value on creation for the reservedQty field.
callpool.DefaultReservedQty = callpoolDescReservedQty.Default.(int)
// callpoolDescCrossDay is the schema descriptor for crossDay field.
callpoolDescCrossDay := callpoolFields[10].Descriptor()
// callpool.DefaultCrossDay holds the default value on creation for the crossDay field.
callpool.DefaultCrossDay = callpoolDescCrossDay.Default.(bool)
// callpoolDescPlanDates is the schema descriptor for planDates field.
callpoolDescPlanDates := callpoolFields[11].Descriptor()
// callpool.DefaultPlanDates holds the default value on creation for the planDates field.
callpool.DefaultPlanDates = callpoolDescPlanDates.Default.(string)
// callpool.PlanDatesValidator is a validator for the "planDates" field. It is called by the builders before save.
callpool.PlanDatesValidator = callpoolDescPlanDates.Validators[0].(func(string) error)
// callpoolDescCreatedAt is the schema descriptor for createdAt field.
callpoolDescCreatedAt := callpoolFields[12].Descriptor()
// callpool.DefaultCreatedAt holds the default value on creation for the createdAt field.
callpool.DefaultCreatedAt = callpoolDescCreatedAt.Default.(func() time.Time)
// callpoolDescUpdatedAt is the schema descriptor for updatedAt field.
callpoolDescUpdatedAt := callpoolFields[13].Descriptor()
// callpool.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
callpool.DefaultUpdatedAt = callpoolDescUpdatedAt.Default.(func() time.Time)
// callpool.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
callpool.UpdateDefaultUpdatedAt = callpoolDescUpdatedAt.UpdateDefault.(func() time.Time)
// callpoolDescID is the schema descriptor for id field.
callpoolDescID := callpoolFields[0].Descriptor()
// callpool.IDValidator is a validator for the "id" field. It is called by the builders before save.
callpool.IDValidator = callpoolDescID.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)
dockFields := schema.Dock{}.Fields()
_ = dockFields
// dockDescDockCode is the schema descriptor for dockCode field.
dockDescDockCode := dockFields[0].Descriptor()
// dock.DockCodeValidator is a validator for the "dockCode" field. It is called by the builders before save.
dock.DockCodeValidator = dockDescDockCode.Validators[0].(func(string) error)
// dockDescName is the schema descriptor for name field.
dockDescName := dockFields[1].Descriptor()
// dock.DefaultName holds the default value on creation for the name field.
dock.DefaultName = dockDescName.Default.(string)
// dock.NameValidator is a validator for the "name" field. It is called by the builders before save.
dock.NameValidator = dockDescName.Validators[0].(func(string) error)
// dockDescDockType is the schema descriptor for dockType field.
dockDescDockType := dockFields[2].Descriptor()
// dock.DefaultDockType holds the default value on creation for the dockType field.
dock.DefaultDockType = dockDescDockType.Default.(string)
// dock.DockTypeValidator is a validator for the "dockType" field. It is called by the builders before save.
dock.DockTypeValidator = dockDescDockType.Validators[0].(func(string) error)
// dockDescStationNo is the schema descriptor for stationNo field.
dockDescStationNo := dockFields[3].Descriptor()
// dock.DefaultStationNo holds the default value on creation for the stationNo field.
dock.DefaultStationNo = dockDescStationNo.Default.(int)
// dockDescHasPallet is the schema descriptor for hasPallet field.
dockDescHasPallet := dockFields[4].Descriptor()
// dock.DefaultHasPallet holds the default value on creation for the hasPallet field.
dock.DefaultHasPallet = dockDescHasPallet.Default.(bool)
// dockDescPalletRef is the schema descriptor for palletRef field.
dockDescPalletRef := dockFields[5].Descriptor()
// dock.DefaultPalletRef holds the default value on creation for the palletRef field.
dock.DefaultPalletRef = dockDescPalletRef.Default.(string)
// dock.PalletRefValidator is a validator for the "palletRef" field. It is called by the builders before save.
dock.PalletRefValidator = dockDescPalletRef.Validators[0].(func(string) error)
// dockDescStatus is the schema descriptor for status field.
dockDescStatus := dockFields[6].Descriptor()
// dock.DefaultStatus holds the default value on creation for the status field.
dock.DefaultStatus = dockDescStatus.Default.(string)
// dock.StatusValidator is a validator for the "status" field. It is called by the builders before save.
dock.StatusValidator = dockDescStatus.Validators[0].(func(string) error)
// dockDescCreatedAt is the schema descriptor for createdAt field.
dockDescCreatedAt := dockFields[7].Descriptor()
// dock.DefaultCreatedAt holds the default value on creation for the createdAt field.
dock.DefaultCreatedAt = dockDescCreatedAt.Default.(func() time.Time)
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)
flowmaterialFields := schema.FlowMaterial{}.Fields()
_ = flowmaterialFields
// flowmaterialDescMaterialCode is the schema descriptor for materialCode field.
flowmaterialDescMaterialCode := flowmaterialFields[2].Descriptor()
// flowmaterial.MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
flowmaterial.MaterialCodeValidator = flowmaterialDescMaterialCode.Validators[0].(func(string) error)
// flowmaterialDescMaterialName is the schema descriptor for materialName field.
flowmaterialDescMaterialName := flowmaterialFields[3].Descriptor()
// flowmaterial.DefaultMaterialName holds the default value on creation for the materialName field.
flowmaterial.DefaultMaterialName = flowmaterialDescMaterialName.Default.(string)
// flowmaterial.MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
flowmaterial.MaterialNameValidator = flowmaterialDescMaterialName.Validators[0].(func(string) error)
// flowmaterialDescSpec is the schema descriptor for spec field.
flowmaterialDescSpec := flowmaterialFields[4].Descriptor()
// flowmaterial.DefaultSpec holds the default value on creation for the spec field.
flowmaterial.DefaultSpec = flowmaterialDescSpec.Default.(string)
// flowmaterial.SpecValidator is a validator for the "spec" field. It is called by the builders before save.
flowmaterial.SpecValidator = flowmaterialDescSpec.Validators[0].(func(string) error)
// flowmaterialDescUnit is the schema descriptor for unit field.
flowmaterialDescUnit := flowmaterialFields[5].Descriptor()
// flowmaterial.DefaultUnit holds the default value on creation for the unit field.
flowmaterial.DefaultUnit = flowmaterialDescUnit.Default.(string)
// flowmaterial.UnitValidator is a validator for the "unit" field. It is called by the builders before save.
flowmaterial.UnitValidator = flowmaterialDescUnit.Validators[0].(func(string) error)
// flowmaterialDescSnMode is the schema descriptor for snMode field.
flowmaterialDescSnMode := flowmaterialFields[6].Descriptor()
// flowmaterial.DefaultSnMode holds the default value on creation for the snMode field.
flowmaterial.DefaultSnMode = flowmaterialDescSnMode.Default.(int)
// flowmaterialDescUnitQty is the schema descriptor for unitQty field.
flowmaterialDescUnitQty := flowmaterialFields[7].Descriptor()
// flowmaterial.DefaultUnitQty holds the default value on creation for the unitQty field.
flowmaterial.DefaultUnitQty = flowmaterialDescUnitQty.Default.(float64)
// flowmaterialDescLossRate is the schema descriptor for lossRate field.
flowmaterialDescLossRate := flowmaterialFields[8].Descriptor()
// flowmaterial.DefaultLossRate holds the default value on creation for the lossRate field.
flowmaterial.DefaultLossRate = flowmaterialDescLossRate.Default.(float64)
// flowmaterialDescCreatedAt is the schema descriptor for createdAt field.
flowmaterialDescCreatedAt := flowmaterialFields[9].Descriptor()
// flowmaterial.DefaultCreatedAt holds the default value on creation for the createdAt field.
flowmaterial.DefaultCreatedAt = flowmaterialDescCreatedAt.Default.(func() time.Time)
// flowmaterialDescID is the schema descriptor for id field.
flowmaterialDescID := flowmaterialFields[0].Descriptor()
// flowmaterial.IDValidator is a validator for the "id" field. It is called by the builders before save.
flowmaterial.IDValidator = flowmaterialDescID.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)
// inspectionrecordDescBatchSn is the schema descriptor for batchSn field.
inspectionrecordDescBatchSn := inspectionrecordFields[23].Descriptor()
// inspectionrecord.BatchSnValidator is a validator for the "batchSn" field. It is called by the builders before save.
inspectionrecord.BatchSnValidator = inspectionrecordDescBatchSn.Validators[0].(func(string) error)
// inspectionrecordDescRelatedStandard is the schema descriptor for relatedStandard field.
inspectionrecordDescRelatedStandard := inspectionrecordFields[24].Descriptor()
// inspectionrecord.RelatedStandardValidator is a validator for the "relatedStandard" field. It is called by the builders before save.
inspectionrecord.RelatedStandardValidator = inspectionrecordDescRelatedStandard.Validators[0].(func(string) error)
// inspectionrecordDescTestRecordNo is the schema descriptor for testRecordNo field.
inspectionrecordDescTestRecordNo := inspectionrecordFields[25].Descriptor()
// inspectionrecord.TestRecordNoValidator is a validator for the "testRecordNo" field. It is called by the builders before save.
inspectionrecord.TestRecordNoValidator = inspectionrecordDescTestRecordNo.Validators[0].(func(string) error)
// inspectionrecordDescCreatedAt is the schema descriptor for createdAt field.
inspectionrecordDescCreatedAt := inspectionrecordFields[26].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)
materialFields := schema.Material{}.Fields()
_ = materialFields
// materialDescCode is the schema descriptor for code field.
materialDescCode := materialFields[0].Descriptor()
// material.CodeValidator is a validator for the "code" field. It is called by the builders before save.
material.CodeValidator = materialDescCode.Validators[0].(func(string) error)
// materialDescName is the schema descriptor for name field.
materialDescName := materialFields[1].Descriptor()
// material.NameValidator is a validator for the "name" field. It is called by the builders before save.
material.NameValidator = materialDescName.Validators[0].(func(string) error)
// materialDescSpec is the schema descriptor for spec field.
materialDescSpec := materialFields[2].Descriptor()
// material.DefaultSpec holds the default value on creation for the spec field.
material.DefaultSpec = materialDescSpec.Default.(string)
// material.SpecValidator is a validator for the "spec" field. It is called by the builders before save.
material.SpecValidator = materialDescSpec.Validators[0].(func(string) error)
// materialDescUnit is the schema descriptor for unit field.
materialDescUnit := materialFields[3].Descriptor()
// material.DefaultUnit holds the default value on creation for the unit field.
material.DefaultUnit = materialDescUnit.Default.(string)
// material.UnitValidator is a validator for the "unit" field. It is called by the builders before save.
material.UnitValidator = materialDescUnit.Validators[0].(func(string) error)
// materialDescDescription is the schema descriptor for description field.
materialDescDescription := materialFields[4].Descriptor()
// material.DefaultDescription holds the default value on creation for the description field.
material.DefaultDescription = materialDescDescription.Default.(string)
// material.DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
material.DescriptionValidator = materialDescDescription.Validators[0].(func(string) error)
// materialDescItemType is the schema descriptor for itemType field.
materialDescItemType := materialFields[5].Descriptor()
// material.DefaultItemType holds the default value on creation for the itemType field.
material.DefaultItemType = materialDescItemType.Default.(int)
// materialDescManageMode is the schema descriptor for manageMode field.
materialDescManageMode := materialFields[6].Descriptor()
// material.DefaultManageMode holds the default value on creation for the manageMode field.
material.DefaultManageMode = materialDescManageMode.Default.(int)
// materialDescSnMode is the schema descriptor for snMode field.
materialDescSnMode := materialFields[7].Descriptor()
// material.DefaultSnMode holds the default value on creation for the snMode field.
material.DefaultSnMode = materialDescSnMode.Default.(int)
// materialDescTemplateCode is the schema descriptor for templateCode field.
materialDescTemplateCode := materialFields[8].Descriptor()
// material.DefaultTemplateCode holds the default value on creation for the templateCode field.
material.DefaultTemplateCode = materialDescTemplateCode.Default.(string)
// material.TemplateCodeValidator is a validator for the "templateCode" field. It is called by the builders before save.
material.TemplateCodeValidator = materialDescTemplateCode.Validators[0].(func(string) error)
// materialDescSafetyStock is the schema descriptor for safetyStock field.
materialDescSafetyStock := materialFields[9].Descriptor()
// material.DefaultSafetyStock holds the default value on creation for the safetyStock field.
material.DefaultSafetyStock = materialDescSafetyStock.Default.(int)
// materialDescIsActive is the schema descriptor for isActive field.
materialDescIsActive := materialFields[10].Descriptor()
// material.DefaultIsActive holds the default value on creation for the isActive field.
material.DefaultIsActive = materialDescIsActive.Default.(bool)
// materialDescSyncPending is the schema descriptor for syncPending field.
materialDescSyncPending := materialFields[11].Descriptor()
// material.DefaultSyncPending holds the default value on creation for the syncPending field.
material.DefaultSyncPending = materialDescSyncPending.Default.(bool)
// materialDescCreatedAt is the schema descriptor for createdAt field.
materialDescCreatedAt := materialFields[12].Descriptor()
// material.DefaultCreatedAt holds the default value on creation for the createdAt field.
material.DefaultCreatedAt = materialDescCreatedAt.Default.(func() time.Time)
// materialDescUpdatedAt is the schema descriptor for updatedAt field.
materialDescUpdatedAt := materialFields[13].Descriptor()
// material.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
material.DefaultUpdatedAt = materialDescUpdatedAt.Default.(func() time.Time)
// material.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
material.UpdateDefaultUpdatedAt = materialDescUpdatedAt.UpdateDefault.(func() time.Time)
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)
// materialqtyreportDescHandleType is the schema descriptor for handleType field.
materialqtyreportDescHandleType := materialqtyreportFields[11].Descriptor()
// materialqtyreport.DefaultHandleType holds the default value on creation for the handleType field.
materialqtyreport.DefaultHandleType = materialqtyreportDescHandleType.Default.(string)
// materialqtyreport.HandleTypeValidator is a validator for the "handleType" field. It is called by the builders before save.
materialqtyreport.HandleTypeValidator = materialqtyreportDescHandleType.Validators[0].(func(string) error)
// materialqtyreportDescHandleDocNo is the schema descriptor for handleDocNo field.
materialqtyreportDescHandleDocNo := materialqtyreportFields[12].Descriptor()
// materialqtyreport.DefaultHandleDocNo holds the default value on creation for the handleDocNo field.
materialqtyreport.DefaultHandleDocNo = materialqtyreportDescHandleDocNo.Default.(string)
// materialqtyreport.HandleDocNoValidator is a validator for the "handleDocNo" field. It is called by the builders before save.
materialqtyreport.HandleDocNoValidator = materialqtyreportDescHandleDocNo.Validators[0].(func(string) error)
// materialqtyreportDescHandleNote is the schema descriptor for handleNote field.
materialqtyreportDescHandleNote := materialqtyreportFields[13].Descriptor()
// materialqtyreport.DefaultHandleNote holds the default value on creation for the handleNote field.
materialqtyreport.DefaultHandleNote = materialqtyreportDescHandleNote.Default.(string)
// materialqtyreport.HandleNoteValidator is a validator for the "handleNote" field. It is called by the builders before save.
materialqtyreport.HandleNoteValidator = materialqtyreportDescHandleNote.Validators[0].(func(string) error)
// materialqtyreportDescHandledBy is the schema descriptor for handledBy field.
materialqtyreportDescHandledBy := materialqtyreportFields[14].Descriptor()
// materialqtyreport.DefaultHandledBy holds the default value on creation for the handledBy field.
materialqtyreport.DefaultHandledBy = materialqtyreportDescHandledBy.Default.(string)
// materialqtyreport.HandledByValidator is a validator for the "handledBy" field. It is called by the builders before save.
materialqtyreport.HandledByValidator = materialqtyreportDescHandledBy.Validators[0].(func(string) error)
// materialqtyreportDescHandledAt is the schema descriptor for handledAt field.
materialqtyreportDescHandledAt := materialqtyreportFields[15].Descriptor()
// materialqtyreport.DefaultHandledAt holds the default value on creation for the handledAt field.
materialqtyreport.DefaultHandledAt = materialqtyreportDescHandledAt.Default.(int64)
// materialqtyreportDescOperator is the schema descriptor for operator field.
materialqtyreportDescOperator := materialqtyreportFields[16].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[17].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)
// materialrequestDescMaterialCode is the schema descriptor for materialCode field.
materialrequestDescMaterialCode := materialrequestFields[2].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[3].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[4].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)
// materialrequestDescSnMode is the schema descriptor for snMode field.
materialrequestDescSnMode := materialrequestFields[5].Descriptor()
// materialrequest.DefaultSnMode holds the default value on creation for the snMode field.
materialrequest.DefaultSnMode = materialrequestDescSnMode.Default.(int)
// materialrequestDescReqQty is the schema descriptor for reqQty field.
materialrequestDescReqQty := materialrequestFields[6].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[7].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[8].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)
// materialrequestDescStationNo is the schema descriptor for stationNo field.
materialrequestDescStationNo := materialrequestFields[9].Descriptor()
// materialrequest.DefaultStationNo holds the default value on creation for the stationNo field.
materialrequest.DefaultStationNo = materialrequestDescStationNo.Default.(int)
// materialrequestDescSentQty is the schema descriptor for sentQty field.
materialrequestDescSentQty := materialrequestFields[10].Descriptor()
// materialrequest.DefaultSentQty holds the default value on creation for the sentQty field.
materialrequest.DefaultSentQty = materialrequestDescSentQty.Default.(float64)
// materialrequestDescReturnedQty is the schema descriptor for returnedQty field.
materialrequestDescReturnedQty := materialrequestFields[11].Descriptor()
// materialrequest.DefaultReturnedQty holds the default value on creation for the returnedQty field.
materialrequest.DefaultReturnedQty = materialrequestDescReturnedQty.Default.(float64)
// materialrequestDescSource is the schema descriptor for source field.
materialrequestDescSource := materialrequestFields[12].Descriptor()
// materialrequest.DefaultSource holds the default value on creation for the source field.
materialrequest.DefaultSource = materialrequestDescSource.Default.(string)
// materialrequest.SourceValidator is a validator for the "source" field. It is called by the builders before save.
materialrequest.SourceValidator = materialrequestDescSource.Validators[0].(func(string) error)
// materialrequestDescRefReportNo is the schema descriptor for refReportNo field.
materialrequestDescRefReportNo := materialrequestFields[13].Descriptor()
// materialrequest.DefaultRefReportNo holds the default value on creation for the refReportNo field.
materialrequest.DefaultRefReportNo = materialrequestDescRefReportNo.Default.(string)
// materialrequest.RefReportNoValidator is a validator for the "refReportNo" field. It is called by the builders before save.
materialrequest.RefReportNoValidator = materialrequestDescRefReportNo.Validators[0].(func(string) error)
// materialrequestDescNeedAgv is the schema descriptor for needAgv field.
materialrequestDescNeedAgv := materialrequestFields[14].Descriptor()
// materialrequest.DefaultNeedAgv holds the default value on creation for the needAgv field.
materialrequest.DefaultNeedAgv = materialrequestDescNeedAgv.Default.(bool)
// materialrequestDescAgvTaskNo is the schema descriptor for agvTaskNo field.
materialrequestDescAgvTaskNo := materialrequestFields[15].Descriptor()
// materialrequest.DefaultAgvTaskNo holds the default value on creation for the agvTaskNo field.
materialrequest.DefaultAgvTaskNo = materialrequestDescAgvTaskNo.Default.(string)
// materialrequest.AgvTaskNoValidator is a validator for the "agvTaskNo" field. It is called by the builders before save.
materialrequest.AgvTaskNoValidator = materialrequestDescAgvTaskNo.Validators[0].(func(string) error)
// materialrequestDescCrossDay is the schema descriptor for crossDay field.
materialrequestDescCrossDay := materialrequestFields[16].Descriptor()
// materialrequest.DefaultCrossDay holds the default value on creation for the crossDay field.
materialrequest.DefaultCrossDay = materialrequestDescCrossDay.Default.(bool)
// materialrequestDescOutboundNo is the schema descriptor for outboundNo field.
materialrequestDescOutboundNo := materialrequestFields[17].Descriptor()
// materialrequest.DefaultOutboundNo holds the default value on creation for the outboundNo field.
materialrequest.DefaultOutboundNo = materialrequestDescOutboundNo.Default.(string)
// materialrequest.OutboundNoValidator is a validator for the "outboundNo" field. It is called by the builders before save.
materialrequest.OutboundNoValidator = materialrequestDescOutboundNo.Validators[0].(func(string) error)
// materialrequestDescRejectReason is the schema descriptor for rejectReason field.
materialrequestDescRejectReason := materialrequestFields[18].Descriptor()
// materialrequest.DefaultRejectReason holds the default value on creation for the rejectReason field.
materialrequest.DefaultRejectReason = materialrequestDescRejectReason.Default.(string)
// materialrequest.RejectReasonValidator is a validator for the "rejectReason" field. It is called by the builders before save.
materialrequest.RejectReasonValidator = materialrequestDescRejectReason.Validators[0].(func(string) error)
// materialrequestDescOperator is the schema descriptor for operator field.
materialrequestDescOperator := materialrequestFields[19].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[20].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[21].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)
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)
// processstepDescNeedCheck is the schema descriptor for needCheck field.
processstepDescNeedCheck := processstepFields[5].Descriptor()
// processstep.DefaultNeedCheck holds the default value on creation for the needCheck field.
processstep.DefaultNeedCheck = processstepDescNeedCheck.Default.(bool)
// processstepDescNeedOperatorSign is the schema descriptor for needOperatorSign field.
processstepDescNeedOperatorSign := processstepFields[6].Descriptor()
// processstep.DefaultNeedOperatorSign holds the default value on creation for the needOperatorSign field.
processstep.DefaultNeedOperatorSign = processstepDescNeedOperatorSign.Default.(bool)
// processstepDescNeedInspectorSign is the schema descriptor for needInspectorSign field.
processstepDescNeedInspectorSign := processstepFields[7].Descriptor()
// processstep.DefaultNeedInspectorSign holds the default value on creation for the needInspectorSign field.
processstep.DefaultNeedInspectorSign = processstepDescNeedInspectorSign.Default.(bool)
// processstepDescNeedAudit is the schema descriptor for needAudit field.
processstepDescNeedAudit := processstepFields[8].Descriptor()
// processstep.DefaultNeedAudit holds the default value on creation for the needAudit field.
processstep.DefaultNeedAudit = processstepDescNeedAudit.Default.(bool)
// processstepDescAuditRole is the schema descriptor for auditRole field.
processstepDescAuditRole := processstepFields[9].Descriptor()
// processstep.DefaultAuditRole holds the default value on creation for the auditRole field.
processstep.DefaultAuditRole = processstepDescAuditRole.Default.(string)
// processstep.AuditRoleValidator is a validator for the "auditRole" field. It is called by the builders before save.
processstep.AuditRoleValidator = processstepDescAuditRole.Validators[0].(func(string) error)
// processstepDescRemark is the schema descriptor for remark field.
processstepDescRemark := processstepFields[11].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[12].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)
productprocessFields := schema.ProductProcess{}.Fields()
_ = productprocessFields
// productprocessDescProductCode is the schema descriptor for productCode field.
productprocessDescProductCode := productprocessFields[1].Descriptor()
// productprocess.ProductCodeValidator is a validator for the "productCode" field. It is called by the builders before save.
productprocess.ProductCodeValidator = productprocessDescProductCode.Validators[0].(func(string) error)
// productprocessDescProductName is the schema descriptor for productName field.
productprocessDescProductName := productprocessFields[2].Descriptor()
// productprocess.DefaultProductName holds the default value on creation for the productName field.
productprocess.DefaultProductName = productprocessDescProductName.Default.(string)
// productprocess.ProductNameValidator is a validator for the "productName" field. It is called by the builders before save.
productprocess.ProductNameValidator = productprocessDescProductName.Validators[0].(func(string) error)
// productprocessDescName is the schema descriptor for name field.
productprocessDescName := productprocessFields[3].Descriptor()
// productprocess.NameValidator is a validator for the "name" field. It is called by the builders before save.
productprocess.NameValidator = productprocessDescName.Validators[0].(func(string) error)
// productprocessDescStatus is the schema descriptor for status field.
productprocessDescStatus := productprocessFields[4].Descriptor()
// productprocess.DefaultStatus holds the default value on creation for the status field.
productprocess.DefaultStatus = productprocessDescStatus.Default.(string)
// productprocess.StatusValidator is a validator for the "status" field. It is called by the builders before save.
productprocess.StatusValidator = productprocessDescStatus.Validators[0].(func(string) error)
// productprocessDescRemark is the schema descriptor for remark field.
productprocessDescRemark := productprocessFields[5].Descriptor()
// productprocess.DefaultRemark holds the default value on creation for the remark field.
productprocess.DefaultRemark = productprocessDescRemark.Default.(string)
// productprocess.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
productprocess.RemarkValidator = productprocessDescRemark.Validators[0].(func(string) error)
// productprocessDescCreatedAt is the schema descriptor for createdAt field.
productprocessDescCreatedAt := productprocessFields[6].Descriptor()
// productprocess.DefaultCreatedAt holds the default value on creation for the createdAt field.
productprocess.DefaultCreatedAt = productprocessDescCreatedAt.Default.(func() time.Time)
// productprocessDescID is the schema descriptor for id field.
productprocessDescID := productprocessFields[0].Descriptor()
// productprocess.IDValidator is a validator for the "id" field. It is called by the builders before save.
productprocess.IDValidator = productprocessDescID.Validators[0].(func(int) error)
productprocessitemFields := schema.ProductProcessItem{}.Fields()
_ = productprocessitemFields
// productprocessitemDescCreatedAt is the schema descriptor for createdAt field.
productprocessitemDescCreatedAt := productprocessitemFields[4].Descriptor()
// productprocessitem.DefaultCreatedAt holds the default value on creation for the createdAt field.
productprocessitem.DefaultCreatedAt = productprocessitemDescCreatedAt.Default.(func() time.Time)
// productprocessitemDescID is the schema descriptor for id field.
productprocessitemDescID := productprocessitemFields[0].Descriptor()
// productprocessitem.IDValidator is a validator for the "id" field. It is called by the builders before save.
productprocessitem.IDValidator = productprocessitemDescID.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)
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)
// semiflowDescCompletedText is the schema descriptor for completedText field.
semiflowDescCompletedText := semiflowFields[4].Descriptor()
// semiflow.DefaultCompletedText holds the default value on creation for the completedText field.
semiflow.DefaultCompletedText = semiflowDescCompletedText.Default.(string)
// semiflow.CompletedTextValidator is a validator for the "completedText" field. It is called by the builders before save.
semiflow.CompletedTextValidator = semiflowDescCompletedText.Validators[0].(func(string) error)
// semiflowDescAction is the schema descriptor for action field.
semiflowDescAction := semiflowFields[5].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[6].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[7].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[8].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)
// stationDescIsBuiltin is the schema descriptor for isBuiltin field.
stationDescIsBuiltin := stationFields[6].Descriptor()
// station.DefaultIsBuiltin holds the default value on creation for the isBuiltin field.
station.DefaultIsBuiltin = stationDescIsBuiltin.Default.(bool)
// stationDescCreatedAt is the schema descriptor for createdAt field.
stationDescCreatedAt := stationFields[8].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)
stationstateFields := schema.StationState{}.Fields()
_ = stationstateFields
// stationstateDescDate is the schema descriptor for date field.
stationstateDescDate := stationstateFields[2].Descriptor()
// stationstate.DateValidator is a validator for the "date" field. It is called by the builders before save.
stationstate.DateValidator = stationstateDescDate.Validators[0].(func(string) error)
// stationstateDescPaused is the schema descriptor for paused field.
stationstateDescPaused := stationstateFields[3].Descriptor()
// stationstate.DefaultPaused holds the default value on creation for the paused field.
stationstate.DefaultPaused = stationstateDescPaused.Default.(bool)
// stationstateDescReason is the schema descriptor for reason field.
stationstateDescReason := stationstateFields[4].Descriptor()
// stationstate.DefaultReason holds the default value on creation for the reason field.
stationstate.DefaultReason = stationstateDescReason.Default.(string)
// stationstate.ReasonValidator is a validator for the "reason" field. It is called by the builders before save.
stationstate.ReasonValidator = stationstateDescReason.Validators[0].(func(string) error)
// stationstateDescOperator is the schema descriptor for operator field.
stationstateDescOperator := stationstateFields[5].Descriptor()
// stationstate.DefaultOperator holds the default value on creation for the operator field.
stationstate.DefaultOperator = stationstateDescOperator.Default.(string)
// stationstate.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
stationstate.OperatorValidator = stationstateDescOperator.Validators[0].(func(string) error)
// stationstateDescCreatedAt is the schema descriptor for createdAt field.
stationstateDescCreatedAt := stationstateFields[6].Descriptor()
// stationstate.DefaultCreatedAt holds the default value on creation for the createdAt field.
stationstate.DefaultCreatedAt = stationstateDescCreatedAt.Default.(func() time.Time)
// stationstateDescUpdatedAt is the schema descriptor for updatedAt field.
stationstateDescUpdatedAt := stationstateFields[7].Descriptor()
// stationstate.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
stationstate.DefaultUpdatedAt = stationstateDescUpdatedAt.Default.(func() time.Time)
// stationstate.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
stationstate.UpdateDefaultUpdatedAt = stationstateDescUpdatedAt.UpdateDefault.(func() time.Time)
// stationstateDescID is the schema descriptor for id field.
stationstateDescID := stationstateFields[0].Descriptor()
// stationstate.IDValidator is a validator for the "id" field. It is called by the builders before save.
stationstate.IDValidator = stationstateDescID.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)
stepsignrecordFields := schema.StepSignRecord{}.Fields()
_ = stepsignrecordFields
// stepsignrecordDescSn is the schema descriptor for sn field.
stepsignrecordDescSn := stepsignrecordFields[1].Descriptor()
// stepsignrecord.DefaultSn holds the default value on creation for the sn field.
stepsignrecord.DefaultSn = stepsignrecordDescSn.Default.(string)
// stepsignrecord.SnValidator is a validator for the "sn" field. It is called by the builders before save.
stepsignrecord.SnValidator = stepsignrecordDescSn.Validators[0].(func(string) error)
// stepsignrecordDescOrderNo is the schema descriptor for orderNo field.
stepsignrecordDescOrderNo := stepsignrecordFields[2].Descriptor()
// stepsignrecord.DefaultOrderNo holds the default value on creation for the orderNo field.
stepsignrecord.DefaultOrderNo = stepsignrecordDescOrderNo.Default.(string)
// stepsignrecord.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
stepsignrecord.OrderNoValidator = stepsignrecordDescOrderNo.Validators[0].(func(string) error)
// stepsignrecordDescFlowId is the schema descriptor for flowId field.
stepsignrecordDescFlowId := stepsignrecordFields[3].Descriptor()
// stepsignrecord.DefaultFlowId holds the default value on creation for the flowId field.
stepsignrecord.DefaultFlowId = stepsignrecordDescFlowId.Default.(int)
// stepsignrecordDescStationNo is the schema descriptor for stationNo field.
stepsignrecordDescStationNo := stepsignrecordFields[4].Descriptor()
// stepsignrecord.DefaultStationNo holds the default value on creation for the stationNo field.
stepsignrecord.DefaultStationNo = stepsignrecordDescStationNo.Default.(string)
// stepsignrecord.StationNoValidator is a validator for the "stationNo" field. It is called by the builders before save.
stepsignrecord.StationNoValidator = stepsignrecordDescStationNo.Validators[0].(func(string) error)
// stepsignrecordDescStepId is the schema descriptor for stepId field.
stepsignrecordDescStepId := stepsignrecordFields[5].Descriptor()
// stepsignrecord.DefaultStepId holds the default value on creation for the stepId field.
stepsignrecord.DefaultStepId = stepsignrecordDescStepId.Default.(int)
// stepsignrecordDescStepName is the schema descriptor for stepName field.
stepsignrecordDescStepName := stepsignrecordFields[6].Descriptor()
// stepsignrecord.DefaultStepName holds the default value on creation for the stepName field.
stepsignrecord.DefaultStepName = stepsignrecordDescStepName.Default.(string)
// stepsignrecord.StepNameValidator is a validator for the "stepName" field. It is called by the builders before save.
stepsignrecord.StepNameValidator = stepsignrecordDescStepName.Validators[0].(func(string) error)
// stepsignrecordDescSignRole is the schema descriptor for signRole field.
stepsignrecordDescSignRole := stepsignrecordFields[7].Descriptor()
// stepsignrecord.DefaultSignRole holds the default value on creation for the signRole field.
stepsignrecord.DefaultSignRole = stepsignrecordDescSignRole.Default.(string)
// stepsignrecord.SignRoleValidator is a validator for the "signRole" field. It is called by the builders before save.
stepsignrecord.SignRoleValidator = stepsignrecordDescSignRole.Validators[0].(func(string) error)
// stepsignrecordDescResult is the schema descriptor for result field.
stepsignrecordDescResult := stepsignrecordFields[8].Descriptor()
// stepsignrecord.DefaultResult holds the default value on creation for the result field.
stepsignrecord.DefaultResult = stepsignrecordDescResult.Default.(string)
// stepsignrecord.ResultValidator is a validator for the "result" field. It is called by the builders before save.
stepsignrecord.ResultValidator = stepsignrecordDescResult.Validators[0].(func(string) error)
// stepsignrecordDescSignedBy is the schema descriptor for signedBy field.
stepsignrecordDescSignedBy := stepsignrecordFields[9].Descriptor()
// stepsignrecord.DefaultSignedBy holds the default value on creation for the signedBy field.
stepsignrecord.DefaultSignedBy = stepsignrecordDescSignedBy.Default.(string)
// stepsignrecord.SignedByValidator is a validator for the "signedBy" field. It is called by the builders before save.
stepsignrecord.SignedByValidator = stepsignrecordDescSignedBy.Validators[0].(func(string) error)
// stepsignrecordDescSignedAt is the schema descriptor for signedAt field.
stepsignrecordDescSignedAt := stepsignrecordFields[10].Descriptor()
// stepsignrecord.DefaultSignedAt holds the default value on creation for the signedAt field.
stepsignrecord.DefaultSignedAt = stepsignrecordDescSignedAt.Default.(func() time.Time)
// stepsignrecordDescRound is the schema descriptor for round field.
stepsignrecordDescRound := stepsignrecordFields[11].Descriptor()
// stepsignrecord.DefaultRound holds the default value on creation for the round field.
stepsignrecord.DefaultRound = stepsignrecordDescRound.Default.(int)
// stepsignrecordDescSource is the schema descriptor for source field.
stepsignrecordDescSource := stepsignrecordFields[12].Descriptor()
// stepsignrecord.DefaultSource holds the default value on creation for the source field.
stepsignrecord.DefaultSource = stepsignrecordDescSource.Default.(string)
// stepsignrecord.SourceValidator is a validator for the "source" field. It is called by the builders before save.
stepsignrecord.SourceValidator = stepsignrecordDescSource.Validators[0].(func(string) error)
// stepsignrecordDescRemark is the schema descriptor for remark field.
stepsignrecordDescRemark := stepsignrecordFields[13].Descriptor()
// stepsignrecord.DefaultRemark holds the default value on creation for the remark field.
stepsignrecord.DefaultRemark = stepsignrecordDescRemark.Default.(string)
// stepsignrecord.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
stepsignrecord.RemarkValidator = stepsignrecordDescRemark.Validators[0].(func(string) error)
// stepsignrecordDescRevoked is the schema descriptor for revoked field.
stepsignrecordDescRevoked := stepsignrecordFields[14].Descriptor()
// stepsignrecord.DefaultRevoked holds the default value on creation for the revoked field.
stepsignrecord.DefaultRevoked = stepsignrecordDescRevoked.Default.(bool)
// stepsignrecordDescRevokedBy is the schema descriptor for revokedBy field.
stepsignrecordDescRevokedBy := stepsignrecordFields[15].Descriptor()
// stepsignrecord.DefaultRevokedBy holds the default value on creation for the revokedBy field.
stepsignrecord.DefaultRevokedBy = stepsignrecordDescRevokedBy.Default.(string)
// stepsignrecord.RevokedByValidator is a validator for the "revokedBy" field. It is called by the builders before save.
stepsignrecord.RevokedByValidator = stepsignrecordDescRevokedBy.Validators[0].(func(string) error)
// stepsignrecordDescRevokeReason is the schema descriptor for revokeReason field.
stepsignrecordDescRevokeReason := stepsignrecordFields[17].Descriptor()
// stepsignrecord.DefaultRevokeReason holds the default value on creation for the revokeReason field.
stepsignrecord.DefaultRevokeReason = stepsignrecordDescRevokeReason.Default.(string)
// stepsignrecord.RevokeReasonValidator is a validator for the "revokeReason" field. It is called by the builders before save.
stepsignrecord.RevokeReasonValidator = stepsignrecordDescRevokeReason.Validators[0].(func(string) error)
// stepsignrecordDescCreatedAt is the schema descriptor for createdAt field.
stepsignrecordDescCreatedAt := stepsignrecordFields[18].Descriptor()
// stepsignrecord.DefaultCreatedAt holds the default value on creation for the createdAt field.
stepsignrecord.DefaultCreatedAt = stepsignrecordDescCreatedAt.Default.(func() time.Time)
// stepsignrecordDescID is the schema descriptor for id field.
stepsignrecordDescID := stepsignrecordFields[0].Descriptor()
// stepsignrecord.IDValidator is a validator for the "id" field. It is called by the builders before save.
stepsignrecord.IDValidator = stepsignrecordDescID.Validators[0].(func(int) error)
sysconfigFields := schema.SysConfig{}.Fields()
_ = sysconfigFields
// sysconfigDescKey is the schema descriptor for key field.
sysconfigDescKey := sysconfigFields[0].Descriptor()
// sysconfig.KeyValidator is a validator for the "key" field. It is called by the builders before save.
sysconfig.KeyValidator = sysconfigDescKey.Validators[0].(func(string) error)
// sysconfigDescValue is the schema descriptor for value field.
sysconfigDescValue := sysconfigFields[1].Descriptor()
// sysconfig.ValueValidator is a validator for the "value" field. It is called by the builders before save.
sysconfig.ValueValidator = sysconfigDescValue.Validators[0].(func(string) error)
// sysconfigDescRemark is the schema descriptor for remark field.
sysconfigDescRemark := sysconfigFields[2].Descriptor()
// sysconfig.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
sysconfig.RemarkValidator = sysconfigDescRemark.Validators[0].(func(string) 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)
// torquerecordDescOperatorId is the schema descriptor for operatorId field.
torquerecordDescOperatorId := torquerecordFields[9].Descriptor()
// torquerecord.DefaultOperatorId holds the default value on creation for the operatorId field.
torquerecord.DefaultOperatorId = torquerecordDescOperatorId.Default.(int)
// torquerecordDescStationNo is the schema descriptor for stationNo field.
torquerecordDescStationNo := torquerecordFields[10].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[11].Descriptor()
// torquerecord.DefaultTime holds the default value on creation for the time field.
torquerecord.DefaultTime = torquerecordDescTime.Default.(func() time.Time)
// torquerecordDescCreatedAt is the schema descriptor for createdAt field.
torquerecordDescCreatedAt := torquerecordFields[12].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)
// workorderDescContractNo is the schema descriptor for contractNo field.
workorderDescContractNo := workorderFields[8].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)
// workorderDescOwnershipType is the schema descriptor for ownershipType field.
workorderDescOwnershipType := workorderFields[9].Descriptor()
// workorder.DefaultOwnershipType holds the default value on creation for the ownershipType field.
workorder.DefaultOwnershipType = workorderDescOwnershipType.Default.(string)
// workorder.OwnershipTypeValidator is a validator for the "ownershipType" field. It is called by the builders before save.
workorder.OwnershipTypeValidator = workorderDescOwnershipType.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)
// workorderDescProductProcessId is the schema descriptor for productProcessId field.
workorderDescProductProcessId := workorderFields[15].Descriptor()
// workorder.DefaultProductProcessId holds the default value on creation for the productProcessId field.
workorder.DefaultProductProcessId = workorderDescProductProcessId.Default.(int)
// workorderDescStatus is the schema descriptor for status field.
workorderDescStatus := workorderFields[16].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[22].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[23].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)
// 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)
// workpieceDescTorqueNgPending is the schema descriptor for torque_ng_pending field.
workpieceDescTorqueNgPending := workpieceFields[11].Descriptor()
// workpiece.DefaultTorqueNgPending holds the default value on creation for the torque_ng_pending field.
workpiece.DefaultTorqueNgPending = workpieceDescTorqueNgPending.Default.(bool)
// workpieceDescTorqueNgBy is the schema descriptor for torque_ng_by field.
workpieceDescTorqueNgBy := workpieceFields[13].Descriptor()
// workpiece.TorqueNgByValidator is a validator for the "torque_ng_by" field. It is called by the builders before save.
workpiece.TorqueNgByValidator = workpieceDescTorqueNgBy.Validators[0].(func(string) error)
// 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)
// workpiecebindDescSnMode is the schema descriptor for snMode field.
workpiecebindDescSnMode := workpiecebindFields[9].Descriptor()
// workpiecebind.DefaultSnMode holds the default value on creation for the snMode field.
workpiecebind.DefaultSnMode = workpiecebindDescSnMode.Default.(int)
// 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)
workpiecelifecyclelogFields := schema.WorkpieceLifecycleLog{}.Fields()
_ = workpiecelifecyclelogFields
// workpiecelifecyclelogDescSn is the schema descriptor for sn field.
workpiecelifecyclelogDescSn := workpiecelifecyclelogFields[1].Descriptor()
// workpiecelifecyclelog.SnValidator is a validator for the "sn" field. It is called by the builders before save.
workpiecelifecyclelog.SnValidator = workpiecelifecyclelogDescSn.Validators[0].(func(string) error)
// workpiecelifecyclelogDescWorkOrderNo is the schema descriptor for workOrderNo field.
workpiecelifecyclelogDescWorkOrderNo := workpiecelifecyclelogFields[2].Descriptor()
// workpiecelifecyclelog.DefaultWorkOrderNo holds the default value on creation for the workOrderNo field.
workpiecelifecyclelog.DefaultWorkOrderNo = workpiecelifecyclelogDescWorkOrderNo.Default.(string)
// workpiecelifecyclelog.WorkOrderNoValidator is a validator for the "workOrderNo" field. It is called by the builders before save.
workpiecelifecyclelog.WorkOrderNoValidator = workpiecelifecyclelogDescWorkOrderNo.Validators[0].(func(string) error)
// workpiecelifecyclelogDescAction is the schema descriptor for action field.
workpiecelifecyclelogDescAction := workpiecelifecyclelogFields[3].Descriptor()
// workpiecelifecyclelog.ActionValidator is a validator for the "action" field. It is called by the builders before save.
workpiecelifecyclelog.ActionValidator = workpiecelifecyclelogDescAction.Validators[0].(func(string) error)
// workpiecelifecyclelogDescFromStatus is the schema descriptor for fromStatus field.
workpiecelifecyclelogDescFromStatus := workpiecelifecyclelogFields[4].Descriptor()
// workpiecelifecyclelog.DefaultFromStatus holds the default value on creation for the fromStatus field.
workpiecelifecyclelog.DefaultFromStatus = workpiecelifecyclelogDescFromStatus.Default.(string)
// workpiecelifecyclelog.FromStatusValidator is a validator for the "fromStatus" field. It is called by the builders before save.
workpiecelifecyclelog.FromStatusValidator = workpiecelifecyclelogDescFromStatus.Validators[0].(func(string) error)
// workpiecelifecyclelogDescToStatus is the schema descriptor for toStatus field.
workpiecelifecyclelogDescToStatus := workpiecelifecyclelogFields[5].Descriptor()
// workpiecelifecyclelog.DefaultToStatus holds the default value on creation for the toStatus field.
workpiecelifecyclelog.DefaultToStatus = workpiecelifecyclelogDescToStatus.Default.(string)
// workpiecelifecyclelog.ToStatusValidator is a validator for the "toStatus" field. It is called by the builders before save.
workpiecelifecyclelog.ToStatusValidator = workpiecelifecyclelogDescToStatus.Validators[0].(func(string) error)
// workpiecelifecyclelogDescOperator is the schema descriptor for operator field.
workpiecelifecyclelogDescOperator := workpiecelifecyclelogFields[8].Descriptor()
// workpiecelifecyclelog.DefaultOperator holds the default value on creation for the operator field.
workpiecelifecyclelog.DefaultOperator = workpiecelifecyclelogDescOperator.Default.(string)
// workpiecelifecyclelog.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
workpiecelifecyclelog.OperatorValidator = workpiecelifecyclelogDescOperator.Validators[0].(func(string) error)
// workpiecelifecyclelogDescSource is the schema descriptor for source field.
workpiecelifecyclelogDescSource := workpiecelifecyclelogFields[9].Descriptor()
// workpiecelifecyclelog.DefaultSource holds the default value on creation for the source field.
workpiecelifecyclelog.DefaultSource = workpiecelifecyclelogDescSource.Default.(string)
// workpiecelifecyclelog.SourceValidator is a validator for the "source" field. It is called by the builders before save.
workpiecelifecyclelog.SourceValidator = workpiecelifecyclelogDescSource.Validators[0].(func(string) error)
// workpiecelifecyclelogDescRemark is the schema descriptor for remark field.
workpiecelifecyclelogDescRemark := workpiecelifecyclelogFields[10].Descriptor()
// workpiecelifecyclelog.DefaultRemark holds the default value on creation for the remark field.
workpiecelifecyclelog.DefaultRemark = workpiecelifecyclelogDescRemark.Default.(string)
// workpiecelifecyclelog.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
workpiecelifecyclelog.RemarkValidator = workpiecelifecyclelogDescRemark.Validators[0].(func(string) error)
// workpiecelifecyclelogDescCreatedAt is the schema descriptor for createdAt field.
workpiecelifecyclelogDescCreatedAt := workpiecelifecyclelogFields[11].Descriptor()
// workpiecelifecyclelog.DefaultCreatedAt holds the default value on creation for the createdAt field.
workpiecelifecyclelog.DefaultCreatedAt = workpiecelifecyclelogDescCreatedAt.Default.(func() time.Time)
// workpiecelifecyclelogDescID is the schema descriptor for id field.
workpiecelifecyclelogDescID := workpiecelifecyclelogFields[0].Descriptor()
// workpiecelifecyclelog.IDValidator is a validator for the "id" field. It is called by the builders before save.
workpiecelifecyclelog.IDValidator = workpiecelifecyclelogDescID.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)
// workpieceprocessDescOperatorId is the schema descriptor for operatorId field.
workpieceprocessDescOperatorId := workpieceprocessFields[8].Descriptor()
// workpieceprocess.DefaultOperatorId holds the default value on creation for the operatorId field.
workpieceprocess.DefaultOperatorId = workpieceprocessDescOperatorId.Default.(int)
// workpieceprocessDescResult is the schema descriptor for result field.
workpieceprocessDescResult := workpieceprocessFields[9].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[12].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[13].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[14].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)
}