2017-06-13 06:44:40 +00:00
|
|
|
{
|
|
|
|
"name": "TicketState",
|
|
|
|
"base": "MyModel",
|
|
|
|
"validateUpsert": true,
|
|
|
|
"properties": {
|
2017-06-13 09:26:54 +00:00
|
|
|
"id": {
|
2017-06-13 06:44:40 +00:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|