· 7 years ago · Oct 18, 2018, 04:54 PM
1-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64)
2--
3-- Host: localhost Database: mickael_l_wcs_biarritz
4-- ------------------------------------------------------
5-- Server version 5.7.23-0ubuntu0.18.04.1
6
7/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10/*!40101 SET NAMES utf8 */;
11/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12/*!40103 SET TIME_ZONE='+00:00' */;
13/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17
18--
19-- Table structure for table `Participants`
20--
21
22DROP TABLE IF EXISTS `Participants`;
23/*!40101 SET @saved_cs_client = @@character_set_client */;
24/*!40101 SET character_set_client = utf8 */;
25CREATE TABLE `Participants` (
26 `id` int(11) NOT NULL AUTO_INCREMENT,
27 `Nom` varchar(50) DEFAULT NULL,
28 `Prenom` varchar(50) DEFAULT NULL,
29 `Adresse` varchar(80) DEFAULT NULL,
30 `id_ville` int(11) DEFAULT NULL,
31 `id_langage` int(11) DEFAULT NULL,
32 PRIMARY KEY (`id`),
33 KEY `id_ville` (`id_ville`),
34 KEY `id_langage` (`id_langage`),
35 CONSTRAINT `Participants_ibfk_1` FOREIGN KEY (`id_ville`) REFERENCES `villes` (`id`),
36 CONSTRAINT `Participants_ibfk_2` FOREIGN KEY (`id_langage`) REFERENCES `langages` (`id`)
37) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
38/*!40101 SET character_set_client = @saved_cs_client */;
39
40--
41-- Dumping data for table `Participants`
42--
43
44LOCK TABLES `Participants` WRITE;
45/*!40000 ALTER TABLE `Participants` DISABLE KEYS */;
46INSERT INTO `Participants` VALUES (1,'','Google','Mountain View',1,1),(2,'Skywalker','Luke','Tatooine',1,2),(3,'Gates','Bill','Medina',2,3),(4,'','Thanos','Titan',1,1),(5,'Wayne','Bruce','Gotham',2,3),(6,'Lorie','Lorie','Lorie',2,1);
47/*!40000 ALTER TABLE `Participants` ENABLE KEYS */;
48UNLOCK TABLES;
49
50--
51-- Table structure for table `langages`
52--
53
54DROP TABLE IF EXISTS `langages`;
55/*!40101 SET @saved_cs_client = @@character_set_client */;
56/*!40101 SET character_set_client = utf8 */;
57CREATE TABLE `langages` (
58 `id` int(11) NOT NULL,
59 `Name` varchar(20) DEFAULT NULL,
60 PRIMARY KEY (`id`)
61) ENGINE=InnoDB DEFAULT CHARSET=latin1;
62/*!40101 SET character_set_client = @saved_cs_client */;
63
64--
65-- Dumping data for table `langages`
66--
67
68LOCK TABLES `langages` WRITE;
69/*!40000 ALTER TABLE `langages` DISABLE KEYS */;
70INSERT INTO `langages` VALUES (1,'PHP'),(2,'Javascript'),(3,'Java');
71/*!40000 ALTER TABLE `langages` ENABLE KEYS */;
72UNLOCK TABLES;
73
74--
75-- Table structure for table `villes`
76--
77
78DROP TABLE IF EXISTS `villes`;
79/*!40101 SET @saved_cs_client = @@character_set_client */;
80/*!40101 SET character_set_client = utf8 */;
81CREATE TABLE `villes` (
82 `id` int(11) NOT NULL,
83 `Name` varchar(30) DEFAULT NULL,
84 PRIMARY KEY (`id`)
85) ENGINE=InnoDB DEFAULT CHARSET=latin1;
86/*!40101 SET character_set_client = @saved_cs_client */;
87
88--
89-- Dumping data for table `villes`
90--
91
92LOCK TABLES `villes` WRITE;
93/*!40000 ALTER TABLE `villes` DISABLE KEYS */;
94INSERT INTO `villes` VALUES (1,'Biarritz'),(2,'Gotham');
95/*!40000 ALTER TABLE `villes` ENABLE KEYS */;
96UNLOCK TABLES;
97/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
98
99/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
100/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
101/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
102/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
103/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
104/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
105/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
106
107-- Dump completed on 2018-10-18 14:08:09