text: -- phpMyAdmin SQL Dump
  -- version 4.7.0
  -- https://www.phpmyadmin.net/
  --
  -- Host: localhost
  -- Generation Time: 29-Maio-2017 às 14:09
  -- Versão do servidor: 5.7.18
  -- PHP Version: 5.6.30
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  START TRANSACTION;
  SET time_zone = "+00:00";
  
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!40101 SET NAMES utf8mb4 */;
  
  --
  -- Database: `d4f`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Estrutura da tabela `event_cupom`
  --
  
  CREATE TABLE `event_cupom` (
    `event_cupom_id` int(11) NOT NULL,
    `event_id` int(11) NOT NULL,
    `cupom` varchar(500) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `event_cupom`
  --
  ALTER TABLE `event_cupom`
    ADD PRIMARY KEY (`event_cupom_id`),
    ADD KEY `fk_event_cupom_events1_idx` (`event_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `event_cupom`
  --
  ALTER TABLE `event_cupom`
    MODIFY `event_cupom_id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Limitadores para a tabela `event_cupom`
  --
  ALTER TABLE `event_cupom`
    ADD CONSTRAINT `fk_event_cupom_events1` FOREIGN KEY (`event_id`) REFERENCES `events` (`event_id`) ON DELETE CASCADE ON UPDATE CASCADE;
  COMMIT;
  
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  