-- phpMyAdmin SQL Dump
-- version 4.4.12
-- http://www.phpmyadmin.net
--
-- Client :  localhost
-- Généré le :  Mer 18 Juillet 2018 à 14:32
-- Version du serveur :  5.6.26
-- Version de PHP :  7.1.16

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 */;

--
-- Base de données :  `ffg_judging`
--

-- --------------------------------------------------------

--
-- Structure de la table `competition_availablecategory`
--

CREATE TABLE IF NOT EXISTS `competition_availablecategory` (
  `id` int(11) NOT NULL,
  `is_active` tinyint(1) NOT NULL,
  `category_id` int(11) DEFAULT NULL,
  `division_id` int(11) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `competition_availablecategory`
--

INSERT INTO `competition_availablecategory` (`id`, `is_active`, `category_id`, `division_id`) VALUES
(1, 1, 1, 5),
(2, 1, 2, 5),
(3, 1, 3, 5),
(4, 1, 4, 1),
(5, 1, 5, 1),
(6, 1, 6, 1),
(7, 1, 7, 1),
(8, 1, 8, 1),
(9, 1, 4, 2),
(10, 1, 5, 2),
(11, 1, 6, 2),
(12, 1, 7, 2),
(13, 1, 8, 2),
(14, 1, 9, 3),
(15, 1, 10, 3),
(16, 1, 11, 3),
(17, 1, 12, 3),
(18, 1, 13, 4);

--
-- Index pour les tables exportées
--

--
-- Index pour la table `competition_availablecategory`
--
ALTER TABLE `competition_availablecategory`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `competition_availablecat_division_id_category_id_7cbea8cc_uniq` (`division_id`,`category_id`),
  ADD KEY `competition_availabl_category_id_d9b4ab8c_fk_competiti` (`category_id`);

--
-- AUTO_INCREMENT pour les tables exportées
--

--
-- AUTO_INCREMENT pour la table `competition_availablecategory`
--
ALTER TABLE `competition_availablecategory`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19;
--
-- Contraintes pour les tables exportées
--

--
-- Contraintes pour la table `competition_availablecategory`
--
ALTER TABLE `competition_availablecategory`
  ADD CONSTRAINT `competition_availabl_category_id_d9b4ab8c_fk_competiti` FOREIGN KEY (`category_id`) REFERENCES `competition_category` (`id`),
  ADD CONSTRAINT `competition_availabl_division_id_88e96c01_fk_competiti` FOREIGN KEY (`division_id`) REFERENCES `competition_division` (`id`);

/*!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 */;
