From 08d0df7880e89df07d168a84ffbe217e9d60ebe2 Mon Sep 17 00:00:00 2001 From: Ethan Ho Date: Sat, 17 Feb 2024 23:02:53 -0800 Subject: [PATCH] Created Schema for Day table (#48) * Schema for Day table * updated schema to match db model --------- Co-authored-by: ThatMegamind <92563733+ThatMegamind@users.noreply.github.com> --- server/schema/day.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 server/schema/day.sql diff --git a/server/schema/day.sql b/server/schema/day.sql new file mode 100644 index 0000000..1ac0b41 --- /dev/null +++ b/server/schema/day.sql @@ -0,0 +1,9 @@ +DROP TABLE IF EXISTS day; +CREATE TABLE IF NOT EXISTS day ( + id serial PRIMARY KEY, + event_date DATE NOT NULL, + start_time TIME NOT NULL, + end_time TIME NOT NULL, + location VARCHAR( 256 ) NOT NULL, + notes VARCHAR( 250 ) +); \ No newline at end of file