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": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2020-11-09 13:53:26 +00:00
|
|
|
"id": true
|
|
|
|
},
|
2018-02-15 09:58:02 +00:00
|
|
|
"code": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string"
|
2020-11-09 13:53:26 +00:00
|
|
|
},
|
|
|
|
"itemFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2020-11-09 13:53:26 +00:00
|
|
|
},
|
|
|
|
"warehouseFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|