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

55 lines
1009 B
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"
},
"labelerFk": {
2023-03-17 07:46:01 +00:00
"type": "number"
}
},
"relations": {
"sector": {
"type": "belongsTo",
"model": "Sector",
"foreignKey": "sectorFk"
2023-11-09 07:04:38 +00:00
},
"train": {
"type": "belongsTo",
"model": "Train",
"foreignKey": "trainFk"
},
"printer": {
"type": "belongsTo",
"model": "Printer",
"foreignKey": "labelerFk"
2023-12-01 12:54:09 +00:00
},
"itemPackingType": {
"type": "belongsTo",
"model": "ItemPackingType",
"foreignKey": "itemPackingTypeFk",
"primaryKey": "code"
2023-03-17 07:46:01 +00:00
}
}
}