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

53 lines
714 B
JSON

{
"name": "ZoneEvent",
"base": "VnModel",
"options": {
"mysql": {
"table": "zoneEvent"
}
},
"properties": {
"id": {
"id": true,
"type": "Number"
},
"zoneFk": {
"id": true,
"type": "Number"
},
"type": {
"type": "String"
},
"dated": {
"type": "Date"
},
"started": {
"type": "Date"
},
"ended": {
"type": "Date"
},
"weekDays": {
"type": "String"
},
"hour": {
"type": "Date"
},
"travelingDays": {
"type": "Number"
},
"price": {
"type": "Number"
},
"bonus": {
"type": "Number"
}
},
"relations": {
"zone": {
"type": "belongsTo",
"model": "Zone",
"foreignKey": "zoneFk"
}
}
}