Skip to content

Commit

Permalink
created booking
Browse files Browse the repository at this point in the history
  • Loading branch information
sindhujagorti committed Nov 24, 2024
1 parent fbf34b5 commit 01dfc08
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions server/db/schema/bookings.sql
Original file line number Diff line number Diff line change
@@ -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

);

0 comments on commit 01dfc08

Please sign in to comment.