Model UserRole
namespace Hubleto\App\Settings\Models\UserRole
A list of roles assignable to a user.
Constants
| Constant Name | Value |
|---|---|
| USER_ROLES | An array containing all the roles mentioned bellow |
| ROLE_ADMINISTRATOR | ADMINISTRATOR |
Properties
| Property | Value |
|---|---|
| eloquentClass | Eloquent\UserRole::class |
| table | user_roles |
| lookupSqlValue | [TABLE].role |
Data Scructure
| Column | Title | ADIOS Type | Length | Required |
|---|---|---|---|---|
| id | ID | int | TRUE | |
| role | Role | varchar | TRUE |
Foreign Keys
This model does not contain any foreing keys
Indexes
Only default indexes are used.
Relations
| Relation | Type | Other parameters |
|---|---|---|
| PERMISSIONS | HAS_MANY | RolePermission::class, 'id_role', 'id' |
