generated from ctc-uci/npo-backend-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
); |