From 4e8e27113fa5e0e8820fe1155a9dbda0d4b8fa1e Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:28:54 -0700 Subject: [PATCH] Edit scores.games table in database init script --- database/init_database.sql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/database/init_database.sql b/database/init_database.sql index 83ff6c4..29e4a6f 100644 --- a/database/init_database.sql +++ b/database/init_database.sql @@ -15,14 +15,14 @@ scores: *season_id* | school_year games: - *game_id* | ~division_id~ | ~season_id~ | game_date | ~team1_id~ | ~team2_id~ | team1_score | team2_score | ~submitter_id~ | updated_timestamp + *game_id* | ~division_id~ | ~season_id~ | game_date | ~team1_id~ | ~team2_id~ | team1_score | team2_score | ~submitter_id~ | updated_timestamp | submitter_name accounts: users: - *user_id* | email | password | admin + *user_id* | email | password | admin | full_name */ @@ -91,7 +91,8 @@ CREATE TABLE IF NOT EXISTS scores.games( team2_id BIGINT NOT NULL, team1_score INTEGER NOT NULL, team2_score INTEGER NOT NULL, - submitter_id BIGINT NOT NULL, + submitter_name TEXT, + submitter_id BIGINT, updated_timestamp TIMESTAMP WITH TIME ZONE DEFAULT now(), PRIMARY KEY(game_id), CONSTRAINT fk_division