-
Notifications
You must be signed in to change notification settings - Fork 28
/
SQL_file.sql
219 lines (176 loc) · 4.94 KB
/
SQL_file.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
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Waktu pembuatan: 04 Jan 2020 pada 08.31
-- Versi server: 10.1.37-MariaDB
-- Versi PHP: 7.1.24
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
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: `attendace_fingerprint`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `absent`
--
CREATE TABLE `absent` (
`id` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`date` date NOT NULL,
`in_time` time NOT NULL,
`out_time` time DEFAULT NULL,
`work_hour` time DEFAULT NULL,
`over_time` time DEFAULT NULL,
`late_time` time DEFAULT NULL,
`early_out_time` time DEFAULT NULL,
`in_location` varchar(200) NOT NULL,
`out_location` varchar(200) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `location`
--
CREATE TABLE `location` (
`id` int(11) NOT NULL,
`lat` text NOT NULL,
`longt` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `md_location`
--
CREATE TABLE `md_location` (
`id` int(11) NOT NULL,
`md5` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `md_location`
--
INSERT INTO `md_location` (`id`, `md5`) VALUES
(1, '77bb6f644872803a4d0f038a2d0565a6');
-- --------------------------------------------------------
--
-- Struktur dari tabel `settings`
--
CREATE TABLE `settings` (
`id` int(11) NOT NULL,
`start_time` time NOT NULL,
`out_time` time NOT NULL,
`many_employee` varchar(50) NOT NULL,
`key_insert` char(40) NOT NULL,
`timezone` varchar(100) NOT NULL,
`recaptcha` tinyint(4) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `settings`
--
INSERT INTO `settings` (`id`, `start_time`, `out_time`, `many_employee`, `key_insert`, `timezone`, `recaptcha`) VALUES
(1, '08:00:00', '17:00:00', '8', '51e69892ab49df85c6230ccc57f8e1d1606cabbb', 'Asia/Makassar', 0);
-- --------------------------------------------------------
--
-- Struktur dari tabel `tokens`
--
CREATE TABLE `tokens` (
`id` int(11) NOT NULL,
`token` varchar(255) NOT NULL,
`user_id` int(10) NOT NULL,
`created` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `users`
--
CREATE TABLE `users` (
`id` int(10) NOT NULL,
`email` varchar(100) NOT NULL,
`first_name` varchar(100) NOT NULL,
`last_name` varchar(100) NOT NULL,
`role` varchar(10) NOT NULL,
`password` text NOT NULL,
`last_login` varchar(100) NOT NULL,
`status` varchar(100) NOT NULL,
`banned_users` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `users`
--
INSERT INTO `users` (`id`, `email`, `first_name`, `last_name`, `role`, `password`, `last_login`, `status`, `banned_users`) VALUES
(1, '[email protected]', 'admin', 'admin', '1', 'sha256:1000:afMG4GHoH0gR1YsZz3Odq6W3n1M7wTUG:gjbZhnxB9K0im16imrc+yDM23q+8n1Wm', '2020-01-04 08:30:28 AM', 'approved', 'unban');
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `absent`
--
ALTER TABLE `absent`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `location`
--
ALTER TABLE `location`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `md_location`
--
ALTER TABLE `md_location`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `settings`
--
ALTER TABLE `settings`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `tokens`
--
ALTER TABLE `tokens`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `absent`
--
ALTER TABLE `absent`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT untuk tabel `location`
--
ALTER TABLE `location`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=252;
--
-- AUTO_INCREMENT untuk tabel `md_location`
--
ALTER TABLE `md_location`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=125;
--
-- AUTO_INCREMENT untuk tabel `settings`
--
ALTER TABLE `settings`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `tokens`
--
ALTER TABLE `tokens`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
COMMIT;
/*!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 */;