44 lines
868 B
JSON
44 lines
868 B
JSON
{
|
|
"name": "ClaimState",
|
|
"base": "VnModel",
|
|
"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
|
|
}
|
|
},
|
|
"relations": {
|
|
"writeRole": {
|
|
"type": "belongsTo",
|
|
"model": "Role",
|
|
"foreignKey": "roleFk"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
]
|
|
}
|