Files
bj_power/bj_power_wms/ent/runtime.go
T
SunYF d92ca803d5 feat: 来料检处置项实体与复检、日排产达成对比、PLC/WMS 传输日志
- WMS 新增「检验处置项」实体(schema + ent 生成码),配套检验记录实体调整与复检接口,完善来料检/不良退货/入库检验前端
- MES 日排产:新增达成率统计与计划对比逻辑,调整日排产前端与流程卡/工序流
- 日志与传输:MES 新增 PLC 日志与 WMS 客户端传输日志,WMS 新增 MES 客户端传输日志
- MES 其他:扫码、工单/工件、AGV 客户端与告警、产品导入等逻辑完善及前端调整
- 工位终端:上线面板/作业面板、工件 handler 与 MES 客户端调整
- 配置与文档:更新 mes-api.yaml、三端构建产物与问题记录文档
2026-11-16 16:42:44 +08:00

949 lines
70 KiB
Go

// Code generated by ent, DO NOT EDIT.
package ent
import (
"bj_power_wms/ent/alert"
"bj_power_wms/ent/alertrule"
"bj_power_wms/ent/attachment"
"bj_power_wms/ent/backuprecord"
"bj_power_wms/ent/deliveryorder"
"bj_power_wms/ent/deliveryorderitem"
"bj_power_wms/ent/eventlog"
"bj_power_wms/ent/inbounddetail"
"bj_power_wms/ent/inboundorder"
"bj_power_wms/ent/inspectiondisposalitem"
"bj_power_wms/ent/inspectionrecord"
"bj_power_wms/ent/inventory"
"bj_power_wms/ent/inventorylock"
"bj_power_wms/ent/material"
"bj_power_wms/ent/materialdemand"
"bj_power_wms/ent/ordermaterialledger"
"bj_power_wms/ent/outbounddetail"
"bj_power_wms/ent/outboundorder"
"bj_power_wms/ent/permission"
"bj_power_wms/ent/returnorder"
"bj_power_wms/ent/role"
"bj_power_wms/ent/semifinished"
"bj_power_wms/ent/stocktakeitem"
"bj_power_wms/ent/stocktakeorder"
"bj_power_wms/ent/syncfailure"
"bj_power_wms/ent/sysconfig"
"bj_power_wms/ent/user"
"bj_power_wms/ent/zone"
"bj_power_wms/schema"
"time"
)
// The init function reads all schema descriptors with runtime code
// (default values, validators, hooks and policies) and stitches it
// to their package variables.
func init() {
alertFields := schema.Alert{}.Fields()
_ = alertFields
// alertDescLevel is the schema descriptor for level field.
alertDescLevel := alertFields[1].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)
// alertDescStatus is the schema descriptor for status field.
alertDescStatus := alertFields[5].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)
// alertDescCreatedAt is the schema descriptor for created_at field.
alertDescCreatedAt := alertFields[6].Descriptor()
// alert.DefaultCreatedAt holds the default value on creation for the created_at field.
alert.DefaultCreatedAt = alertDescCreatedAt.Default.(func() int64)
// alertDescUpdatedAt is the schema descriptor for updated_at field.
alertDescUpdatedAt := alertFields[7].Descriptor()
// alert.DefaultUpdatedAt holds the default value on creation for the updated_at field.
alert.DefaultUpdatedAt = alertDescUpdatedAt.Default.(func() int64)
alertruleFields := schema.AlertRule{}.Fields()
_ = alertruleFields
// alertruleDescEnabled is the schema descriptor for enabled field.
alertruleDescEnabled := alertruleFields[2].Descriptor()
// alertrule.DefaultEnabled holds the default value on creation for the enabled field.
alertrule.DefaultEnabled = alertruleDescEnabled.Default.(bool)
// 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.(int)
// alertruleDescCreatedAt is the schema descriptor for created_at field.
alertruleDescCreatedAt := alertruleFields[5].Descriptor()
// alertrule.DefaultCreatedAt holds the default value on creation for the created_at field.
alertrule.DefaultCreatedAt = alertruleDescCreatedAt.Default.(func() int64)
// alertruleDescUpdatedAt is the schema descriptor for updated_at field.
alertruleDescUpdatedAt := alertruleFields[6].Descriptor()
// alertrule.DefaultUpdatedAt holds the default value on creation for the updated_at field.
alertrule.DefaultUpdatedAt = alertruleDescUpdatedAt.Default.(func() int64)
attachmentFields := schema.Attachment{}.Fields()
_ = attachmentFields
// attachmentDescFileSize is the schema descriptor for file_size field.
attachmentDescFileSize := attachmentFields[7].Descriptor()
// attachment.DefaultFileSize holds the default value on creation for the file_size field.
attachment.DefaultFileSize = attachmentDescFileSize.Default.(int64)
// attachmentDescDeleted is the schema descriptor for deleted field.
attachmentDescDeleted := attachmentFields[10].Descriptor()
// attachment.DefaultDeleted holds the default value on creation for the deleted field.
attachment.DefaultDeleted = attachmentDescDeleted.Default.(bool)
// attachmentDescCreatedAt is the schema descriptor for created_at field.
attachmentDescCreatedAt := attachmentFields[16].Descriptor()
// attachment.DefaultCreatedAt holds the default value on creation for the created_at field.
attachment.DefaultCreatedAt = attachmentDescCreatedAt.Default.(func() int64)
backuprecordFields := schema.BackupRecord{}.Fields()
_ = backuprecordFields
// backuprecordDescExecutedAt is the schema descriptor for executed_at field.
backuprecordDescExecutedAt := backuprecordFields[0].Descriptor()
// backuprecord.DefaultExecutedAt holds the default value on creation for the executed_at field.
backuprecord.DefaultExecutedAt = backuprecordDescExecutedAt.Default.(func() int64)
// backuprecordDescTotalSize is the schema descriptor for total_size field.
backuprecordDescTotalSize := backuprecordFields[4].Descriptor()
// backuprecord.DefaultTotalSize holds the default value on creation for the total_size field.
backuprecord.DefaultTotalSize = backuprecordDescTotalSize.Default.(int64)
// backuprecordDescStatus is the schema descriptor for status field.
backuprecordDescStatus := backuprecordFields[6].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[7].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[8].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[9].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 ack_name field.
backuprecordDescAckName := backuprecordFields[10].Descriptor()
// backuprecord.DefaultAckName holds the default value on creation for the ack_name field.
backuprecord.DefaultAckName = backuprecordDescAckName.Default.(string)
// backuprecord.AckNameValidator is a validator for the "ack_name" field. It is called by the builders before save.
backuprecord.AckNameValidator = backuprecordDescAckName.Validators[0].(func(string) error)
// backuprecordDescAckPhone is the schema descriptor for ack_phone field.
backuprecordDescAckPhone := backuprecordFields[11].Descriptor()
// backuprecord.DefaultAckPhone holds the default value on creation for the ack_phone field.
backuprecord.DefaultAckPhone = backuprecordDescAckPhone.Default.(string)
// backuprecord.AckPhoneValidator is a validator for the "ack_phone" field. It is called by the builders before save.
backuprecord.AckPhoneValidator = backuprecordDescAckPhone.Validators[0].(func(string) error)
deliveryorderFields := schema.DeliveryOrder{}.Fields()
_ = deliveryorderFields
// deliveryorderDescDeliveryNo is the schema descriptor for deliveryNo field.
deliveryorderDescDeliveryNo := deliveryorderFields[1].Descriptor()
// deliveryorder.DeliveryNoValidator is a validator for the "deliveryNo" field. It is called by the builders before save.
deliveryorder.DeliveryNoValidator = deliveryorderDescDeliveryNo.Validators[0].(func(string) error)
// deliveryorderDescPackageNo is the schema descriptor for packageNo field.
deliveryorderDescPackageNo := deliveryorderFields[2].Descriptor()
// deliveryorder.DefaultPackageNo holds the default value on creation for the packageNo field.
deliveryorder.DefaultPackageNo = deliveryorderDescPackageNo.Default.(string)
// deliveryorder.PackageNoValidator is a validator for the "packageNo" field. It is called by the builders before save.
deliveryorder.PackageNoValidator = deliveryorderDescPackageNo.Validators[0].(func(string) error)
// deliveryorderDescStationNo is the schema descriptor for stationNo field.
deliveryorderDescStationNo := deliveryorderFields[3].Descriptor()
// deliveryorder.DefaultStationNo holds the default value on creation for the stationNo field.
deliveryorder.DefaultStationNo = deliveryorderDescStationNo.Default.(int)
// deliveryorderDescTargetDock is the schema descriptor for targetDock field.
deliveryorderDescTargetDock := deliveryorderFields[4].Descriptor()
// deliveryorder.DefaultTargetDock holds the default value on creation for the targetDock field.
deliveryorder.DefaultTargetDock = deliveryorderDescTargetDock.Default.(string)
// deliveryorder.TargetDockValidator is a validator for the "targetDock" field. It is called by the builders before save.
deliveryorder.TargetDockValidator = deliveryorderDescTargetDock.Validators[0].(func(string) error)
// deliveryorderDescStatus is the schema descriptor for status field.
deliveryorderDescStatus := deliveryorderFields[5].Descriptor()
// deliveryorder.DefaultStatus holds the default value on creation for the status field.
deliveryorder.DefaultStatus = deliveryorderDescStatus.Default.(string)
// deliveryorder.StatusValidator is a validator for the "status" field. It is called by the builders before save.
deliveryorder.StatusValidator = deliveryorderDescStatus.Validators[0].(func(string) error)
// deliveryorderDescOperator is the schema descriptor for operator field.
deliveryorderDescOperator := deliveryorderFields[6].Descriptor()
// deliveryorder.DefaultOperator holds the default value on creation for the operator field.
deliveryorder.DefaultOperator = deliveryorderDescOperator.Default.(string)
// deliveryorder.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
deliveryorder.OperatorValidator = deliveryorderDescOperator.Validators[0].(func(string) error)
// deliveryorderDescRemark is the schema descriptor for remark field.
deliveryorderDescRemark := deliveryorderFields[7].Descriptor()
// deliveryorder.DefaultRemark holds the default value on creation for the remark field.
deliveryorder.DefaultRemark = deliveryorderDescRemark.Default.(string)
// deliveryorder.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
deliveryorder.RemarkValidator = deliveryorderDescRemark.Validators[0].(func(string) error)
// deliveryorderDescAgvTaskNo is the schema descriptor for agvTaskNo field.
deliveryorderDescAgvTaskNo := deliveryorderFields[8].Descriptor()
// deliveryorder.DefaultAgvTaskNo holds the default value on creation for the agvTaskNo field.
deliveryorder.DefaultAgvTaskNo = deliveryorderDescAgvTaskNo.Default.(string)
// deliveryorder.AgvTaskNoValidator is a validator for the "agvTaskNo" field. It is called by the builders before save.
deliveryorder.AgvTaskNoValidator = deliveryorderDescAgvTaskNo.Validators[0].(func(string) error)
// deliveryorderDescCreatedAt is the schema descriptor for createdAt field.
deliveryorderDescCreatedAt := deliveryorderFields[9].Descriptor()
// deliveryorder.DefaultCreatedAt holds the default value on creation for the createdAt field.
deliveryorder.DefaultCreatedAt = deliveryorderDescCreatedAt.Default.(func() time.Time)
// deliveryorderDescUpdatedAt is the schema descriptor for updatedAt field.
deliveryorderDescUpdatedAt := deliveryorderFields[10].Descriptor()
// deliveryorder.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
deliveryorder.DefaultUpdatedAt = deliveryorderDescUpdatedAt.Default.(func() time.Time)
// deliveryorder.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
deliveryorder.UpdateDefaultUpdatedAt = deliveryorderDescUpdatedAt.UpdateDefault.(func() time.Time)
// deliveryorderDescID is the schema descriptor for id field.
deliveryorderDescID := deliveryorderFields[0].Descriptor()
// deliveryorder.IDValidator is a validator for the "id" field. It is called by the builders before save.
deliveryorder.IDValidator = deliveryorderDescID.Validators[0].(func(int) error)
deliveryorderitemFields := schema.DeliveryOrderItem{}.Fields()
_ = deliveryorderitemFields
// deliveryorderitemDescDeliveryNo is the schema descriptor for deliveryNo field.
deliveryorderitemDescDeliveryNo := deliveryorderitemFields[1].Descriptor()
// deliveryorderitem.DeliveryNoValidator is a validator for the "deliveryNo" field. It is called by the builders before save.
deliveryorderitem.DeliveryNoValidator = deliveryorderitemDescDeliveryNo.Validators[0].(func(string) error)
// deliveryorderitemDescRequestNo is the schema descriptor for requestNo field.
deliveryorderitemDescRequestNo := deliveryorderitemFields[2].Descriptor()
// deliveryorderitem.DefaultRequestNo holds the default value on creation for the requestNo field.
deliveryorderitem.DefaultRequestNo = deliveryorderitemDescRequestNo.Default.(string)
// deliveryorderitem.RequestNoValidator is a validator for the "requestNo" field. It is called by the builders before save.
deliveryorderitem.RequestNoValidator = deliveryorderitemDescRequestNo.Validators[0].(func(string) error)
// deliveryorderitemDescMaterialCode is the schema descriptor for materialCode field.
deliveryorderitemDescMaterialCode := deliveryorderitemFields[3].Descriptor()
// deliveryorderitem.MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
deliveryorderitem.MaterialCodeValidator = deliveryorderitemDescMaterialCode.Validators[0].(func(string) error)
// deliveryorderitemDescMaterialName is the schema descriptor for materialName field.
deliveryorderitemDescMaterialName := deliveryorderitemFields[4].Descriptor()
// deliveryorderitem.DefaultMaterialName holds the default value on creation for the materialName field.
deliveryorderitem.DefaultMaterialName = deliveryorderitemDescMaterialName.Default.(string)
// deliveryorderitem.MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
deliveryorderitem.MaterialNameValidator = deliveryorderitemDescMaterialName.Validators[0].(func(string) error)
// deliveryorderitemDescUnit is the schema descriptor for unit field.
deliveryorderitemDescUnit := deliveryorderitemFields[5].Descriptor()
// deliveryorderitem.DefaultUnit holds the default value on creation for the unit field.
deliveryorderitem.DefaultUnit = deliveryorderitemDescUnit.Default.(string)
// deliveryorderitem.UnitValidator is a validator for the "unit" field. It is called by the builders before save.
deliveryorderitem.UnitValidator = deliveryorderitemDescUnit.Validators[0].(func(string) error)
// deliveryorderitemDescQty is the schema descriptor for qty field.
deliveryorderitemDescQty := deliveryorderitemFields[6].Descriptor()
// deliveryorderitem.DefaultQty holds the default value on creation for the qty field.
deliveryorderitem.DefaultQty = deliveryorderitemDescQty.Default.(float64)
// deliveryorderitemDescStationNo is the schema descriptor for stationNo field.
deliveryorderitemDescStationNo := deliveryorderitemFields[7].Descriptor()
// deliveryorderitem.DefaultStationNo holds the default value on creation for the stationNo field.
deliveryorderitem.DefaultStationNo = deliveryorderitemDescStationNo.Default.(int)
// deliveryorderitemDescOrderNo is the schema descriptor for orderNo field.
deliveryorderitemDescOrderNo := deliveryorderitemFields[8].Descriptor()
// deliveryorderitem.DefaultOrderNo holds the default value on creation for the orderNo field.
deliveryorderitem.DefaultOrderNo = deliveryorderitemDescOrderNo.Default.(string)
// deliveryorderitem.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
deliveryorderitem.OrderNoValidator = deliveryorderitemDescOrderNo.Validators[0].(func(string) error)
// deliveryorderitemDescFlowName is the schema descriptor for flowName field.
deliveryorderitemDescFlowName := deliveryorderitemFields[9].Descriptor()
// deliveryorderitem.DefaultFlowName holds the default value on creation for the flowName field.
deliveryorderitem.DefaultFlowName = deliveryorderitemDescFlowName.Default.(string)
// deliveryorderitem.FlowNameValidator is a validator for the "flowName" field. It is called by the builders before save.
deliveryorderitem.FlowNameValidator = deliveryorderitemDescFlowName.Validators[0].(func(string) error)
// deliveryorderitemDescPlanDate is the schema descriptor for planDate field.
deliveryorderitemDescPlanDate := deliveryorderitemFields[10].Descriptor()
// deliveryorderitem.DefaultPlanDate holds the default value on creation for the planDate field.
deliveryorderitem.DefaultPlanDate = deliveryorderitemDescPlanDate.Default.(string)
// deliveryorderitem.PlanDateValidator is a validator for the "planDate" field. It is called by the builders before save.
deliveryorderitem.PlanDateValidator = deliveryorderitemDescPlanDate.Validators[0].(func(string) error)
// deliveryorderitemDescSnMode is the schema descriptor for snMode field.
deliveryorderitemDescSnMode := deliveryorderitemFields[11].Descriptor()
// deliveryorderitem.DefaultSnMode holds the default value on creation for the snMode field.
deliveryorderitem.DefaultSnMode = deliveryorderitemDescSnMode.Default.(int)
// deliveryorderitemDescID is the schema descriptor for id field.
deliveryorderitemDescID := deliveryorderitemFields[0].Descriptor()
// deliveryorderitem.IDValidator is a validator for the "id" field. It is called by the builders before save.
deliveryorderitem.IDValidator = deliveryorderitemDescID.Validators[0].(func(int) error)
eventlogFields := schema.EventLog{}.Fields()
_ = eventlogFields
// eventlogDescEventType is the schema descriptor for event_type field.
eventlogDescEventType := eventlogFields[0].Descriptor()
// eventlog.EventTypeValidator is a validator for the "event_type" field. It is called by the builders before save.
eventlog.EventTypeValidator = eventlogDescEventType.Validators[0].(func(string) error)
// eventlogDescOperator is the schema descriptor for operator field.
eventlogDescOperator := eventlogFields[1].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 entity_type field.
eventlogDescEntityType := eventlogFields[2].Descriptor()
// eventlog.DefaultEntityType holds the default value on creation for the entity_type field.
eventlog.DefaultEntityType = eventlogDescEntityType.Default.(string)
// eventlog.EntityTypeValidator is a validator for the "entity_type" field. It is called by the builders before save.
eventlog.EntityTypeValidator = eventlogDescEntityType.Validators[0].(func(string) error)
// eventlogDescEntityID is the schema descriptor for entity_id field.
eventlogDescEntityID := eventlogFields[3].Descriptor()
// eventlog.DefaultEntityID holds the default value on creation for the entity_id field.
eventlog.DefaultEntityID = eventlogDescEntityID.Default.(string)
// eventlog.EntityIDValidator is a validator for the "entity_id" 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[4].Descriptor()
// eventlog.DefaultDescription holds the default value on creation for the description field.
eventlog.DefaultDescription = eventlogDescDescription.Default.(string)
// eventlogDescCreatedAt is the schema descriptor for created_at field.
eventlogDescCreatedAt := eventlogFields[6].Descriptor()
// eventlog.DefaultCreatedAt holds the default value on creation for the created_at field.
eventlog.DefaultCreatedAt = eventlogDescCreatedAt.Default.(func() int64)
inbounddetailFields := schema.InboundDetail{}.Fields()
_ = inbounddetailFields
// inbounddetailDescQuantity is the schema descriptor for quantity field.
inbounddetailDescQuantity := inbounddetailFields[4].Descriptor()
// inbounddetail.DefaultQuantity holds the default value on creation for the quantity field.
inbounddetail.DefaultQuantity = inbounddetailDescQuantity.Default.(int)
// inbounddetailDescCreatedAt is the schema descriptor for created_at field.
inbounddetailDescCreatedAt := inbounddetailFields[5].Descriptor()
// inbounddetail.DefaultCreatedAt holds the default value on creation for the created_at field.
inbounddetail.DefaultCreatedAt = inbounddetailDescCreatedAt.Default.(func() int64)
inboundorderFields := schema.InboundOrder{}.Fields()
_ = inboundorderFields
// inboundorderDescInboundType is the schema descriptor for inbound_type field.
inboundorderDescInboundType := inboundorderFields[1].Descriptor()
// inboundorder.DefaultInboundType holds the default value on creation for the inbound_type field.
inboundorder.DefaultInboundType = inboundorderDescInboundType.Default.(string)
// inboundorderDescManageMode is the schema descriptor for manage_mode field.
inboundorderDescManageMode := inboundorderFields[4].Descriptor()
// inboundorder.DefaultManageMode holds the default value on creation for the manage_mode field.
inboundorder.DefaultManageMode = inboundorderDescManageMode.Default.(int)
// inboundorderDescSnMode is the schema descriptor for sn_mode field.
inboundorderDescSnMode := inboundorderFields[5].Descriptor()
// inboundorder.DefaultSnMode holds the default value on creation for the sn_mode field.
inboundorder.DefaultSnMode = inboundorderDescSnMode.Default.(int)
// inboundorderDescQuantity is the schema descriptor for quantity field.
inboundorderDescQuantity := inboundorderFields[11].Descriptor()
// inboundorder.DefaultQuantity holds the default value on creation for the quantity field.
inboundorder.DefaultQuantity = inboundorderDescQuantity.Default.(int)
// inboundorderDescOwnershipType is the schema descriptor for ownership_type field.
inboundorderDescOwnershipType := inboundorderFields[15].Descriptor()
// inboundorder.DefaultOwnershipType holds the default value on creation for the ownership_type field.
inboundorder.DefaultOwnershipType = inboundorderDescOwnershipType.Default.(string)
// inboundorderDescVoided is the schema descriptor for voided field.
inboundorderDescVoided := inboundorderFields[19].Descriptor()
// inboundorder.DefaultVoided holds the default value on creation for the voided field.
inboundorder.DefaultVoided = inboundorderDescVoided.Default.(bool)
// inboundorderDescCreatedAt is the schema descriptor for created_at field.
inboundorderDescCreatedAt := inboundorderFields[23].Descriptor()
// inboundorder.DefaultCreatedAt holds the default value on creation for the created_at field.
inboundorder.DefaultCreatedAt = inboundorderDescCreatedAt.Default.(func() int64)
inspectiondisposalitemFields := schema.InspectionDisposalItem{}.Fields()
_ = inspectiondisposalitemFields
// inspectiondisposalitemDescQty is the schema descriptor for qty field.
inspectiondisposalitemDescQty := inspectiondisposalitemFields[2].Descriptor()
// inspectiondisposalitem.QtyValidator is a validator for the "qty" field. It is called by the builders before save.
inspectiondisposalitem.QtyValidator = inspectiondisposalitemDescQty.Validators[0].(func(int) error)
// inspectiondisposalitemDescOperator is the schema descriptor for operator field.
inspectiondisposalitemDescOperator := inspectiondisposalitemFields[4].Descriptor()
// inspectiondisposalitem.DefaultOperator holds the default value on creation for the operator field.
inspectiondisposalitem.DefaultOperator = inspectiondisposalitemDescOperator.Default.(string)
// inspectiondisposalitemDescCreatedAt is the schema descriptor for created_at field.
inspectiondisposalitemDescCreatedAt := inspectiondisposalitemFields[5].Descriptor()
// inspectiondisposalitem.DefaultCreatedAt holds the default value on creation for the created_at field.
inspectiondisposalitem.DefaultCreatedAt = inspectiondisposalitemDescCreatedAt.Default.(func() int64)
inspectionrecordFields := schema.InspectionRecord{}.Fields()
_ = inspectionrecordFields
// inspectionrecordDescInspectionType is the schema descriptor for inspection_type field.
inspectionrecordDescInspectionType := inspectionrecordFields[9].Descriptor()
// inspectionrecord.DefaultInspectionType holds the default value on creation for the inspection_type field.
inspectionrecord.DefaultInspectionType = inspectionrecordDescInspectionType.Default.(string)
// inspectionrecordDescStatus is the schema descriptor for status field.
inspectionrecordDescStatus := inspectionrecordFields[10].Descriptor()
// inspectionrecord.DefaultStatus holds the default value on creation for the status field.
inspectionrecord.DefaultStatus = inspectionrecordDescStatus.Default.(string)
// inspectionrecordDescInspectQty is the schema descriptor for inspect_qty field.
inspectionrecordDescInspectQty := inspectionrecordFields[12].Descriptor()
// inspectionrecord.DefaultInspectQty holds the default value on creation for the inspect_qty field.
inspectionrecord.DefaultInspectQty = inspectionrecordDescInspectQty.Default.(int)
// inspectionrecordDescPassQty is the schema descriptor for pass_qty field.
inspectionrecordDescPassQty := inspectionrecordFields[13].Descriptor()
// inspectionrecord.DefaultPassQty holds the default value on creation for the pass_qty field.
inspectionrecord.DefaultPassQty = inspectionrecordDescPassQty.Default.(int)
// inspectionrecordDescBatchSeq is the schema descriptor for batch_seq field.
inspectionrecordDescBatchSeq := inspectionrecordFields[14].Descriptor()
// inspectionrecord.DefaultBatchSeq holds the default value on creation for the batch_seq field.
inspectionrecord.DefaultBatchSeq = inspectionrecordDescBatchSeq.Default.(int)
// inspectionrecordDescBatchTotal is the schema descriptor for batch_total field.
inspectionrecordDescBatchTotal := inspectionrecordFields[15].Descriptor()
// inspectionrecord.DefaultBatchTotal holds the default value on creation for the batch_total field.
inspectionrecord.DefaultBatchTotal = inspectionrecordDescBatchTotal.Default.(int)
// inspectionrecordDescRejectQty is the schema descriptor for reject_qty field.
inspectionrecordDescRejectQty := inspectionrecordFields[16].Descriptor()
// inspectionrecord.DefaultRejectQty holds the default value on creation for the reject_qty field.
inspectionrecord.DefaultRejectQty = inspectionrecordDescRejectQty.Default.(int)
// inspectionrecordDescInspectionConclusion is the schema descriptor for inspection_conclusion field.
inspectionrecordDescInspectionConclusion := inspectionrecordFields[21].Descriptor()
// inspectionrecord.DefaultInspectionConclusion holds the default value on creation for the inspection_conclusion field.
inspectionrecord.DefaultInspectionConclusion = inspectionrecordDescInspectionConclusion.Default.(string)
// inspectionrecordDescDisposalStatus is the schema descriptor for disposal_status field.
inspectionrecordDescDisposalStatus := inspectionrecordFields[22].Descriptor()
// inspectionrecord.DefaultDisposalStatus holds the default value on creation for the disposal_status field.
inspectionrecord.DefaultDisposalStatus = inspectionrecordDescDisposalStatus.Default.(string)
// inspectionrecordDescParentRecordID is the schema descriptor for parent_record_id field.
inspectionrecordDescParentRecordID := inspectionrecordFields[23].Descriptor()
// inspectionrecord.DefaultParentRecordID holds the default value on creation for the parent_record_id field.
inspectionrecord.DefaultParentRecordID = inspectionrecordDescParentRecordID.Default.(int64)
// inspectionrecordDescCreatedAt is the schema descriptor for created_at field.
inspectionrecordDescCreatedAt := inspectionrecordFields[25].Descriptor()
// inspectionrecord.DefaultCreatedAt holds the default value on creation for the created_at field.
inspectionrecord.DefaultCreatedAt = inspectionrecordDescCreatedAt.Default.(func() int64)
// inspectionrecordDescUpdatedAt is the schema descriptor for updated_at field.
inspectionrecordDescUpdatedAt := inspectionrecordFields[26].Descriptor()
// inspectionrecord.DefaultUpdatedAt holds the default value on creation for the updated_at field.
inspectionrecord.DefaultUpdatedAt = inspectionrecordDescUpdatedAt.Default.(func() int64)
inventoryFields := schema.Inventory{}.Fields()
_ = inventoryFields
// inventoryDescSnMode is the schema descriptor for sn_mode field.
inventoryDescSnMode := inventoryFields[1].Descriptor()
// inventory.DefaultSnMode holds the default value on creation for the sn_mode field.
inventory.DefaultSnMode = inventoryDescSnMode.Default.(int)
// inventoryDescCategory is the schema descriptor for category field.
inventoryDescCategory := inventoryFields[2].Descriptor()
// inventory.DefaultCategory holds the default value on creation for the category field.
inventory.DefaultCategory = inventoryDescCategory.Default.(int)
// inventoryDescQuantity is the schema descriptor for quantity field.
inventoryDescQuantity := inventoryFields[7].Descriptor()
// inventory.DefaultQuantity holds the default value on creation for the quantity field.
inventory.DefaultQuantity = inventoryDescQuantity.Default.(int)
// inventoryDescLockedQty is the schema descriptor for locked_qty field.
inventoryDescLockedQty := inventoryFields[8].Descriptor()
// inventory.DefaultLockedQty holds the default value on creation for the locked_qty field.
inventory.DefaultLockedQty = inventoryDescLockedQty.Default.(int)
// inventoryDescQualityStatus is the schema descriptor for quality_status field.
inventoryDescQualityStatus := inventoryFields[9].Descriptor()
// inventory.DefaultQualityStatus holds the default value on creation for the quality_status field.
inventory.DefaultQualityStatus = inventoryDescQualityStatus.Default.(string)
// inventoryDescStatus is the schema descriptor for status field.
inventoryDescStatus := inventoryFields[14].Descriptor()
// inventory.DefaultStatus holds the default value on creation for the status field.
inventory.DefaultStatus = inventoryDescStatus.Default.(string)
// inventoryDescOrderNo is the schema descriptor for order_no field.
inventoryDescOrderNo := inventoryFields[18].Descriptor()
// inventory.DefaultOrderNo holds the default value on creation for the order_no field.
inventory.DefaultOrderNo = inventoryDescOrderNo.Default.(string)
// inventory.OrderNoValidator is a validator for the "order_no" field. It is called by the builders before save.
inventory.OrderNoValidator = inventoryDescOrderNo.Validators[0].(func(string) error)
// inventoryDescCompletedProcess is the schema descriptor for completed_process field.
inventoryDescCompletedProcess := inventoryFields[20].Descriptor()
// inventory.DefaultCompletedProcess holds the default value on creation for the completed_process field.
inventory.DefaultCompletedProcess = inventoryDescCompletedProcess.Default.(string)
// inventory.CompletedProcessValidator is a validator for the "completed_process" field. It is called by the builders before save.
inventory.CompletedProcessValidator = inventoryDescCompletedProcess.Validators[0].(func(string) error)
// inventoryDescStocktakeNo is the schema descriptor for stocktake_no field.
inventoryDescStocktakeNo := inventoryFields[30].Descriptor()
// inventory.DefaultStocktakeNo holds the default value on creation for the stocktake_no field.
inventory.DefaultStocktakeNo = inventoryDescStocktakeNo.Default.(string)
// inventory.StocktakeNoValidator is a validator for the "stocktake_no" field. It is called by the builders before save.
inventory.StocktakeNoValidator = inventoryDescStocktakeNo.Validators[0].(func(string) error)
// inventoryDescCreatedAt is the schema descriptor for created_at field.
inventoryDescCreatedAt := inventoryFields[32].Descriptor()
// inventory.DefaultCreatedAt holds the default value on creation for the created_at field.
inventory.DefaultCreatedAt = inventoryDescCreatedAt.Default.(func() int64)
// inventoryDescUpdatedAt is the schema descriptor for updated_at field.
inventoryDescUpdatedAt := inventoryFields[33].Descriptor()
// inventory.DefaultUpdatedAt holds the default value on creation for the updated_at field.
inventory.DefaultUpdatedAt = inventoryDescUpdatedAt.Default.(func() int64)
inventorylockFields := schema.InventoryLock{}.Fields()
_ = inventorylockFields
// inventorylockDescLockedQty is the schema descriptor for locked_qty field.
inventorylockDescLockedQty := inventorylockFields[3].Descriptor()
// inventorylock.DefaultLockedQty holds the default value on creation for the locked_qty field.
inventorylock.DefaultLockedQty = inventorylockDescLockedQty.Default.(int)
// inventorylockDescStatus is the schema descriptor for status field.
inventorylockDescStatus := inventorylockFields[5].Descriptor()
// inventorylock.DefaultStatus holds the default value on creation for the status field.
inventorylock.DefaultStatus = inventorylockDescStatus.Default.(string)
// inventorylockDescCreatedAt is the schema descriptor for created_at field.
inventorylockDescCreatedAt := inventorylockFields[8].Descriptor()
// inventorylock.DefaultCreatedAt holds the default value on creation for the created_at field.
inventorylock.DefaultCreatedAt = inventorylockDescCreatedAt.Default.(func() int64)
// inventorylockDescUpdatedAt is the schema descriptor for updated_at field.
inventorylockDescUpdatedAt := inventorylockFields[9].Descriptor()
// inventorylock.DefaultUpdatedAt holds the default value on creation for the updated_at field.
inventorylock.DefaultUpdatedAt = inventorylockDescUpdatedAt.Default.(func() int64)
materialFields := schema.Material{}.Fields()
_ = materialFields
// materialDescItemType is the schema descriptor for item_type field.
materialDescItemType := materialFields[5].Descriptor()
// material.DefaultItemType holds the default value on creation for the item_type field.
material.DefaultItemType = materialDescItemType.Default.(int)
// materialDescManageMode is the schema descriptor for manage_mode field.
materialDescManageMode := materialFields[6].Descriptor()
// material.DefaultManageMode holds the default value on creation for the manage_mode field.
material.DefaultManageMode = materialDescManageMode.Default.(int)
// materialDescSnMode is the schema descriptor for sn_mode field.
materialDescSnMode := materialFields[7].Descriptor()
// material.DefaultSnMode holds the default value on creation for the sn_mode field.
material.DefaultSnMode = materialDescSnMode.Default.(int)
// materialDescIsBatchManaged is the schema descriptor for is_batch_managed field.
materialDescIsBatchManaged := materialFields[8].Descriptor()
// material.DefaultIsBatchManaged holds the default value on creation for the is_batch_managed field.
material.DefaultIsBatchManaged = materialDescIsBatchManaged.Default.(bool)
// materialDescIsSerialManaged is the schema descriptor for is_serial_managed field.
materialDescIsSerialManaged := materialFields[9].Descriptor()
// material.DefaultIsSerialManaged holds the default value on creation for the is_serial_managed field.
material.DefaultIsSerialManaged = materialDescIsSerialManaged.Default.(bool)
// materialDescSafetyStock is the schema descriptor for safety_stock field.
materialDescSafetyStock := materialFields[11].Descriptor()
// material.DefaultSafetyStock holds the default value on creation for the safety_stock field.
material.DefaultSafetyStock = materialDescSafetyStock.Default.(int)
// materialDescIsActive is the schema descriptor for is_active field.
materialDescIsActive := materialFields[12].Descriptor()
// material.DefaultIsActive holds the default value on creation for the is_active field.
material.DefaultIsActive = materialDescIsActive.Default.(bool)
// materialDescSyncPending is the schema descriptor for sync_pending field.
materialDescSyncPending := materialFields[13].Descriptor()
// material.DefaultSyncPending holds the default value on creation for the sync_pending field.
material.DefaultSyncPending = materialDescSyncPending.Default.(bool)
// materialDescMaterialCode is the schema descriptor for material_code field.
materialDescMaterialCode := materialFields[14].Descriptor()
// material.MaterialCodeValidator is a validator for the "material_code" field. It is called by the builders before save.
material.MaterialCodeValidator = materialDescMaterialCode.Validators[0].(func(string) error)
// materialDescCreatedAt is the schema descriptor for created_at field.
materialDescCreatedAt := materialFields[15].Descriptor()
// material.DefaultCreatedAt holds the default value on creation for the created_at field.
material.DefaultCreatedAt = materialDescCreatedAt.Default.(func() int64)
// materialDescUpdatedAt is the schema descriptor for updated_at field.
materialDescUpdatedAt := materialFields[16].Descriptor()
// material.DefaultUpdatedAt holds the default value on creation for the updated_at field.
material.DefaultUpdatedAt = materialDescUpdatedAt.Default.(func() int64)
materialdemandFields := schema.MaterialDemand{}.Fields()
_ = materialdemandFields
// materialdemandDescFuture5Qty is the schema descriptor for future5_qty field.
materialdemandDescFuture5Qty := materialdemandFields[1].Descriptor()
// materialdemand.DefaultFuture5Qty holds the default value on creation for the future5_qty field.
materialdemand.DefaultFuture5Qty = materialdemandDescFuture5Qty.Default.(int)
// materialdemandDescUpdatedAt is the schema descriptor for updated_at field.
materialdemandDescUpdatedAt := materialdemandFields[2].Descriptor()
// materialdemand.DefaultUpdatedAt holds the default value on creation for the updated_at field.
materialdemand.DefaultUpdatedAt = materialdemandDescUpdatedAt.Default.(func() int64)
ordermaterialledgerFields := schema.OrderMaterialLedger{}.Fields()
_ = ordermaterialledgerFields
// ordermaterialledgerDescTotalQty is the schema descriptor for total_qty field.
ordermaterialledgerDescTotalQty := ordermaterialledgerFields[3].Descriptor()
// ordermaterialledger.DefaultTotalQty holds the default value on creation for the total_qty field.
ordermaterialledger.DefaultTotalQty = ordermaterialledgerDescTotalQty.Default.(int)
// ordermaterialledgerDescOutQty is the schema descriptor for out_qty field.
ordermaterialledgerDescOutQty := ordermaterialledgerFields[4].Descriptor()
// ordermaterialledger.DefaultOutQty holds the default value on creation for the out_qty field.
ordermaterialledger.DefaultOutQty = ordermaterialledgerDescOutQty.Default.(int)
// ordermaterialledgerDescReturnedQty is the schema descriptor for returned_qty field.
ordermaterialledgerDescReturnedQty := ordermaterialledgerFields[5].Descriptor()
// ordermaterialledger.DefaultReturnedQty holds the default value on creation for the returned_qty field.
ordermaterialledger.DefaultReturnedQty = ordermaterialledgerDescReturnedQty.Default.(int)
// ordermaterialledgerDescConsumedQty is the schema descriptor for consumed_qty field.
ordermaterialledgerDescConsumedQty := ordermaterialledgerFields[6].Descriptor()
// ordermaterialledger.DefaultConsumedQty holds the default value on creation for the consumed_qty field.
ordermaterialledger.DefaultConsumedQty = ordermaterialledgerDescConsumedQty.Default.(int)
// ordermaterialledgerDescStatus is the schema descriptor for status field.
ordermaterialledgerDescStatus := ordermaterialledgerFields[7].Descriptor()
// ordermaterialledger.DefaultStatus holds the default value on creation for the status field.
ordermaterialledger.DefaultStatus = ordermaterialledgerDescStatus.Default.(string)
// ordermaterialledgerDescCreatedAt is the schema descriptor for created_at field.
ordermaterialledgerDescCreatedAt := ordermaterialledgerFields[11].Descriptor()
// ordermaterialledger.DefaultCreatedAt holds the default value on creation for the created_at field.
ordermaterialledger.DefaultCreatedAt = ordermaterialledgerDescCreatedAt.Default.(func() int64)
// ordermaterialledgerDescUpdatedAt is the schema descriptor for updated_at field.
ordermaterialledgerDescUpdatedAt := ordermaterialledgerFields[12].Descriptor()
// ordermaterialledger.DefaultUpdatedAt holds the default value on creation for the updated_at field.
ordermaterialledger.DefaultUpdatedAt = ordermaterialledgerDescUpdatedAt.Default.(func() int64)
outbounddetailFields := schema.OutboundDetail{}.Fields()
_ = outbounddetailFields
// outbounddetailDescQuantity is the schema descriptor for quantity field.
outbounddetailDescQuantity := outbounddetailFields[4].Descriptor()
// outbounddetail.DefaultQuantity holds the default value on creation for the quantity field.
outbounddetail.DefaultQuantity = outbounddetailDescQuantity.Default.(int)
// outbounddetailDescCreatedAt is the schema descriptor for created_at field.
outbounddetailDescCreatedAt := outbounddetailFields[6].Descriptor()
// outbounddetail.DefaultCreatedAt holds the default value on creation for the created_at field.
outbounddetail.DefaultCreatedAt = outbounddetailDescCreatedAt.Default.(func() int64)
outboundorderFields := schema.OutboundOrder{}.Fields()
_ = outboundorderFields
// outboundorderDescOutboundType is the schema descriptor for outbound_type field.
outboundorderDescOutboundType := outboundorderFields[1].Descriptor()
// outboundorder.DefaultOutboundType holds the default value on creation for the outbound_type field.
outboundorder.DefaultOutboundType = outboundorderDescOutboundType.Default.(string)
// outboundorderDescStatus is the schema descriptor for status field.
outboundorderDescStatus := outboundorderFields[2].Descriptor()
// outboundorder.DefaultStatus holds the default value on creation for the status field.
outboundorder.DefaultStatus = outboundorderDescStatus.Default.(string)
// outboundorderDescNeedAgv is the schema descriptor for need_agv field.
outboundorderDescNeedAgv := outboundorderFields[3].Descriptor()
// outboundorder.DefaultNeedAgv holds the default value on creation for the need_agv field.
outboundorder.DefaultNeedAgv = outboundorderDescNeedAgv.Default.(bool)
// outboundorderDescManageMode is the schema descriptor for manage_mode field.
outboundorderDescManageMode := outboundorderFields[11].Descriptor()
// outboundorder.DefaultManageMode holds the default value on creation for the manage_mode field.
outboundorder.DefaultManageMode = outboundorderDescManageMode.Default.(int)
// outboundorderDescSnMode is the schema descriptor for sn_mode field.
outboundorderDescSnMode := outboundorderFields[12].Descriptor()
// outboundorder.DefaultSnMode holds the default value on creation for the sn_mode field.
outboundorder.DefaultSnMode = outboundorderDescSnMode.Default.(int)
// outboundorderDescQuantity is the schema descriptor for quantity field.
outboundorderDescQuantity := outboundorderFields[18].Descriptor()
// outboundorder.DefaultQuantity holds the default value on creation for the quantity field.
outboundorder.DefaultQuantity = outboundorderDescQuantity.Default.(int)
// outboundorderDescDeliveryNo is the schema descriptor for delivery_no field.
outboundorderDescDeliveryNo := outboundorderFields[28].Descriptor()
// outboundorder.DefaultDeliveryNo holds the default value on creation for the delivery_no field.
outboundorder.DefaultDeliveryNo = outboundorderDescDeliveryNo.Default.(string)
// outboundorderDescVoided is the schema descriptor for voided field.
outboundorderDescVoided := outboundorderFields[30].Descriptor()
// outboundorder.DefaultVoided holds the default value on creation for the voided field.
outboundorder.DefaultVoided = outboundorderDescVoided.Default.(bool)
// outboundorderDescVoidReason is the schema descriptor for void_reason field.
outboundorderDescVoidReason := outboundorderFields[31].Descriptor()
// outboundorder.DefaultVoidReason holds the default value on creation for the void_reason field.
outboundorder.DefaultVoidReason = outboundorderDescVoidReason.Default.(string)
// outboundorderDescVoidedBy is the schema descriptor for voided_by field.
outboundorderDescVoidedBy := outboundorderFields[32].Descriptor()
// outboundorder.DefaultVoidedBy holds the default value on creation for the voided_by field.
outboundorder.DefaultVoidedBy = outboundorderDescVoidedBy.Default.(string)
// outboundorderDescCreatedAt is the schema descriptor for created_at field.
outboundorderDescCreatedAt := outboundorderFields[34].Descriptor()
// outboundorder.DefaultCreatedAt holds the default value on creation for the created_at field.
outboundorder.DefaultCreatedAt = outboundorderDescCreatedAt.Default.(func() int64)
permissionFields := schema.Permission{}.Fields()
_ = permissionFields
// permissionDescCode is the schema descriptor for code field.
permissionDescCode := permissionFields[0].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[1].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[2].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 parent_code field.
permissionDescParentCode := permissionFields[3].Descriptor()
// permission.DefaultParentCode holds the default value on creation for the parent_code field.
permission.DefaultParentCode = permissionDescParentCode.Default.(string)
// permission.ParentCodeValidator is a validator for the "parent_code" 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[4].Descriptor()
// permission.DefaultPath holds the default value on creation for the path field.
permission.DefaultPath = permissionDescPath.Default.(string)
// permission.PathValidator is a validator for the "path" field. It is called by the builders before save.
permission.PathValidator = permissionDescPath.Validators[0].(func(string) error)
// permissionDescIcon is the schema descriptor for icon field.
permissionDescIcon := permissionFields[5].Descriptor()
// permission.DefaultIcon holds the default value on creation for the icon field.
permission.DefaultIcon = permissionDescIcon.Default.(string)
// permission.IconValidator is a validator for the "icon" field. It is called by the builders before save.
permission.IconValidator = permissionDescIcon.Validators[0].(func(string) error)
// permissionDescSort is the schema descriptor for sort field.
permissionDescSort := permissionFields[6].Descriptor()
// permission.DefaultSort holds the default value on creation for the sort field.
permission.DefaultSort = permissionDescSort.Default.(int)
// permissionDescRemark is the schema descriptor for remark field.
permissionDescRemark := permissionFields[7].Descriptor()
// permission.DefaultRemark holds the default value on creation for the remark field.
permission.DefaultRemark = permissionDescRemark.Default.(string)
// permission.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
permission.RemarkValidator = permissionDescRemark.Validators[0].(func(string) error)
// permissionDescCreatedAt is the schema descriptor for created_at field.
permissionDescCreatedAt := permissionFields[8].Descriptor()
// permission.DefaultCreatedAt holds the default value on creation for the created_at field.
permission.DefaultCreatedAt = permissionDescCreatedAt.Default.(func() int64)
// permissionDescUpdatedAt is the schema descriptor for updated_at field.
permissionDescUpdatedAt := permissionFields[9].Descriptor()
// permission.DefaultUpdatedAt holds the default value on creation for the updated_at field.
permission.DefaultUpdatedAt = permissionDescUpdatedAt.Default.(func() int64)
returnorderFields := schema.ReturnOrder{}.Fields()
_ = returnorderFields
// returnorderDescSourceType is the schema descriptor for source_type field.
returnorderDescSourceType := returnorderFields[1].Descriptor()
// returnorder.DefaultSourceType holds the default value on creation for the source_type field.
returnorder.DefaultSourceType = returnorderDescSourceType.Default.(string)
// returnorderDescOrderNo is the schema descriptor for order_no field.
returnorderDescOrderNo := returnorderFields[2].Descriptor()
// returnorder.DefaultOrderNo holds the default value on creation for the order_no field.
returnorder.DefaultOrderNo = returnorderDescOrderNo.Default.(string)
// returnorderDescRefNo is the schema descriptor for ref_no field.
returnorderDescRefNo := returnorderFields[3].Descriptor()
// returnorder.DefaultRefNo holds the default value on creation for the ref_no field.
returnorder.DefaultRefNo = returnorderDescRefNo.Default.(string)
// returnorder.RefNoValidator is a validator for the "ref_no" field. It is called by the builders before save.
returnorder.RefNoValidator = returnorderDescRefNo.Validators[0].(func(string) error)
// returnorderDescStationNo is the schema descriptor for station_no field.
returnorderDescStationNo := returnorderFields[4].Descriptor()
// returnorder.DefaultStationNo holds the default value on creation for the station_no field.
returnorder.DefaultStationNo = returnorderDescStationNo.Default.(int)
// returnorderDescReturnDock is the schema descriptor for return_dock field.
returnorderDescReturnDock := returnorderFields[5].Descriptor()
// returnorder.DefaultReturnDock holds the default value on creation for the return_dock field.
returnorder.DefaultReturnDock = returnorderDescReturnDock.Default.(string)
// returnorder.ReturnDockValidator is a validator for the "return_dock" field. It is called by the builders before save.
returnorder.ReturnDockValidator = returnorderDescReturnDock.Validators[0].(func(string) error)
// returnorderDescSn is the schema descriptor for sn field.
returnorderDescSn := returnorderFields[6].Descriptor()
// returnorder.DefaultSn holds the default value on creation for the sn field.
returnorder.DefaultSn = returnorderDescSn.Default.(string)
// returnorderDescQty is the schema descriptor for qty field.
returnorderDescQty := returnorderFields[10].Descriptor()
// returnorder.DefaultQty holds the default value on creation for the qty field.
returnorder.DefaultQty = returnorderDescQty.Default.(int)
// returnorderDescUnit is the schema descriptor for unit field.
returnorderDescUnit := returnorderFields[11].Descriptor()
// returnorder.DefaultUnit holds the default value on creation for the unit field.
returnorder.DefaultUnit = returnorderDescUnit.Default.(string)
// returnorderDescReason is the schema descriptor for reason field.
returnorderDescReason := returnorderFields[12].Descriptor()
// returnorder.DefaultReason holds the default value on creation for the reason field.
returnorder.DefaultReason = returnorderDescReason.Default.(string)
// returnorderDescLossReason is the schema descriptor for loss_reason field.
returnorderDescLossReason := returnorderFields[13].Descriptor()
// returnorder.DefaultLossReason holds the default value on creation for the loss_reason field.
returnorder.DefaultLossReason = returnorderDescLossReason.Default.(string)
// returnorder.LossReasonValidator is a validator for the "loss_reason" field. It is called by the builders before save.
returnorder.LossReasonValidator = returnorderDescLossReason.Validators[0].(func(string) error)
// returnorderDescStatus is the schema descriptor for status field.
returnorderDescStatus := returnorderFields[14].Descriptor()
// returnorder.DefaultStatus holds the default value on creation for the status field.
returnorder.DefaultStatus = returnorderDescStatus.Default.(string)
// returnorderDescTransportMode is the schema descriptor for transport_mode field.
returnorderDescTransportMode := returnorderFields[15].Descriptor()
// returnorder.DefaultTransportMode holds the default value on creation for the transport_mode field.
returnorder.DefaultTransportMode = returnorderDescTransportMode.Default.(string)
// returnorder.TransportModeValidator is a validator for the "transport_mode" field. It is called by the builders before save.
returnorder.TransportModeValidator = returnorderDescTransportMode.Validators[0].(func(string) error)
// returnorderDescDispatchedAt is the schema descriptor for dispatched_at field.
returnorderDescDispatchedAt := returnorderFields[16].Descriptor()
// returnorder.DefaultDispatchedAt holds the default value on creation for the dispatched_at field.
returnorder.DefaultDispatchedAt = returnorderDescDispatchedAt.Default.(int64)
// returnorderDescCancelledBy is the schema descriptor for cancelled_by field.
returnorderDescCancelledBy := returnorderFields[17].Descriptor()
// returnorder.DefaultCancelledBy holds the default value on creation for the cancelled_by field.
returnorder.DefaultCancelledBy = returnorderDescCancelledBy.Default.(string)
// returnorder.CancelledByValidator is a validator for the "cancelled_by" field. It is called by the builders before save.
returnorder.CancelledByValidator = returnorderDescCancelledBy.Validators[0].(func(string) error)
// returnorderDescCancelReason is the schema descriptor for cancel_reason field.
returnorderDescCancelReason := returnorderFields[18].Descriptor()
// returnorder.DefaultCancelReason holds the default value on creation for the cancel_reason field.
returnorder.DefaultCancelReason = returnorderDescCancelReason.Default.(string)
// returnorder.CancelReasonValidator is a validator for the "cancel_reason" field. It is called by the builders before save.
returnorder.CancelReasonValidator = returnorderDescCancelReason.Validators[0].(func(string) error)
// returnorderDescOperator is the schema descriptor for operator field.
returnorderDescOperator := returnorderFields[19].Descriptor()
// returnorder.DefaultOperator holds the default value on creation for the operator field.
returnorder.DefaultOperator = returnorderDescOperator.Default.(string)
// returnorderDescReceiveBy is the schema descriptor for receive_by field.
returnorderDescReceiveBy := returnorderFields[20].Descriptor()
// returnorder.DefaultReceiveBy holds the default value on creation for the receive_by field.
returnorder.DefaultReceiveBy = returnorderDescReceiveBy.Default.(string)
// returnorderDescReceiveQty is the schema descriptor for receive_qty field.
returnorderDescReceiveQty := returnorderFields[21].Descriptor()
// returnorder.DefaultReceiveQty holds the default value on creation for the receive_qty field.
returnorder.DefaultReceiveQty = returnorderDescReceiveQty.Default.(int)
// returnorderDescReceiveDiff is the schema descriptor for receive_diff field.
returnorderDescReceiveDiff := returnorderFields[22].Descriptor()
// returnorder.DefaultReceiveDiff holds the default value on creation for the receive_diff field.
returnorder.DefaultReceiveDiff = returnorderDescReceiveDiff.Default.(int)
// returnorderDescReceiveNote is the schema descriptor for receive_note field.
returnorderDescReceiveNote := returnorderFields[23].Descriptor()
// returnorder.DefaultReceiveNote holds the default value on creation for the receive_note field.
returnorder.DefaultReceiveNote = returnorderDescReceiveNote.Default.(string)
// returnorderDescCreatedAt is the schema descriptor for created_at field.
returnorderDescCreatedAt := returnorderFields[24].Descriptor()
// returnorder.DefaultCreatedAt holds the default value on creation for the created_at field.
returnorder.DefaultCreatedAt = returnorderDescCreatedAt.Default.(func() int64)
// returnorderDescReceiveAt is the schema descriptor for receive_at field.
returnorderDescReceiveAt := returnorderFields[25].Descriptor()
// returnorder.DefaultReceiveAt holds the default value on creation for the receive_at field.
returnorder.DefaultReceiveAt = returnorderDescReceiveAt.Default.(int64)
roleFields := schema.Role{}.Fields()
_ = roleFields
// roleDescName is the schema descriptor for name field.
roleDescName := roleFields[0].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[1].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[2].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 created_at field.
roleDescCreatedAt := roleFields[4].Descriptor()
// role.DefaultCreatedAt holds the default value on creation for the created_at field.
role.DefaultCreatedAt = roleDescCreatedAt.Default.(func() int64)
// roleDescUpdatedAt is the schema descriptor for updated_at field.
roleDescUpdatedAt := roleFields[5].Descriptor()
// role.DefaultUpdatedAt holds the default value on creation for the updated_at field.
role.DefaultUpdatedAt = roleDescUpdatedAt.Default.(func() int64)
semifinishedFields := schema.SemiFinished{}.Fields()
_ = semifinishedFields
// semifinishedDescQuantity is the schema descriptor for quantity field.
semifinishedDescQuantity := semifinishedFields[3].Descriptor()
// semifinished.DefaultQuantity holds the default value on creation for the quantity field.
semifinished.DefaultQuantity = semifinishedDescQuantity.Default.(int)
// semifinishedDescStatus is the schema descriptor for status field.
semifinishedDescStatus := semifinishedFields[5].Descriptor()
// semifinished.DefaultStatus holds the default value on creation for the status field.
semifinished.DefaultStatus = semifinishedDescStatus.Default.(string)
// semifinishedDescCreatedAt is the schema descriptor for created_at field.
semifinishedDescCreatedAt := semifinishedFields[7].Descriptor()
// semifinished.DefaultCreatedAt holds the default value on creation for the created_at field.
semifinished.DefaultCreatedAt = semifinishedDescCreatedAt.Default.(func() int64)
// semifinishedDescUpdatedAt is the schema descriptor for updated_at field.
semifinishedDescUpdatedAt := semifinishedFields[8].Descriptor()
// semifinished.DefaultUpdatedAt holds the default value on creation for the updated_at field.
semifinished.DefaultUpdatedAt = semifinishedDescUpdatedAt.Default.(func() int64)
stocktakeitemFields := schema.StocktakeItem{}.Fields()
_ = stocktakeitemFields
// stocktakeitemDescBookQty is the schema descriptor for book_qty field.
stocktakeitemDescBookQty := stocktakeitemFields[8].Descriptor()
// stocktakeitem.DefaultBookQty holds the default value on creation for the book_qty field.
stocktakeitem.DefaultBookQty = stocktakeitemDescBookQty.Default.(int)
// stocktakeitemDescScannedQty is the schema descriptor for scanned_qty field.
stocktakeitemDescScannedQty := stocktakeitemFields[9].Descriptor()
// stocktakeitem.DefaultScannedQty holds the default value on creation for the scanned_qty field.
stocktakeitem.DefaultScannedQty = stocktakeitemDescScannedQty.Default.(int)
// stocktakeitemDescDiffQty is the schema descriptor for diff_qty field.
stocktakeitemDescDiffQty := stocktakeitemFields[10].Descriptor()
// stocktakeitem.DefaultDiffQty holds the default value on creation for the diff_qty field.
stocktakeitem.DefaultDiffQty = stocktakeitemDescDiffQty.Default.(int)
// stocktakeitemDescCounted is the schema descriptor for counted field.
stocktakeitemDescCounted := stocktakeitemFields[11].Descriptor()
// stocktakeitem.DefaultCounted holds the default value on creation for the counted field.
stocktakeitem.DefaultCounted = stocktakeitemDescCounted.Default.(bool)
// stocktakeitemDescUpdatedAt is the schema descriptor for updated_at field.
stocktakeitemDescUpdatedAt := stocktakeitemFields[14].Descriptor()
// stocktakeitem.DefaultUpdatedAt holds the default value on creation for the updated_at field.
stocktakeitem.DefaultUpdatedAt = stocktakeitemDescUpdatedAt.Default.(func() int64)
stocktakeorderFields := schema.StocktakeOrder{}.Fields()
_ = stocktakeorderFields
// stocktakeorderDescStatus is the schema descriptor for status field.
stocktakeorderDescStatus := stocktakeorderFields[1].Descriptor()
// stocktakeorder.DefaultStatus holds the default value on creation for the status field.
stocktakeorder.DefaultStatus = stocktakeorderDescStatus.Default.(string)
// stocktakeorderDescTotalTargets is the schema descriptor for total_targets field.
stocktakeorderDescTotalTargets := stocktakeorderFields[3].Descriptor()
// stocktakeorder.DefaultTotalTargets holds the default value on creation for the total_targets field.
stocktakeorder.DefaultTotalTargets = stocktakeorderDescTotalTargets.Default.(int)
// stocktakeorderDescDiffCount is the schema descriptor for diff_count field.
stocktakeorderDescDiffCount := stocktakeorderFields[4].Descriptor()
// stocktakeorder.DefaultDiffCount holds the default value on creation for the diff_count field.
stocktakeorder.DefaultDiffCount = stocktakeorderDescDiffCount.Default.(int)
// stocktakeorderDescAdjusted is the schema descriptor for adjusted field.
stocktakeorderDescAdjusted := stocktakeorderFields[5].Descriptor()
// stocktakeorder.DefaultAdjusted holds the default value on creation for the adjusted field.
stocktakeorder.DefaultAdjusted = stocktakeorderDescAdjusted.Default.(bool)
// stocktakeorderDescCreatedAt is the schema descriptor for created_at field.
stocktakeorderDescCreatedAt := stocktakeorderFields[11].Descriptor()
// stocktakeorder.DefaultCreatedAt holds the default value on creation for the created_at field.
stocktakeorder.DefaultCreatedAt = stocktakeorderDescCreatedAt.Default.(func() int64)
syncfailureFields := schema.SyncFailure{}.Fields()
_ = syncfailureFields
// syncfailureDescDirection is the schema descriptor for direction field.
syncfailureDescDirection := syncfailureFields[1].Descriptor()
// syncfailure.DefaultDirection holds the default value on creation for the direction field.
syncfailure.DefaultDirection = syncfailureDescDirection.Default.(string)
// syncfailureDescBizType is the schema descriptor for biz_type field.
syncfailureDescBizType := syncfailureFields[2].Descriptor()
// syncfailure.DefaultBizType holds the default value on creation for the biz_type field.
syncfailure.DefaultBizType = syncfailureDescBizType.Default.(string)
// syncfailureDescBizKey is the schema descriptor for biz_key field.
syncfailureDescBizKey := syncfailureFields[3].Descriptor()
// syncfailure.DefaultBizKey holds the default value on creation for the biz_key field.
syncfailure.DefaultBizKey = syncfailureDescBizKey.Default.(string)
// syncfailureDescEndpoint is the schema descriptor for endpoint field.
syncfailureDescEndpoint := syncfailureFields[4].Descriptor()
// syncfailure.DefaultEndpoint holds the default value on creation for the endpoint field.
syncfailure.DefaultEndpoint = syncfailureDescEndpoint.Default.(string)
// syncfailureDescPayloadJSON is the schema descriptor for payload_json field.
syncfailureDescPayloadJSON := syncfailureFields[5].Descriptor()
// syncfailure.DefaultPayloadJSON holds the default value on creation for the payload_json field.
syncfailure.DefaultPayloadJSON = syncfailureDescPayloadJSON.Default.(string)
// syncfailureDescErrorMsg is the schema descriptor for error_msg field.
syncfailureDescErrorMsg := syncfailureFields[6].Descriptor()
// syncfailure.DefaultErrorMsg holds the default value on creation for the error_msg field.
syncfailure.DefaultErrorMsg = syncfailureDescErrorMsg.Default.(string)
// syncfailureDescStatus is the schema descriptor for status field.
syncfailureDescStatus := syncfailureFields[8].Descriptor()
// syncfailure.DefaultStatus holds the default value on creation for the status field.
syncfailure.DefaultStatus = syncfailureDescStatus.Default.(string)
// syncfailureDescRetryCount is the schema descriptor for retry_count field.
syncfailureDescRetryCount := syncfailureFields[9].Descriptor()
// syncfailure.DefaultRetryCount holds the default value on creation for the retry_count field.
syncfailure.DefaultRetryCount = syncfailureDescRetryCount.Default.(int32)
// syncfailureDescCreatedAt is the schema descriptor for created_at field.
syncfailureDescCreatedAt := syncfailureFields[10].Descriptor()
// syncfailure.DefaultCreatedAt holds the default value on creation for the created_at field.
syncfailure.DefaultCreatedAt = syncfailureDescCreatedAt.Default.(int64)
// syncfailureDescLastErrorAt is the schema descriptor for last_error_at field.
syncfailureDescLastErrorAt := syncfailureFields[11].Descriptor()
// syncfailure.DefaultLastErrorAt holds the default value on creation for the last_error_at field.
syncfailure.DefaultLastErrorAt = syncfailureDescLastErrorAt.Default.(int64)
// syncfailureDescHandledBy is the schema descriptor for handled_by field.
syncfailureDescHandledBy := syncfailureFields[12].Descriptor()
// syncfailure.DefaultHandledBy holds the default value on creation for the handled_by field.
syncfailure.DefaultHandledBy = syncfailureDescHandledBy.Default.(string)
// syncfailureDescID is the schema descriptor for id field.
syncfailureDescID := syncfailureFields[0].Descriptor()
// syncfailure.IDValidator is a validator for the "id" field. It is called by the builders before save.
syncfailure.IDValidator = syncfailureDescID.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)
userFields := schema.User{}.Fields()
_ = userFields
// userDescRole is the schema descriptor for role field.
userDescRole := userFields[3].Descriptor()
// user.DefaultRole holds the default value on creation for the role field.
user.DefaultRole = userDescRole.Default.(string)
// userDescIsActive is the schema descriptor for is_active field.
userDescIsActive := userFields[7].Descriptor()
// user.DefaultIsActive holds the default value on creation for the is_active field.
user.DefaultIsActive = userDescIsActive.Default.(bool)
// userDescCreatedAt is the schema descriptor for created_at field.
userDescCreatedAt := userFields[10].Descriptor()
// user.DefaultCreatedAt holds the default value on creation for the created_at field.
user.DefaultCreatedAt = userDescCreatedAt.Default.(func() int64)
// userDescUpdatedAt is the schema descriptor for updated_at field.
userDescUpdatedAt := userFields[11].Descriptor()
// user.DefaultUpdatedAt holds the default value on creation for the updated_at field.
user.DefaultUpdatedAt = userDescUpdatedAt.Default.(func() int64)
zoneFields := schema.Zone{}.Fields()
_ = zoneFields
// zoneDescStatus is the schema descriptor for status field.
zoneDescStatus := zoneFields[10].Descriptor()
// zone.DefaultStatus holds the default value on creation for the status field.
zone.DefaultStatus = zoneDescStatus.Default.(string)
// zoneDescCreatedAt is the schema descriptor for created_at field.
zoneDescCreatedAt := zoneFields[11].Descriptor()
// zone.DefaultCreatedAt holds the default value on creation for the created_at field.
zone.DefaultCreatedAt = zoneDescCreatedAt.Default.(func() int64)
// zoneDescUpdatedAt is the schema descriptor for updated_at field.
zoneDescUpdatedAt := zoneFields[12].Descriptor()
// zone.DefaultUpdatedAt holds the default value on creation for the updated_at field.
zone.DefaultUpdatedAt = zoneDescUpdatedAt.Default.(func() int64)
}