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 |
|
|
|||
| template_id | VARCHAR | 36 | √ | null |
|
|
||
| template_version_at_creation | INT | 10 | √ | null |
|
|
||
| title | VARCHAR | 500 | Behavior Analysis Assessment and Support Plan |
|
|
|||
| form_data | LONGTEXT | 2147483647 | √ | null |
|
|
||
| section_config | LONGTEXT | 2147483647 | √ | null |
|
|
||
| status | VARCHAR | 20 | DRAFT |
|
|
|||
| is_locked | BIT | 1 | 0 |
|
|
|||
| locked_at | DATETIME | 19 | √ | null |
|
|
||
| locked_by | VARCHAR | 36 | √ | null |
|
|
||
| created_at | DATETIME | 19 | null |
|
|
|||
| updated_at | DATETIME | 19 | √ | null |
|
|
||
| created_by | VARCHAR | 255 | √ | null |
|
|
||
| updated_by | VARCHAR | 255 | √ | null |
|
|
||
| document_type | VARCHAR | 30 | ASSESSMENT |
|
|
|||
| supervisee_user_id | VARCHAR | 36 | √ | null |
|
|
||
| period_month | INT | 10 | √ | null |
|
|
||
| period_year | INT | 10 | √ | null |
|
|
||
| parent_document_id | VARCHAR | 36 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_assessment_doc_case | Performance | Asc | case_id |
| idx_assessment_doc_client | Performance | Asc | client_id |
| idx_assessment_doc_created | Performance | Asc | created_at |
| idx_assessment_doc_lbl | Performance | Asc | location_business_line_id |
| idx_assessment_doc_status | Performance | Asc | status |
| idx_assessment_docs_type | Performance | Asc | document_type |
| idx_assessment_supervisee_period | Performance | Asc/Asc/Asc/Asc | supervisee_user_id + case_id + period_month + period_year |
| uk_supervision_log_period | Must be unique | Asc/Asc/Asc/Asc/Asc | supervisee_user_id + case_id + period_month + period_year + document_type |