salix/modules/claim/back/models/claim-state.json

51 lines
1014 B
JSON

{
"name": "ClaimState",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"options": {
"mysql": {
"table": "claimState"
}
},
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Identifier"
},
"code": {
"type": "string",
"required": true
},
"description": {
"type": "string",
"required": true
},
"priority": {
"type": "number",
"required": true
},
"hasToNotify": {
"type": "boolean",
"required": true
}
},
"relations": {
"writeRole": {
"type": "belongsTo",
"model": "VnRole",
"foreignKey": "roleFk"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}