-
Notifications
You must be signed in to change notification settings - Fork 10
/
database.sql
152 lines (123 loc) · 4.64 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
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 01, 2013 at 05:46 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 ;
-- --------------------------------------------------------
--
-- 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 ;
-- --------------------------------------------------------
--
-- 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=77 ;
-- --------------------------------------------------------
--
-- 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,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`last_login` datetime NOT NULL,
PRIMARY KEY (`student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=86 ;
-- --------------------------------------------------------
--
-- 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=241 ;
-- --------------------------------------------------------
--
-- 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,
`bcvc_team` tinyint(1) NOT NULL,
`team_description` blob NOT NULL,
`team_needs` blob NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`team_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=18 ;
-- --------------------------------------------------------
--
-- 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=26 ;
-- --------------------------------------------------------
--
-- 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=2 ;