Skip to content

Commit

Permalink
created catalog table
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristen Yee authored and Kristen Yee committed Nov 18, 2023
1 parent db6533e commit d560285
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions server/schema/catalog.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CREATE TYPE event AS ENUM ('guest speaker', 'study-trip', 'workshop');
CREATE TYPE subject AS ENUM ('life skills', 'science', 'technology', 'engineering', 'math', 'college readiness');
CREATE TYPE year AS ENUM ('junior', 'senior', 'both');

DROP TABLE catalog IF EXISTS;
CREATE TABLE catalog (
id VARCHAR(10) PRIMARY KEY,
host VARCHAR(50) NOT NULL,
title VARCHAR(50) NOT NULL,
event_type event NOT NULL,
subject subject NOT NULL,
description VARCHAR(50) NOT NULL,
year year NOT NULL
);

0 comments on commit d560285

Please sign in to comment.