fixes and my notes function

This commit is contained in:
Mateusz Gruszczyński
2026-07-22 13:04:21 +02:00
parent 8bf45938ea
commit ec9f002b81
13 changed files with 224 additions and 14 deletions
@@ -0,0 +1,10 @@
CREATE TABLE user_workspaces (
user_id BIGINT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
workspace_id BIGINT NOT NULL REFERENCES workspaces(id) ON DELETE CASCADE,
PRIMARY KEY (user_id, workspace_id)
);
CREATE TABLE user_pads (
user_id BIGINT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
pad_id BIGINT NOT NULL REFERENCES pads(id) ON DELETE CASCADE,
PRIMARY KEY (user_id, pad_id)
);