46 lines
708 B
JSON
46 lines
708 B
JSON
{
|
|
"name": "ItemShelving",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "itemShelving"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"shelvingFk": {
|
|
"type": "string"
|
|
},
|
|
"itemFk": {
|
|
"type": "number"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
},
|
|
"isChecked": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"relations": {
|
|
"item": {
|
|
"type": "belongsTo",
|
|
"model": "Item",
|
|
"foreignKey": "itemFk"
|
|
},
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "VnUser",
|
|
"foreignKey": "userFk"
|
|
},
|
|
"shelving": {
|
|
"type": "belongsTo",
|
|
"model": "Shelving",
|
|
"foreignKey": "shelvingFk"
|
|
}
|
|
}
|
|
}
|