Skip to content

Commit 57cc996

Browse files
committed
fixed published schedule types
1 parent c042554 commit 57cc996

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

server/schema/published_schedule.sql

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
DROP TABLE IF EXISTS published_schedule;
2-
3-
CREATE TYPE year AS ENUM ('Junior','Senior');
4-
52
CREATE TABLE IF NOT EXISTS published_schedule (
63
id varchar(10) NOT NULL,
74
event_id varchar(10) NOT NULL,
85
confirmed boolean NOT NULL,
9-
confirmed_on DATETIME NOT NULL,
10-
start_time DATETIME NOT NULL,
11-
end_time DATETIME NOT NULL,
6+
confirmed_on date NOT NULL,
7+
start_time timestamp NOT NULL,
8+
end_time timestamp NOT NULL,
129
cohort year NOT NULL,
1310
notes varchar(100),
1411
FOREIGN KEY (event_id)
1512
REFERENCES catalog (id)
16-
);
13+
);

0 commit comments

Comments
 (0)