Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
||||||
| client_id | VARCHAR | 36 | null |
|
|
||||||
| case_id | VARCHAR | 36 | √ | null |
|
|
|||||
| location_business_line_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 | ACTIVE |
|
|
||||||
| supersedes_plan_id | VARCHAR | 36 | √ | null |
|
|
FK to service_plans.id - the plan this one supersedes (issue #196, Phase 3) |
||||
| version | INT | 10 | 1 |
|
|
||||||
| effective_start_date | DATE | 10 | √ | null |
|
|
|||||
| effective_end_date | DATE | 10 | √ | null |
|
|
|||||
| notes | TEXT | 65535 | √ | null |
|
|
|||||
| created_at | TIMESTAMP | 19 | CURRENT_TIMESTAMP |
|
|
||||||
| updated_at | TIMESTAMP | 19 | √ | null |
|
|
|||||
| created_by | VARCHAR | 36 | √ | null |
|
|
|||||
| updated_by | VARCHAR | 36 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_service_plan_client_id | Performance | Asc | client_id |
| idx_service_plan_status | Performance | Asc | status |
| idx_service_plans_location | Performance | Asc | location_business_line_id |
| idx_service_plans_supersedes | Performance | Asc | supersedes_plan_id |