{ "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 } }, "relations": { "readRole": { "type": "belongsTo", "model": "Role", "foreignKey": "readRoleFk" }, "writeRole": { "type": "belongsTo", "model": "Role", "foreignKey": "writeRoleFk" } }, "acls": [{ "accessType": "READ", "principalType": "ROLE", "principalId": "$everyone", "permission": "ALLOW" }] }