2019-09-25 18:06:42 +00:00
|
|
|
{
|
|
|
|
"name": "ZoneWarehouse",
|
2020-12-02 11:05:47 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model":"ZoneLog",
|
|
|
|
"relation": "zone"
|
|
|
|
},
|
2019-09-25 18:06:42 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "zoneWarehouse"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number"
|
2020-07-29 08:47:48 +00:00
|
|
|
},
|
|
|
|
"warehouseFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
2019-09-25 18:06:42 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"zone": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Zone",
|
|
|
|
"foreignKey": "zoneFk"
|
|
|
|
},
|
|
|
|
"warehouse": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Warehouse",
|
|
|
|
"foreignKey": "warehouseFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|