Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
customer_id | BIGINT UNSIGNED | 20 | null |
|
|
顧客ID |
||||
BIGINT UNSIGNED | 20 | null |
|
|
顧客ID |
|||||
relationship | enum('applicant', 'father', 'mother', 'son', 'daughter', 'elder-brother', 'elder-sister', 'younger-brother', 'younger-sister', 'uncle', 'aunt', 'grandfather', 'grandmother', 'others') | 15 | null |
|
|
customer_idからみたrelation_idの続柄 |
||||
created_at | TIMESTAMP | 26 | √ | null |
|
|
||||
updated_at | TIMESTAMP | 26 | √ | null |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
relationships_customer_id_related_customer_id_unique | Must be unique | Asc/Asc | customer_id + related_customer_id |
relationships_related_customer_id_foreign | Performance | Asc | related_customer_id |