fixed a bit

This commit is contained in:
bobbert committed 2025-03-11 20:02:52 +00:00
1 parent 5f13bd7102
commit f9b0eacf09
4 files changed
+3 -2

No files matched your search

+3 -2
View File
@@ -12,7 +12,7 @@ CREATE TABLE users (
username TEXT UNIQUE NOT NULL,
password TEXT NOT NULL,
role TEXT NOT NULL DEFAULT 'user',
team_id INTEGER,
team_id INTEGER, -- Ensure this column exists
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (team_id) REFERENCES teams(id)
);
@@ -57,4 +57,5 @@ INSERT INTO teams (name, code) VALUES ('Team Gamma', 'GAMMA789');
-- Insert sample clues for Team Alpha
INSERT INTO clues (description, team_id) VALUES ('Find the red door', 1);
INSERT INTO clues (description, team_id) VALUES ('Look under the bridge', 1);
INSERT INTO clues (description, team_id) VALUES ('Check the library',
INSERT INTO clues (description, team_id) VALUES ('Check the library', 1);