fixes and my notes function
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
CREATE TABLE user_workspaces (
|
||||
user_id INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
||||
workspace_id INTEGER NOT NULL REFERENCES workspaces(id) ON DELETE CASCADE,
|
||||
PRIMARY KEY (user_id, workspace_id)
|
||||
);
|
||||
CREATE TABLE user_pads (
|
||||
user_id INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
||||
pad_id INTEGER NOT NULL REFERENCES pads(id) ON DELETE CASCADE,
|
||||
PRIMARY KEY (user_id, pad_id)
|
||||
);
|
||||
Reference in New Issue
Block a user