49 lines
1020 B
JSON
49 lines
1020 B
JSON
|
{
|
||
|
"name": "Shelving",
|
||
|
"base": "VnModel",
|
||
|
"options": {
|
||
|
"mysql": {
|
||
|
"table": "shelving"
|
||
|
}
|
||
|
},
|
||
|
"properties": {
|
||
|
"id": {
|
||
|
"type": "string",
|
||
|
"id": true,
|
||
|
"description": "Identifier",
|
||
|
"mysql": {
|
||
|
"columnName": "code"
|
||
|
}
|
||
|
},
|
||
|
"parkingFk": {
|
||
|
"type": "number",
|
||
|
"required": true
|
||
|
},
|
||
|
"isPrinted": {
|
||
|
"type": "boolean",
|
||
|
"required": true
|
||
|
},
|
||
|
"priority": {
|
||
|
"type": "number"
|
||
|
},
|
||
|
"userFk": {
|
||
|
"type": "number"
|
||
|
},
|
||
|
"isRecyclable": {
|
||
|
"type": "boolean"
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"parking": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Parking",
|
||
|
"foreignKey": "parkingFk"
|
||
|
},
|
||
|
"worker": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Worker",
|
||
|
"foreignKey": "userFk"
|
||
|
}
|
||
|
}
|
||
|
}
|