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 |
||
| content | TEXT | 65535 | null |
|
|
コメント内容 |
||
| user_given_name_value | VARCHAR | 255 | null |
|
|
コメント投稿者の名(スナップショット) |
||
| user_given_name_ruby | VARCHAR | 255 | null |
|
|
コメント投稿者の名の読み(スナップショット) |
||
| user_family_name_value | VARCHAR | 255 | null |
|
|
コメント投稿者の姓(スナップショット) |
||
| user_family_name_ruby | VARCHAR | 255 | null |
|
|
コメント投稿者の姓の読み(スナップショット) |
||
| user_thumbnail | TEXT | 65535 | √ | null |
|
|
コメント投稿者のサムネイル(スナップショット) |
|
| is_deleted | BIT | 1 | 0 |
|
|
論理削除フラグ |
||
| 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_created_at | Performance | Asc | created_at |
| idx_report_deleted | Performance | Asc/Asc/Asc | report_id + is_deleted + created_at |
| idx_report_id | Performance | Asc | report_id |
| idx_user_id | Performance | Asc | user_id |
