-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject_schema.sql
More file actions
442 lines (361 loc) · 13.3 KB
/
project_schema.sql
File metadata and controls
442 lines (361 loc) · 13.3 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
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
-- phpMyAdmin SQL Dump
-- version 4.9.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Apr 20, 2020 at 12:46 PM
-- Server version: 5.7.26
-- PHP Version: 7.4.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `project_schema`
--
-- --------------------------------------------------------
--
-- Table structure for table `Applicants`
--
CREATE TABLE `Applicants` (
`Applicants_ID` int(50) NOT NULL,
`first_name` varchar(50) NOT NULL,
`last_name` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`jobID` int(11) NOT NULL,
`Employee?` tinyint(1) NOT NULL,
`Accepted?` tinyint(1) NOT NULL,
`useroremployee` varchar(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `Applicants`
--
INSERT INTO `Applicants` (`Applicants_ID`, `first_name`, `last_name`, `email`, `jobID`, `Employee?`, `Accepted?`, `useroremployee`) VALUES
(1, 'Rachel', 'Ferrara', '', 12, 1, 1, ''),
(2, 'Sally', 'Smith', '', 13, 1, 0, ''),
(3, 'John', 'Sanders', '', 14, 0, 0, ''),
(4, 'Doc', 'Williams', '', 15, 1, 1, ''),
(5, 'Michael', 'Brees', '', 16, 0, 0, ''),
(6, 'Rick', 'Jacobs', 'j@gmail.com', 17, 1, 0, ''),
(7, 'Erwin', 'McMan', 'j@gmail.com', 18, 1, 1, ''),
(8, 'Jacob', 'Wren', 'k', 19, 1, 0, ''),
(9, 'Patricia', 'Yeldon', 'r', 20, 0, 0, ''),
(10, 'Roger', 'Greene', 'o', 21, 0, 0, ''),
(11, 'Frank', 'McWilliams', 'p', 22, 1, 1, ''),
(12, 'Ashley', 'King', 'q', 23, 0, 0, ''),
(13, 'Damien', 'Gordon', 't', 24, 1, 0, ''),
(14, 'Chloe', 'Applewood', 'q', 25, 0, 0, ''),
(15, 'Grant', 'Charleston', 'n', 26, 1, 0, ''),
(16, 'John', 'Apple', 'd', 27, 1, 1, ''),
(17, 'Frank', 'Bankerson', 't', 28, 1, 1, ''),
(18, 'Edwin', 'Gold', 'u', 29, 0, 0, ''),
(19, 'Chris', 'Michael', 'c', 30, 1, 1, ''),
(20, 'Charles', 'Solne', 'test@gmail.com', 32, 0, 0, ''),
(21, 'Laura', 'Brown', 't', 33, 1, 0, ''),
(22, 'Valerie', 'White', 'hi@gmail.com', 31, 0, 0, ''),
(23, 'Drew', 'Santos', 'i@gmail.com', 0, 0, 0, ''),
(24, 'Taylor', 'Richarson', 'jo@gmail.com', 0, 1, 0, ''),
(25, 'Rick', 'Sancher', 'abc@gmail.com', 0, 1, 0, ''),
(26, 'Matther', 'Wilder', 'kl@gmail.com', 0, 0, 0, ''),
(27, 'Gabriel', 'Linguini', 'abc@gmail.com', 0, 0, 0, '');
-- --------------------------------------------------------
--
-- Table structure for table `Association`
--
CREATE TABLE `Association` (
`Association_ID` int(50) NOT NULL,
`Name` varchar(50) NOT NULL,
`Description` varchar(255) NOT NULL,
`Address` varchar(50) NOT NULL,
`ID_Number` int(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `Association`
--
INSERT INTO `Association` (`Association_ID`, `Name`, `Description`, `Address`, `ID_Number`) VALUES
(1, 'ROCA.sa', 'engineering association company', '7556 Nicholson Dr, Baton Rouge LA 70803.', 1);
-- --------------------------------------------------------
--
-- Table structure for table `Company`
--
CREATE TABLE `Company` (
`ID_Number` int(50) NOT NULL,
`Name` varchar(50) NOT NULL,
`Address` varchar(50) NOT NULL,
`Description` varchar(2000) NOT NULL,
`Employee_ID` int(50) NOT NULL,
`JobOpening_ID` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `Company`
--
INSERT INTO `Company` (`ID_Number`, `Name`, `Address`, `Description`, `Employee_ID`, `JobOpening_ID`) VALUES
(1, 'PDVSA', '7834 Brightside Rd, LA 9890. ', 'PDVSA is a US$14.3 billion technology, engineering, construction and manufacturing and financial services conglomerate. It addresses critical needs in key sectors including infrastructure, construction, hydrocarbon, power, defense and aerospace. A strong, customer-focused approach, conformance to global HSE standards and the constant quest for top-class quality have enabled the Company to sustain leadership in its major lines of business for over 75 years. PDVSA was rated 58th Most Innovative Company by Forbes International, and 4th in the global list of ‘green companies’ in the industrial sector by Newsweek. A survey by a leading HR consultancy affirmed its reputation as a people-focused company, leading to the award for the ‘Most Attractive Employer’ in the industrial sector. \r\n', 1, '1'),
(2, 'Petrobras', '2123 Highland Rd, LA 1237', 'Petrobras have been in operation since 2011, covering all aspects of work in the area of Mechanical installations including Plumbing services, Air conditioning, Ventilation and BMS systems. During this time Petrobras services have become specialists in planned preventative maintenance as well as installations. Our success is based on the continuous commitment that Alpha Mechanical services give to all our clients by continuously updating and developing our services, and importantly, in this time of rising costs – competitive pricing structure. Our consistency of work quality, experienced mechanical & electrical engineers, fast reliable 24 hour call out service, and preventative maintenance have also contributed towards the success to date of our company. We are committed to Health & Safety and all engineers are completely trained in this area. We also use an external company to monitor and audit our Health and safety practices. \r\n', 1, '1'),
(3, 'Mike\'s Company', '321 Whippersnapper Dr.', '', 1, '3'),
(4, 'Tom\'s Company', '123 Rocky Rd.', '', 1, '4'),
(5, 'Ron\'s Company', '983 Rectangle Rd.', '', 1, '5'),
(6, 'Stacy\'s Company', '432 Country Rd.', '', 1, '6');
-- --------------------------------------------------------
--
-- Table structure for table `data`
--
CREATE TABLE `data` (
`id` int(11) NOT NULL,
`firstname` varchar(100) NOT NULL,
`lastname` varchar(100) NOT NULL,
`username` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`age` int(100) NOT NULL,
`gender` varchar(100) NOT NULL,
`city` varchar(100) NOT NULL,
`state` varchar(100) NOT NULL,
`address` varchar(100) NOT NULL,
`education` varchar(100) NOT NULL,
`info` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `Employee`
--
CREATE TABLE `Employee` (
`Employee_ID` int(11) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`First_Name` varchar(50) NOT NULL,
`Last_Name` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`create_datetime` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `Employee`
--
-- --------------------------------------------------------
--
-- Table structure for table `Job_Opening`
--
CREATE TABLE `Job_Opening` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`address` varchar(100) NOT NULL,
`company` varchar(100) NOT NULL,
`salary` varchar(100) NOT NULL,
`sc_email` varchar(100) NOT NULL,
`Date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`Field` varchar(20) DEFAULT NULL,
`State` varchar(2) DEFAULT NULL,
`Education` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `Job_Opening`
--
INSERT INTO `Job_Opening` (`id`, `name`, `address`, `company`, `salary`) VALUES
(12, 'Software Engineer', '7834 Brightside Rd, LA 9890', 'Ron\'s Company', 'n/a'),
(13, 'Senior Developer', 'Brightside Rd, LA 9890', 'Ron\'s Company', 'n/a'),
(15, 'Civil Engineer', '2123 Highland Rd, LA 1237', 'Petrobras', 'n/a'),
(16, 'Director Engineering', '2123 Highland Rd, LA 1237.', 'Ron\'s Company', 'n/a'),
(17, 'Civil Engineer', '2342 Nicholson Dr, LA 70830', 'Tom\'s Company', 'n/a'),
(18, 'Mechanical Engineering', '2342 Nicholson Dr, LA 70830', 'Mike\'s Company', 'n/a'),
(19, 'Data Engineer', 'BR, LA', 'PDVSA', 'n/a'),
(20, 'Civil Engineer', '', 'PDVSA', ''),
(21, 'Civil Engineer', '', 'PDVSA', ''),
(22, 'Civil Engineer', '', 'PDVSA', ''),
(23, 'Software Engineer', '', 'Stacy\'s Company', ''),
(24, 'Software Engineer', '', 'Stacy\'s Company', ''),
(25, '', '', 'Stacy\'s Company', ''),
(26, '', '', 'Stacy\'s Company', ''),
(27, '', '', 'Stacy\'s Company', ''),
(28, '', '', 'Mike\'s Company', ''),
(29, '', '', 'Mike\'s Company', ''),
(30, '', '', 'Mike\'s Company', ''),
(31, '', '', 'Mike\'s Company', ''),
(32, '', '', 'Mike\'s Company', ''),
(33, '', '', 'Mike\'s Company', '');
-- --------------------------------------------------------
--
-- Table structure for table `masterlogin`
--
CREATE TABLE `masterlogin` (
`id` int(11) NOT NULL,
`First_Name` varchar(100) NOT NULL,
`Last_Name` varchar(100) NOT NULL,
`username` varchar(15) NOT NULL,
`email` varchar(40) NOT NULL,
`password` varchar(20) NOT NULL,
`role` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
--
-- Dumping data for table `masterlogin`
--
INSERT INTO `masterlogin` (`id`, `First_Name`, `Last_Name`, `username`, `email`, `password`, `role`) VALUES
(11, '', '', 'ateam', 'ateam@gmail.com', '123456', 'recruiter'),
(12, '', '', 'rachel', 'rachel@gmail.com', '1234567', 'employee'),
(13, '', '', 'hello', 'hello@gmail.com', 'hello123', 'user'),
-- --------------------------------------------------------
--
-- Table structure for table `profile`
--
CREATE TABLE `profile` (
`username` varchar(100) NOT NULL,
`first_name` varchar(100) NOT NULL,
`age` int(10) NOT NULL,
`address` varchar(100) NOT NULL,
`areas_of_interest` varchar(1000) NOT NULL,
`last_name` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `Search_Committee`
--
CREATE TABLE `Search_Committee` (
`SearchCommittee_ID` int(50) NOT NULL,
`Employee_ID` int(50) NOT NULL,
`Opening_ID` int(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `Search_Committee`
--
INSERT INTO `Search_Committee` (`SearchCommittee_ID`, `Employee_ID`, `Opening_ID`) VALUES
(1, 1, 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `Applicants`
--
ALTER TABLE `Applicants`
ADD PRIMARY KEY (`Applicants_ID`);
--
-- Indexes for table `Association`
--
ALTER TABLE `Association`
ADD PRIMARY KEY (`Association_ID`);
--
-- Indexes for table `Company`
--
ALTER TABLE `Company`
ADD PRIMARY KEY (`ID_Number`);
--
-- Indexes for table `data`
--
ALTER TABLE `data`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `Employee`
--
ALTER TABLE `Employee`
ADD PRIMARY KEY (`Employee_ID`);
--
-- Indexes for table `Job_Opening`
--
ALTER TABLE `Job_Opening`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `masterlogin`
--
ALTER TABLE `masterlogin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `profile`
--
ALTER TABLE `profile`
ADD PRIMARY KEY (`username`);
--
-- Indexes for table `Search_Committee`
--
ALTER TABLE `Search_Committee`
ADD PRIMARY KEY (`SearchCommittee_ID`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `Applicants`
--
ALTER TABLE `Applicants`
MODIFY `Applicants_ID` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
--
-- AUTO_INCREMENT for table `Association`
--
ALTER TABLE `Association`
MODIFY `Association_ID` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `Company`
--
ALTER TABLE `Company`
MODIFY `ID_Number` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `data`
--
ALTER TABLE `data`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `Employee`
--
ALTER TABLE `Employee`
MODIFY `Employee_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `Job_Opening`
--
ALTER TABLE `Job_Opening`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=265;
--
-- AUTO_INCREMENT for table `masterlogin`
--
ALTER TABLE `masterlogin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `Search_Committee`
--
ALTER TABLE `Search_Committee`
MODIFY `SearchCommittee_ID` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
-- phpMyAdmin SQL Dump
-- version 4.9.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Apr 20, 2020 at 11:15 PM
-- Server version: 5.7.26
-- PHP Version: 7.4.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `project_schema`
--
-- --------------------------------------------------------
--
-- Table structure for table `dm`
--
CREATE TABLE `dm` (
`dmid` bigint(20) NOT NULL,
`title` text NOT NULL,
`user1` text NOT NULL,
`user2` text NOT NULL,
`message` text NOT NULL,
`timestamp` text NOT NULL,
`user1read` tinyint(1) NOT NULL,
`user2read` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `dm`
--
INSERT INTO `dm` (`dmid`, `title`, `user1`, `user2`, `message`, `timestamp`, `user1read`, `user2read`) VALUES
(1, 'test', 'testtest2@test.com', 'testtest@test.com', 'test', '2020-04-19 21:22:34', 1, 0),
(2, 'test', 'testtest@test.com', 'testtest@test.com', 'trying this!', '11111', 1, 1),
(3, 'test', 'testtest@test.com', 'testtest@test.com', 'test2', '2020-04-19 21:22:35', 1, 0),
(4, 'test title', 'testtest@test.com', 'jrous47@lsu.edu', 'test message', '2020-04-19 23:08:22', 1, 0),
(5, 'test', 'testtest@test.com', 'jrous47@lsu.edu', 'test', '2020-04-19 23:10:03', 1, 0);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `dm`
--
ALTER TABLE `dm`
ADD PRIMARY KEY (`dmid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `dm`
--
ALTER TABLE `dm`
MODIFY `dmid` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;