Role
This model represents role used for authorization. Roles are assigned to Users.
| Property | Type | Description | Information |
|---|---|---|---|
id | int | Identifier | Unique for single role. |
name | string | Name of role | Maximal length is 50 characters. |
is_active | bool | Indicates role activity | true for active role, false for inactive role. Inactive role has no permissions. |
is_protected | bool | Indicates whether role is protected | true for protected role, false for unprotected role. Protected role cannot be updated nor deleted. |
Example:
{
"id": 1,
"name": "Administrator",
"is_active": true,
"is_protected": true
}