2019-04-25 16:30:11 +00:00
|
|
|
{
|
|
|
|
"name": "DmsType",
|
|
|
|
"description": "Documental Managment system types",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "dmsType"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2019-04-25 16:30:11 +00:00
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
2019-05-28 09:26:54 +00:00
|
|
|
"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",
|
2023-11-28 07:12:16 +00:00
|
|
|
"model": "VnRole",
|
2019-05-01 16:49:39 +00:00
|
|
|
"foreignKey": "readRoleFk"
|
|
|
|
},
|
|
|
|
"writeRole": {
|
|
|
|
"type": "belongsTo",
|
2023-11-28 07:12:16 +00:00
|
|
|
"model": "VnRole",
|
2019-05-01 16:49:39 +00:00
|
|
|
"foreignKey": "writeRoleFk"
|
|
|
|
}
|
|
|
|
},
|
2023-04-28 07:35:15 +00:00
|
|
|
"acls": [{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}]
|
2023-04-19 11:59:26 +00:00
|
|
|
}
|