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

30 lines
496 B
JSON

{
"name": "ZoneIncluded",
"base": "VnModel",
"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"
}
}
}