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

47 lines
635 B
JSON

{
"name": "ZoneEvent",
"base": "VnModel",
"options": {
"mysql": {
"table": "zoneEvent"
}
},
"properties": {
"id": {
"id": true,
"type": "Number"
},
"zoneFk": {
"id": true,
"type": "Number"
},
"from": {
"type": "Date"
},
"to": {
"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"
}
}
}