 `createdOn` DATETIME NOT NULL ,
 `startedOn` DATETIME NULL ,
 `endedOn` DATETIME NULL ,
-`state` LONGTEXT NULL
+`state` LONGTEXT NULL ,
 `running` TINYINT NOT NULL DEFAULT 0 ,
 `paused` TINYINT NOT NULL DEFAULT 0 ,
 `useGraveyard` TINYINT NOT NULL DEFAULT 1 ,

CONSTRAINT `fkGameUserLimit` FOREIGN KEY (`limitOpponentId`) REFERENCES `User` (`id`)
) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_unicode_ci ;

-- CREATE Game / Deck link
CREATE TABLE GameDeck (
`gameId` INT UNSIGNED NOT NULL,

`active` TINYINT NOT NULL DEFAULT 1
) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_unicode_ci ;

-- Games are stored here, even if they have not started or haven't been played.
CREATE TABLE `Game` (
`id` INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT ,
