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