Columns
| Column | Type | Children | Parents | Comments |
|---|---|---|---|---|
| id | int8 |
|
|
|
| survey_id | int8 |
|
|
|
| name | varchar |
|
|
|
| instructions | varchar |
|
|
|
| question_type | varchar |
|
|
|
| order | int8 |
|
|
|
| created_at | timestamp |
|
|
|
| updated_at | timestamp |
|
|
|
| scale_minimum | int8 |
|
|
|
| scale_maximum | int8 |
|
|
|
| scale_minimum_label | varchar |
|
|
|
| scale_maximum_label | varchar |
|
|
|
| scale_lower_threshold | int8 |
|
|
|
| company_id | int8 |
|
|
The owning tenant’s ID. @example 1. |
| accept_multiple | bool |
|
|
Whether a multiple choice question can accept multiple answers @example true |
| key | varchar |
|
|
A stable identifier of the question, used in the data export and post-processing @example doctor-visits-monthly |
| required | bool |
|
|
Whether a response to the survey question is required @example true |
| created_at_in_company_tz | timestamp |
|
|
|
| updated_at_in_company_tz | timestamp |
|
|
|
| company_timezone | varchar |
|
|
The company timezone. E.g. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| edge_survey_questions_pkey | Primary key | Asc | id |
| idx_edge_survey_questions_company_id | Performance | Asc | company_id |
| idx_edge_survey_questions_survey_id | Performance | Asc | survey_id |