Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
||||||
| sp_maladaptive_behavior_measure_id | VARCHAR | 36 | null |
|
|
||||||
| measure_version_id | VARCHAR | 36 | √ | null |
|
|
|||||
| baseline_number | INT | 10 | null |
|
|
||||||
| baseline_value | DECIMAL | 10,2 | null |
|
|
||||||
| baseline_date | DATE | 10 | null |
|
|
||||||
| is_active | BIT | 1 | 1 |
|
|
||||||
| created_at | DATETIME | 19 | √ | CURRENT_TIMESTAMP |
|
|
|||||
| updated_at | DATETIME | 19 | √ | CURRENT_TIMESTAMP |
|
|
|||||
| created_by | VARCHAR | 36 | √ | null |
|
|
|||||
| updated_by | VARCHAR | 36 | √ | null |
|
|
|||||
| period | VARCHAR | 20 | √ | null |
|
|
|||||
| description | VARCHAR | 500 | √ | null |
|
|
|||||
| baseline_value_secondary | DECIMAL | 19,4 | √ | null |
|
|
Secondary value for measurement types that need two inputs (e.g., total trials for percentage calculation) |
||||
| measurement_type | VARCHAR | 20 | √ | FREQUENCY |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_baseline_measure_version | Performance | Asc | measure_version_id |
| idx_baselines_measure | Performance | Asc | sp_maladaptive_behavior_measure_id |
| uk_baseline_measure_number | Must be unique | Asc/Asc | sp_maladaptive_behavior_measure_id + baseline_number |