-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsiscode.sql
More file actions
97 lines (80 loc) · 2.87 KB
/
Copy pathsiscode.sql
File metadata and controls
97 lines (80 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
-- phpMyAdmin SQL Dump
-- version 3.4.11.1deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 07, 2014 at 04:02 PM
-- Server version: 5.5.34
-- PHP Version: 5.4.6-1ubuntu1.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `siscode`
--
-- --------------------------------------------------------
--
-- Table structure for table `courses`
--
CREATE TABLE IF NOT EXISTS `courses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`term` varchar(20) CHARACTER SET latin1 DEFAULT NULL,
`crn` int(11) DEFAULT NULL,
`subject_id` int(11) DEFAULT NULL,
`number` varchar(20) CHARACTER SET latin1 DEFAULT NULL,
`section` int(11) DEFAULT NULL,
`title` varchar(100) CHARACTER SET latin1 DEFAULT NULL,
`m` tinyint(1) NOT NULL DEFAULT '0',
`t` tinyint(1) NOT NULL DEFAULT '0',
`w` tinyint(1) NOT NULL DEFAULT '0',
`r` tinyint(1) NOT NULL DEFAULT '0',
`f` tinyint(1) NOT NULL DEFAULT '0',
`s` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1684 ;
-- --------------------------------------------------------
--
-- Table structure for table `course_slots`
--
CREATE TABLE IF NOT EXISTS `course_slots` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`start_time` time NOT NULL,
`end_time` time NOT NULL,
`building` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`room` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`instructor_id` int(11) NOT NULL,
`day` int(11) NOT NULL,
`course_id` int(11) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3416 ;
-- --------------------------------------------------------
--
-- Table structure for table `institutions`
--
CREATE TABLE IF NOT EXISTS `institutions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`acronym` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;
-- --------------------------------------------------------
--
-- Table structure for table `instructors`
--
CREATE TABLE IF NOT EXISTS `instructors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=398 ;
-- --------------------------------------------------------
--
-- Table structure for table `subjects`
--
CREATE TABLE IF NOT EXISTS `subjects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`institution_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=61 ;