Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | BIGINT UNSIGNED | 20 | √ | null |
|
|
||||||||||||||||||||||||||||||||
customer_id | BIGINT UNSIGNED | 20 | null |
|
|
顧客ID |
||||||||||||||||||||||||||||||||
store_id | BIGINT UNSIGNED | 20 | null |
|
|
担当店舗ID |
||||||||||||||||||||||||||||||||
customer_status_id | BIGINT UNSIGNED | 20 | null |
|
|
顧客ステータスID |
||||||||||||||||||||||||||||||||
latest_accessed_datetime | DATETIME | 26 | √ | null |
|
|
最終アクセス日時 |
|||||||||||||||||||||||||||||||
latest_sent_datetime | DATETIME | 26 | √ | null |
|
|
最終送信日時 |
|||||||||||||||||||||||||||||||
latest_received_datetime | DATETIME | 26 | √ | null |
|
|
最終受信日時 |
|||||||||||||||||||||||||||||||
rank | enum('A', 'B', 'C', 'D') | 1 | null |
|
|
ランク |
||||||||||||||||||||||||||||||||
main_staff_id | BIGINT UNSIGNED | 20 | √ | null |
|
|
主担当 |
|||||||||||||||||||||||||||||||
inquiry_staff_id | BIGINT UNSIGNED | 20 | √ | null |
|
|
反響担当 |
|||||||||||||||||||||||||||||||
visit_staff_id | BIGINT UNSIGNED | 20 | √ | null |
|
|
来店担当 |
|||||||||||||||||||||||||||||||
viewing_staff_id | BIGINT UNSIGNED | 20 | √ | null |
|
|
案内担当 |
|||||||||||||||||||||||||||||||
application_staff_id | BIGINT UNSIGNED | 20 | √ | null |
|
|
申込担当 |
|||||||||||||||||||||||||||||||
contract_staff_id | BIGINT UNSIGNED | 20 | √ | null |
|
|
契約担当 |
|||||||||||||||||||||||||||||||
aggregation_at | TIMESTAMP | 26 | √ | 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 |
store_customers_application_staff_id_foreign | Performance | Asc | application_staff_id |
store_customers_contract_staff_id_foreign | Performance | Asc | contract_staff_id |
store_customers_customer_id_store_id_unique | Must be unique | Asc/Asc | customer_id + store_id |
store_customers_customer_status_id_foreign | Performance | Asc | customer_status_id |
store_customers_deleted | Performance | Asc/Asc/Asc | deleted_at + aggregation_at + store_id |
store_customers_inquiry_staff_id_foreign | Performance | Asc | inquiry_staff_id |
store_customers_main_staff_id_foreign | Performance | Asc | main_staff_id |
store_customers_store_id_foreign | Performance | Asc | store_id |
store_customers_viewing_staff_id_foreign | Performance | Asc | viewing_staff_id |
store_customers_visit_staff_id_foreign | Performance | Asc | visit_staff_id |