39 lines
833 B
JSON
39 lines
833 B
JSON
{
|
|
"name": "ItemNiche",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "itemPlacement",
|
|
"database": "vn"
|
|
}
|
|
},
|
|
"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
|
|
}
|
|
}
|
|
}
|