Skip to content

Create Survey Responses and Sessions Table Schemas #12

In review

Description

@allisonlyhuang

AT A GLANCE

You will be building out the SQL schema for the survey responses table. This will help us aggregate the information from each of UPLIFT’s programs and partners so they can get useful information from it. Secondly, you will create a table to store the data for each session within the program. Once these PRs are approved, we will be using your schemas to create the tables in our database.

CONTEXT

Within most programs, participants will take pre-surveys, post-surveys, and sometimes mid-surveys or others as well to help UPLIFT understand how well their workshops are helping the people who come to them. By storing the information here, we will then be able to eventually sort it and average the information by program and partner.

You will also be working with the session table. Within UPLIFT’s programs, they often have various sessions, which will have separate information such as date and start/end time, which will be stored in your table and linked to its respective program using its foreign key.

TECHNICAL DETAILS

Creating Tables

  • Navigate to server/db/schema/programs/ and create survey_responses.sql
  • Navigate to server/db/schema/programs/ and create sessions.sql
  • Write your DDL statement(s), referencing our DB model
  • Pay close attention to foreign key relations and any other important constraints.

RESOURCES

Figma User Flows
Figma Information Architecture
Figma Database Model
UPLIFT Youth Foundation: Product Requirements Document
W3 How to Create Tables in SQL
DELETE and CASCADE in NeonDB
PostgreSQL DROP table

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

sprint task

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions