· 7 years ago · Jan 08, 2019, 10:08 PM
1-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64)
2--
3-- Host: 127.0.0.1 Database: lookout
4-- ------------------------------------------------------
5-- Server version 5.7.20
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 `advisors`
20--
21
22DROP TABLE IF EXISTS `advisors`;
23/*!40101 SET @saved_cs_client = @@character_set_client */;
24/*!40101 SET character_set_client = utf8 */;
25CREATE TABLE `advisors` (
26 `advisor_id` int(11) NOT NULL AUTO_INCREMENT,
27 `f_name` varchar(50) DEFAULT NULL,
28 `l_name` varchar(50) NOT NULL,
29 `conference_id` int(11) NOT NULL,
30 PRIMARY KEY (`advisor_id`),
31 KEY `advisors_conferences_conference_id_fk` (`conference_id`),
32 CONSTRAINT `advisors_conferences_conference_id_fk` FOREIGN KEY (`conference_id`) REFERENCES `conferences` (`conference_id`)
33) ENGINE=InnoDB DEFAULT CHARSET=latin1;
34/*!40101 SET character_set_client = @saved_cs_client */;
35
36--
37-- Dumping data for table `advisors`
38--
39
40LOCK TABLES `advisors` WRITE;
41/*!40000 ALTER TABLE `advisors` DISABLE KEYS */;
42/*!40000 ALTER TABLE `advisors` ENABLE KEYS */;
43UNLOCK TABLES;
44
45--
46-- Table structure for table `conferences`
47--
48
49DROP TABLE IF EXISTS `conferences`;
50/*!40101 SET @saved_cs_client = @@character_set_client */;
51/*!40101 SET character_set_client = utf8 */;
52CREATE TABLE `conferences` (
53 `conference_id` int(11) NOT NULL AUTO_INCREMENT,
54 `name` varchar(100) NOT NULL,
55 `description` varchar(200) DEFAULT NULL,
56 `start_date` date NOT NULL,
57 `end_date` date NOT NULL,
58 PRIMARY KEY (`conference_id`)
59) ENGINE=InnoDB DEFAULT CHARSET=latin1;
60/*!40101 SET character_set_client = @saved_cs_client */;
61
62--
63-- Dumping data for table `conferences`
64--
65
66LOCK TABLES `conferences` WRITE;
67/*!40000 ALTER TABLE `conferences` DISABLE KEYS */;
68/*!40000 ALTER TABLE `conferences` ENABLE KEYS */;
69UNLOCK TABLES;
70
71--
72-- Table structure for table `events`
73--
74
75DROP TABLE IF EXISTS `events`;
76/*!40101 SET @saved_cs_client = @@character_set_client */;
77/*!40101 SET character_set_client = utf8 */;
78CREATE TABLE `events` (
79 `event_id` int(11) NOT NULL AUTO_INCREMENT,
80 `event_name` varchar(50) NOT NULL,
81 `event_description` varchar(200) NOT NULL,
82 `start_time` datetime NOT NULL,
83 `end_time` datetime NOT NULL,
84 PRIMARY KEY (`event_id`)
85) ENGINE=InnoDB DEFAULT CHARSET=latin1;
86/*!40101 SET character_set_client = @saved_cs_client */;
87
88--
89-- Dumping data for table `events`
90--
91
92LOCK TABLES `events` WRITE;
93/*!40000 ALTER TABLE `events` DISABLE KEYS */;
94/*!40000 ALTER TABLE `events` ENABLE KEYS */;
95UNLOCK TABLES;
96
97--
98-- Table structure for table `students`
99--
100
101DROP TABLE IF EXISTS `students`;
102/*!40101 SET @saved_cs_client = @@character_set_client */;
103/*!40101 SET character_set_client = utf8 */;
104CREATE TABLE `students` (
105 `student_id` int(11) NOT NULL AUTO_INCREMENT,
106 `student_f_name` varchar(50) NOT NULL,
107 `student_l_name` varchar(50) NOT NULL,
108 `advisor_id` int(11) NOT NULL,
109 `conference_id` int(11) NOT NULL,
110 PRIMARY KEY (`student_id`),
111 KEY `students_conferences_conference_id_fk` (`conference_id`),
112 CONSTRAINT `students_conferences_conference_id_fk` FOREIGN KEY (`conference_id`) REFERENCES `conferences` (`conference_id`)
113) ENGINE=InnoDB DEFAULT CHARSET=latin1;
114/*!40101 SET character_set_client = @saved_cs_client */;
115
116--
117-- Dumping data for table `students`
118--
119
120LOCK TABLES `students` WRITE;
121/*!40000 ALTER TABLE `students` DISABLE KEYS */;
122/*!40000 ALTER TABLE `students` ENABLE KEYS */;
123UNLOCK TABLES;
124
125--
126-- Table structure for table `users`
127--
128
129DROP TABLE IF EXISTS `users`;
130/*!40101 SET @saved_cs_client = @@character_set_client */;
131/*!40101 SET character_set_client = utf8 */;
132CREATE TABLE `users` (
133 `user_id` int(11) NOT NULL AUTO_INCREMENT,
134 `username` varchar(50) DEFAULT NULL,
135 `user_f_name` varchar(50) DEFAULT NULL,
136 `user_l_name` varchar(50) DEFAULT NULL,
137 `email` varchar(100) DEFAULT NULL,
138 `password` varchar(100) DEFAULT NULL,
139 PRIMARY KEY (`user_id`)
140) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
141/*!40101 SET character_set_client = @saved_cs_client */;
142
143--
144-- Dumping data for table `users`
145--
146
147LOCK TABLES `users` WRITE;
148/*!40000 ALTER TABLE `users` DISABLE KEYS */;
149INSERT INTO `users` VALUES (1,'nathanculley','nathan','culley','nate@gmail.com','cGFzc3dvcmQ=');
150/*!40000 ALTER TABLE `users` ENABLE KEYS */;
151UNLOCK TABLES;
152/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
153
154/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
155/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
156/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
157/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
158/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
159/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
160/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
161
162-- Dump completed on 2019-01-08 0:25:13