Update result and ranking models for 2016.

This commit is contained in:
Patrick Fairbank
2016-07-31 14:18:38 -07:00
parent 3b86b09734
commit ebcd0db37e
27 changed files with 563 additions and 532 deletions

View File

@@ -21,7 +21,17 @@ CREATE TABLE matches (
blue3issurrogate bool,
status VARCHAR(16),
startedat DATETIME,
winner VARCHAR(16)
winner VARCHAR(16),
reddefense1 VARCHAR(3),
reddefense2 VARCHAR(3),
reddefense3 VARCHAR(3),
reddefense4 VARCHAR(3),
reddefense5 VARCHAR(3),
bluedefense1 VARCHAR(3),
bluedefense2 VARCHAR(3),
bluedefense3 VARCHAR(3),
bluedefense4 VARCHAR(3),
bluedefense5 VARCHAR(3)
);
CREATE UNIQUE INDEX type_displayname ON matches(type, displayname);

View File

@@ -3,6 +3,7 @@ CREATE TABLE match_results (
id INTEGER PRIMARY KEY,
matchid int,
playnumber int,
matchtype VARCHAR(16),
redscorejson text,
bluescorejson text,
redcardsjson text,

View File

@@ -2,12 +2,11 @@
CREATE TABLE rankings (
teamid INTEGER PRIMARY KEY,
rank int,
qualificationaverage int,
coopertitionpoints int,
rankingpoints int,
autopoints int,
containerpoints int,
totepoints int,
litterpoints int,
scalechallengepoints int,
goalpoints int,
defensepoints int,
random REAL,
disqualifications int,
played int