Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
id | BIGINT UNSIGNED | 20 | √ | null |
|
|
||||
store_customer_id | BIGINT UNSIGNED | 20 | √ | null |
|
|
店舗別顧客ID |
|||
store_id | BIGINT UNSIGNED | 20 | null |
|
|
店舗ID |
||||
customer_id | BIGINT UNSIGNED | 20 | √ | null |
|
|
顧客ID |
|||
line_user_id | VARCHAR | 255 | null |
|
|
LINEユーザID |
||||
is_block | BIT | 1 | null |
|
|
ブロックフラグ |
||||
is_exists | TINYINT | 3 | √ | null |
|
|
||||
created_at | TIMESTAMP | 26 | √ | null |
|
|
||||
updated_at | TIMESTAMP | 26 | √ | null |
|
|
||||
deleted_at | TIMESTAMP | 26 | √ | null |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PRIMARY | Primary key | Asc | id |
line_users_customer_id_foreign | Performance | Asc | customer_id |
line_users_store_customer_id_foreign | Performance | Asc | store_customer_id |
line_users_store_id_customer_id_is_exists_unique | Must be unique | Asc/Asc/Asc | store_id + customer_id + is_exists |
line_users_store_id_line_user_id_is_exists_unique | Must be unique | Asc/Asc/Asc | store_id + line_user_id + is_exists |