forked from petercasinelli/bc_css_sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.sql
More file actions
356 lines (305 loc) · 12.8 KB
/
database.sql
File metadata and controls
356 lines (305 loc) · 12.8 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
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Aug 30, 2012 at 03:40 PM
-- Server version: 5.5.25
-- PHP Version: 5.4.4
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `bc-css-skills`
--
-- --------------------------------------------------------
--
-- Table structure for table `join_team_requests`
--
CREATE TABLE `join_team_requests` (
`join_team_request_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`team_id` int(11) unsigned NOT NULL,
`student_id` int(11) unsigned NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`join_team_request_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- 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` (`major_id`, `major`) VALUES
(1, 'Computer Science'),
(3, 'Biology'),
(4, 'Chemistry'),
(5, 'Classical Studies'),
(6, 'Communication'),
(7, 'Earth and Environmental Sciences'),
(8, 'Economics'),
(9, 'Education'),
(10, 'English'),
(11, 'Finance'),
(12, 'Accounting'),
(13, 'Fine Arts'),
(14, 'General Management'),
(15, 'German Studies'),
(16, 'History'),
(17, 'Information Systems'),
(18, 'Islamic Civilizations and Societies'),
(19, 'International Studies'),
(20, 'Marketing'),
(21, 'Mathematics'),
(22, 'Management and Organization'),
(23, 'Music'),
(24, 'Nursing'),
(25, 'Operations Management'),
(26, 'Philosophy'),
(27, 'Physics'),
(28, 'Political Science'),
(29, 'Psychology'),
(30, 'Romance Language and Literatures'),
(31, 'Slavic and Eastern Languages and Literatures'),
(32, 'Sociology'),
(33, 'Theatre'),
(34, 'Theology'),
(35, 'African and African Diaspora Studies'),
(36, 'Business Law'),
(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` (`school_id`, `school`) VALUES
(1, 'Arts and Sciences'),
(2, 'CSOM'),
(3, 'CSON'),
(4, 'GSSW'),
(5, 'Law'),
(6, 'Lynch School'),
(7, 'School of Theology'),
(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=46 ;
--
-- Dumping data for table `skills`
--
INSERT INTO `skills` (`skill_id`, `skill`) VALUES
(1, 'PHP'),
(2, 'MySQL'),
(3, 'PostgreSQL'),
(4, 'Java'),
(5, 'Javascript'),
(6, 'HTML5'),
(7, 'CSS'),
(8, 'n/a'),
(9, 'Objective C'),
(10, 'Marketing'),
(11, 'Sales'),
(12, 'Design'),
(13, 'Finance.'),
(14, 'iOS'),
(15, 'objective-c'),
(16, 'Image Editing'),
(17, 'Great business background and big thinker.'),
(18, 'C#'),
(19, 'OpenGL'),
(20, 'jQuery'),
(21, 'Python'),
(22, 'Video Production'),
(23, 'Graphic Design'),
(24, 'UX'),
(25, 'MATLAB'),
(26, 'basic understanding of HTML and CSS'),
(27, 'html & css'),
(28, 'ruby'),
(29, 'ruby on rails'),
(30, 'etc.'),
(31, 'Realbasic'),
(32, 'ninjitsu'),
(33, 'Networking'),
(34, 'Programming Languages: C family'),
(35, 'LISP (Common and Scheme)'),
(36, 'various'),
(37, 'HTML/CSS'),
(38, 'Data Mining'),
(39, 'Business Plan creation'),
(40, 'I come up with ideas'),
(41, 'Presentation'),
(42, 'C++'),
(43, 'Computer Vision'),
(44, 'Image Processing'),
(45, 'modeling (software)');
-- --------------------------------------------------------
--
-- 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,
`picture` varchar(255) COLLATE utf8_bin DEFAULT 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,
`twitter` text CHARACTER SET latin1,
`facebook` text CHARACTER SET latin1,
`linkedin` text CHARACTER SET latin1,
`dribbble` text COLLATE utf8_bin,
`github` text COLLATE utf8_bin,
PRIMARY KEY (`student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=39 ;
--
-- Dumping data for table `students`
--
INSERT INTO `students` (`student_id`, `first`, `last`, `email`, `picture`, `oauth_uid`, `password`, `school_id`, `year`, `major_id`, `bio`, `status`, `twitter`, `facebook`, `linkedin`, `dribbble`, `github`) VALUES
(14, 'Peter', 'Casinelli', 'peter.casinelli@bc.edu', 'studentpic_14_1345922075.png', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, 2014, 0, '', '', '', '', '', '', ''),
(18, 'Peter', 'Casinelli', 'casinepe@bc.edu', '', NULL, '9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(19, 'test_first_0', 'test_last_0', 'test_0@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(20, 'test_first_1', 'test_last_1', 'test_1@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(21, 'test_first_2', 'test_last_2', 'test_2@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(22, 'test_first_3', 'test_last_3', 'test_3@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(23, 'test_first_4', 'test_last_4', 'test_4@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(24, 'test_first_5', 'test_last_5', 'test_5@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(25, 'test_first_6', 'test_last_6', 'test_6@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(26, 'test_first_7', 'test_last_7', 'test_7@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(27, 'test_first_8', 'test_last_8', 'test_8@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(28, 'test_first_9', 'test_last_9', 'test_9@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(29, 'test_first_10', 'test_last_10', 'test_10@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(30, 'test_first_11', 'test_last_11', 'test_11@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(31, 'test_first_12', 'test_last_12', 'test_12@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(32, 'test_first_13', 'test_last_13', 'test_13@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(33, 'test_first_14', 'test_last_14', 'test_14@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(34, 'test_first_15', 'test_last_15', 'test_15@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(35, 'test_first_16', 'test_last_16', 'test_16@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(36, 'test_first_17', 'test_last_17', 'test_17@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(37, 'test_first_18', 'test_last_18', 'test_18@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(38, 'test_first_19', 'test_last_19', 'test_19@email.com', '', NULL, '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '');
-- --------------------------------------------------------
--
-- Table structure for table `students_migration`
--
CREATE TABLE `students_migration` (
`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 '0',
`year` int(4) unsigned DEFAULT NULL,
`major_id` int(11) unsigned DEFAULT '0',
`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=1 ;
-- --------------------------------------------------------
--
-- 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=17 ;
--
-- Dumping data for table `student_skills`
--
INSERT INTO `student_skills` (`student_skills_id`, `student_id`, `skill_id`) VALUES
(15, 14, 6),
(16, 14, 1);
-- --------------------------------------------------------
--
-- 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=6 ;
--
-- Dumping data for table `teams`
--
INSERT INTO `teams` (`team_id`, `team_name`, `team_description`) VALUES
(2, 'BC Skills', 0x5765206372656174656420424320536b696c6c732e2e2e20496620796f752077616e7420746f2067657420696e766f6c76656420696e2074686520646576656c6f706d656e742070726f636573732c206c6574207573206b6e6f7720616e64206a6f696e20746865207465616d21),
(5, 'Team 2', 0x6d79207365636f6e64207465616d7373);
-- --------------------------------------------------------
--
-- Table structure for table `team_members`
--
CREATE TABLE `team_members` (
`team_members_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`team_id` int(11) unsigned NOT NULL,
`student_id` int(11) unsigned NOT NULL,
`account_type` tinyint(2) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`team_members_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=12 ;
--
-- Dumping data for table `team_members`
--
INSERT INTO `team_members` (`team_members_id`, `team_id`, `student_id`, `account_type`) VALUES
(3, 2, 14, 1),
(11, 2, 18, 0);
-- --------------------------------------------------------
--
-- 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=3 ;
--
-- Dumping data for table `team_permissions`
--
INSERT INTO `team_permissions` (`team_permission_id`, `student_id`, `permission_id`, `team_id`) VALUES
(1, 142, 1, 2),
(2, 18, 1, 3);
-- --------------------------------------------------------
--
-- Table structure for table `team_updates`
--
CREATE TABLE `team_updates` (
`team_update_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`team_id` int(11) unsigned NOT NULL,
`team_update` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`student_id` int(11) unsigned NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`team_update_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;