2018-02-20 11:25:51 +00:00
|
|
|
{
|
2018-08-30 06:50:03 +00:00
|
|
|
"name": "ItemNiche",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-12-17 10:28:39 +00:00
|
|
|
"table": "itemPlacement"
|
2018-08-30 06:50:03 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": 1,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"warehouseFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"code": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
}
|
2018-02-20 11:25:51 +00:00
|
|
|
},
|
2018-08-30 06:50:03 +00:00
|
|
|
"relations": {
|
|
|
|
"item": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Item",
|
|
|
|
"foreignKey": "itemFk"
|
|
|
|
},
|
|
|
|
"warehouse": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Warehouse",
|
|
|
|
"foreignKey": "warehouseFk",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
}
|
2018-02-20 11:25:51 +00:00
|
|
|
}
|