Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
|||
| community_id | VARCHAR | 45 | √ | null |
|
|
||
| user_id | VARCHAR | 45 | √ | null |
|
|
||
| is_bookmarked | TINYINT | 3 | √ | 0 |
|
|
||
| is_liked | TINYINT | 3 | √ | 0 |
|
|
||
| created_at | DATETIME | 19 | √ | CURRENT_TIMESTAMP |
|
|
||
| updated_at | DATETIME | 19 | √ | null |
|
|
||
| deleted_at | DATETIME | 19 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| community_id | Performance | Asc | community_id |
| community_id_2 | Performance | Asc/Asc/Asc/Asc | community_id + user_id + is_liked + deleted_at |
| community_id_3 | Performance | Asc/Asc/Asc/Asc | community_id + user_id + is_bookmarked + deleted_at |
| is_bookmarked | Performance | Asc/Asc/Asc | is_bookmarked + community_id + deleted_at |
| is_liked | Performance | Asc/Asc/Asc | is_liked + deleted_at + community_id |
| user_id | Performance | Asc | user_id |
