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

35 lines
592 B
JSON

{
"name": "ZoneIncluded",
"base": "Loggable",
"log": {
"model": "ZoneLog",
"relation": "zone",
"showField": "isIncluded"
},
"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"
}
}
}