salix/modules/zone/back/models/zone-warehouse.json

35 lines
607 B
JSON
Raw Permalink Normal View History

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,
2022-05-12 07:47:47 +00:00
"type": "number"
2020-07-29 08:47:48 +00:00
},
"warehouseFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
2020-07-29 08:47:48 +00:00
"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"
}
}
}