Added match result model.

This commit is contained in:
Patrick Fairbank
2014-05-26 20:16:36 -07:00
parent a4d461c795
commit df2eaa7bb3
5 changed files with 285 additions and 1 deletions

View File

@@ -21,4 +21,4 @@ CREATE TABLE matches (
);
-- +goose Down
DROP TABLE event_settings;
DROP TABLE matches;

View File

@@ -0,0 +1,14 @@
-- +goose Up
CREATE TABLE match_results (
id INTEGER PRIMARY KEY,
matchid int,
playnumber int,
redscorejson text,
bluescorejson text,
redfoulsjson text,
bluefoulsjson text,
cardsjson text
);
-- +goose Down
DROP TABLE match_results;