Skip to content

Commit

Permalink
feat: add create table query for lab members
Browse files Browse the repository at this point in the history
  • Loading branch information
VeeIsForVanana committed Jul 1, 2024
1 parent 9265622 commit edf9e57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions postgres/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ CREATE SCHEMA drap
email TEXT NOT NULL,
PRIMARY KEY (invite_id)
)
CREATE TABLE lab_members (
member_id TEXT NOT NULL REFERENCES users (user_id),
lab_id SMALLINT NOT NULL REFERENCES labs (lab_id),
PRIMARY KEY (member_id)
)
CREATE TABLE drafts (
draft_id BIGINT GENERATED ALWAYS AS IDENTITY NOT NULL,
curr_round SMALLINT NOT NULL,
Expand Down

0 comments on commit edf9e57

Please sign in to comment.