Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
||||||
| location_business_line_id | VARCHAR | 36 | null |
|
|
||||||
| user_id | VARCHAR | 36 | null |
|
|
||||||
| tenant_role_id | VARCHAR | 36 | null |
|
|
||||||
| assigned_at | TIMESTAMP | 19 | √ | CURRENT_TIMESTAMP |
|
|
|||||
| assigned_by | VARCHAR | 100 | √ | system |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_location | Performance | Asc | location_business_line_id |
| idx_role | Performance | Asc | tenant_role_id |
| idx_user | Performance | Asc | user_id |
| unique_user_role | Must be unique | Asc/Asc | user_id + tenant_role_id |