salix/modules/route/back/models/vehicle-event.json

51 lines
1.0 KiB
JSON

{
"name": "VehicleEvent",
"base": "VnModel",
"options": {
"mysql": {
"table": "vehicleEvent"
}
},
"properties": {
"id": {
"type": "number",
"id": true
},
"started": {
"type": "date"
},
"finished": {
"type": "date"
},
"vehicleStateFk": {
"type": "number"
},
"description": {
"type": "string"
},
"vehicleFk": {
"type": "number"
},
"userFk": {
"type": "number"
},
"notified": {
"type": "date"
}
},
"relations": {
"state": {
"type": "belongsTo",
"model": "VehicleState",
"foreignKey": "vehicleStateFk"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}