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

39 lines
579 B
JSON

{
"name": "Operator",
"base": "VnModel",
"options": {
"mysql": {
"table": "operator"
}
},
"properties": {
"workerFk": {
"id": true,
"type": "number",
"required": true
},
"numberOfWagons": {
"type": "number"
},
"trainFk": {
"type": "number"
},
"itemPackingTypeFk": {
"type": "string"
},
"warehouseFk": {
"type": "number"
},
"labelerFk": {
"type": "number"
}
},
"relations": {
"sector": {
"type": "belongsTo",
"model": "Sector",
"foreignKey": "sectorFk"
}
}
}