Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Student Table and Teacher Table #5

Closed
h0ethan04 opened this issue Nov 19, 2024 · 0 comments · Fixed by #17
Closed

Create Student Table and Teacher Table #5

h0ethan04 opened this issue Nov 19, 2024 · 0 comments · Fixed by #17
Assignees
Labels

Comments

@h0ethan04
Copy link
Collaborator

h0ethan04 commented Nov 19, 2024

Description

  • Your task is to create some of the tables that we will be using throughout the rest of this project.

Instructions

  • Create students and teachers tables according to the database model
    • Refer to PostgreSQL documentation for creating a table
  • Create students and teachers tables schema under server/db/schema/.
  • Name the schema files as students.sql and teachers.sql

Notes

  • Arrows on the DB model indicate foreign constraints
  • For now, assume that all attributes are NOT NULL unless otherwise specified
  • Use DB Fiddle or Local Postgres to test (NOT NEONDB PRODUCTION DATABASE)
  • If your table relies on another table by foreign key, create a dummy table containing the primary key and any other fields needed

Acceptance Criteria

  • SQL creation code should exist in a file located in server/db/schema/students.sql and server/db/schema/teachers.sql
  • Should be able to insert rows into table successfully (be sure to include pictures of this)

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants