MAPG-235 updated structure and created models
This commit is contained in:
1 parent
313a3568aa
commit
99244e93d2
9 files changed
+536
No files matched your search
@@ -5,6 +5,7 @@ CREATE TABLE `challenges` (
|
||||
`no_move` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`no_pan` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`no_zoom` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
@@ -15,6 +16,7 @@ CREATE TABLE `user_in_challenge` (
|
||||
`round` smallint(5) signed NOT NULL DEFAULT -1,
|
||||
`score` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`time_left` int(10) unsigned,
|
||||
`owner` tinyint(1) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `user_id` (`user_id`),
|
||||
KEY `challenge_id` (`challenge_id`),
|
||||
|
||||
Reference in new issue
Block a user