Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | BIGINT | 19 | √ | null |
|
|
|||||
| sdoh_history_id | BIGINT UNSIGNED | 20 | null |
|
|
FK to form_history_sdoh.id |
|||||
| health_concern_id | BIGINT | 19 | null |
|
|
FK to lists.id where type=health_concern or medical_problem |
|||||
| created_at | DATETIME | 19 | current_timestamp() |
|
|
||||||
| created_by | BIGINT | 19 | √ | NULL |
|
|
FK to users.id |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_health_concern | Performance | Asc | health_concern_id |
| idx_sdoh_history | Performance | Asc | sdoh_history_id |
| unique_sdoh_concern | Must be unique | Asc/Asc | sdoh_history_id + health_concern_id |