Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | CHAR | 36 | null |
|
|
閲覧履歴ID (UUID) |
||
| report_id | CHAR | 36 | null |
|
|
レポートID |
||
| user_id | CHAR | 36 | null |
|
|
閲覧したユーザーID |
||
| last_read_at | BIGINT UNSIGNED | 20 | null |
|
|
最終閲覧日時(UNIX時間) |
||
| created_at | BIGINT UNSIGNED | 20 | unix_timestamp(now()) |
|
|
作成日時(UNIX時間) |
||
| updated_at | BIGINT UNSIGNED | 20 | unix_timestamp(now()) |
|
|
更新日時(UNIX時間) |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_user_id | Performance | Asc | user_id |
| unique_report_user | Must be unique | Asc/Asc | report_id + user_id |
