Skip to content

Commit

Permalink
Merge pull request #14 from ctc-uci/8-create-catalog-table
Browse files Browse the repository at this point in the history
created catalog table
  • Loading branch information
ThatMegamind authored Nov 22, 2023
2 parents db6533e + 19035e2 commit 34eff36
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 IF EXISTS catalog;
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 34eff36

Please sign in to comment.