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

35 lines
592 B
JSON
Raw Permalink Normal View History

2018-09-19 13:05:07 +00:00
{
"name": "ZoneIncluded",
2020-12-29 07:50:12 +00:00
"base": "Loggable",
"log": {
"model": "ZoneLog",
"relation": "zone",
"showField": "isIncluded"
},
2018-09-19 13:05:07 +00:00
"options": {
"mysql": {
"table": "zoneIncluded"
}
},
"properties": {
"zoneFk": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number"
2018-09-19 13:05:07 +00:00
},
"isIncluded": {
2022-05-12 07:47:47 +00:00
"type": "boolean"
2018-09-19 13:05:07 +00:00
}
},
"relations": {
"zone": {
"type": "belongsTo",
"model": "Zone",
"foreignKey": "zoneFk"
},
"geo": {
"type": "belongsTo",
"model": "ZoneGeo",
"foreignKey": "geoFk"
}
}
}