forked from petercasinelli/bc_css_sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.sql
228 lines (186 loc) · 7.1 KB
/
database.sql
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
-- phpMyAdmin SQL Dump
-- version 3.3.9.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jul 08, 2012 at 12:07 PM
-- Server version: 5.5.9
-- PHP Version: 5.3.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `bc-css-skills`
--
-- --------------------------------------------------------
--
-- Table structure for table `majors`
--
CREATE TABLE `majors` (
`major_id` int(11) NOT NULL AUTO_INCREMENT,
`major` varchar(100) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`major_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=38 ;
--
-- Dumping data for table `majors`
--
INSERT INTO `majors` VALUES(1, 'Computer Science');
INSERT INTO `majors` VALUES(3, 'Biology');
INSERT INTO `majors` VALUES(4, 'Chemistry');
INSERT INTO `majors` VALUES(5, 'Classical Studies');
INSERT INTO `majors` VALUES(6, 'Communication');
INSERT INTO `majors` VALUES(7, 'Earth and Environmental Sciences');
INSERT INTO `majors` VALUES(8, 'Economics');
INSERT INTO `majors` VALUES(9, 'Education');
INSERT INTO `majors` VALUES(10, 'English');
INSERT INTO `majors` VALUES(11, 'Finance');
INSERT INTO `majors` VALUES(12, 'Accounting');
INSERT INTO `majors` VALUES(13, 'Fine Arts');
INSERT INTO `majors` VALUES(14, 'General Management');
INSERT INTO `majors` VALUES(15, 'German Studies');
INSERT INTO `majors` VALUES(16, 'History');
INSERT INTO `majors` VALUES(17, 'Information Systems');
INSERT INTO `majors` VALUES(18, 'Islamic Civilizations and Societies');
INSERT INTO `majors` VALUES(19, 'International Studies');
INSERT INTO `majors` VALUES(20, 'Marketing');
INSERT INTO `majors` VALUES(21, 'Mathematics');
INSERT INTO `majors` VALUES(22, 'Management and Organization');
INSERT INTO `majors` VALUES(23, 'Music');
INSERT INTO `majors` VALUES(24, 'Nursing');
INSERT INTO `majors` VALUES(25, 'Operations Management');
INSERT INTO `majors` VALUES(26, 'Philosophy');
INSERT INTO `majors` VALUES(27, 'Physics');
INSERT INTO `majors` VALUES(28, 'Political Science');
INSERT INTO `majors` VALUES(29, 'Psychology');
INSERT INTO `majors` VALUES(30, 'Romance Language and Literatures');
INSERT INTO `majors` VALUES(31, 'Slavic and Eastern Languages and Literatures');
INSERT INTO `majors` VALUES(32, 'Sociology');
INSERT INTO `majors` VALUES(33, 'Theatre');
INSERT INTO `majors` VALUES(34, 'Theology');
INSERT INTO `majors` VALUES(35, 'African and African Diaspora Studies');
INSERT INTO `majors` VALUES(36, 'Business Law');
INSERT INTO `majors` VALUES(37, 'Biochemistry');
-- --------------------------------------------------------
--
-- Table structure for table `schools`
--
CREATE TABLE `schools` (
`school_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`school` varchar(255) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`school_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=9 ;
--
-- Dumping data for table `schools`
--
INSERT INTO `schools` VALUES(1, 'Arts and Sciences');
INSERT INTO `schools` VALUES(2, 'CSOM');
INSERT INTO `schools` VALUES(3, 'CSON');
INSERT INTO `schools` VALUES(4, 'GSSW');
INSERT INTO `schools` VALUES(5, 'Law');
INSERT INTO `schools` VALUES(6, 'Lynch School');
INSERT INTO `schools` VALUES(7, 'School of Theology');
INSERT INTO `schools` VALUES(8, 'Woods College');
-- --------------------------------------------------------
--
-- Table structure for table `skills`
--
CREATE TABLE `skills` (
`skill_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`skill` varchar(255) CHARACTER SET latin1 NOT NULL,
PRIMARY KEY (`skill_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=14 ;
--
-- Dumping data for table `skills`
--
INSERT INTO `skills` VALUES(1, 'HTML');
INSERT INTO `skills` VALUES(2, 'CSS');
INSERT INTO `skills` VALUES(3, 'Javascript');
INSERT INTO `skills` VALUES(4, 'jQuery');
INSERT INTO `skills` VALUES(5, 'PHP');
INSERT INTO `skills` VALUES(6, 'Ruby on Rails');
INSERT INTO `skills` VALUES(7, 'Python');
INSERT INTO `skills` VALUES(9, 'C#');
INSERT INTO `skills` VALUES(10, 'Objective-C');
INSERT INTO `skills` VALUES(11, 'Android');
INSERT INTO `skills` VALUES(12, 'Java');
INSERT INTO `skills` VALUES(13, 'C++');
-- --------------------------------------------------------
--
-- Table structure for table `students`
--
CREATE TABLE `students` (
`student_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`first` varchar(255) CHARACTER SET latin1 NOT NULL,
`last` varchar(255) CHARACTER SET latin1 NOT NULL,
`email` varchar(255) CHARACTER SET latin1 NOT NULL,
`oauth_uid` char(40) CHARACTER SET latin1 DEFAULT NULL,
`password` char(40) CHARACTER SET latin1 NOT NULL,
`school_id` int(11) unsigned DEFAULT NULL,
`year` int(4) unsigned DEFAULT NULL,
`major_id` int(11) unsigned DEFAULT NULL,
`bio` text CHARACTER SET latin1,
`status` varchar(144) CHARACTER SET latin1 DEFAULT NULL,
`skills` text CHARACTER SET latin1,
`software` text CHARACTER SET latin1,
`twitter` text CHARACTER SET latin1,
`facebook` text CHARACTER SET latin1,
`linkedin` text CHARACTER SET latin1,
`dribbble` text COLLATE utf8_bin,
`github` text CHARACTER SET latin1 NOT NULL,
PRIMARY KEY (`student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=11 ;
--
-- Dumping data for table `students`
--
INSERT INTO `students` VALUES(10, 'Peter', '', '[email protected]', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '');
-- --------------------------------------------------------
--
-- Table structure for table `student_skills`
--
CREATE TABLE `student_skills` (
`student_skills_id` int(11) NOT NULL AUTO_INCREMENT,
`student_id` int(11) unsigned NOT NULL,
`skill_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`student_skills_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
--
-- Dumping data for table `student_skills`
--
-- --------------------------------------------------------
--
-- Table structure for table `teams`
--
CREATE TABLE `teams` (
`team_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`team_name` varchar(255) COLLATE utf8_bin NOT NULL,
`team_description` tinytext COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`team_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
--
-- Dumping data for table `teams`
--
-- --------------------------------------------------------
--
-- Table structure for table `team_members`
--
CREATE TABLE `team_members` (
`team_members_id` int(11) NOT NULL AUTO_INCREMENT,
`team_id` int(11) unsigned NOT NULL,
`student_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`team_members_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
--
-- Dumping data for table `team_members`
--
-- --------------------------------------------------------
--
-- Table structure for table `team_permissions`
--
CREATE TABLE `team_permissions` (
`team_permission_id` int(11) NOT NULL AUTO_INCREMENT,
`student_id` int(11) unsigned NOT NULL,
`permission_id` int(11) unsigned NOT NULL,
`team_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`team_permission_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
--
-- Dumping data for table `team_permissions`
--