text: -- --------------------------------------------------------
  -- Servidor:                     127.0.0.1
  -- Versão do servidor:           10.1.13-MariaDB - mariadb.org binary distribution
  -- OS do Servidor:               Win32
  -- HeidiSQL Versão:              9.5.0.5196
  -- --------------------------------------------------------
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET NAMES utf8 */;
  /*!50503 SET NAMES utf8mb4 */;
  /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  
  
  -- Copiando estrutura do banco de dados para reialmoco
  CREATE DATABASE IF NOT EXISTS `reialmoco` /*!40100 DEFAULT CHARACTER SET utf8 */;
  USE `reialmoco`;
  
  -- Copiando estrutura para tabela reialmoco.champion
  CREATE TABLE IF NOT EXISTS `champion` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `user_id` int(11) DEFAULT NULL,
    `week` int(11) DEFAULT NULL,
    `date` datetime DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `FK_champion_user` (`user_id`),
    CONSTRAINT `FK_champion_user` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- Copiando dados para a tabela reialmoco.champion: ~0 rows (aproximadamente)
  /*!40000 ALTER TABLE `champion` DISABLE KEYS */;
  /*!40000 ALTER TABLE `champion` ENABLE KEYS */;
  
  -- Copiando estrutura para tabela reialmoco.user
  CREATE TABLE IF NOT EXISTS `user` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL,
    `email` varchar(255) NOT NULL,
    `photo` varchar(255) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
  
  -- Copiando dados para a tabela reialmoco.user: ~1 rows (aproximadamente)
  /*!40000 ALTER TABLE `user` DISABLE KEYS */;
  /*!40000 ALTER TABLE `user` ENABLE KEYS */;
  
  -- Copiando estrutura para tabela reialmoco.vote
  CREATE TABLE IF NOT EXISTS `vote` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `user_id` int(11) NOT NULL,
    `date` datetime NOT NULL,
    `week` int(11) NOT NULL,
    `status` enum('0','1') NOT NULL,
    PRIMARY KEY (`id`),
    KEY `FK_vote_user` (`user_id`),
    CONSTRAINT `FK_vote_user` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- Copiando dados para a tabela reialmoco.vote: ~0 rows (aproximadamente)
  /*!40000 ALTER TABLE `vote` DISABLE KEYS */;
  /*!40000 ALTER TABLE `vote` ENABLE KEYS */;
  
  /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
  /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  