group editor implemented
Sonarqube Scanner / Prepare environment (push) Successful in 6s
Sonarqube Scanner / Build and test (push) Successful in 27s
Sonarqube Scanner / Deploy to Server (push) Failing after 7s
Sonarqube Scanner / SonarQube analysis (push) Failing after 1m14s

This commit is contained in:
Florian Zumpe
2026-10-18 16:33:12 +02:00
parent 9c4d5f6324
commit 31768ae907
28 changed files with 2361 additions and 55 deletions
+25
View File
@@ -65,3 +65,28 @@ CREATE INDEX IF NOT EXISTS idx_routes_status ON routes(status);
CREATE INDEX IF NOT EXISTS idx_routes_activation ON routes(status, activated_at);
CREATE INDEX IF NOT EXISTS idx_pois_route ON pois(route_id, sequence);
CREATE INDEX IF NOT EXISTS idx_poi_images_poi ON poi_images(poi_id, sequence);
CREATE TABLE IF NOT EXISTS collaboration_sessions (
token_hash TEXT PRIMARY KEY NOT NULL,
creator_id TEXT NOT NULL,
expires_at INTEGER NOT NULL
) STRICT;
CREATE TABLE IF NOT EXISTS collaboration_groups (
id TEXT PRIMARY KEY NOT NULL,
route_id INTEGER NOT NULL UNIQUE REFERENCES routes(id),
source_route_id INTEGER REFERENCES routes(id),
owner_creator_id TEXT NOT NULL,
code_hash TEXT UNIQUE,
code_expires_at INTEGER NOT NULL,
active INTEGER NOT NULL DEFAULT 1 CHECK (active IN (0, 1)),
revision INTEGER NOT NULL DEFAULT 0,
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP
) STRICT;
CREATE TABLE IF NOT EXISTS collaboration_members (
group_id TEXT NOT NULL REFERENCES collaboration_groups(id) ON DELETE CASCADE,
session_hash TEXT NOT NULL REFERENCES collaboration_sessions(token_hash) ON DELETE CASCADE,
role TEXT NOT NULL CHECK (role IN ('owner', 'member')),
PRIMARY KEY (group_id, session_hash)
) STRICT;