diff --git a/server/db/schema/events.sql b/server/db/schema/events.sql new file mode 100644 index 0000000..76ea973 --- /dev/null +++ b/server/db/schema/events.sql @@ -0,0 +1,6 @@ +CREATE TABLE events ( + id INT PRIMARY KEY UNIQUE NOT NULL DEFAULT nextval('event_id_seq'), + name VARCHAR(256) NOT NULL, + description VARCHAR(256), + archived BOOL NOT NULL DEFAULT False +); \ No newline at end of file diff --git a/server/db/schema/rooms.sql b/server/db/schema/rooms.sql new file mode 100644 index 0000000..6e7dbdc --- /dev/null +++ b/server/db/schema/rooms.sql @@ -0,0 +1,6 @@ +CREATE TABLE rooms ( + id INT PRIMARY KEY UNIQUE NOT NULL DEFAULT nextval('room_id_seq'), + name VARCHAR(256) NOT NULL, + description VARCHAR(256), + rate NUMERIC NOT NULL +); \ No newline at end of file