Edit scores.games table in database init script
parent
006e170b92
commit
4e8e27113f
|
@ -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
|
||||
|
|
Reference in New Issue