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

31 lines
498 B
JSON

{
"name": "ZoneIncluded",
"base": "Loggable",
"options": {
"mysql": {
"table": "zoneIncluded"
}
},
"properties": {
"zoneFk": {
"id": true,
"type": "number"
},
"isIncluded": {
"type": "boolean"
}
},
"relations": {
"zone": {
"type": "belongsTo",
"model": "Zone",
"foreignKey": "zoneFk"
},
"geo": {
"type": "belongsTo",
"model": "ZoneGeo",
"foreignKey": "geoFk"
}
}
}