-- phpMyAdmin SQL Dump
-- version 4.8.0.1
-- https://www.phpmyadmin.net/
--
-- Source : http://ledrubernard.be/provincesToCommunes/
-- Auteur : contact@ledrubernard.be
-- Généré le :  lun. 24 fév. 2020 à 13:38
-- Version du serveur :  10.1.32-MariaDB
-- Version de PHP :  7.2.5

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

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

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

--
-- Structure de la table `cantons`
--

CREATE TABLE `cantons` (
  `id_canton` tinyint(3) UNSIGNED NOT NULL,
  `nom` tinytext NOT NULL,
  `num_district` tinyint(3) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Déchargement des données de la table `cantons`
--

INSERT INTO `cantons` (`id_canton`, `nom`, `num_district`) VALUES
(1, 'Bruxelles', 1),
(2, 'Nivelles', 2),
(3, 'Genappe', 2),
(4, 'Wavre', 3),
(5, 'Jodoigne', 3),
(6, 'Perwez', 3),
(7, 'Ath', 4),
(8, 'Beloeil', 4),
(9, 'Chièvres', 4),
(10, 'Enghien', 4),
(11, 'Flobecq', 4),
(12, 'Frasnes-lez-Anvaing', 4),
(13, 'Lessines', 4),
(14, 'Charleroi', 5),
(15, 'Châtelet', 6),
(16, 'Fontaine-l\'Évêque', 7),
(17, 'Pont-à-Celles', 7),
(18, 'La Louvière\r\n', 8),
(19, 'Binche', 8),
(20, 'Mons', 9),
(21, 'Boussu', 10),
(22, 'Dour', 10),
(23, 'Frameries', 10),
(24, 'Lens', 10),
(25, 'Soignies', 11),
(26, 'Le Roeulx', 11),
(27, 'Seneffe', 11),
(28, 'Thuin', 36),
(29, 'Anderlues', 36),
(30, 'Beaumont', 36),
(31, 'Chimay', 36),
(32, 'Merbes-le-Château', 36),
(33, 'Tournai', 12),
(34, 'Antoing', 12),
(35, 'Celles', 12),
(36, 'Comines-Warneton', 35),
(37, 'Estaimpuis', 12),
(38, 'Leuze-en-Hainaut', 12),
(39, 'Péruwelz', 12),
(40, 'Mouscron', 35),
(41, 'Huy', 13),
(42, 'Ferrières', 13),
(43, 'Héron', 13),
(44, 'Nandrin', 13),
(45, 'Verlaine', 13),
(46, 'Liège', 14),
(47, 'Fléron', 15),
(48, 'Aywaille', 15),
(49, 'Saint-Nicolas', 16),
(50, 'Grâce-Hollogne', 16),
(51, 'Seraing', 17),
(52, 'Visé', 18),
(53, 'Bassenge', 18),
(54, 'Herstal', 18),
(55, 'Verviers', 19),
(56, 'Malmedy', 19),
(57, 'Spa', 19),
(58, 'Stavelot', 19),
(59, 'Dison', 20),
(60, 'Aubel', 20),
(61, 'Herve', 20),
(62, 'Limbourg', 20),
(63, 'Eupen', 21),
(64, 'Saint-Vith', 21),
(65, 'Waremme', 22),
(66, 'Hannut', 22),
(67, 'Arlon', 23),
(68, 'Messancy', 23),
(69, 'Bastogne', 24),
(70, 'Fauvillers', 24),
(71, 'Houffalize', 24),
(72, 'Sainte-Ode', 24),
(73, 'Vielsalm', 24),
(74, 'Marche-en-Famenne', 25),
(75, 'Durbuy', 25),
(76, 'Érezée', 25),
(77, 'La Roche-en-Ardenne', 25),
(78, 'Nassogne', 25),
(79, 'Neufchâteau', 26),
(80, 'Saint-Hubert', 26),
(81, 'Bouillon', 27),
(82, 'Paliseul', 27),
(83, 'Wellin', 27),
(84, 'Virton', 28),
(85, 'Étalle', 28),
(86, 'Florenville', 28),
(87, 'Dinant', 29),
(88, 'Beauraing', 29),
(89, 'Gedinne', 29),
(90, 'Ciney', 30),
(91, 'Rochefort', 30),
(92, 'Namur', 31),
(94, 'Éghezée', 32),
(95, 'Gembloux', 34),
(96, 'Fosses-la-Ville', 34),
(97, 'Philippeville', 33),
(98, 'Couvin', 33),
(99, 'Florennes', 33),
(100, 'Walcourt', 33),
(101, 'Andenne', 32),
(102, 'Anderlecht', 1),
(103, 'Ixelles', 1),
(104, 'Uccle', 1),
(105, 'Molenbeek-Saint-Jean', 1),
(106, 'Saint-Gilles', 1),
(107, 'Saint-Josse-Ten-Noode', 1),
(108, 'Schaerbeek', 1);

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

--
-- Structure de la table `communes`
--

CREATE TABLE `communes` (
  `id_commune` smallint(5) UNSIGNED NOT NULL,
  `nom` tinytext NOT NULL,
  `cp` char(4) NOT NULL,
  `num_canton` tinyint(3) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Déchargement des données de la table `communes`
--

INSERT INTO `communes` (`id_commune`, `nom`, `cp`, `num_canton`) VALUES
(1, 'Wavre', '1300', 4),
(2, 'La Hulpe', '1310', 4),
(3, 'Incourt', '1315', 5),
(4, 'Beauvechain', '1320', 5),
(5, 'Chaumont-Gistoux', '1325', 4),
(6, 'Rixensart', '1330', 4),
(7, 'Ottignies-Louvain-la-Neuve', '1340', 4),
(8, 'Orp-Jauche', '1350', 5),
(9, 'Hélécine', '1357', 5),
(10, 'Perwez', '1360', 6),
(11, 'Ramillies', '1367', 5),
(12, 'Jodoigne', '1370', 5),
(13, 'Lasne', '1380', 4),
(14, 'Grez-Doiceau', '1390', 4),
(15, 'Nivelles', '1400', 2),
(16, 'Waterloo', '1410', 2),
(17, 'Braine-l\'Alleud', '1420', 2),
(18, 'Rebecq', '1430', 2),
(19, 'Mont-Saint-Guibert', '1435', 6),
(20, 'Braine-le-Château', '1440', 2),
(21, 'Chastre', '1450', 6),
(22, 'Walhain', '1457', 6),
(23, 'Ittre', '1460', 2),
(24, 'Genappe', '1470', 3),
(25, 'Tubize', '1480', 2),
(26, 'Court-Saint-Etienne', '1490', 4),
(27, 'Villers-la-Ville', '1495', 3),
(28, 'Liège', '4000', 46),
(29, 'Herstal', '4040', 54),
(30, 'Chaudfontaine', '4050', 47),
(31, 'Seraing', '4100', 51),
(32, 'Neupré', '4120', 51),
(33, 'Esneux', '4130', 48),
(34, 'Sprimont', '4140', 48),
(35, 'Anthisnes', '4160', 44),
(36, 'Comblain-au-Pont', '4170', 48),
(37, 'Hamoir', '4180', 44),
(38, 'Ferrières', '4190', 42),
(39, 'Burdinne', '4210', 43),
(40, 'Héron', '4217', 43),
(41, 'Wasseiges', '4219', 66),
(42, 'Geer', '4250', 65),
(43, 'Berloz', '4257', 65),
(44, 'Braives', '4260', 66),
(45, 'Hannut', '4280', 66),
(46, 'Lincent', '4287', 66),
(47, 'Waremme', '4300', 65),
(48, 'Faimes', '4317', 65),
(49, 'Awans', '4340', 50),
(50, 'Fexhe-le-Haut-Clocher', '4347', 65),
(51, 'Remicourt', '4350', 65),
(52, 'Donceel', '4357', 65),
(53, 'Oreye', '4360', 65),
(54, 'Crisnée', '4367', 65),
(55, 'Flémalle', '4400', 50),
(56, 'Saint-Nicolas', '4420', 49),
(57, 'Ans', '4430', 49),
(58, 'Juprelle', '4450', 53),
(59, 'Grâce-Hollogne', '4460', 50),
(60, 'Saint-Georges-sur-Meuse', '4470', 65),
(61, 'Engis', '4480', 44),
(62, 'Huy', '4500', 41),
(63, 'Wanze', '4520', 41),
(64, 'Villers-le-Bouillet', '4530', 45),
(65, 'Verlaine', '4537', 45),
(66, 'Amay', '4540', 41),
(67, 'Nandrin', '4550', 44),
(68, 'Tinlot', '4557', 44),
(69, 'Clavier', '4560', 44),
(70, 'Marchin', '4570', 41),
(71, 'Modave', '4577', 44),
(72, 'Ouffet', '4590', 44),
(73, 'Visé', '4600', 52),
(74, 'Dalhem', '4607', 52),
(75, 'Beyne-Heusay', '4610', 47),
(76, 'Fléron', '4620', 47),
(77, 'Soumagne', '4630', 47),
(78, 'Herve', '4650', 61),
(79, 'Blégny', '4670', 47),
(80, 'Oupeye', '4680', 53),
(81, 'Bassenge', '4690', 53),
(82, 'Eupen', '4700', 63),
(83, 'Lontzen', '4710', 63),
(84, 'La Calamine', '4720', 63),
(85, 'Raeren', '4730', 63),
(86, 'Butgenbach', '4750', 64),
(87, 'Bullange', '4760', 64),
(88, 'Amblève', '4770', 64),
(89, 'Saint-Vith', '4780', 64),
(90, 'Burg-Reuland', '4790', 64),
(91, 'Verviers', '4800', 55),
(92, 'Dison', '4820', 59),
(93, 'Limbourg', '4830', 62),
(94, 'Baelen', '4837', 62),
(95, 'Welkenraedt', '4840', 62),
(96, 'Jalhay', '4845', 62),
(97, 'Plombières', '4850', 60),
(98, 'Pepinster', '4860', 57),
(99, 'Trooz', '4870', 47),
(100, 'Olne', '4877', 55),
(101, 'Aubel', '4880', 60),
(102, 'Thimister-Clermont', '4890', 61),
(103, 'Spa', '4900', 57),
(104, 'Theux', '4910', 57),
(105, 'Aywaille', '4920', 48),
(106, 'Waimes', '4950', 56),
(107, 'Malmédy', '4960', 56),
(108, 'Stavelot', '4970', 58),
(109, 'Trois-Ponts', '4980', 58),
(110, 'Stoumont', '4987', 58),
(111, 'Lierneux', '4990', 58),
(112, 'Namur', '5000', 92),
(113, 'Gembloux', '5030', 95),
(114, 'Sambreville', '5060', 95),
(115, 'Fosses-la-Ville', '5070', 96),
(116, 'La Bruyère', '5080', 94),
(117, 'Sombreffe', '5140', 95),
(118, 'Floreffe', '5150', 96),
(119, 'Profondeville', '5170', 96),
(120, 'Jemeppe-sur-Sambre', '5190', 95),
(121, 'Andenne', '5300', 101),
(122, 'Eghezée', '5310', 94),
(123, 'Assesse', '5330', 92),
(124, 'Gesves', '5340', 101),
(125, 'Ohey', '5350', 101),
(126, 'Hamois', '5360', 90),
(127, 'Havelange', '5370', 90),
(128, 'Somme-Leuze', '5377', 90),
(129, 'Fernelmont', '5380', 94),
(130, 'Dinant', '5500', 87),
(131, 'Onhaye', '5520', 87),
(132, 'Yvoir', '5530', 87),
(133, 'Anhée', '5537', 87),
(134, 'Hastière', '5540', 87),
(135, 'Vresse-sur-Semois', '5550', 89),
(136, 'Bièvre', '5555', 89),
(137, 'Houyet', '5560', 88),
(138, 'Beauraing', '5570', 88),
(139, 'Gedinne', '5575', 89),
(140, 'Rochefort', '5580', 91),
(141, 'Ciney', '5590', 90),
(142, 'Philippeville', '5600', 97),
(143, 'Florennes', '5620', 99),
(144, 'Cerfontaine', '5630', 97),
(145, 'Mettet', '5640', 96),
(146, 'Walcourt', '5650', 100),
(147, 'Couvin', '5660', 98),
(148, 'Viroinval', '5670', 98),
(149, 'Doische', '5680', 97),
(150, 'Charleroi', '6000', 14),
(151, 'Montigny-le-Tilleul', '6110', 16),
(152, 'Ham-sur-Heure-Nalinnes', '6120', 28),
(153, 'Fontaine-l\'Evêque', '6140', 16),
(154, 'Anderlues', '6150', 29),
(155, 'Courcelles', '6180', 16),
(156, 'Châtelet', '6200', 15),
(157, 'Les Bons Villers', '6210', 17),
(158, 'Fleurus', '6220', 15),
(159, 'Pont-à-Celles', '6230', 17),
(160, 'Farciennes', '6240', 15),
(161, 'Aiseau-Presles', '6250', 15),
(162, 'Gerpinnes', '6280', 15),
(163, 'Froidchapelle', '6440', 30),
(164, 'Chimay', '6460', 31),
(165, 'Sivry-Rance', '6470', 30),
(166, 'Beaumont', '6500', 30),
(167, 'Thuin', '6530', 28),
(168, 'Lobbes', '6540', 28),
(169, 'Erquelinnes', '6560', 32),
(170, 'Merbes-le-Château', '6567', 32),
(171, 'Momignies', '6590', 31),
(172, 'Bastogne', '6600', 69),
(173, 'Martelange', '6630', 67),
(174, 'Fauvillers', '6637', 70),
(175, 'Vaux-sur-Sûre', '6640', 72),
(176, 'Houffalize', '6660', 71),
(177, 'Gouvy', '6670', 73),
(178, 'Sainte-Ode', '6680', 72),
(179, 'Bertogne', '6687', 69),
(180, 'Vielsalm', '6690', 73),
(181, 'Arlon', '6700', 67),
(182, 'Attert', '6717', 67),
(183, 'Habay', '6720', 85),
(184, 'Tintigny', '6730', 85),
(185, 'Étalle', '6740', 85),
(186, 'Saint-Léger', '6747', 84),
(187, 'Musson', '6750', 84),
(188, 'Virton', '6760', 84),
(189, 'Rouvroy', '6767', 84),
(190, 'Meix-devant-Virton', '6769', 84),
(191, 'Messancy', '6780', 68),
(192, 'Aubange', '6790', 68),
(193, 'Libramont-Chevigny', '6800', 79),
(194, 'Chiny', '6810', 86),
(195, 'Florenville', '6820', 86),
(196, 'Bouillon', '6830', 81),
(197, 'Neufchâteau', '6840', 79),
(198, 'Paliseul', '6850', 82),
(199, 'Léglise', '6860', 79),
(200, 'Saint-Hubert', '6870', 80),
(201, 'Bertrix', '6880', 82),
(202, 'Herbeumont', '6887', 82),
(203, 'Libin', '6890', 80),
(204, 'Marche-en-Famenne', '6900', 74),
(205, 'Wellin', '6920', 83),
(206, 'Tellin', '6927', 83),
(207, 'Daverdisse', '6929', 83),
(208, 'Durbuy', '6940', 75),
(209, 'Nassogne', '6950', 78),
(210, 'Manhay', '6960', 76),
(211, 'Tenneville', '6970', 77),
(212, 'La Roche-en-Ardenne', '6980', 77),
(213, 'Rendeux', '6987', 77),
(214, 'Hotton', '6990', 74),
(215, 'Érezée', '6997', 76),
(216, 'Mons', '7000', 20),
(217, 'Quévy', '7040', 23),
(218, 'Jurbise', '7050', 24),
(219, 'Soignies', '7060', 25),
(220, 'Le Roeulx', '7070', 26),
(221, 'Frameries', '7080', 23),
(222, 'Braine-le-Comte', '7090', 25),
(223, 'La Louvière', '7100', 18),
(224, 'Estinnes', '7120', 19),
(225, 'Binche', '7130', 19),
(226, 'Morlanwelz', '7140', 19),
(227, 'Chapelle-lez-Herlaimont', '7160', 16),
(228, 'Manage', '7170', 27),
(229, 'Seneffe', '7180', 27),
(230, 'Écaussinnes', '7190', 25),
(231, 'Boussu', '7300', 21),
(232, 'Bernissart', '7320', 8),
(233, 'Saint-Ghislain', '7330', 21),
(234, 'Colfontaine', '7340', 22),
(235, 'Hensies', '7350', 21),
(236, 'Dour', '7370', 22),
(237, 'Quiévrain', '7380', 22),
(238, 'Honnelles', '7387', 22),
(239, 'Quaregnon', '7390', 21),
(240, 'Tournai', '7500', 33),
(241, 'Péruwelz', '7600', 39),
(242, 'Rumes', '7610', 34),
(243, 'Brunehaut', '7620', 34),
(244, 'Antoing', '7640', 34),
(245, 'Mouscron', '7700', 40),
(246, 'Estaimpuis', '7730', 37),
(247, 'Pecq', '7740', 37),
(248, 'Mont-de-l\'Enclus', '7750', 35),
(249, 'Celles', '7760', 35),
(250, 'Comines-Warneton', '7780', 36),
(251, 'Ath', '7800', 7),
(252, 'Silly', '7830', 10),
(253, 'Enghien', '7850', 10),
(254, 'Lessines', '7860', 13),
(255, 'Lens', '7870', 24),
(256, 'Flobecq', '7880', 11),
(257, 'Ellezelles', '7890', 11),
(258, 'Leuze-en-Hainaut', '7900', 38),
(259, 'Frasnes-lez-Anvaing', '7910', 12),
(260, 'Brugelette', '7940', 9),
(261, 'Chièvres', '7950', 9),
(262, 'Beloeil', '7970', 8),
(263, 'Bruxelles', '1000', 1),
(264, 'Schaerbeek', '1030', 108),
(265, 'Etterbeek', '1040', 107),
(266, 'Ixelles', '1050', 103),
(267, 'Saint-Gilles', '1060', 106),
(268, 'Anderlecht', '1070', 102),
(269, 'Molenbeek-Saint-Jean', '1080', 105),
(270, 'Koekelberg', '1081', 105),
(271, 'Berchem-Sainte-Agathe', '1082', 102),
(272, 'Ganshoren', '1083', 105),
(273, 'Jette', '1090', 105),
(274, 'Evere', '1140', 108),
(275, 'Woluwe-Saint-Pierre', '1150', 107),
(276, 'Auderghem', '1160', 103),
(277, 'Watermael-Boitsfort', '1170', 103),
(278, 'Uccle', '1180', 104),
(279, 'Forest', '1190', 104),
(280, 'Woluwe-Saint-Lambert', '1200', 107),
(281, 'Saint-Josse-Ten-Noode', '1210', 107);

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

--
-- Structure de la table `districts`
--

CREATE TABLE `districts` (
  `id_district` tinyint(3) UNSIGNED NOT NULL,
  `nom` tinytext NOT NULL,
  `num_sous_region` tinyint(3) UNSIGNED NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Déchargement des données de la table `districts`
--

INSERT INTO `districts` (`id_district`, `nom`, `num_sous_region`) VALUES
(1, 'Bruxelles-Capitale', 1),
(2, 'Nivelles', 2),
(3, 'Wavre', 2),
(4, 'Ath', 5),
(5, 'Charleroi', 6),
(6, 'Châtelet', 6),
(7, 'Fontaine-l\'Évêque', 6),
(8, 'La Louvière', 4),
(9, 'Mons', 3),
(10, 'Boussu', 3),
(11, 'Soignies', 4),
(12, 'Tournai', 5),
(13, 'Huy', 9),
(14, 'Liège', 8),
(15, 'Fléron', 8),
(16, 'Saint-Nicolas', 8),
(17, 'Seraing', 8),
(18, 'Visé', 8),
(19, 'Verviers', 10),
(20, 'Dison', 10),
(21, 'Eupen', 10),
(22, 'Waremme', 9),
(23, 'Arlon', 7),
(24, 'Bastogne', 7),
(25, 'Marche-en-Famenne', 7),
(26, 'Neufchâteau', 7),
(27, 'Bouillon', 7),
(28, 'Virton', 7),
(29, 'Dinant', 12),
(30, 'Ciney', 12),
(31, 'Namur', 11),
(32, 'Andenne', 11),
(33, 'Philippeville', 12),
(34, 'Gembloux', 11),
(35, 'Mouscron', 5),
(36, 'Thuin', 6);

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

--
-- Structure de la table `provinces`
--

CREATE TABLE `provinces` (
  `id_province` tinyint(3) UNSIGNED NOT NULL,
  `nom` tinytext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Déchargement des données de la table `provinces`
--

INSERT INTO `provinces` (`id_province`, `nom`) VALUES
(0, 'Codes spéciaux'),
(1, 'Anvers'),
(2, 'Brabant Flamand'),
(3, 'Brabant Wallon'),
(4, 'Bruxelles-Capitale'),
(5, 'Flandre-Occidentale'),
(6, 'Flandre-Orientale'),
(7, 'Hainaut'),
(8, 'Liège'),
(9, 'Limbourg'),
(10, 'Luxembourg'),
(11, 'Namur');

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

--
-- Structure de la table `sous_regions`
--

CREATE TABLE `sous_regions` (
  `id_sous_region` tinyint(3) UNSIGNED NOT NULL,
  `nom` tinytext NOT NULL,
  `num_province` tinyint(3) UNSIGNED NOT NULL DEFAULT '0',
  `nb_titulaires` tinyint(3) UNSIGNED NOT NULL,
  `nb_suppleants` tinyint(3) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Déchargement des données de la table `sous_regions`
--

INSERT INTO `sous_regions` (`id_sous_region`, `nom`, `num_province`, `nb_titulaires`, `nb_suppleants`) VALUES
(1, 'Bruxelles-Capitale', 4, 72, 0),
(2, 'Brabant wallon', 3, 8, 8),
(3, 'Mons', 7, 5, 5),
(4, 'Soignies - La Louvière', 7, 5, 5),
(5, 'Tournai - Ath - Mouscron', 7, 7, 7),
(6, 'Charleroi - Thuin', 7, 10, 10),
(7, 'Luxembourg', 10, 6, 6),
(8, 'Liège', 8, 13, 13),
(9, 'Huy - Waremme', 8, 4, 4),
(10, 'Verviers', 8, 6, 6),
(11, 'Namur', 11, 7, 7),
(12, 'Dinant - Philippeville', 11, 4, 4);

--
-- Index pour les tables déchargées
--

--
-- Index pour la table `cantons`
--
ALTER TABLE `cantons`
  ADD PRIMARY KEY (`id_canton`),
  ADD KEY `FK_district` (`num_district`);

--
-- Index pour la table `communes`
--
ALTER TABLE `communes`
  ADD PRIMARY KEY (`id_commune`),
  ADD KEY `FK_canton` (`num_canton`);

--
-- Index pour la table `districts`
--
ALTER TABLE `districts`
  ADD PRIMARY KEY (`id_district`),
  ADD KEY `FK_sous_region` (`num_sous_region`);

--
-- Index pour la table `provinces`
--
ALTER TABLE `provinces`
  ADD PRIMARY KEY (`id_province`);

--
-- Index pour la table `sous_regions`
--
ALTER TABLE `sous_regions`
  ADD PRIMARY KEY (`id_sous_region`),
  ADD KEY `FK_province` (`num_province`);

--
-- AUTO_INCREMENT pour les tables déchargées
--

--
-- AUTO_INCREMENT pour la table `cantons`
--
ALTER TABLE `cantons`
  MODIFY `id_canton` tinyint(3) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=109;

--
-- AUTO_INCREMENT pour la table `communes`
--
ALTER TABLE `communes`
  MODIFY `id_commune` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=282;

--
-- AUTO_INCREMENT pour la table `districts`
--
ALTER TABLE `districts`
  MODIFY `id_district` tinyint(3) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;

--
-- AUTO_INCREMENT pour la table `sous_regions`
--
ALTER TABLE `sous_regions`
  MODIFY `id_sous_region` tinyint(3) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- Contraintes pour les tables déchargées
--

--
-- Contraintes pour la table `cantons`
--
ALTER TABLE `cantons`
  ADD CONSTRAINT `FK_district` FOREIGN KEY (`num_district`) REFERENCES `districts` (`id_district`);

--
-- Contraintes pour la table `communes`
--
ALTER TABLE `communes`
  ADD CONSTRAINT `FK_canton` FOREIGN KEY (`num_canton`) REFERENCES `cantons` (`id_canton`);

--
-- Contraintes pour la table `districts`
--
ALTER TABLE `districts`
  ADD CONSTRAINT `FK_sous_region` FOREIGN KEY (`num_sous_region`) REFERENCES `sous_regions` (`id_sous_region`);

--
-- Contraintes pour la table `sous_regions`
--
ALTER TABLE `sous_regions`
  ADD CONSTRAINT `FK_province` FOREIGN KEY (`num_province`) REFERENCES `provinces` (`id_province`);
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 */;
