43 lines
1.0 KiB
JSON
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
|
|
}
|
|
}
|