Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
|||
| case_id | VARCHAR | 36 | null |
|
|
|||
| physician_id | VARCHAR | 36 | null |
|
|
|||
| effective_start_date | DATE | 10 | √ | null |
|
|
||
| effective_end_date | DATE | 10 | √ | null |
|
|
||
| notes | TEXT | 65535 | √ | null |
|
|
||
| is_active | BIT | 1 | 1 |
|
|
|||
| created_at | TIMESTAMP | 19 | √ | CURRENT_TIMESTAMP |
|
|
||
| updated_at | TIMESTAMP | 19 | √ | CURRENT_TIMESTAMP |
|
|
||
| created_by | VARCHAR | 36 | √ | null |
|
|
||
| updated_by | VARCHAR | 36 | √ | null |
|
|
||
| is_ordering | BIT | 1 | 0 |
|
|
|||
| is_referring | BIT | 1 | 0 |
|
|
|||
| is_prescribing | BIT | 1 | 0 |
|
|
|||
| is_primary_ordering | BIT | 1 | 0 |
|
|
|||
| is_primary_referring | BIT | 1 | 0 |
|
|
|||
| is_primary_prescribing | BIT | 1 | 0 |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_case_physician_case_id | Performance | Asc | case_id |
| idx_case_physician_is_active | Performance | Asc | is_active |
| idx_case_physician_ordering | Performance | Asc | is_ordering |
| idx_case_physician_physician_id | Performance | Asc | physician_id |
| idx_case_physician_prescribing | Performance | Asc | is_prescribing |
| idx_case_physician_primary_ordering | Performance | Asc | is_primary_ordering |
| idx_case_physician_primary_prescribing | Performance | Asc | is_primary_prescribing |
| idx_case_physician_primary_referring | Performance | Asc | is_primary_referring |
| idx_case_physician_referring | Performance | Asc | is_referring |
| uk_case_physician | Must be unique | Asc/Asc | case_id + physician_id |