· 7 years ago · Nov 26, 2018, 05:00 PM
1-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64)
2--
3-- Host: localhost Database: wilders
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: `wilders`
20--
21
22CREATE DATABASE /*!32312 IF NOT EXISTS*/ `wilders` /*!40100 DEFAULT CHARACTER SET latin1 */;
23
24USE `wilders`;
25
26--
27-- Table structure for table `languages`
28--
29
30DROP TABLE IF EXISTS `languages`;
31/*!40101 SET @saved_cs_client = @@character_set_client */;
32/*!40101 SET character_set_client = utf8 */;
33CREATE TABLE `languages` (
34 `id` int(11) NOT NULL AUTO_INCREMENT,
35 `languages` varchar(100) 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 `languages`
42--
43
44LOCK TABLES `languages` WRITE;
45/*!40000 ALTER TABLE `languages` DISABLE KEYS */;
46INSERT INTO `languages` VALUES (1,'PHP'),(2,'JS'),(3,'JAVA');
47/*!40000 ALTER TABLE `languages` ENABLE KEYS */;
48UNLOCK TABLES;
49
50--
51-- Table structure for table `schools`
52--
53
54DROP TABLE IF EXISTS `schools`;
55/*!40101 SET @saved_cs_client = @@character_set_client */;
56/*!40101 SET character_set_client = utf8 */;
57CREATE TABLE `schools` (
58 `id` int(11) NOT NULL AUTO_INCREMENT,
59 `ville` varchar(100) NOT NULL,
60 PRIMARY KEY (`id`)
61) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
62/*!40101 SET character_set_client = @saved_cs_client */;
63
64--
65-- Dumping data for table `schools`
66--
67
68LOCK TABLES `schools` WRITE;
69/*!40000 ALTER TABLE `schools` DISABLE KEYS */;
70INSERT INTO `schools` VALUES (1,'reims'),(2,'paris');
71/*!40000 ALTER TABLE `schools` ENABLE KEYS */;
72UNLOCK TABLES;
73
74--
75-- Table structure for table `wilder`
76--
77
78DROP TABLE IF EXISTS `wilder`;
79/*!40101 SET @saved_cs_client = @@character_set_client */;
80/*!40101 SET character_set_client = utf8 */;
81CREATE TABLE `wilder` (
82 `id` int(11) NOT NULL AUTO_INCREMENT,
83 `nom` varchar(100) NOT NULL,
84 `prenom` varchar(100) NOT NULL,
85 `adresse` varchar(100) NOT NULL,
86 `schools_id` int(11) DEFAULT NULL,
87 `languages_id` int(11) DEFAULT NULL,
88 PRIMARY KEY (`id`),
89 KEY `schools_id` (`schools_id`),
90 KEY `languages_id` (`languages_id`),
91 CONSTRAINT `wilder_ibfk_1` FOREIGN KEY (`schools_id`) REFERENCES `schools` (`id`),
92 CONSTRAINT `wilder_ibfk_2` FOREIGN KEY (`languages_id`) REFERENCES `languages` (`id`)
93) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
94/*!40101 SET character_set_client = @saved_cs_client */;
95
96--
97-- Dumping data for table `wilder`
98--
99
100LOCK TABLES `wilder` WRITE;
101/*!40000 ALTER TABLE `wilder` DISABLE KEYS */;
102INSERT INTO `wilder` VALUES (1,'jordan','michael','usa',1,1),(2,'federer','roger','suisse',1,2),(3,'weah','georges','liberia',2,1),(4,'hamilton','lewis','england',1,3),(5,'loeb','sebastien','france',1,3);
103/*!40000 ALTER TABLE `wilder` ENABLE KEYS */;
104UNLOCK TABLES;
105/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
106
107/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
108/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
109/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
110/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
111/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
112/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
113/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
114
115-- Dump completed on 2018-11-26 16:45:13