Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
|||
| location_business_line_id | VARCHAR | 36 | null |
|
|
|||
| sp_maladaptive_behavior_id | VARCHAR | 36 | null |
|
|
|||
| status | enum('ONGOING', 'RESOLVED', 'ON_HOLD', 'MASTERED', 'DEPRECATED', 'DISCONTINUED', 'PENDING', 'IN_OBSERVATION') | 14 | null |
|
|
|||
| effective_start_date | DATE | 10 | null |
|
|
|||
| effective_end_date | DATE | 10 | √ | null |
|
|
||
| is_current | BIT | 1 | 0 |
|
|
|||
| is_active | BIT | 1 | 1 |
|
|
|||
| created_at | DATETIME | 19 | √ | CURRENT_TIMESTAMP |
|
|
||
| updated_at | DATETIME | 19 | √ | CURRENT_TIMESTAMP |
|
|
||
| created_by | VARCHAR | 36 | √ | null |
|
|
||
| updated_by | VARCHAR | 36 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_status_history_current | Performance | Asc/Asc | sp_maladaptive_behavior_id + is_current |
| idx_status_history_location | Performance | Asc | location_business_line_id |