Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
||||||
| location_business_line_id | VARCHAR | 36 | null |
|
|
||||||
| tenant_role_id | VARCHAR | 36 | null |
|
|
||||||
| system_permission_id | VARCHAR | 36 | null |
|
|
||||||
| permission_scope | VARCHAR | 20 | √ | ALL |
|
|
|||||
| created_at | TIMESTAMP | 19 | √ | CURRENT_TIMESTAMP |
|
|
|||||
| created_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_permission | Performance | Asc | system_permission_id |
| idx_role | Performance | Asc | tenant_role_id |
| idx_scope | Performance | Asc | permission_scope |
| unique_role_permission_scope | Must be unique | Asc/Asc/Asc | tenant_role_id + system_permission_id + permission_scope |