diff --git a/server/db/schema/bookings.sql b/server/db/schema/bookings.sql new file mode 100644 index 0000000..c1eed0e --- /dev/null +++ b/server/db/schema/bookings.sql @@ -0,0 +1,10 @@ +CREATE TABLE bookings ( + id INT PRIMARY KEY UNIQUE NOT NULL DEFAULT nextval('booking_id_seq'), + event_id INT REFERENCES events(id), + room_id INT REFERENCES rooms(id), + start_time TIME WITH TIME ZONE NOT NULL, + end_time TIME WITH TIME ZONE NOT NULL, + date DATE NOT NULL, + archived BOOL NOT NULL DEFAULT false + +); \ No newline at end of file