salix/modules/shelving/back/models/shelving.json

54 lines
1.1 KiB
JSON

{
"name": "Shelving",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"options": {
"mysql": {
"table": "shelving"
}
},
"properties": {
"id": {
"type": "number",
"description": "Identifier",
"id": true
},
"code": {
"type": "string"
},
"parkingFk": {
"type": "number"
},
"isPrinted": {
"type": "boolean"
},
"priority": {
"type": "number"
},
"userFk": {
"type": "number"
},
"isRecyclable": {
"type": "boolean"
}
},
"relations": {
"parking": {
"type": "belongsTo",
"model": "Parking",
"foreignKey": "parkingFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "id"
},
"itemShelving": {
"type": "hasMany",
"model": "ItemShelving",
"foreignKey": "shelvingFk"
}
}
}