Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
||||||
| location_business_line_id | VARCHAR | 36 | null |
|
|
||||||
| service_plan_id | VARCHAR | 36 | null |
|
|
||||||
| name | VARCHAR | 255 | null |
|
|
||||||
| description | TEXT | 65535 | √ | null |
|
|
|||||
| start_date | DATE | 10 | √ | null |
|
|
|||||
| end_date | DATE | 10 | √ | null |
|
|
|||||
| status | VARCHAR | 20 | ONGOING |
|
|
||||||
| is_active | BIT | 1 | 1 |
|
|
||||||
| is_data_collection_enabled | BIT | 1 | 1 |
|
|
||||||
| created_at | TIMESTAMP | 19 | √ | CURRENT_TIMESTAMP |
|
|
|||||
| updated_at | TIMESTAMP | 19 | √ | null |
|
|
|||||
| created_by | VARCHAR | 100 | √ | system |
|
|
|||||
| updated_by | VARCHAR | 100 | √ | system |
|
|
|||||
| source_item_id | VARCHAR | 36 | √ | null |
|
|
Self-FK - the item this was carried forward from on clone (issue #196, Phase 6) |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_sp_caregiver_comp_loc | Performance | Asc | location_business_line_id |
| idx_sp_caregiver_comp_sp | Performance | Asc | service_plan_id |
| idx_sp_caregiver_source_item | Performance | Asc | source_item_id |