· 7 years ago · Dec 01, 2018, 04:06 PM
1-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64)
2--
3-- Host: localhost Database: lingling_t_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: `lingling_t_wcs_bordeaux`
20--
21
22CREATE DATABASE /*!32312 IF NOT EXISTS*/ `lingling_t_wcs_bordeaux` /*!40100 DEFAULT CHARACTER SET latin1 */;
23
24USE `lingling_t_wcs_bordeaux`;
25
26--
27-- Table structure for table `city`
28--
29
30DROP TABLE IF EXISTS `city`;
31/*!40101 SET @saved_cs_client = @@character_set_client */;
32/*!40101 SET character_set_client = utf8 */;
33CREATE TABLE `city` (
34 `id` int(11) NOT NULL AUTO_INCREMENT,
35 `name` varchar(255) DEFAULT NULL,
36 PRIMARY KEY (`id`)
37) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
38/*!40101 SET character_set_client = @saved_cs_client */;
39
40--
41-- Dumping data for table `city`
42--
43
44LOCK TABLES `city` WRITE;
45/*!40000 ALTER TABLE `city` DISABLE KEYS */;
46INSERT INTO `city` VALUES (1,'Bordeaux'),(2,'Cenon'),(3,'Floirac'),(4,'Pessac');
47/*!40000 ALTER TABLE `city` ENABLE KEYS */;
48UNLOCK TABLES;
49
50--
51-- Table structure for table `language`
52--
53
54DROP TABLE IF EXISTS `language`;
55/*!40101 SET @saved_cs_client = @@character_set_client */;
56/*!40101 SET character_set_client = utf8 */;
57CREATE TABLE `language` (
58 `id` int(100) NOT NULL AUTO_INCREMENT,
59 `name` varchar(255) DEFAULT NULL,
60 PRIMARY KEY (`id`)
61) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
62/*!40101 SET character_set_client = @saved_cs_client */;
63
64--
65-- Dumping data for table `language`
66--
67
68LOCK TABLES `language` WRITE;
69/*!40000 ALTER TABLE `language` DISABLE KEYS */;
70INSERT INTO `language` VALUES (1,'PHP'),(2,'JavaScript'),(3,'Java');
71/*!40000 ALTER TABLE `language` ENABLE KEYS */;
72UNLOCK TABLES;
73
74--
75-- Table structure for table `student`
76--
77
78DROP TABLE IF EXISTS `student`;
79/*!40101 SET @saved_cs_client = @@character_set_client */;
80/*!40101 SET character_set_client = utf8 */;
81CREATE TABLE `student` (
82 `id` int(11) NOT NULL AUTO_INCREMENT,
83 `Nom` varchar(255) DEFAULT NULL,
84 `Prénom` varchar(255) DEFAULT NULL,
85 `Adresse` varchar(255) DEFAULT NULL,
86 `Lieu_de_résidence` varchar(255) DEFAULT NULL,
87 `Fk_City_Id` int(11) DEFAULT NULL,
88 `Fk_Languate_Id` int(11) DEFAULT NULL,
89 PRIMARY KEY (`id`),
90 KEY `Fk_City_Id` (`Fk_City_Id`),
91 KEY `Fk_Languate_Id` (`Fk_Languate_Id`),
92 CONSTRAINT `student_ibfk_1` FOREIGN KEY (`Fk_City_Id`) REFERENCES `city` (`id`),
93 CONSTRAINT `student_ibfk_2` FOREIGN KEY (`Fk_Languate_Id`) REFERENCES `language` (`id`)
94) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;
95/*!40101 SET character_set_client = @saved_cs_client */;
96
97--
98-- Dumping data for table `student`
99--
100
101LOCK TABLES `student` WRITE;
102/*!40000 ALTER TABLE `student` DISABLE KEYS */;
103INSERT INTO `student` VALUES (1,'Tri','Caroline','68 Cours de Verdun, 33000 Bordeaux','France',1,2),(2,'Allainmat','Floriant','68 Cours de Verdun, 33000 Bordeaux','France',3,2),(4,'Barakat','Robert','68 Cours de Verdun, 33000 Bordeaux','France',1,2),(5,'Sanz','Silvia','68 Cours de Verdun, 33000 Bordeaux','France',1,1),(6,'Lingling','Liu','Cenon','China',2,2),(10,'Lily','Liu','Cenon','China',2,3),(11,'Chrome','Google','USA','America',4,3),(13,'La','Laurie','France','France',4,1);
104/*!40000 ALTER TABLE `student` 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-01 16:56:42