salix/back/models/dms-type.json

44 lines
934 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": {
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
},
"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": "VnRole",
2019-05-01 16:49:39 +00:00
"foreignKey": "readRoleFk"
},
"writeRole": {
"type": "belongsTo",
"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"
}]
}