Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| variable_type_id | int4 | 10 | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| replaces_variable_id | int8 | 19 | √ | null |
|
|
If this is a new version of a variable that existed in a previous manifest version, the ID of the previous version of the variable. This allows the system to automatically migrate values from older variable versions when a document is updated to a new manifest version. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| is_list | bool | 1 | false |
|
|
True if this variable is a list of values rather than a single value. If the variable is a table, true if the table can contain multiple rows. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stable_id | text | 2147483647 | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name | text | 2147483647 | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description | text | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| deliverable_question | text | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| dependency_variable_stable_id | text | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| dependency_condition_id | int4 | 10 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| dependency_value | text | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| internal_only | bool | 1 | false |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| is_required | bool | 1 | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| variables_pkey | Primary key | Asc | id |
| cannot_have_multiple_replacements | Must be unique | Asc | replaces_variable_id |
| variables_id_variable_type_id_key | Must be unique | Asc/Asc | id + variable_type_id |