]> git.seodisparate.com - EN605.607.81.SP22_ASDM_Project/commitdiff
Minor fix to backend database spec.
authorStephen Seo <seo.disparate@gmail.com>
Fri, 18 Mar 2022 07:42:58 +0000 (16:42 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Fri, 18 Mar 2022 07:42:58 +0000 (16:42 +0900)
backend_database_specification.md

index f75dd4016107d591f0cc3623a1d9ffe0d4b5e00d..cc04a8645afced0ee2f4e582b7fc542df772d718 100644 (file)
@@ -12,7 +12,7 @@ PRAGMA foreign_keys = ON;
 // fields should be self explanatory for the players table
 CREATE TABLE players (id INTEGER PRIMARY KEY NOT NULL,
                       date_added TEXT NOT NULL,
-                      game_id INTEGER,
+                      game_id UNIQUE INTEGER,
                       FOREIGN KEY(game_id) REFERENCES games(id));
 
 // "cyan_player" and "magenta_player" should correspond to an existing entry in