Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
|---|---|---|---|---|---|---|---|---|---|---|
| user_id | CHAR | 36 | null |
|
|
ユーザID |
||||
| company_video_id | CHAR | 36 | null |
|
|
自社動画ID |
||||
| status | INT UNSIGNED | 10 | 1 |
|
|
閲覧ステータス |
||||
| watched_seconds | INT UNSIGNED | 10 | 0 |
|
|
動画視聴秒数s |
||||
| updated_at | BIGINT UNSIGNED | 20 | unix_timestamp(now()) |
|
|
更新時間(unixTimes) |
||||
| memo | TEXT | 65535 | √ | null |
|
|
動画視聴メモ |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc/Asc | user_id + company_video_id |
| company_video_watching_histories_company_video_foreign | Performance | Asc | company_video_id |
| company_video_watching_histories_status_foreign | Performance | Asc | status |
| company_video_watching_histories_user_id_index | Performance | Asc | user_id |

