Вы находитесь на странице: 1из 3

-- MySQL dump 10.16 Distrib 10.1.

16-MariaDB, for Win32 (AMD64)


--
-- Host: localhost Database: tech_academy
-- ------------------------------------------------------
-- Server version 10.1.16-MariaDB

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;


/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS,
FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE,
SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `courses`
--

DROP TABLE IF EXISTS `courses`;


/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `courses` (
`courseID` int(11) NOT NULL AUTO_INCREMENT,
`Name` varchar(50) DEFAULT NULL,
`startDate` date DEFAULT NULL,
`endDate` date DEFAULT NULL,
`instructor` int(11) DEFAULT NULL,
`price` int(11) DEFAULT NULL,
PRIMARY KEY (`courseID`),
KEY `instructor` (`instructor`),
CONSTRAINT `courses_ibfk_1` FOREIGN KEY (`instructor`) REFERENCES
`instructors` (`instructorID`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `courses`
--

LOCK TABLES `courses` WRITE;


/*!40000 ALTER TABLE `courses` DISABLE KEYS */;
INSERT INTO `courses` VALUES (1,'Computer Vision','2017-04-12','2017-
05-12',2,500),(2,'Data Science','2017-04-22','2017-05-22',4,400),
(3,'Databases','2017-05-01','2017-06-01',5,250),(4,'Python','2017-04-
02','2017-07-01',3,250),(5,'Deep Learning','2017-05-12','2017-12-
12',1,600),(6,'Big Data','2017-11-11','2018-04-01',5,400);
/*!40000 ALTER TABLE `courses` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `instructors`
--

DROP TABLE IF EXISTS `instructors`;


/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `instructors` (
`instructorID` int(11) NOT NULL AUTO_INCREMENT,
`Fname` varchar(50) DEFAULT NULL,
`Lname` varchar(50) DEFAULT NULL,
`Designation` varchar(50) DEFAULT NULL,
PRIMARY KEY (`instructorID`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `instructors`
--

LOCK TABLES `instructors` WRITE;


/*!40000 ALTER TABLE `instructors` DISABLE KEYS */;
INSERT INTO `instructors` VALUES (1,'Jeff','Hinton','Professor'),
(2,'Yaan','Lecun','Professor'),(3,'Yoshua','Bengio','Professor'),
(4,'Andrew','NG','Professor'),(5,'Andrei','Karpathy','Teaching
Assistant');
/*!40000 ALTER TABLE `instructors` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `students`
--

DROP TABLE IF EXISTS `students`;


/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `students` (
`studentID` int(11) NOT NULL AUTO_INCREMENT,
`Fname` varchar(50) DEFAULT NULL,
`Lname` varchar(50) DEFAULT NULL,
`dateJoined` date DEFAULT NULL,
`address` varchar(50) DEFAULT NULL,
PRIMARY KEY (`studentID`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `students`
--

LOCK TABLES `students` WRITE;


/*!40000 ALTER TABLE `students` DISABLE KEYS */;
INSERT INTO `students` VALUES (1,'Allan','Smith','2016-09-12','San
Francisco'),(2,'John','Hopkins','2017-04-14','New York'),
(3,'Jack','Johnson','2017-01-09','St. Petersburg'),
(4,'Anna','Ivanonvna','2016-12-04','Berlin'),(5,'Thomas','Lang','2017-
03-12','Berlin'),(6,'Mark','Johnson','2017-02-11','Moscow'),
(7,'Alex','Jones','2017-02-10','London'),(8,'Denis','Hasabis','2016-
09-09','London');
/*!40000 ALTER TABLE `students` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;


/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2017-03-28 21:47:09

Вам также может понравиться