// Code generated by ent, DO NOT EDIT. package ent import ( "bj_power_wms/ent/agvtask" "bj_power_wms/ent/dock" "bj_power_wms/ent/eventlog" "bj_power_wms/ent/inbounddetail" "bj_power_wms/ent/inboundorder" "bj_power_wms/ent/inspectionrecord" "bj_power_wms/ent/inventory" "bj_power_wms/ent/inventorylock" "bj_power_wms/ent/material" "bj_power_wms/ent/ordermaterialledger" "bj_power_wms/ent/outbounddetail" "bj_power_wms/ent/outboundorder" "bj_power_wms/ent/permission" "bj_power_wms/ent/role" "bj_power_wms/ent/semifinished" "bj_power_wms/ent/stocktakeitem" "bj_power_wms/ent/stocktakeorder" "bj_power_wms/ent/user" "bj_power_wms/ent/zone" "bj_power_wms/schema" ) // 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) // agvtaskDescRelatedOutboundNo is the schema descriptor for related_outbound_no field. agvtaskDescRelatedOutboundNo := agvtaskFields[5].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[6].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[7].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[8].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[9].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[10].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[11].Descriptor() // agvtask.DefaultCreatedAt holds the default value on creation for the created_at field. agvtask.DefaultCreatedAt = agvtaskDescCreatedAt.Default.(func() int64) dockFields := schema.Dock{}.Fields() _ = dockFields // dockDescDockCode is the schema descriptor for dock_code field. dockDescDockCode := dockFields[0].Descriptor() // dock.DockCodeValidator is a validator for the "dock_code" 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 dock_type field. dockDescDockType := dockFields[2].Descriptor() // dock.DefaultDockType holds the default value on creation for the dock_type field. dock.DefaultDockType = dockDescDockType.Default.(string) // dock.DockTypeValidator is a validator for the "dock_type" field. It is called by the builders before save. dock.DockTypeValidator = dockDescDockType.Validators[0].(func(string) error) // dockDescStationNo is the schema descriptor for station_no field. dockDescStationNo := dockFields[3].Descriptor() // dock.DefaultStationNo holds the default value on creation for the station_no field. dock.DefaultStationNo = dockDescStationNo.Default.(int) // dockDescHasPallet is the schema descriptor for has_pallet field. dockDescHasPallet := dockFields[4].Descriptor() // dock.DefaultHasPallet holds the default value on creation for the has_pallet field. dock.DefaultHasPallet = dockDescHasPallet.Default.(bool) // dockDescPalletRef is the schema descriptor for pallet_ref field. dockDescPalletRef := dockFields[5].Descriptor() // dock.DefaultPalletRef holds the default value on creation for the pallet_ref field. dock.DefaultPalletRef = dockDescPalletRef.Default.(string) // dock.PalletRefValidator is a validator for the "pallet_ref" 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 created_at field. dockDescCreatedAt := dockFields[7].Descriptor() // dock.DefaultCreatedAt holds the default value on creation for the created_at field. dock.DefaultCreatedAt = dockDescCreatedAt.Default.(func() int64) 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) // inboundorderDescQuantity is the schema descriptor for quantity field. inboundorderDescQuantity := inboundorderFields[7].Descriptor() // inboundorder.DefaultQuantity holds the default value on creation for the quantity field. inboundorder.DefaultQuantity = inboundorderDescQuantity.Default.(int) // inboundorderDescCreatedAt is the schema descriptor for created_at field. inboundorderDescCreatedAt := inboundorderFields[10].Descriptor() // inboundorder.DefaultCreatedAt holds the default value on creation for the created_at field. inboundorder.DefaultCreatedAt = inboundorderDescCreatedAt.Default.(func() int64) inspectionrecordFields := schema.InspectionRecord{}.Fields() _ = inspectionrecordFields // inspectionrecordDescInspectionType is the schema descriptor for inspection_type field. inspectionrecordDescInspectionType := inspectionrecordFields[3].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[4].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[6].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[7].Descriptor() // inspectionrecord.DefaultPassQty holds the default value on creation for the pass_qty field. inspectionrecord.DefaultPassQty = inspectionrecordDescPassQty.Default.(int) // inspectionrecordDescCreatedAt is the schema descriptor for created_at field. inspectionrecordDescCreatedAt := inspectionrecordFields[12].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[13].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 // inventoryDescCategory is the schema descriptor for category field. inventoryDescCategory := inventoryFields[1].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[6].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[7].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[8].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[10].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[14].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[15].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) // inventoryDescCreatedAt is the schema descriptor for created_at field. inventoryDescCreatedAt := inventoryFields[17].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[18].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[6].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[7].Descriptor() // material.DefaultManageMode holds the default value on creation for the manage_mode field. material.DefaultManageMode = materialDescManageMode.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) // materialDescIsActive is the schema descriptor for is_active field. materialDescIsActive := materialFields[11].Descriptor() // material.DefaultIsActive holds the default value on creation for the is_active field. material.DefaultIsActive = materialDescIsActive.Default.(bool) // materialDescCreatedAt is the schema descriptor for created_at field. materialDescCreatedAt := materialFields[12].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[13].Descriptor() // material.DefaultUpdatedAt holds the default value on creation for the updated_at field. material.DefaultUpdatedAt = materialDescUpdatedAt.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) // ordermaterialledgerDescStatus is the schema descriptor for status field. ordermaterialledgerDescStatus := ordermaterialledgerFields[5].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[7].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[8].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) // outboundorderDescManageMode is the schema descriptor for manage_mode field. outboundorderDescManageMode := outboundorderFields[5].Descriptor() // outboundorder.DefaultManageMode holds the default value on creation for the manage_mode field. outboundorder.DefaultManageMode = outboundorderDescManageMode.Default.(int) // outboundorderDescQuantity is the schema descriptor for quantity field. outboundorderDescQuantity := outboundorderFields[8].Descriptor() // outboundorder.DefaultQuantity holds the default value on creation for the quantity field. outboundorder.DefaultQuantity = outboundorderDescQuantity.Default.(int) // outboundorderDescCreatedAt is the schema descriptor for created_at field. outboundorderDescCreatedAt := outboundorderFields[16].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) 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[5].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[6].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[7].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[8].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[9].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) // stocktakeorderDescCreatedAt is the schema descriptor for created_at field. stocktakeorderDescCreatedAt := stocktakeorderFields[4].Descriptor() // stocktakeorder.DefaultCreatedAt holds the default value on creation for the created_at field. stocktakeorder.DefaultCreatedAt = stocktakeorderDescCreatedAt.Default.(func() int64) 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[9].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[10].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[3].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[4].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[5].Descriptor() // zone.DefaultUpdatedAt holds the default value on creation for the updated_at field. zone.DefaultUpdatedAt = zoneDescUpdatedAt.Default.(func() int64) }