salix/modules/worker/back/models/operator.json

79 lines
1.4 KiB
JSON
Raw Normal View History

2023-03-17 07:46:01 +00:00
{
"name": "Operator",
"base": "VnModel",
"options": {
"mysql": {
"table": "operator"
}
},
"properties": {
"workerFk": {
"id": true,
"type": "number",
"required": true
},
"numberOfWagons": {
"type": "number"
},
"trainFk": {
2023-06-22 06:56:27 +00:00
"type": "number"
2023-03-17 07:46:01 +00:00
},
"itemPackingTypeFk": {
2023-06-22 06:56:27 +00:00
"type": "string"
2023-03-17 07:46:01 +00:00
},
"warehouseFk": {
"type": "number"
},
2024-10-15 12:42:35 +00:00
"sectorFk": {
"type": "number"
},
"labelerFk": {
2023-03-17 07:46:01 +00:00
"type": "number"
2024-06-26 12:02:25 +00:00
},
"isOnReservationMode": {
"type": "boolean",
"required": true
2024-10-08 14:06:38 +00:00
},
"machineFk": {
"type": "number"
2024-10-15 12:42:35 +00:00
},
"linesLimit": {
"type": "number"
},
"volumeLimit": {
"type": "number"
},
"sizeLimit": {
"type": "number"
2024-10-08 14:06:38 +00:00
}
2024-06-26 12:02:25 +00:00
},
2023-03-17 07:46:01 +00:00
"relations": {
2024-06-26 12:02:25 +00:00
"sector": {
"type": "belongsTo",
"model": "Sector",
"foreignKey": "sectorFk"
},
2023-11-09 07:04:38 +00:00
"train": {
2024-06-26 12:02:25 +00:00
"type": "belongsTo",
"model": "Train",
"foreignKey": "trainFk"
},
2023-11-09 07:04:38 +00:00
"printer": {
2024-06-26 12:02:25 +00:00
"type": "belongsTo",
"model": "Printer",
"foreignKey": "labelerFk"
},
2024-03-14 07:36:19 +00:00
"itemPackingType": {
2024-06-26 12:02:25 +00:00
"type": "belongsTo",
"model": "ItemPackingType",
"foreignKey": "itemPackingTypeFk",
2024-03-14 07:36:19 +00:00
"primaryKey": "code"
2024-10-08 14:06:38 +00:00
},
"machine": {
"type": "belongsTo",
"model": "Machine",
"foreignKey": "machineFk"
}
2024-06-26 12:02:25 +00:00
}
2024-10-08 14:06:38 +00:00
}