|
# Dump of table teams_bracket |
|
# ------------------------------------------------------------ |
|
|
|
DROP TABLE IF EXISTS `teams_bracket`; |
|
|
|
CREATE TABLE `teams_bracket` ( |
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
|
`label` varchar(3) NOT NULL DEFAULT '', |
|
`team_id` int(11) unsigned NOT NULL DEFAULT '0', |
|
PRIMARY KEY (`id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|
|
|
LOCK TABLES `teams_bracket` WRITE; |
|
/*!40000 ALTER TABLE `teams_bracket` DISABLE KEYS */; |
|
|
|
INSERT INTO `teams_bracket` (`id`, `label`, `team_id`) |
|
VALUES |
|
(1,'1A',0), |
|
(2,'1B',0), |
|
(3,'1C',0), |
|
(4,'1D',0), |
|
(5,'1E',0), |
|
(6,'1F',0), |
|
(7,'1G',0), |
|
(8,'1H',0), |
|
(9,'2A',0), |
|
(10,'2B',0), |
|
(11,'2C',0), |
|
(12,'2D',0), |
|
(13,'2E',0), |
|
(14,'2F',0), |
|
(15,'2G',0), |
|
(16,'2H',0), |
|
(17,'W49',0), |
|
(18,'W50',0), |
|
(19,'W51',0), |
|
(20,'W52',0), |
|
(21,'W53',0), |
|
(22,'W54',0), |
|
(23,'W55',0), |
|
(24,'W56',0), |
|
(25,'W57',0), |
|
(26,'W58',0), |
|
(27,'W59',0), |
|
(28,'W60',0), |
|
(29,'L61',0), |
|
(30,'L62',0), |
|
(31,'W61',0), |
|
(32,'W62',0); |
|
|
|
/*!40000 ALTER TABLE `teams_bracket` ENABLE KEYS */; |
|
UNLOCK TABLES; |
|
|
|
|
|
# Dump of table group |
|
# ------------------------------------------------------------ |
|
|
|
DROP TABLE IF EXISTS `group`; |
|
|
|
CREATE TABLE `group` ( |
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
|
`name` varchar(1) NOT NULL DEFAULT '', |
|
PRIMARY KEY (`id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|
|
|
LOCK TABLES `group` WRITE; |
|
/*!40000 ALTER TABLE `group` DISABLE KEYS */; |
|
|
|
INSERT INTO `group` (`id`, `name`) |
|
VALUES |
|
(1,'A'), |
|
(2,'B'), |
|
(3,'C'), |
|
(4,'D'), |
|
(5,'E'), |
|
(6,'F'), |
|
(7,'G'), |
|
(8,'H'); |
|
|
|
/*!40000 ALTER TABLE `group` ENABLE KEYS */; |
|
UNLOCK TABLES; |
|
|
|
|
|
# Dump of table match |
|
# ------------------------------------------------------------ |
|
|
|
DROP TABLE IF EXISTS `match`; |
|
|
|
CREATE TABLE `match` ( |
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
|
`stage` tinyint(1) unsigned NOT NULL, |
|
`venue_id` int(11) unsigned NOT NULL, |
|
`team1_id` int(11) unsigned NOT NULL, |
|
`team2_id` int(11) unsigned NOT NULL, |
|
`kickoff` datetime NOT NULL, |
|
PRIMARY KEY (`id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|
|
|
LOCK TABLES `match` WRITE; |
|
/*!40000 ALTER TABLE `match` DISABLE KEYS */; |
|
|
|
INSERT INTO `match` (`id`, `stage`, `venue_id`, `team1_id`, `team2_id`, `kickoff`) |
|
VALUES |
|
(1,0,12,1,2,'2014-06-12 17:00:00'), |
|
(2,0,7,3,4,'2014-06-13 13:00:00'), |
|
(3,0,11,5,6,'2014-06-13 16:00:00'), |
|
(4,0,3,7,8,'2014-06-13 18:00:00'), |
|
(5,0,1,9,10,'2014-06-14 13:00:00'), |
|
(6,0,9,11,12,'2014-06-14 22:00:00'), |
|
(7,0,5,13,14,'2014-06-14 16:00:00'), |
|
(8,0,6,15,16,'2014-06-14 18:00:00'), |
|
(9,0,2,17,18,'2014-06-15 13:00:00'), |
|
(10,0,8,19,20,'2014-06-15 16:00:00'), |
|
(11,0,10,21,22,'2014-06-15 19:00:00'), |
|
(12,0,4,23,24,'2014-06-16 16:00:00'), |
|
(13,0,11,25,26,'2014-06-16 13:00:00'), |
|
(14,0,7,27,28,'2014-06-16 19:00:00'), |
|
(15,0,1,29,30,'2014-06-17 13:00:00'), |
|
(16,0,3,31,32,'2014-06-17 18:00:00'), |
|
(17,0,5,1,3,'2014-06-17 16:00:00'), |
|
(18,0,6,4,2,'2014-06-18 18:00:00'), |
|
(19,0,10,5,7,'2014-06-18 16:00:00'), |
|
(20,0,8,8,6,'2014-06-18 13:00:00'), |
|
(21,0,2,9,11,'2014-06-19 13:00:00'), |
|
(22,0,7,12,10,'2014-06-19 19:00:00'), |
|
(23,0,12,13,15,'2014-06-19 16:00:00'), |
|
(24,0,9,16,14,'2014-06-20 13:00:00'), |
|
(25,0,11,17,19,'2014-06-20 16:00:00'), |
|
(26,0,4,20,18,'2014-06-20 19:00:00'), |
|
(27,0,1,21,23,'2014-06-21 13:00:00'), |
|
(28,0,3,24,22,'2014-06-21 18:00:00'), |
|
(29,0,5,25,27,'2014-06-21 16:00:00'), |
|
(30,0,6,28,26,'2014-06-22 18:00:00'), |
|
(31,0,10,29,31,'2014-06-22 13:00:00'), |
|
(32,0,8,32,30,'2014-06-22 16:00:00'), |
|
(33,0,2,4,1,'2014-06-23 17:00:00'), |
|
(34,0,9,2,3,'2014-06-23 17:00:00'), |
|
(35,0,4,8,5,'2014-06-23 13:00:00'), |
|
(36,0,12,6,7,'2014-06-23 13:00:00'), |
|
(37,0,3,12,9,'2014-06-24 16:00:00'), |
|
(38,0,5,10,11,'2014-06-24 16:00:00'), |
|
(39,0,7,16,13,'2014-06-24 13:00:00'), |
|
(40,0,1,14,15,'2014-06-24 13:00:00'), |
|
(41,0,6,20,17,'2014-06-25 16:00:00'), |
|
(42,0,10,18,19,'2014-06-25 17:00:00'), |
|
(43,0,8,24,21,'2014-06-25 13:00:00'), |
|
(44,0,11,22,23,'2014-06-25 13:00:00'), |
|
(45,0,9,28,25,'2014-06-26 13:00:00'), |
|
(46,0,2,26,27,'2014-06-26 13:00:00'), |
|
(47,0,12,32,29,'2014-06-26 17:00:00'), |
|
(48,0,4,30,31,'2014-06-26 17:00:00'), |
|
(49,8,1,1,10,'2014-06-28 13:00:00'), |
|
(50,8,10,3,12,'2014-06-28 17:00:00'), |
|
(51,8,5,2,9,'2014-06-29 13:00:00'), |
|
(52,8,9,4,11,'2014-06-29 17:00:00'), |
|
(53,8,2,5,14,'2014-06-30 13:00:00'), |
|
(54,8,8,7,16,'2014-06-30 17:00:00'), |
|
(55,8,12,6,13,'2014-07-01 13:00:00'), |
|
(56,8,11,8,15,'2014-07-01 17:00:00'), |
|
(57,4,5,17,18,'2014-07-04 17:00:00'), |
|
(58,4,10,21,22,'2014-07-04 13:00:00'), |
|
(59,4,11,19,20,'2014-07-05 17:00:00'), |
|
(60,4,2,23,24,'2014-07-05 13:00:00'), |
|
(61,2,1,25,26,'2014-07-08 17:00:00'), |
|
(62,2,12,27,28,'2014-07-09 17:00:00'), |
|
(63,1,2,29,30,'2014-07-12 17:00:00'), |
|
(64,1,10,31,32,'2014-07-13 17:00:00'); |
|
|
|
/*!40000 ALTER TABLE `match` ENABLE KEYS */; |
|
UNLOCK TABLES; |
|
|
|
|
|
# Dump of table team |
|
# ------------------------------------------------------------ |
|
|
|
DROP TABLE IF EXISTS `team`; |
|
|
|
CREATE TABLE `team` ( |
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
|
`group_id` int(11) unsigned NOT NULL, |
|
`code` varchar(3) NOT NULL DEFAULT '', |
|
`name` varchar(255) DEFAULT NULL, |
|
PRIMARY KEY (`id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|
|
|
LOCK TABLES `team` WRITE; |
|
/*!40000 ALTER TABLE `team` DISABLE KEYS */; |
|
|
|
INSERT INTO `team` (`id`, `group_id`, `code`, `name`) |
|
VALUES |
|
(1,1,'BRA','Brazil'), |
|
(2,1,'HRV','Croatia'), |
|
(3,1,'MEX','Mexico'), |
|
(4,1,'CMR','Cameroon'), |
|
(5,2,'ESP','Spain'), |
|
(6,2,'NLD','Netherlands'), |
|
(7,2,'CHL','Chile'), |
|
(8,2,'AUS','Australia'), |
|
(9,3,'COL','Colombia'), |
|
(10,3,'GRC','Greece'), |
|
(11,3,'CIV','Ivory Coast'), |
|
(12,3,'JPN','Japan'), |
|
(13,4,'URY','Uruguay'), |
|
(14,4,'CRC','Costa Rica'), |
|
(15,4,'ENG','England'), |
|
(16,4,'ITA','Italy'), |
|
(17,5,'CHE','Switzerland'), |
|
(18,5,'ECU','Ecuador'), |
|
(19,5,'FRA','France'), |
|
(20,5,'HND','Honduras'), |
|
(21,6,'ARG','Argentina'), |
|
(22,6,'BIH','Bosnia and Herzegovina'), |
|
(23,6,'IRN','Iran'), |
|
(24,6,'NGA','Nigeria'), |
|
(25,7,'DEU','Germany'), |
|
(26,7,'PRT','Portugal'), |
|
(27,7,'GHA','Ghana'), |
|
(28,7,'USA','USA'), |
|
(29,8,'BEL','Belgium'), |
|
(30,8,'DZA','Algeria'), |
|
(31,8,'RUS','Russia'), |
|
(32,8,'KOR','Korea'); |
|
|
|
/*!40000 ALTER TABLE `team` ENABLE KEYS */; |
|
UNLOCK TABLES; |
|
|
|
|
|
# Dump of table venue |
|
# ------------------------------------------------------------ |
|
|
|
DROP TABLE IF EXISTS `venue`; |
|
|
|
CREATE TABLE `venue` ( |
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
|
`name` varchar(255) NOT NULL DEFAULT '', |
|
`city` varchar(255) NOT NULL DEFAULT '', |
|
PRIMARY KEY (`id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|
|
|
LOCK TABLES `venue` WRITE; |
|
/*!40000 ALTER TABLE `venue` DISABLE KEYS */; |
|
|
|
INSERT INTO `venue` (`id`, `name`, `city`) |
|
VALUES |
|
(1,'Estadio Mineirao','Belo Horizonte'), |
|
(2,'Estadio Nacional','Brasilia'), |
|
(3,'Arena Pantanal','Cuiaba'), |
|
(4,'Arena da Baixada','Curitiba'), |
|
(5,'Estadio Castelao','Fortaleza'), |
|
(6,'Arena Amazonia','Manaus'), |
|
(7,'Estadio das Dunas','Natal'), |
|
(8,'Estadio Beira-Rio','Porto Alegre'), |
|
(9,'Arena Pernambuco','Recife'), |
|
(10,'Estadio do Maracana','Rio De Janeiro'), |
|
(11,'Arena Fonte Nova','Salvador'), |
|
(12,'Arena de Sao Paulo','Sao Paulo'); |
|
|
|
/*!40000 ALTER TABLE `venue` ENABLE KEYS */; |
|
UNLOCK TABLES; |