aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/schema.sql
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-11 20:53:17 +0900
committernsfisis <nsfisis@gmail.com>2024-08-11 20:53:17 +0900
commitfe8b14ccc77c829a2baa4034edb22daff9d5d8f8 (patch)
tree37528798ede5a89b1a7be6c6ee2fec20395668a2 /backend/schema.sql
parente3502d9e649fe61bb0ba4046b2c23c0d78bc92e9 (diff)
parent0c448f5d403a084389acb0b3d215f8728a599302 (diff)
downloadphperkaigi-2025-albatross-fe8b14ccc77c829a2baa4034edb22daff9d5d8f8.tar.gz
phperkaigi-2025-albatross-fe8b14ccc77c829a2baa4034edb22daff9d5d8f8.tar.zst
phperkaigi-2025-albatross-fe8b14ccc77c829a2baa4034edb22daff9d5d8f8.zip
Merge branch 'feat/send-problem-before-starting-game'
Diffstat (limited to 'backend/schema.sql')
-rw-r--r--backend/schema.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/schema.sql b/backend/schema.sql
index 2779eaf..dc49363 100644
--- a/backend/schema.sql
+++ b/backend/schema.sql
@@ -37,7 +37,7 @@ CREATE TABLE games (
duration_seconds INT NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
started_at TIMESTAMP,
- problem_id INT,
+ problem_id INT NOT NULL,
CONSTRAINT fk_problem_id FOREIGN KEY(problem_id) REFERENCES problems(problem_id)
);
CREATE INDEX idx_games_problem_id ON games(problem_id);