35 lines
607 B
JSON
35 lines
607 B
JSON
{
|
|
"name": "ZoneWarehouse",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model":"ZoneLog",
|
|
"relation": "zone"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "zoneWarehouse"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "number"
|
|
},
|
|
"warehouseFk": {
|
|
"type": "number",
|
|
"required": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"zone": {
|
|
"type": "belongsTo",
|
|
"model": "Zone",
|
|
"foreignKey": "zoneFk"
|
|
},
|
|
"warehouse": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseFk"
|
|
}
|
|
}
|
|
} |