// 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/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/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/sysconfig" "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() { 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) 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) 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) // inspectionrecordDescDisposalType is the schema descriptor for disposal_type field. inspectionrecordDescDisposalType := inspectionrecordFields[21].Descriptor() // inspectionrecord.DefaultDisposalType holds the default value on creation for the disposal_type field. inspectionrecord.DefaultDisposalType = inspectionrecordDescDisposalType.Default.(string) // 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[29].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[31].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[32].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) // materialDescCreatedAt is the schema descriptor for created_at field. materialDescCreatedAt := materialFields[14].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[15].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) // outboundorderDescVoided is the schema descriptor for voided field. outboundorderDescVoided := outboundorderFields[29].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[30].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[31].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[33].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) 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[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[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) }