43 lines
918 B
JSON
43 lines
918 B
JSON
{
|
|
"name": "ItemNiche",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model": "ItemLog",
|
|
"relation": "item",
|
|
"changedModelValue": "code"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "itemPlacement"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": 1,
|
|
"description": "Identifier"
|
|
},
|
|
"warehouseFk": {
|
|
"type": "Number",
|
|
"description": "Identifier"
|
|
},
|
|
"code": {
|
|
"type": "String",
|
|
"required": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"item": {
|
|
"type": "belongsTo",
|
|
"model": "Item",
|
|
"foreignKey": "itemFk"
|
|
},
|
|
"warehouse": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseFk",
|
|
"required": true
|
|
}
|
|
}
|
|
}
|