41 lines
591 B
JSON
41 lines
591 B
JSON
{
|
|
"name": "ItemShelving",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "itemShelving"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"shelve": {
|
|
"type": "string"
|
|
},
|
|
"deep": {
|
|
"type": "number"
|
|
},
|
|
"quantity": {
|
|
"type": "number"
|
|
},
|
|
"created": {
|
|
"type": "Date"
|
|
}
|
|
},
|
|
"relations": {
|
|
"item": {
|
|
"type": "belongsTo",
|
|
"model": "Item",
|
|
"foreignKey": "itemFk"
|
|
},
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "Account",
|
|
"foreignKey": "userFk"
|
|
}
|
|
}
|
|
}
|