Skip to content

Commit

Permalink
Merge pull request #18 from ctc-uci/9-create-rooms-and-events-tables
Browse files Browse the repository at this point in the history
#9 added rooms and events table
  • Loading branch information
jessieh9 authored Dec 1, 2024
2 parents 9626ec9 + 2f66188 commit 0debe79
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/db/schema/events.sql
Original file line number Diff line number Diff line change
@@ -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
);
6 changes: 6 additions & 0 deletions server/db/schema/rooms.sql
Original file line number Diff line number Diff line change
@@ -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
);

0 comments on commit 0debe79

Please sign in to comment.