salix/back/models/dmsType.json

47 lines
1017 B
JSON
Raw Normal View History

2019-04-25 16:30:11 +00:00
{
"name": "DmsType",
"description": "Documental Managment system types",
"base": "VnModel",
"options": {
"mysql": {
"table": "dmsType"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"name": {
"type": "string",
"required": true
},
"path": {
"type": "string",
"required": true
},
"code": {
"type": "string",
"required": true
2019-04-25 16:30:11 +00:00
}
},
2019-05-01 16:49:39 +00:00
"relations": {
"readRole": {
"type": "belongsTo",
"model": "Role",
"foreignKey": "readRoleFk"
},
"writeRole": {
"type": "belongsTo",
"model": "Role",
"foreignKey": "writeRoleFk"
}
},
"acls": [{
2019-04-25 16:30:11 +00:00
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
2019-05-01 16:49:39 +00:00
}]
2019-04-25 16:30:11 +00:00
}