forked from shubhajitml/smart_attend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbiometric.sql
269 lines (226 loc) · 8.54 KB
/
biometric.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
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Apr 08, 2019 at 02:38 AM
-- Server version: 5.7.25-0ubuntu0.18.04.2
-- PHP Version: 7.2.15-0ubuntu0.18.04.2
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: `biometric`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(5) NOT NULL,
`email` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`mob` bigint(20) NOT NULL,
`full_name` varchar(100) NOT NULL,
`designation` varchar(50) NOT NULL,
`branch` varchar(50) NOT NULL,
`last_login` datetime NOT NULL,
`fingerprint` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `email`, `password`, `mob`, `full_name`, `designation`, `branch`, `last_login`, `fingerprint`) VALUES
(1, 'mukeshbathre@gcekjr.ac.in', '09876', 9437851422, 'Mekesh Bathre', 'HOD (CSE)', 'Computer Science and Engineering', '2018-09-14 15:58:49', 'khiah hjshjhuhsyuhgyuhgyugyugygyugbg878765564151');
-- --------------------------------------------------------
--
-- Table structure for table `attendance_sheet`
--
CREATE TABLE `attendance_sheet` (
`attandance_id` int(11) NOT NULL,
`fk_subject_id` int(11) NOT NULL,
`date` date NOT NULL,
`time` time NOT NULL,
`fk_student_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `attendance_sheet`
--
INSERT INTO `attendance_sheet` (`attandance_id`, `fk_subject_id`, `date`, `time`, `fk_student_id`) VALUES
(1, 2, '2019-04-06', '17:46:41', 3),
(2, 2, '2019-04-06', '17:46:46', 1),
(3, 2, '2019-04-06', '17:46:49', 2),
(4, 2, '2019-04-06', '17:46:53', 6),
(5, 2, '2019-04-06', '17:47:15', 5),
(6, 2, '2019-04-06', '17:47:19', 4),
(7, 1, '2019-04-06', '17:47:42', 3),
(8, 1, '2019-04-06', '17:48:40', 5),
(9, 1, '2019-04-06', '17:48:44', 4),
(10, 2, '2019-04-07', '22:19:54', 6),
(12, 1, '2019-04-07', '22:21:57', 6);
-- --------------------------------------------------------
--
-- Table structure for table `faculty_users`
--
CREATE TABLE `faculty_users` (
`fac_id` int(11) NOT NULL,
`fac_reg_no` bigint(100) NOT NULL,
`fac_fing_serial` int(10) NOT NULL,
`name` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`mobile` bigint(20) NOT NULL,
`branch` varchar(50) NOT NULL,
`created_by` int(5) NOT NULL DEFAULT '1',
`created_on` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `faculty_users`
--
INSERT INTO `faculty_users` (`fac_id`, `fac_reg_no`, `fac_fing_serial`, `name`, `email`, `mobile`, `branch`, `created_by`, `created_on`) VALUES
(2, 3, 1, 'Sanjit Kumar Barik', 'sanjitbarik@gcekjr.ac.in', 9937583247, 'Computer Science and Engineering', 1, '2019-03-06 19:09:44'),
(3, 2, 171, 'Omkar Pattanaik', 'omkarpattanaik@gcekjr.ac.in', 9439413440, 'Computer Science and Engineering', 1, '2019-03-06 19:08:08'),
(5, 4, 272, 'Dhabal Pritam Sethi', 'dsethy@gcekjr.ac.in', 9875641230, 'Computer Science & Engineering', 1, '2019-04-08 00:31:38');
-- --------------------------------------------------------
--
-- Table structure for table `fac_attendance_sheet`
--
CREATE TABLE `fac_attendance_sheet` (
`attandance_id` int(11) NOT NULL,
`fk_subject_id` int(11) NOT NULL,
`date` date NOT NULL,
`time` time NOT NULL,
`fk_faculty_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `fac_attendance_sheet`
--
INSERT INTO `fac_attendance_sheet` (`attandance_id`, `fk_subject_id`, `date`, `time`, `fk_faculty_id`) VALUES
(1, 2, '2019-04-06', '17:45:33', 3),
(2, 1, '2019-04-06', '17:47:33', 2),
(3, 2, '2019-04-07', '22:18:55', 3),
(4, 1, '2019-04-07', '22:21:26', 2);
-- --------------------------------------------------------
--
-- Table structure for table `students`
--
CREATE TABLE `students` (
`stu_id` int(11) NOT NULL,
`reg_no` bigint(20) NOT NULL,
`stu_fing_serial` int(10) NOT NULL,
`name` varchar(100) NOT NULL,
`branch` varchar(50) NOT NULL,
`email` varchar(100) NOT NULL,
`mobile` bigint(20) NOT NULL,
`created_by` int(5) NOT NULL DEFAULT '1',
`created_on` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `students`
--
INSERT INTO `students` (`stu_id`, `reg_no`, `stu_fing_serial`, `name`, `branch`, `email`, `mobile`, `created_by`, `created_on`) VALUES
(1, 1501104078, 151, 'Sasmita Dash', 'Computer Science and Engineering', 'sasmita1798@gmail.com', 8763656601, 1, '2019-03-06 19:11:01'),
(2, 1501104083, 152, 'Sonali Priyadarsini Rout', 'Computer Science and Engineering', 'a.s.sonali.rout@gmail.com', 9348216431, 1, '2019-03-06 19:13:55'),
(3, 1501104080, 150, 'Shubhajit Das', 'Computer Science and Engineering', 'shubhajitdas121@gmail.com', 8280144660, 1, '2019-03-06 21:53:54'),
(4, 1501104054, 155, 'Amitabh Sekhar Mishra', 'Computer Science and Engineering', 'amitabhmishra592@gmail.com', 7064207517, 155, '2019-03-09 23:04:16'),
(5, 1501104058, 154, 'Ashirbad Samantaray', 'Computer Science and Engineering', 'contact@ashirbad.me', 7008917985, 1, '2019-03-09 23:08:08'),
(6, 1501104055, 156, 'Ananya Jena', 'Computer Science and Engineering', 'ajena635@gmail.com', 7978079693, 1, '2019-03-09 23:12:12'),
(8, 1501104065, 158, 'Heena Sahu', 'Computer Science & Engineering', 'heenasahu66@gmail.com', 7504875035, 1, '2019-04-07 23:57:21');
-- --------------------------------------------------------
--
-- Table structure for table `subjects`
--
CREATE TABLE `subjects` (
`subject_id` int(11) NOT NULL,
`subject_code` varchar(50) NOT NULL,
`subject_name` varchar(50) NOT NULL,
`branch` varchar(50) NOT NULL,
`semester` int(2) NOT NULL,
`fk_faculty_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `subjects`
--
INSERT INTO `subjects` (`subject_id`, `subject_code`, `subject_name`, `branch`, `semester`, `fk_faculty_id`) VALUES
(1, 'PCS8J002', 'Expert Systems', 'Computer Science and Engineering', 8, 2),
(2, 'PCP8H001', 'Entrepreneurship Development', 'Computer Science and Engineering', 8, 3),
(3, 'Y897675', 'Math', 'Computer Science & Engineering', 5, 2);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `attendance_sheet`
--
ALTER TABLE `attendance_sheet`
ADD PRIMARY KEY (`attandance_id`),
ADD UNIQUE KEY `attendance_unique` (`fk_subject_id`,`date`,`fk_student_id`) USING BTREE;
--
-- Indexes for table `faculty_users`
--
ALTER TABLE `faculty_users`
ADD PRIMARY KEY (`fac_id`),
ADD UNIQUE KEY `fac_reg_no` (`fac_reg_no`),
ADD UNIQUE KEY `fac_fing_serial` (`fac_fing_serial`);
--
-- Indexes for table `fac_attendance_sheet`
--
ALTER TABLE `fac_attendance_sheet`
ADD PRIMARY KEY (`attandance_id`),
ADD UNIQUE KEY `fac_attend_unique` (`fk_subject_id`,`date`,`fk_faculty_id`);
--
-- Indexes for table `students`
--
ALTER TABLE `students`
ADD PRIMARY KEY (`stu_id`),
ADD UNIQUE KEY `email` (`email`),
ADD UNIQUE KEY `mob` (`mobile`),
ADD UNIQUE KEY `regno` (`reg_no`),
ADD UNIQUE KEY `fk_fing_serial` (`stu_fing_serial`);
--
-- Indexes for table `subjects`
--
ALTER TABLE `subjects`
ADD PRIMARY KEY (`subject_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `attendance_sheet`
--
ALTER TABLE `attendance_sheet`
MODIFY `attandance_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `faculty_users`
--
ALTER TABLE `faculty_users`
MODIFY `fac_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `fac_attendance_sheet`
--
ALTER TABLE `fac_attendance_sheet`
MODIFY `attandance_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `students`
--
ALTER TABLE `students`
MODIFY `stu_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `subjects`
--
ALTER TABLE `subjects`
MODIFY `subject_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
/*!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 */;