-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdatabase.sql
More file actions
207 lines (188 loc) · 4.28 KB
/
Copy pathdatabase.sql
File metadata and controls
207 lines (188 loc) · 4.28 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
--IMPORTANT: create database :: github_challenge
CREATE TABLE users (
id SERIAL PRIMARY KEY,
github_url varchar(50),
email varchar(50),
display_name varchar(200),
authToken varchar(255),
user_id varchar(20),
profile_photo varchar(255),
auth_level varchar(100)
);
-- holds all the forms that have been created
CREATE TABLE form_history (
id SERIAL PRIMARY KEY,
form_title varchar(50),
form_description varchar(250),
form_questions json
);
-- what is the active survey? what is the active sprint?
CREATE TABLE admin (
currentSurvey integer,
currentSprint integer
);
-- Sprint History table
CREATE TABLE sprint_history (
id SERIAL PRIMARY KEY,
sprint_name varchar(50),
start_date varchar(15),
currentSprint boolean
);
-- EMAIL WHITELIST --
CREATE TABLE whitelist (
id SERIAL PRIMARY KEY,
email varchar(100)
);
--holds full user lawn--
CREATE TABLE user_lawns (
github varchar(50),
date varchar(30),
did_commit boolean,
commits integer
);
-- TEMPLATES FOR PG QUERIES
-- generic sprint data table template
CREATE TABLE SPRINTNAME_data (
github varchar(50), -- relational mark
date varchar(12),
commits boolean
);
-- generic sprint team table
CREATE TABLE SPRINTNAME_teams (
id SERIAL PRIMARY KEY,
github varchar(50), -- realational mark
team varchar(50)
);
-- SPRINT 2 TEAM TABLE!!
INSERT INTO s2_teams (github, team)
VALUES ('scottbromander', null),
('emkerber', null),
('HillaryManning', null),
('McCully', null),
('schooolman', null),
('hankandre', null),
('cwklausing', null),
('Mandosis', null),
('maykid24', null),
('4cm4k1', null),
('corinamarie', null),
('bljohnson', null),
('clarejacky', null),
('Ludstuen90', null),
('oliverlangmo', null),
('mulchy', null),
('romstevens', null),
('Shinybirdy', null),
('katiebvogel', null),
('jonwilsoncomedy', null),
('nickrenfo2', null),
('minimart', null),
('gfrethem', null),
('libbylondon11', null),
('Increvateur', null),
('savionguyen', 'eros'),
('aaronrmcgrath', 'eros'),
('wallacewylie', 'eros'),
('fsheahan', 'eros'),
('dannyRitter', 'eros'),
('BennettBatzli', 'dactyl'),
('patkahnke', 'dactyl'),
('joshgressman', 'dactyl'),
('ginityson', 'dactyl'),
('russellpipal', 'dactyl'),
('aminge37', 'europa'),
('SamSunders', 'europa'),
('aharasymiw', 'europa'),
('monifrancesca', 'europa'),
('Littlewhelan', 'europa'),
('glydeb', 'gaspra'),
('mikelseverson', 'gaspra'),
('oakesjessica', 'gaspra'),
('carnesen', 'gaspra'),
('atousley', 'gaspra'),
('cairnstan', 'ida'),
('skylerdegrote', 'ida'),
('shklein', 'ida'),
('laurakressin', 'ida'),
('eca12v', 'ida'),
('enriqueortega', 'ida'),
('jmanders85', 'io'),
('mhwalsh', 'io'),
('caitecoll', 'io'),
('bpeterson1663', 'io'),
('ekimlinger', 'io'),
('peters313', 'deimos'),
('Adia-A', 'deimos'),
('rohran01', 'deimos'),
('ekmpls', 'deimos'),
('JScearcy', 'deimos'),
('tthoraldson', 'linus'),
('jtorborg', 'linus'),
('IamUnInc', 'linus'),
('kerij', 'linus'),
('dennycheng', 'linus'),
('twinklefingers', 'linus'),
('lpuhl', 'linus'),
('kmaimn', 'linus'),
('coreypeck', 'linus'),
('Spengs', 'linus'),
('dkuntz811', 'linus'),
('andrewwiskus', 'linus'),
('adameastvold', 'linus'),
('lizhaak', 'linus'),
('2trill2spill', 'linus');
INSERT INTO s1_teams (github, team)
VALUES ('scottbromander', null),
('laurakressin', null),
('cassandradanger', null),
('wallacewylie', null),
('thomcchester', null),
('bg87', null),
('sionowen', null),
('shklein', null),
('ekmpls', null),
('zachkusz', null),
('aaronrmcgrath', null),
('lahusiak', null),
('minimart', null),
('savionguyen', null),
('EricWAnderson', null),
('airwolff', null),
('HillaryManning', null),
('glydeb', null),
('4cm4k1', null),
('hankandre', null),
('cairnstan', null),
('mikelseverson', null),
('BennettBatzli', null),
('atousley', null),
('Shinybirdy', null),
('luisdelae', null),
('chavocado', null),
('peters313', null),
('eandy5000', null),
('bruntrd', null),
('clarejacky', null),
('tthoraldson', null),
('ludstuen90', null),
('bpeterson1663', null),
('ekimlinger', null),
('traceylvh', null),
('patkahnke', null),
('jmanders85', null),
('jonwilsoncomedy', null),
('jmanders85', null),
('aminge37', null),
('JScearcy', null),
('samantha212', null),
('KaileyJo', null),
('emkerber', null),
('joh04667', null),
('jenjeep7', null),
('annakatherine', null),
('paige-walters', null),
('Mandosis', null),
('monifrancesca', null),
('zcher82', null),
('mablchnole', null),
('schooolman', null);