salix/modules/item/back/models/item-niche.json

38 lines
811 B
JSON
Raw Normal View History

2018-02-20 11:25:51 +00:00
{
"name": "ItemNiche",
"base": "VnModel",
"options": {
"mysql": {
2018-12-17 10:28:39 +00:00
"table": "itemPlacement"
}
},
"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
},
"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
}