2018-02-15 09:58:02 +00:00
|
|
|
{
|
|
|
|
"name": "ItemPlacement",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "itemPlacement"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
2020-11-09 13:53:26 +00:00
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true
|
|
|
|
},
|
2018-02-15 09:58:02 +00:00
|
|
|
"code": {
|
|
|
|
"type": "String"
|
2020-11-09 13:53:26 +00:00
|
|
|
},
|
|
|
|
"itemFk": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"warehouseFk": {
|
|
|
|
"type": "Number"
|
2018-02-15 09:58:02 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"item": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Item",
|
|
|
|
"foreignKey": "itemFk"
|
|
|
|
},
|
|
|
|
"warehouse": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Warehouse",
|
|
|
|
"foreignKey": "warehouseFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|