Model RolePermission
namespace HubletoApp\Settings\Models\RolePermission
An table for assigning permissions to a role
Constants
This model does not define constants.
Properties
Property | Value |
---|---|
eloquentClass | Eloquent\RolePermission::class |
table | role_permissions |
lookupSqlValue | [TABLE].id_permission |
Data Scructure
Column | Title | ADIOS Type | Length | Required |
---|---|---|---|---|
id | ID | int | TRUE | |
id_permission | Permission | lookup | TRUE | |
id_role | Roles | lookup | TRUE |
Foreign Keys
Column | Model | Relation | OnUpdate | OnDelete |
---|---|---|---|---|
id_permission | Modules\Core\Settings\Models\Permission | 1:1 | Cascade | Cascade |
id_role | Modules\Core\Settings\Models\UserRole | 1:1 | Cascade | Cascade |
Indexes
Only default indexes are used.
Relations
Relation | Type | Other parameters |
---|---|---|
ROLE | BELONGS_TO | UserRole::class, 'id_role', 'id' |
PERMISSION | BELONGS_TO | Permission::class, 'id_permission', 'id' |