Updated data models and associated code and tests for 2017.

This commit is contained in:
Patrick Fairbank
2017-07-12 20:20:52 -07:00
parent f37d70fe8b
commit 4d5d0b72bf
38 changed files with 429 additions and 967 deletions

View File

@@ -22,9 +22,6 @@ CREATE TABLE event_settings (
tbadownloadenabled bool,
adminpassword VARCHAR(255),
readerpassword VARCHAR(255),
reddefenselightsaddress VARCHAR(255),
bluedefenselightsaddress VARCHAR(255),
initialtowerstrength int,
stemtvpublishingenabled bool,
stemtveventcode VARCHAR(16)
);

View File

@@ -21,17 +21,7 @@ CREATE TABLE matches (
blue3issurrogate bool,
status VARCHAR(16),
startedat DATETIME,
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)
winner VARCHAR(16)
);
CREATE UNIQUE INDEX type_displayname ON matches(type, displayname);

View File

@@ -3,10 +3,11 @@ CREATE TABLE rankings (
teamid INTEGER PRIMARY KEY,
rank int,
rankingpoints int,
matchpoints int,
autopoints int,
scalechallengepoints int,
goalpoints int,
defensepoints int,
rotorpoints int,
takeoffpoints int,
pressurepoints int,
random REAL,
wins int,
losses int,