mirror of
https://github.com/mudabbir-ahmad/peworkshop.git
synced 2026-10-07 19:50:20 +00:00
fixed a bit
This commit is contained in:
1 parent
5f13bd7102
commit
f9b0eacf09
4 files changed
+3
-2
No files matched your search
Binary file not shown.
Binary file not shown.
+3
-2
@@ -12,7 +12,7 @@ CREATE TABLE users (
|
|||||||
username TEXT UNIQUE NOT NULL,
|
username TEXT UNIQUE NOT NULL,
|
||||||
password TEXT NOT NULL,
|
password TEXT NOT NULL,
|
||||||
role TEXT NOT NULL DEFAULT 'user',
|
role TEXT NOT NULL DEFAULT 'user',
|
||||||
team_id INTEGER,
|
team_id INTEGER, -- Ensure this column exists
|
||||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||||
FOREIGN KEY (team_id) REFERENCES teams(id)
|
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 sample clues for Team Alpha
|
||||||
INSERT INTO clues (description, team_id) VALUES ('Find the red door', 1);
|
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 ('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);
|
||||||
|
|
||||||
Binary file not shown.
Reference in new issue
Block a user