2018-02-20 11:25:51 +00:00
|
|
|
{
|
2018-08-30 06:50:03 +00:00
|
|
|
"name": "ItemNiche",
|
2019-03-12 10:47:53 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model": "ItemLog",
|
|
|
|
"relation": "item",
|
2019-03-29 06:36:26 +00:00
|
|
|
"showField": "code"
|
2019-03-12 10:47:53 +00:00
|
|
|
},
|
2018-08-30 06:50:03 +00:00
|
|
|
"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
|
|
|
}
|