Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int4 | 10 | null |
|
|
||||||
| user_id | int4 | 10 | null |
|
|
Связь с таблицей “user” |
|||||
| keycloak_access_token | text | 2147483647 | √ | null |
|
|
Access-токен от кейклока |
||||
| keycloak_refresh_token | text | 2147483647 | √ | null |
|
|
Refresh-токен от кейклока |
||||
| keycloak_token_id | text | 2147483647 | √ | null |
|
|
ID токена от кейклока, нужно для logout |
||||
| created_at | timestamp | 22 | null |
|
|
Дата/время создания сессии |
|||||
| updated_at | timestamp | 22 | √ | null |
|
|
Дата/время обновления сессии |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| user_session_pkey | Primary key | Asc | id |
| user_session_keycloak_access_token_idx | Performance | Asc | keycloak_access_token |
| user_session_keycloak_refresh_token_idx | Performance | Asc | keycloak_refresh_token |
| user_session_user_id_idx | Performance | Asc | user_id |

