-
Notifications
You must be signed in to change notification settings - Fork 0
/
erisdb.sql
302 lines (248 loc) · 10.3 KB
/
erisdb.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
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
-- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 28, 2018 at 12:35 PM
-- Server version: 5.5.8
-- PHP Version: 5.3.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `erisdb`
--
-- --------------------------------------------------------
--
-- Table structure for table `tblapplicants`
--
CREATE TABLE IF NOT EXISTS `tblapplicants` (
`APPLICANTID` int(11) NOT NULL AUTO_INCREMENT,
`FNAME` varchar(90) NOT NULL,
`LNAME` varchar(90) NOT NULL,
`MNAME` varchar(90) NOT NULL,
`ADDRESS` varchar(255) NOT NULL,
`SEX` varchar(11) NOT NULL,
`CIVILSTATUS` varchar(30) NOT NULL,
`BIRTHDATE` date NOT NULL,
`BIRTHPLACE` varchar(255) NOT NULL,
`AGE` int(2) NOT NULL,
`USERNAME` varchar(90) NOT NULL,
`PASS` varchar(90) NOT NULL,
`EMAILADDRESS` varchar(90) NOT NULL,
`CONTACTNO` varchar(90) NOT NULL,
`DEGREE` text NOT NULL,
`APPLICANTPHOTO` varchar(255) NOT NULL,
`NATIONALID` varchar(255) NOT NULL,
PRIMARY KEY (`APPLICANTID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2018016 ;
--
-- Dumping data for table `tblapplicants`
--
INSERT INTO `tblapplicants` (`APPLICANTID`, `FNAME`, `LNAME`, `MNAME`, `ADDRESS`, `SEX`, `CIVILSTATUS`, `BIRTHDATE`, `BIRTHPLACE`, `AGE`, `USERNAME`, `PASS`, `EMAILADDRESS`, `CONTACTNO`, `DEGREE`, `APPLICANTPHOTO`, `NATIONALID`) VALUES
(2018013, 'Kim', 'Domingo', 'Enoe', 'Kab City', 'Female', 'none', '1991-01-01', 'Kab Citys', 27, 'kim', 'a6312121e15caec74845b7ba5af23330d52d4ac0', '[email protected]', '5415456', 'BSAC', 'photos/RobloxScreenShot20180406_203758793.png', ''),
(2018014, 'Jake', 'Zyrus', 'Ilmba', 'Kab City', 'Female', 'none', '1993-01-16', 'Kab City', 25, 'jake', 'c8d99c2f7cd5f432c163abcd422672b9f77550bb', '[email protected]', '14655623123123', 'BSIT', '', ''),
(2018015, 'Janry', 'Tan', 'Lim', 'brgy 1 Kab City', 'Female', 'Single', '1992-01-30', 'Kab City', 26, 'janry', '1dd4efc811372cd1efe855981a8863d10ddde1ca', '[email protected]', '0234234', 'BSIT', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `tblattachmentfile`
--
CREATE TABLE IF NOT EXISTS `tblattachmentfile` (
`FILEID` int(11) NOT NULL AUTO_INCREMENT,
`JOBID` int(11) NOT NULL,
`FILE_NAME` varchar(90) NOT NULL,
`FILE_LOCATION` varchar(255) NOT NULL,
`USERATTACHMENTID` int(11) NOT NULL,
PRIMARY KEY (`FILEID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2147483647 ;
--
-- Dumping data for table `tblattachmentfile`
--
INSERT INTO `tblattachmentfile` (`FILEID`, `JOBID`, `FILE_NAME`, `FILE_LOCATION`, `USERATTACHMENTID`) VALUES
(2147483647, 2, 'Resume', 'photos/27052018124027PLATENO FE95483.docx', 2018013);
-- --------------------------------------------------------
--
-- Table structure for table `tblautonumbers`
--
CREATE TABLE IF NOT EXISTS `tblautonumbers` (
`AUTOID` int(11) NOT NULL AUTO_INCREMENT,
`AUTOSTART` varchar(30) NOT NULL,
`AUTOEND` int(11) NOT NULL,
`AUTOINC` int(11) NOT NULL,
`AUTOKEY` varchar(30) NOT NULL,
PRIMARY KEY (`AUTOID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `tblautonumbers`
--
INSERT INTO `tblautonumbers` (`AUTOID`, `AUTOSTART`, `AUTOEND`, `AUTOINC`, `AUTOKEY`) VALUES
(1, '02983', 7, 1, 'userid'),
(2, '000', 78, 1, 'employeeid'),
(3, '0', 16, 1, 'APPLICANT'),
(4, '69125', 29, 1, 'FILEID');
-- --------------------------------------------------------
--
-- Table structure for table `tblcategory`
--
CREATE TABLE IF NOT EXISTS `tblcategory` (
`CATEGORYID` int(11) NOT NULL AUTO_INCREMENT,
`CATEGORY` varchar(90) NOT NULL,
PRIMARY KEY (`CATEGORYID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=29 ;
--
-- Dumping data for table `tblcategory`
--
INSERT INTO `tblcategory` (`CATEGORYID`, `CATEGORY`) VALUES
(10, 'Technology'),
(11, 'Managerial'),
(12, 'Engineer'),
(13, 'IT'),
(14, 'Civil Engineer'),
(15, 'HR'),
(23, 'Sales'),
(24, 'Banking'),
(25, 'Finance'),
(26, 'BPO'),
(27, 'Degital Marketing'),
(28, 'Shipping');
-- --------------------------------------------------------
--
-- Table structure for table `tblcompany`
--
CREATE TABLE IF NOT EXISTS `tblcompany` (
`COMPANYID` int(11) NOT NULL AUTO_INCREMENT,
`COMPANYNAME` varchar(90) NOT NULL,
`COMPANYADDRESS` varchar(90) NOT NULL,
`COMPANYCONTACTNO` varchar(30) NOT NULL,
`COMPANYSTATUS` varchar(90) NOT NULL,
`COMPANYMISSION` text NOT NULL,
PRIMARY KEY (`COMPANYID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
--
-- Dumping data for table `tblcompany`
--
INSERT INTO `tblcompany` (`COMPANYID`, `COMPANYNAME`, `COMPANYADDRESS`, `COMPANYCONTACTNO`, `COMPANYSTATUS`, `COMPANYMISSION`) VALUES
(2, 'URC', 'Bry Camugao', '023654', '', 'weqwe'),
(3, 'Copreros', 'Mabinay''s', '035656', '', ''),
(4, 'Quest', 'Kabankalan City', '23165', '', ''),
(6, 'Palacios Company', 'Kabankalan City', '0625656899', '', ''),
(7, 'IT Company', 'Kabankalan City', '04564123', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `tblemployees`
--
CREATE TABLE IF NOT EXISTS `tblemployees` (
`INCID` int(11) NOT NULL AUTO_INCREMENT,
`EMPLOYEEID` varchar(30) NOT NULL,
`FNAME` varchar(50) NOT NULL,
`LNAME` varchar(50) NOT NULL,
`MNAME` varchar(50) NOT NULL,
`ADDRESS` varchar(90) NOT NULL,
`BIRTHDATE` date NOT NULL,
`BIRTHPLACE` varchar(90) NOT NULL,
`AGE` int(11) NOT NULL,
`SEX` varchar(30) NOT NULL,
`CIVILSTATUS` varchar(30) NOT NULL,
`TELNO` varchar(40) NOT NULL,
`EMP_EMAILADDRESS` varchar(90) NOT NULL,
`CELLNO` varchar(30) NOT NULL,
`POSITION` varchar(50) NOT NULL,
`WORKSTATS` varchar(90) NOT NULL,
`EMPPHOTO` varchar(255) NOT NULL,
`EMPUSERNAME` varchar(90) NOT NULL,
`EMPPASSWORD` varchar(125) NOT NULL,
`DATEHIRED` date NOT NULL,
`COMPANYID` int(11) NOT NULL,
PRIMARY KEY (`INCID`),
UNIQUE KEY `EMPLOYEEID` (`EMPLOYEEID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=77 ;
--
-- Dumping data for table `tblemployees`
--
INSERT INTO `tblemployees` (`INCID`, `EMPLOYEEID`, `FNAME`, `LNAME`, `MNAME`, `ADDRESS`, `BIRTHDATE`, `BIRTHPLACE`, `AGE`, `SEX`, `CIVILSTATUS`, `TELNO`, `EMP_EMAILADDRESS`, `CELLNO`, `POSITION`, `WORKSTATS`, `EMPPHOTO`, `EMPUSERNAME`, `EMPPASSWORD`, `DATEHIRED`, `COMPANYID`) VALUES
(76, '2018001', 'Chambe', 'Narciso', 'Captain', 'mabinay', '1992-01-23', 'Mabinay', 26, 'Male', 'Married', '032656', '[email protected]', '', 'Fuel Tender', '', '', '2018001', 'f3593fd40c55c33d1788309d4137e82f5eab0dea', '2018-05-23', 2);
-- --------------------------------------------------------
--
-- Table structure for table `tblfeedback`
--
CREATE TABLE IF NOT EXISTS `tblfeedback` (
`FEEDBACKID` int(11) NOT NULL AUTO_INCREMENT,
`APPLICANTID` int(11) NOT NULL,
`REGISTRATIONID` int(11) NOT NULL,
`FEEDBACK` text NOT NULL,
PRIMARY KEY (`FEEDBACKID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `tblfeedback`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbljob`
--
CREATE TABLE IF NOT EXISTS `tbljob` (
`JOBID` int(11) NOT NULL AUTO_INCREMENT,
`COMPANYID` int(11) NOT NULL,
`CATEGORY` varchar(90) NOT NULL,
`OCCUPATIONTITLE` varchar(90) NOT NULL,
`REQ_NO_EMPLOYEES` int(11) NOT NULL,
`SALARIES` double NOT NULL,
`DURATION_EMPLOYEMENT` varchar(90) NOT NULL,
`QUALIFICATION_WORKEXPERIENCE` text NOT NULL,
`JOBDESCRIPTION` text NOT NULL,
`PREFEREDSEX` varchar(30) NOT NULL,
`SECTOR_VACANCY` text NOT NULL,
`JOBSTATUS` varchar(90) NOT NULL,
`DATEPOSTED` datetime NOT NULL,
PRIMARY KEY (`JOBID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `tbljob`
--
INSERT INTO `tbljob` (`JOBID`, `COMPANYID`, `CATEGORY`, `OCCUPATIONTITLE`, `REQ_NO_EMPLOYEES`, `SALARIES`, `DURATION_EMPLOYEMENT`, `QUALIFICATION_WORKEXPERIENCE`, `JOBDESCRIPTION`, `PREFEREDSEX`, `SECTOR_VACANCY`, `JOBSTATUS`, `DATEPOSTED`) VALUES
(1, 2, 'Technology', 'ISD', 6, 15000, 'jan 30', 'Two year Experience', 'We are looking for bachelor of science in information technology.\r\nasdasdasd', 'Male/Female', 'yes', '', '2018-05-20 00:00:00'),
(2, 2, 'Technology', 'Accounting', 1, 15000, 'may 20', 'Two years Experience', 'We are looking for bachelor of science in Acountancy', 'Female', 'yes', '', '2018-05-20 02:33:00');
-- --------------------------------------------------------
--
-- Table structure for table `tbljobregistration`
--
CREATE TABLE IF NOT EXISTS `tbljobregistration` (
`REGISTRATIONID` int(11) NOT NULL AUTO_INCREMENT,
`COMPANYID` int(11) NOT NULL,
`JOBID` int(11) NOT NULL,
`APPLICANTID` int(11) NOT NULL,
`APPLICANT` varchar(90) NOT NULL,
`REGISTRATIONDATE` date NOT NULL,
`REMARKS` varchar(255) NOT NULL DEFAULT 'Pending',
`FILEID` int(11) NOT NULL,
`PENDINGAPPLICATION` tinyint(1) NOT NULL DEFAULT '1',
`HVIEW` tinyint(1) NOT NULL DEFAULT '1',
`DATETIMEAPPROVED` datetime NOT NULL,
PRIMARY KEY (`REGISTRATIONID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `tbljobregistration`
--
INSERT INTO `tbljobregistration` (`REGISTRATIONID`, `COMPANYID`, `JOBID`, `APPLICANTID`, `APPLICANT`, `REGISTRATIONDATE`, `REMARKS`, `FILEID`, `PENDINGAPPLICATION`, `HVIEW`, `DATETIMEAPPROVED`) VALUES
(1, 2, 2, 2018013, 'Kim Domingo', '2018-05-27', 'Ive seen your work and its really interesting', 2147483647, 0, 1, '2018-05-26 16:13:01'),
(2, 2, 2, 2018015, 'Janry Tan', '2018-05-26', 'aasd', 2147483647, 0, 0, '2018-05-28 14:14:45');
-- --------------------------------------------------------
--
-- Table structure for table `tblusers`
--
CREATE TABLE IF NOT EXISTS `tblusers` (
`USERID` varchar(30) NOT NULL,
`FULLNAME` varchar(40) NOT NULL,
`USERNAME` varchar(90) NOT NULL,
`PASS` varchar(90) NOT NULL,
`ROLE` varchar(30) NOT NULL,
`PICLOCATION` varchar(255) NOT NULL,
PRIMARY KEY (`USERID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblusers`
--
INSERT INTO `tblusers` (`USERID`, `FULLNAME`, `USERNAME`, `PASS`, `ROLE`, `PICLOCATION`) VALUES
('00018', 'JANO ', 'admin', 'd033e22ae348aeb5660fc2140aec35850c4da997', 'Administrator', 'photos/Koala.jpg'),
('2018001', 'Chambe Narciso', 'Narciso', 'f3593fd40c55c33d1788309d4137e82f5eab0dea', 'Employee', '');