|
|
|
@ -8,14 +8,14 @@ INSERT INTO alembic_version VALUES('3ef4c34115fd');
@@ -8,14 +8,14 @@ INSERT INTO alembic_version VALUES('3ef4c34115fd');
|
|
|
|
|
CREATE TABLE game ( |
|
|
|
|
id INTEGER NOT NULL, |
|
|
|
|
name VARCHAR(64) NOT NULL, |
|
|
|
|
state VARCHAR(11) DEFAULT 'initiated' NOT NULL, |
|
|
|
|
state VARCHAR(11) DEFAULT 'hidden' NOT NULL, |
|
|
|
|
start_time DATETIME, |
|
|
|
|
end_time DATETIME, |
|
|
|
|
PRIMARY KEY (id), |
|
|
|
|
CONSTRAINT gamestate CHECK (state IN ('initiated', 'published', 'active', 'interrupted', 'finished')) |
|
|
|
|
CONSTRAINT gamestate CHECK (state IN ('hidden', 'published', 'active', 'interrupted', 'finished')) |
|
|
|
|
); |
|
|
|
|
INSERT INTO game VALUES(1,'Marijns Game','initiated','2020-07-09 12:56:00.000000',NULL); |
|
|
|
|
INSERT INTO game VALUES(2,'Spelletje','initiated',NULL,NULL); |
|
|
|
|
INSERT INTO game VALUES(1,'Marijns Game','hidden','2020-07-09 12:56:00.000000',NULL); |
|
|
|
|
INSERT INTO game VALUES(2,'Spelletje','hidden',NULL,NULL); |
|
|
|
|
CREATE TABLE player ( |
|
|
|
|
id INTEGER NOT NULL, |
|
|
|
|
name VARCHAR(64) NOT NULL, |
|
|
|
|