Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
id | BIGINT UNSIGNED | 20 | √ | null |
|
|
||||
store_id | BIGINT UNSIGNED | 20 | null |
|
|
店舗ID |
||||
customer_id | BIGINT UNSIGNED | 20 | null |
|
|
顧客ID |
||||
staff_id | BIGINT UNSIGNED | 20 | null |
|
|
担当者ID |
||||
read_at | TIMESTAMP | 26 | null |
|
|
最終閲覧日時 |
||||
created_at | TIMESTAMP | 26 | √ | null |
|
|
||||
updated_at | TIMESTAMP | 26 | √ | null |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PRIMARY | Primary key | Asc | id |
message_read_times_customer_id_foreign | Performance | Asc | customer_id |
message_read_times_staff_id_foreign | Performance | Asc | staff_id |
message_read_times_unique | Must be unique | Asc/Asc/Asc | store_id + customer_id + staff_id |