Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | public.gen_random_uuid() |
|
|
||||||
| user_id | uuid | 2147483647 | null |
|
|
||||||
| resource_type | varchar | 2147483647 | √ | null |
|
|
|||||
| resource_id | uuid | 2147483647 | √ | null |
|
|
|||||
| created_at | timestamp | 29,6 | null |
|
|
||||||
| updated_at | timestamp | 29,6 | null |
|
|
||||||
| deleted_at | timestamp | 29,6 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| accesses_pkey | Primary key | Asc | id |
| index_accesses_on_resource_id | Performance | Asc | resource_id |
| index_accesses_on_resource_type_and_resource_id | Performance | Asc/Asc | resource_type + resource_id |
| index_accesses_on_user_id | Performance | Asc | user_id |
| index_accesses_on_user_id_and_resource_id_and_resource_type | Must be unique | Asc/Asc/Asc | user_id + resource_id + resource_type |

