-
Notifications
You must be signed in to change notification settings - Fork 5
/
documenttrackingsystem2.sql
368 lines (300 loc) · 11.2 KB
/
documenttrackingsystem2.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
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
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 21, 2017 at 10:23 AM
-- Server version: 5.7.14
-- PHP Version: 5.6.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 utf8mb4 */;
--
-- Database: `documenttrackingsystem`
--
-- --------------------------------------------------------
--
-- Table structure for table `colleges`
--
CREATE TABLE `colleges` (
`collegeId` varchar(50) NOT NULL,
`collegefull` varchar(100) NOT NULL,
`collegeDesc` varchar(200) NOT NULL,
`collegeDean` varchar(50) NOT NULL,
`collegeLogo` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `colleges`
--
INSERT INTO `colleges` (`collegeId`, `collegefull`, `collegeDesc`, `collegeDean`, `collegeLogo`) VALUES
('COE', 'College of Engineering', 'cater engineering stuffs', 'hitler', 'http://localhost/Document-Tracking-System-BSIT3A/assets/images/COElogo1.jpg'),
('COS', 'College of Sciences', 'Caters technological courses', 'Renegado', 'http://localhost/Document-Tracking-System-BSIT3A/assets/images/');
-- --------------------------------------------------------
--
-- Table structure for table `contactus`
--
CREATE TABLE `contactus` (
`idno` int(11) NOT NULL,
`sender` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`content` varchar(300) NOT NULL,
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`dateseen` varchar(50) NOT NULL,
`seen` tinyint(1) NOT NULL,
`bookmarked` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `contactus`
--
INSERT INTO `contactus` (`idno`, `sender`, `email`, `content`, `datecreated`, `dateseen`, `seen`, `bookmarked`) VALUES
(1, 'Mwen', '[email protected]', 'HELLO FAFA', '2017-09-30 03:53:03', '2017-10-01 04:25:15pm', 1, 1),
(2, 'Giane Noda', '[email protected]', 'Umutot ako kanina', '2017-09-30 12:55:16', '2017-10-03 05:44:06pm', 1, 0),
(5, 'Mark Wendell Cabuang', '[email protected]', 'why is it that you are not updating the functions?', '2017-10-12 10:18:07', '2017-10-21 04:01:16 pm', 1, 0),
(6, 'Luis Felipe Lazaro', '[email protected]', 'isheteyo isheteyo naninai nai nai HAHHAHA', '2017-10-12 10:42:53', '', 0, 0),
(7, 'mwen', '[email protected]', '13man', '2017-10-14 05:51:19', '', 0, 0),
(8, 'Mark Wendell Cabuang', '[email protected]', '', '2017-10-14 23:47:19', '', 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `departments`
--
CREATE TABLE `departments` (
`deptId` int(10) NOT NULL,
`collegeId` varchar(50) NOT NULL,
`department` varchar(100) NOT NULL,
`departmentHead` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `departments`
--
INSERT INTO `departments` (`deptId`, `collegeId`, `department`, `departmentHead`) VALUES
(206, 'COS', 'Physics Department', ''),
(225, 'COE', 'Mechanical Department', ''),
(322, 'COE', 'Electrical Engineering Department', ''),
(865, 'COE', 'MechatronicsEngineering Department', ''),
(880, 'COS', 'Mathematics Department', '');
-- --------------------------------------------------------
--
-- Table structure for table `files`
--
CREATE TABLE `files` (
`fileId` int(11) NOT NULL,
`fileName` varchar(100) NOT NULL,
`fileAuthor` varchar(100) NOT NULL,
`fileCode` varchar(4) NOT NULL,
`fileCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`fileComment` varchar(100) NOT NULL,
`filePath` varchar(300) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `files`
--
INSERT INTO `files` (`fileId`, `fileName`, `fileAuthor`, `fileCode`, `fileCreated`, `fileComment`, `filePath`) VALUES
(1, 'auditory of salary', 'aomwen', '4567', '2017-10-17 06:23:34', 'Recheck: all of the record properly', 'http://localhost/Document-Tracking-System-BSIT3A/uploads/bg4.jpg'),
(2, 'Manual', 'admin', '6069', '2017-10-17 07:20:30', 'How to use the system', 'http://localhost/Document-Tracking-System-BSIT3A/uploads/bg4.jpg'),
(3, 'books', 'admin', '5569', '2017-10-20 04:13:49', 'hehehe', 'http://localhost/Document-Tracking-System-BSIT3A/uploads/if_book_461367.png'),
(6, 'Networking', 'aomwen', '7106', '2017-10-20 14:35:34', 'Laboratory Activiy', 'http://localhost/BEFOREABBIE/Document-Tracking-System-BSIT3A/uploads/lab-2_6_2.pdf'),
(7, 'mga ating nakaw', 'aomwen', '6565', '2017-10-20 15:11:45', 'nakaw namin tong budget', 'http://localhost/BEFOREABBIE/Document-Tracking-System-BSIT3A/uploads/lab-2_6_2.pdf'),
(8, 'compose test 1', 'aomwen', '9568', '2017-10-20 15:31:27', 'testing compose', 'http://localhost/Document-Tracking-System-BSIT3A/uploads/lab-2_6_2.pdf'),
(9, 'auditory of salary (Mathematics Dept)', 'aomwen', '8371', '2017-10-20 15:33:41', 'year 2017', 'http://localhost/Document-Tracking-System-BSIT3A/uploads/lab-2_6_2.pdf'),
(10, 'download test', 'aomwen', '1136', '2017-10-21 04:28:14', 'testing download', 'http://localhost/BEFOREABBIE/Document-Tracking-System-BSIT3A/uploads/lab-2_6_2.pdf');
-- --------------------------------------------------------
--
-- Table structure for table `forwardroute`
--
CREATE TABLE `forwardroute` (
`routeId` int(4) NOT NULL,
`fileCode` varchar(100) NOT NULL,
`fileName` varchar(100) NOT NULL,
`forwardComment` varchar(200) NOT NULL,
`forwardDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`sender` varchar(100) NOT NULL,
`receiver` varchar(100) NOT NULL,
`allowLog` tinyint(1) NOT NULL,
`allowForward` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `forwardroute`
--
INSERT INTO `forwardroute` (`routeId`, `fileCode`, `fileName`, `forwardComment`, `forwardDate`, `sender`, `receiver`, `allowLog`, `allowForward`) VALUES
(1425, '4567', 'auditory of salary', 'Rechech: files properly', '2017-10-17 06:24:06', 'aomwen', 'giane.noda', 1, 1),
(8600, '6069', 'Manual', 'read this', '2017-10-17 07:21:56', 'admin', 'aomwen', 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `positions`
--
CREATE TABLE `positions` (
`positionId` int(11) NOT NULL,
`collegeId` varchar(255) NOT NULL,
`position` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `positions`
--
INSERT INTO `positions` (`positionId`, `collegeId`, `position`) VALUES
(1, 'COE', 'Instructor III');
-- --------------------------------------------------------
--
-- Table structure for table `registrardoctype`
--
CREATE TABLE `registrardoctype` (
`typeId` int(11) NOT NULL,
`docType` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `registrardoctype`
--
INSERT INTO `registrardoctype` (`typeId`, `docType`) VALUES
(1, 'Certificate of Scholarship'),
(2, 'Lost Registration Form'),
(3, 'Transcript of Record'),
(4, 'mmm');
-- --------------------------------------------------------
--
-- Table structure for table `registrardocuments`
--
CREATE TABLE `registrardocuments` (
`idno` int(11) NOT NULL,
`regTrackcode` varchar(10) NOT NULL,
`typeId` int(11) NOT NULL,
`dateAdmitted` varchar(30) NOT NULL,
`dateReleased` varchar(30) NOT NULL,
`status` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `registrardocuments`
--
INSERT INTO `registrardocuments` (`idno`, `regTrackcode`, `typeId`, `dateAdmitted`, `dateReleased`, `status`) VALUES
(1, '614-363-54', 1, '2017-10-20', '2017-10-20', 'For Pickup');
-- --------------------------------------------------------
--
-- Table structure for table `roles`
--
CREATE TABLE `roles` (
`roleId` int(11) NOT NULL,
`role` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `urls`
--
CREATE TABLE `urls` (
`roleId` int(11) NOT NULL,
`url` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`userId` int(4) NOT NULL,
`username` varchar(20) NOT NULL,
`password` varchar(20) NOT NULL,
`path` varchar(400) NOT NULL,
`email` varchar(50) NOT NULL,
`position` varchar(20) NOT NULL,
`collegeId` varchar(20) NOT NULL,
`department` varchar(50) NOT NULL,
`firstname` varchar(100) NOT NULL,
`lastname` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`userId`, `username`, `password`, `path`, `email`, `position`, `collegeId`, `department`, `firstname`, `lastname`) VALUES
(1, 'admin', 'admin', 'http://localhost/Document-Tracking-System-BSIT3A/uploads/user/lashes2.jpg', '[email protected]', 'Administrator', 'Admin', 'Administration', 'Mark Wendell', 'Cabuang'),
(7896, 'aomwen', '123456', 'http://localhost/Document-Tracking-System-BSIT3A/uploads/user/house1.jpg', '[email protected]', 'Instructor II', 'COS', 'Mathematics Department', 'Mark Wendell', 'Cabuang');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `colleges`
--
ALTER TABLE `colleges`
ADD PRIMARY KEY (`collegeId`);
--
-- Indexes for table `contactus`
--
ALTER TABLE `contactus`
ADD KEY `idno` (`idno`);
--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
ADD PRIMARY KEY (`deptId`);
--
-- Indexes for table `files`
--
ALTER TABLE `files`
ADD PRIMARY KEY (`fileId`),
ADD UNIQUE KEY `fileCode` (`fileCode`);
--
-- Indexes for table `forwardroute`
--
ALTER TABLE `forwardroute`
ADD PRIMARY KEY (`routeId`);
--
-- Indexes for table `positions`
--
ALTER TABLE `positions`
ADD PRIMARY KEY (`positionId`);
--
-- Indexes for table `registrardoctype`
--
ALTER TABLE `registrardoctype`
ADD PRIMARY KEY (`typeId`);
--
-- Indexes for table `registrardocuments`
--
ALTER TABLE `registrardocuments`
ADD UNIQUE KEY `regTrackcode` (`regTrackcode`),
ADD KEY `idno` (`idno`);
--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
ADD PRIMARY KEY (`roleId`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`userId`),
ADD KEY `userid` (`userId`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `contactus`
--
ALTER TABLE `contactus`
MODIFY `idno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `files`
--
ALTER TABLE `files`
MODIFY `fileId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `positions`
--
ALTER TABLE `positions`
MODIFY `positionId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `registrardoctype`
--
ALTER TABLE `registrardoctype`
MODIFY `typeId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `registrardocuments`
--
ALTER TABLE `registrardocuments`
MODIFY `idno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
MODIFY `roleId` int(11) NOT NULL AUTO_INCREMENT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;