Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
id | BIGINT UNSIGNED | 20 | √ | null |
|
|
PK |
|||
store_customer_id | BIGINT UNSIGNED | 20 | null |
|
|
店舗別顧客ID |
||||
staff_id | BIGINT UNSIGNED | 20 | √ | null |
|
|
タスク担当者ID |
|||
title | VARCHAR | 255 | null |
|
|
タイトル |
||||
scheduled_date | DATETIME | 26 | √ | null |
|
|
対応予定日 |
|||
execution_date | DATETIME | 26 | √ | null |
|
|
実施日時 |
|||
completion_date | DATETIME | 26 | √ | null |
|
|
対応完了日 |
|||
memo | TEXT | 65535 | null |
|
|
メモ |
||||
business_phase | enum('inquiry', 'visit', 'viewing', 'application', 'contract') | 11 | null |
|
|
業務フェーズ |
||||
create_event | enum('other', 'message_received', 'inquiry', 'estimation_apply', 'estimation_rejected', 'estimation_approved', 'web_meeting', 'message_view', 'rental_detail_view', 'rental_favorite', 'visit_reservation') | 19 | other |
|
|
タスク生成イベント |
||||
created_at | TIMESTAMP | 26 | √ | null |
|
|
||||
updated_at | TIMESTAMP | 26 | √ | null |
|
|
||||
deleted_at | TIMESTAMP | 26 | √ | null |
|
|
||||
taskable_type | VARCHAR | 255 | √ | null |
|
|
||||
taskable_id | BIGINT UNSIGNED | 20 | √ | null |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PRIMARY | Primary key | Asc | id |
tasks__deleted_at_store_customer_id_completion_date | Performance | Asc/Asc/Asc | deleted_at + store_customer_id + completion_date |
tasks_staff_id_foreign | Performance | Asc | staff_id |
tasks_store_customer_id_foreign | Performance | Asc | store_customer_id |
tasks_taskable_type_taskable_id_index | Performance | Asc/Asc | taskable_type + taskable_id |