From: Stephen Seo Date: Fri, 18 Mar 2022 07:42:58 +0000 (+0900) Subject: Minor fix to backend database spec. X-Git-Tag: sprint_03_day_5~5 X-Git-Url: https://git.seodisparate.com/stephenseo/LD55?a=commitdiff_plain;h=2bc009405285fc823c5e832146296262db2a5ad7;p=EN605.607.81.SP22_ASDM_Project Minor fix to backend database spec. --- diff --git a/backend_database_specification.md b/backend_database_specification.md index f75dd40..cc04a86 100644 --- a/backend_database_specification.md +++ b/backend_database_specification.md @@ -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