# role_assignments

0 rows

### Description

assigning roles in different context

### Columns

Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments
--- | --- | --- | --- | --- | --- | --- | --- | ---
id | BIGINT | 19 |  | √ | null |  |  |
roleid | BIGINT | 19 |  |  | 0 |  |
role.id | roleassi_rol2_fkR
contextid | BIGINT | 19 |  |  | 0 |  |
context.id | roleassi_con2_fkR
userid | BIGINT | 19 |  |  | 0 |  |
user.id | roleassi_use2_fkR
timemodified | BIGINT | 19 |  |  | 0 |  |  |
modifierid | BIGINT | 19 |  |  | 0 |  |  |
component | VARCHAR | 100 |  |  |  |  |  | plugin responsible responsible for role assignment, empty when manually assigned
itemid | BIGINT | 19 |  |  | 0 |  |  | Id of enrolment/auth instance responsible for this role assignment
sortorder | BIGINT | 19 |  |  | 0 |  |  |

### Indexes

Constraint Name | Type | Sort | Column(s)
--- | --- | --- | ---
PRIMARY | Primary key | Asc | id
roleassi_comiteuse_ix | Performance | Asc/Asc/Asc | component + itemid + userid
roleassi_con_ix | Performance | Asc | contextid
roleassi_rol_ix | Performance | Asc | roleid
roleassi_rolcon_ix | Performance | Asc/Asc | roleid + contextid
roleassi_sor_ix | Performance | Asc | sortorder
roleassi_use_ix | Performance | Asc | userid
roleassi_useconrol_ix | Performance | Asc/Asc/Asc | userid + contextid + roleid

### Relationships