36 lines
723 B
JSON
36 lines
723 B
JSON
{
|
|
"name": "ItemPlacement",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "itemPlacement"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true
|
|
},
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"itemFk": {
|
|
"type": "number"
|
|
},
|
|
"warehouseFk": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"item": {
|
|
"type": "belongsTo",
|
|
"model": "Item",
|
|
"foreignKey": "itemFk"
|
|
},
|
|
"warehouse": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseFk"
|
|
}
|
|
}
|
|
} |