· 7 years ago · Dec 02, 2018, 08:36 PM
1-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64)
2--
3-- Host: localhost Database: dina_r_wcs_bordeaux
4-- ------------------------------------------------------
5-- Server version 5.7.24-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-- Current Database: `dina_r_wcs_bordeaux`
20--
21
22CREATE DATABASE /*!32312 IF NOT EXISTS*/ `dina_r_wcs_bordeaux` /*!40100 DEFAULT CHARACTER SET latin1 */;
23
24USE `dina_r_wcs_bordeaux`;
25
26--
27-- Table structure for table `Language`
28--
29
30DROP TABLE IF EXISTS `Language`;
31/*!40101 SET @saved_cs_client = @@character_set_client */;
32/*!40101 SET character_set_client = utf8 */;
33CREATE TABLE `Language` (
34 `id` int(11) NOT NULL AUTO_INCREMENT,
35 `Name` varchar(20) NOT NULL,
36 PRIMARY KEY (`id`)
37) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
38/*!40101 SET character_set_client = @saved_cs_client */;
39
40--
41-- Dumping data for table `Language`
42--
43
44LOCK TABLES `Language` WRITE;
45/*!40000 ALTER TABLE `Language` DISABLE KEYS */;
46INSERT INTO `Language` VALUES (1,'PHP'),(2,'Javascript'),(3,'Java');
47/*!40000 ALTER TABLE `Language` ENABLE KEYS */;
48UNLOCK TABLES;
49
50--
51-- Table structure for table `dina_r_wcs_bordeaux`
52--
53
54DROP TABLE IF EXISTS `dina_r_wcs_bordeaux`;
55/*!40101 SET @saved_cs_client = @@character_set_client */;
56/*!40101 SET character_set_client = utf8 */;
57CREATE TABLE `dina_r_wcs_bordeaux` (
58 `id` int(11) NOT NULL AUTO_INCREMENT,
59 `Nom` varchar(50) DEFAULT NULL,
60 `Prénom` varchar(50) DEFAULT NULL,
61 `Adresse` text,
62 `FK_Language` int(11) NOT NULL,
63 `FK_ecole` int(11) NOT NULL,
64 PRIMARY KEY (`id`),
65 KEY `FK_Language` (`FK_Language`),
66 KEY `FK_ecole` (`FK_ecole`),
67 CONSTRAINT `dina_r_wcs_bordeaux_ibfk_1` FOREIGN KEY (`FK_Language`) REFERENCES `Language` (`id`),
68 CONSTRAINT `dina_r_wcs_bordeaux_ibfk_2` FOREIGN KEY (`FK_ecole`) REFERENCES `ecole` (`id`)
69) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
70/*!40101 SET character_set_client = @saved_cs_client */;
71
72--
73-- Dumping data for table `dina_r_wcs_bordeaux`
74--
75
76LOCK TABLES `dina_r_wcs_bordeaux` WRITE;
77/*!40000 ALTER TABLE `dina_r_wcs_bordeaux` DISABLE KEYS */;
78INSERT INTO `dina_r_wcs_bordeaux` VALUES (1,'Ribeiro','Agnès','100 rue Paul Verlaine',1,1),(2,'Tabuteau','Ling-Ling','10 avenue Jean Jaurès',1,1),(3,'Tri','Caroline','10 avenue de la Libération',2,1),(4,'Allainmat','Florian','100 impasse de la Chêneraie',3,2),(5,'Pérez','José','10 place de la Victoire',3,2);
79/*!40000 ALTER TABLE `dina_r_wcs_bordeaux` ENABLE KEYS */;
80UNLOCK TABLES;
81
82--
83-- Table structure for table `ecole`
84--
85
86DROP TABLE IF EXISTS `ecole`;
87/*!40101 SET @saved_cs_client = @@character_set_client */;
88/*!40101 SET character_set_client = utf8 */;
89CREATE TABLE `ecole` (
90 `id` int(11) NOT NULL AUTO_INCREMENT,
91 `ville` varchar(50) NOT NULL,
92 `capacité` int(11) NOT NULL,
93 PRIMARY KEY (`id`)
94) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
95/*!40101 SET character_set_client = @saved_cs_client */;
96
97--
98-- Dumping data for table `ecole`
99--
100
101LOCK TABLES `ecole` WRITE;
102/*!40000 ALTER TABLE `ecole` DISABLE KEYS */;
103INSERT INTO `ecole` VALUES (1,'Bordeaux',45),(2,'Biarritz',15);
104/*!40000 ALTER TABLE `ecole` ENABLE KEYS */;
105UNLOCK TABLES;
106/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
107
108/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
109/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
110/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
111/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
112/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
113/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
114/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
115
116-- Dump completed on 2018-12-02 21:29:02