We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbf34b5 commit 01dfc08Copy full SHA for 01dfc08
server/db/schema/bookings.sql
@@ -0,0 +1,10 @@
1
+CREATE TABLE bookings (
2
+ id INT PRIMARY KEY UNIQUE NOT NULL DEFAULT nextval('booking_id_seq'),
3
+ event_id INT REFERENCES events(id),
4
+ room_id INT REFERENCES rooms(id),
5
+ start_time TIME WITH TIME ZONE NOT NULL,
6
+ end_time TIME WITH TIME ZONE NOT NULL,
7
+ date DATE NOT NULL,
8
+ archived BOOL NOT NULL DEFAULT false
9
+
10
+);
0 commit comments