Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int8 | 19 | √ | null |
|
|
||||||||
| variable_id | int8 | 19 | null |
|
|
|||||||||
| variable_type_id | int4 | 10 | null |
|
|
|||||||||
| variable_manifest_id | int8 | 19 | null |
|
|
|||||||||
| list_position | int4 | 10 | null |
|
|
|||||||||
| text_value | text | 2147483647 | √ | null |
|
|
||||||||
| used_variable_id | int8 | 19 | √ | null |
|
|
||||||||
| used_variable_type_id | int4 | 10 | √ | null |
|
|
||||||||
| usage_type_id | int4 | 10 | √ | null |
|
|
||||||||
| display_style_id | int4 | 10 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| variable_section_default_values_pkey | Primary key | Asc | id |
| variable_section_default_valu_variable_manifest_id_variable_key | Must be unique | Asc/Asc/Asc | variable_manifest_id + variable_id + list_position |
| variable_section_default_values_used_variable_id_idx | Performance | Asc | used_variable_id |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| cannot_reference_other_sections | ((used_variable_type_id IS NULL) OR (used_variable_type_id <> 8)) |
| cannot_have_both_text_and_reference | ((text_value IS NULL) OR (used_variable_id IS NULL)) |
| must_have_text_or_reference | ((text_value IS NOT NULL) OR (used_variable_id IS NOT NULL)) |
| variable_section_default_values_variable_type_id_check | (variable_type_id = 8) |