added global rooms in backend and fixed room membership checks

This commit is contained in:
2025-12-17 17:14:39 +01:00
parent ffc2e99cc7
commit d20962101e
5 changed files with 81 additions and 65 deletions

View File

@@ -10,7 +10,8 @@ CREATE TABLE IF NOT EXISTS room_ (
id SERIAL PRIMARY KEY,
uuid UUID UNIQUE,
owner INT NOT NULL REFERENCES user_(id) ON DELETE CASCADE,
name TEXT NOT NULL
name TEXT NOT NULL,
global BOOLEAN DEFAULT false
);
CREATE TABLE IF NOT EXISTS membership_ (