Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
id | BIGINT UNSIGNED | 20 | √ | null |
|
|
||||
company_id | BIGINT UNSIGNED | 20 | √ | null |
|
|
会社ID |
|||
name | VARCHAR | 255 | null |
|
|
ステータス名 |
||||
business_phase | enum('inquiry', 'visit', 'viewing', 'application', 'contract', 'lost') | 11 | null |
|
|
業務フェーズ |
||||
sort_order | INT | 10 | 1 |
|
|
並び順 |
||||
is_inquiry_status | BIT | 1 | 0 |
|
|
反響反映先フラグ |
||||
field_name | VARCHAR | 255 | √ | 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 |
company_field_name | Must be unique | Asc/Asc | company_id + field_name |
customer_statuses_company_id_foreign | Performance | Asc | company_id |