Skip to content

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

Columns of app.surveys
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
author_membership_iduuidYesMember who wrote the survey.References app.memberships.id
titletextNoSurvey title.
descriptiontextYesWhat the survey asks about and why.
audience_kindapp.audience_kindNoWho the survey reaches.
project_iduuidYesProject audience.References app.projects.id
team_iduuidYesTeam audience.References app.teams.id
role_iduuidYesOrg role audience.References app.roles.id
group_iduuidYesGroup audience.References app.groups.id
is_anonymousbooleanNoWhether answers are stored with no respondent.
min_responsessmallintNoResponses needed before anyone sees results, 3 or more.
survey_stateapp.survey_stateNoDraft, Open or Closed.
closes_attimestamp with time zoneYesWhen the survey stops taking responses; NULL until closed by hand.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.