app.surveys
TableRow level security on
A pulse survey (Section 4.9 Polls and surveys) for an audience, anonymous by default, whose results show only once the minimum number of responses is met.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org. A row never moves to another org.References app.organizations.id |
| author_membership_id | uuid | Yes | Member who wrote the survey.References app.memberships.id |
| title | text | No | Survey title. |
| description | text | Yes | What the survey asks about and why. |
| audience_kind | app.audience_kind | No | Who the survey reaches. |
| project_id | uuid | Yes | Project audience.References app.projects.id |
| team_id | uuid | Yes | Team audience.References app.teams.id |
| role_id | uuid | Yes | Org role audience.References app.roles.id |
| group_id | uuid | Yes | Group audience.References app.groups.id |
| is_anonymous | boolean | No | Whether answers are stored with no respondent. |
| min_responses | smallint | No | Responses needed before anyone sees results, 3 or more. |
| survey_state | app.survey_state | No | Draft, Open or Closed. |
| closes_at | timestamp with time zone | Yes | When the survey stops taking responses; NULL until closed by hand. |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Yes | Person who inserted the row, or null for a platform process. Set by the database.References app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Yes | Person who last changed the row, or null for a platform process. Set by the database.References app.people.id |
| deleted_at | timestamp with time zone | Yes | Soft delete time. A row with deleted_at set is ignored by every access helper. |