This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/application/Espo/Resources/metadata/entityDefs/Role.json
T
2015-06-03 15:55:13 +03:00

43 lines
1.0 KiB
JSON

{
"fields": {
"name": {
"maxLength": 150,
"required": true,
"type": "varchar"
},
"assignmentPermission": {
"type": "enum",
"options": ["not-set", "all", "team", "no"],
"default": "not-set",
"tooltip": true,
"translation": "Role.options.levelList"
},
"userPermission": {
"type": "enum",
"options": ["not-set", "all", "team", "no"],
"default": "not-set",
"tooltip": true,
"translation": "Role.options.levelList"
},
"data": {
"type": "jsonObject"
}
},
"links": {
"users": {
"type": "hasMany",
"entity": "User",
"foreign": "roles"
},
"teams": {
"type": "hasMany",
"entity": "Team",
"foreign": "roles"
}
},
"collection": {
"sortBy": "name",
"asc": true
}
}