salix/services/production/common/models/ticket-state.json

48 lines
865 B
JSON
Raw Normal View History

{
"name": "TicketState",
"base": "MyModel",
"validateUpsert": true,
"properties": {
2017-06-13 09:26:54 +00:00
"id": {
"id": true,
"type": "Number",
"forceId": false
},
"updated": {
"type": "Date",
"required": false
}
},
"relations": {
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"state": {
"type": "belongsTo",
"model": "State",
"foreignKey": "stateFk"
},
"employee": {
"type": "belongsTo",
"model": "Employee",
"foreignKey": "employeeFk"
}
},
"acls": [
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "root",
"permission": "ALLOW"
}
]
}