1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
| -- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Jun 19, 2019 at 05:03 AM
-- Server version: 5.6.38
-- PHP Version: 7.2.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `help`
--
-- --------------------------------------------------------
--
-- Table structure for table `commune`
--
CREATE TABLE `commune` (
`id` int(11) NOT NULL,
`nom_commune` varchar(30) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `commune`
--
INSERT INTO `commune` (`id`, `nom_commune`) VALUES
(1, 'paris'),
(2, 'lille'),
(3, 'marseille'),
(4, 'toulouse');
-- --------------------------------------------------------
--
-- Table structure for table `IntCT`
--
CREATE TABLE `IntCT` (
`id_commune` int(11) NOT NULL,
`id_transport` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `IntCT`
--
INSERT INTO `IntCT` (`id_commune`, `id_transport`) VALUES
(1, 2),
(1, 3),
(2, 3),
(2, 2),
(2, 1),
(3, 2),
(4, 2),
(4, 3);
-- --------------------------------------------------------
--
-- Table structure for table `IntTS`
--
CREATE TABLE `IntTS` (
`id_transport` int(11) NOT NULL,
`id_service` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `IntTS`
--
INSERT INTO `IntTS` (`id_transport`, `id_service`) VALUES
(1, 1),
(1, 2),
(2, 1),
(2, 4),
(3, 2),
(3, 3),
(3, 4),
(4, 3);
-- --------------------------------------------------------
--
-- Table structure for table `service`
--
CREATE TABLE `service` (
`id` int(11) NOT NULL,
`nom_service` varchar(30) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `service`
--
INSERT INTO `service` (`id`, `nom_service`) VALUES
(1, 'ambulance'),
(2, 'restauration'),
(3, 'tourisme'),
(4, 'bien-etre');
-- --------------------------------------------------------
--
-- Table structure for table `transport`
--
CREATE TABLE `transport` (
`id` int(11) NOT NULL,
`nom_transport` varchar(30) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `transport`
--
INSERT INTO `transport` (`id`, `nom_transport`) VALUES
(1, 'velo'),
(2, 'voiture'),
(3, 'train'),
(4, 'avion');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `commune`
--
ALTER TABLE `commune`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `service`
--
ALTER TABLE `service`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `transport`
--
ALTER TABLE `transport`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `commune`
--
ALTER TABLE `commune`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `service`
--
ALTER TABLE `service`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `transport`
--
ALTER TABLE `transport`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; |
Partager