Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
|||
| location_business_line_id | VARCHAR | 36 | null |
|
|
|||
| parent_encounter_id | VARCHAR | 36 | null |
|
|
|||
| supervision_encounter_id | VARCHAR | 36 | null |
|
|
|||
| supervisee_user_id | VARCHAR | 36 | √ | null |
|
|
||
| created_at | TIMESTAMP | 19 | √ | CURRENT_TIMESTAMP |
|
|
||
| updated_at | TIMESTAMP | 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_enc_sup_location | Performance | Asc | location_business_line_id |
| idx_enc_sup_parent | Performance | Asc | parent_encounter_id |
| idx_enc_sup_supervision | Performance | Asc | supervision_encounter_id |
| uk_parent_supervision | Must be unique | Asc/Asc | parent_encounter_id + supervision_encounter_id |