2022-05-24 10:50:22 +00:00
|
|
|
{
|
|
|
|
"name": "Shelving",
|
2024-11-11 12:02:09 +00:00
|
|
|
"base": "VnModel",
|
2023-12-05 06:48:56 +00:00
|
|
|
"mixins": {
|
|
|
|
"Loggable": true
|
|
|
|
},
|
2022-05-24 10:50:22 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "shelving"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2022-07-14 07:54:28 +00:00
|
|
|
"type": "number",
|
2023-09-26 11:12:18 +00:00
|
|
|
"description": "Identifier",
|
2023-09-28 05:42:44 +00:00
|
|
|
"id": true
|
2022-05-24 10:50:22 +00:00
|
|
|
},
|
2022-07-14 07:54:28 +00:00
|
|
|
"code": {
|
2023-09-26 11:12:18 +00:00
|
|
|
"type": "string"
|
2022-05-24 10:50:22 +00:00
|
|
|
},
|
2022-07-14 07:54:28 +00:00
|
|
|
"parkingFk": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2022-05-24 10:50:22 +00:00
|
|
|
"isPrinted": {
|
2022-07-14 07:54:28 +00:00
|
|
|
"type": "boolean"
|
2022-05-24 10:50:22 +00:00
|
|
|
},
|
|
|
|
"priority": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"userFk": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"isRecyclable": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"parking": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Parking",
|
|
|
|
"foreignKey": "parkingFk"
|
|
|
|
},
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
2023-09-21 10:50:07 +00:00
|
|
|
"foreignKey": "id"
|
2024-11-11 12:02:09 +00:00
|
|
|
},
|
|
|
|
"itemShelving": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ItemShelving",
|
2024-11-18 09:34:23 +00:00
|
|
|
"foreignKey": "shelvingFk"
|
2022-05-24 10:50:22 +00:00
|
|
|
}
|
|
|
|
}
|
2024-11-11 12:02:09 +00:00
|
|
|
}
|