-
Notifications
You must be signed in to change notification settings - Fork 1
/
db_weblab.sql
378 lines (312 loc) · 14 KB
/
db_weblab.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
369
370
371
372
373
374
375
376
377
378
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 22, 2021 at 06:11 PM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 8.0.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `db_weblab`
--
-- --------------------------------------------------------
--
-- Table structure for table `absenpelatihan`
--
CREATE TABLE `absenpelatihan` (
`id` bigint(20) UNSIGNED NOT NULL,
`id_pelatihan` bigint(20) UNSIGNED NOT NULL,
`nim` int(11) NOT NULL,
`status_validasi` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 'Menunggu validasi',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `absenpelatihan`
--
INSERT INTO `absenpelatihan` (`id`, `id_pelatihan`, `nim`, `status_validasi`, `created_at`, `updated_at`) VALUES
(9, 7, 1111, 'Menunggu validasi', '2021-06-22 04:45:54', '2021-06-22 04:45:54'),
(10, 8, 1111, 'Menunggu validasi', '2021-06-22 04:45:57', '2021-06-22 04:45:57');
-- --------------------------------------------------------
--
-- Table structure for table `absenrapat`
--
CREATE TABLE `absenrapat` (
`id` bigint(20) UNSIGNED NOT NULL,
`id_rapat` bigint(20) UNSIGNED NOT NULL,
`nim` int(11) NOT NULL,
`status_validasi` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'Menunggu validasi',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `absenrapat`
--
INSERT INTO `absenrapat` (`id`, `id_rapat`, `nim`, `status_validasi`, `created_at`, `updated_at`) VALUES
(23, 29, 1111, 'Menunggu validasi', '2021-06-22 04:37:14', '2021-06-22 04:37:14');
-- --------------------------------------------------------
--
-- Table structure for table `dokumentasipelatihan`
--
CREATE TABLE `dokumentasipelatihan` (
`id` bigint(20) UNSIGNED NOT NULL,
`id_pelatihan` bigint(20) UNSIGNED NOT NULL,
`file` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `dokumentasirapat`
--
CREATE TABLE `dokumentasirapat` (
`id` bigint(20) UNSIGNED NOT NULL,
`id_rapat` bigint(20) UNSIGNED NOT NULL,
`file` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(6, '2014_10_12_000000_create_users_table', 1),
(7, '2014_10_12_100000_create_password_resets_table', 1),
(8, '2019_08_19_000000_create_failed_jobs_table', 1),
(9, '2021_04_02_085805_create_tb_anggota_table', 1),
(10, '2021_04_11_150249_create_tb_rapat_table', 2),
(11, '2021_04_12_033004_create_kegiatan_table', 3),
(12, '2021_04_12_121037_create_tb_pelatihan_table', 4),
(13, '2021_05_01_090145_create__tb_kehadiran_table', 5),
(14, '2021_05_22_044259_create_absenpelatihan_table', 6);
-- --------------------------------------------------------
--
-- Table structure for table `tb_anggota`
--
CREATE TABLE `tb_anggota` (
`id` bigint(20) UNSIGNED NOT NULL,
`nama` text COLLATE utf8mb4_unicode_ci NOT NULL,
`nim` int(11) NOT NULL,
`kelas` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`divisi` text COLLATE utf8mb4_unicode_ci NOT NULL,
`study_group` text COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`akses` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'non_admin',
`Status` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Pending',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `tb_anggota`
--
INSERT INTO `tb_anggota` (`id`, `nama`, `nim`, `kelas`, `divisi`, `study_group`, `email`, `password`, `akses`, `Status`, `created_at`, `updated_at`) VALUES
(2, 'Admin', 1111, 'SI-42-01', 'Trainer', 'Data Engineer', '[email protected]', '$2y$10$dHP1X5Cx6Z9pfJcUmR34ou1ocu/7yNAzCThYFVdCxb.xbN5aUWLqe', 'admin', 'Diterima', '2021-04-11 08:07:51', '2021-06-03 22:33:36'),
(3, 'Jody Mardika', 1202180092, 'SI-42-01', 'Trainer', 'Data Scientist', '[email protected]', '$2y$10$kfZXNwZV/8qghJatOXBiAeu5phx4bv37ox7fUPtGBeFpi1AJ4Cur.', 'non_admin', 'Diterima', '2021-04-11 08:08:52', '2021-06-03 22:33:34'),
(4, 'Sekretaris', 2222, 'SI-42-01', 'Sekretaris', 'Data Engineer', '[email protected]', '$2y$10$L2JXHA7oqJtVPPM/tQC7DO41wwegn1iOY1fydIwXeYX0XowycDdTq', 'non_admin', 'Diterima', '2021-04-11 08:09:17', '2021-06-03 22:33:32'),
(5, 'Trainer', 3333, 'SI-42-01', 'Trainer', 'Data Scientist', '[email protected]', '$2y$10$HKPPZrJ7a3MeUpupu2Fn6ecCTePxIn8B1MeaYaiQM6YVcRkTnIiGC', 'non_admin', 'Pending', '2021-04-12 05:06:39', '2021-04-12 05:06:39'),
(6, 'poiuio', 6666, 'SI-42-01', 'Trainer', 'Data Engineer', '[email protected]', '$2y$10$LriUa5riwTVp8aTYDXJn9eUsnlab/SjInwWst6ToA3PNQAby12XEi', 'non_admin', 'Diterima', '2021-04-12 06:37:56', '2021-06-03 22:33:30'),
(10, 'Tasya Nozuka Hasprasi', 1202184312, 'SI-42-01', 'Anggota', 'Data Engineer', '[email protected]', '$2y$10$vbW0u.ag3qF.iQL3h66S.ePLZjoia5zrdP9WcgIY34/KjaWr1UkpG', 'non_admin', 'Diterima', '2021-04-27 19:54:03', '2021-06-03 22:33:28'),
(11, 'trainer2', 123456789, 'SI-42-02', 'Trainer', 'Data Engineer', '[email protected]', '$2y$10$iXWkrb9kTAxSrEwxqSJO6uP3T1rbdlsRXdb8AWDzIk.wJclM5xnSO', 'non_admin', 'Diterima', '2021-05-01 01:45:56', '2021-06-03 22:33:27'),
(12, 'nanana', 1202181111, 'SI-42-04', 'Anggota', 'Data Scientist', '[email protected]', '$2y$10$U90SHopzfCEO5jrUgpjaoublZuPu0EHtpAN/W9ukpwOSnNus4dCwW', 'non_admin', 'Diterima', '2021-05-30 09:40:33', '2021-06-03 22:33:25'),
(13, 'dada', 1212122112, 'SI-42-01', 'Trainer', 'Data Engineer', '[email protected]', '$2y$10$dIEX5lSVm23aEUVCOsbc7u6OwmObXyyMTn0aaPtQ7t8LW5rorc5b.', 'non_admin', 'Diterima', '2021-06-03 22:32:55', '2021-06-03 22:33:22'),
(14, 'Sekretaris 2', 1202184287, 'SI-42-01', 'Sekretaris', 'Data Engineer', '[email protected]', '$2y$10$RnYRM3DlV4fqkcuOupmGMepYm31IB1LXvUx.bCW8QczDTiZw82/lW', 'non_admin', 'Pending', '2021-06-04 18:21:21', '2021-06-04 18:21:21'),
(15, 'Trainer 3', 54187343, 'SI-42-01', 'Trainer', 'Data Engineer', '[email protected]', '$2y$10$gZzSVUg9cPNo28yjqxL1i.4RE23QAHUZ/XFx6AWjCSqhNHQk8APA2', 'non_admin', 'Pending', '2021-06-05 07:34:22', '2021-06-05 07:34:22'),
(17, 'Anggota 3', 164669513, 'SI-42-01', 'Anggota', 'Data Engineer', '[email protected]', '$2y$10$SnR.YoRx7ndxo5ZcWbCSw.ON8G8B4ajKGAxz5AWWqZmebaDXiFeOO', 'non_admin', 'Diterima', '2021-06-05 18:47:43', '2021-06-05 19:02:10'),
(18, 'Admin 2', 138763, 'SI-42-01', 'Anggota', 'Data Engineer', '[email protected]', '$2y$10$SnR.YoRx7ndxo5ZcWbCSw.ON8G8B4ajKGAxz5AWWqZmebaDXiFeOO', 'admin', 'Diterima', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `tb_pelatihan`
--
CREATE TABLE `tb_pelatihan` (
`id` bigint(20) UNSIGNED NOT NULL,
`nama_pelatihan` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`pemohon` int(11) NOT NULL,
`study_group` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`tgl_pelatihan` date NOT NULL,
`jam_pelatihan` time NOT NULL,
`link` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status_aproval` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'waiting',
`jenis_kegiatan` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pelatihan',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `tb_pelatihan`
--
INSERT INTO `tb_pelatihan` (`id`, `nama_pelatihan`, `pemohon`, `study_group`, `tgl_pelatihan`, `jam_pelatihan`, `link`, `status_aproval`, `jenis_kegiatan`, `created_at`, `updated_at`) VALUES
(7, 'Pelatihan 1', 1111, 'Data Engineer', '2021-06-22', '18:34:00', 'Link Rapat 1', 'aproved', 'pelatihan', '2021-06-22 04:34:52', '2021-06-22 04:35:03'),
(8, 'Pelatihan 1 edited', 1111, 'Data Engineer', '2021-06-22', '18:38:00', 'Link Rapat 1', 'aproved', 'pelatihan', '2021-06-22 04:38:47', '2021-06-22 04:38:54');
-- --------------------------------------------------------
--
-- Table structure for table `tb_rapat`
--
CREATE TABLE `tb_rapat` (
`id` bigint(20) UNSIGNED NOT NULL,
`nama_rapat` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`pemohon` int(11) NOT NULL,
`tgl_rapat` date NOT NULL,
`jam_rapat` time NOT NULL,
`link` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status_aproval` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'waiting',
`jenis_kegiatan` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'rapat',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `tb_rapat`
--
INSERT INTO `tb_rapat` (`id`, `nama_rapat`, `pemohon`, `tgl_rapat`, `jam_rapat`, `link`, `status_aproval`, `jenis_kegiatan`, `created_at`, `updated_at`) VALUES
(29, 'Tes Rapat 1', 1111, '2021-06-22', '18:34:00', 'Link Rapat 1', 'aproved', '\'rapat\'', '2021-06-22 04:34:35', '2021-06-22 04:34:59'),
(30, 'Tes Rapat 2', 1111, '2021-06-22', '19:27:00', 'Link Rapat 2', 'aproved', '\'rapat\'', '2021-06-22 05:27:26', '2021-06-22 05:27:32');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `absenpelatihan`
--
ALTER TABLE `absenpelatihan`
ADD PRIMARY KEY (`id`),
ADD KEY `id_pelatihan` (`id_pelatihan`),
ADD KEY `nim` (`nim`);
--
-- Indexes for table `absenrapat`
--
ALTER TABLE `absenrapat`
ADD PRIMARY KEY (`id`),
ADD KEY `id_rapat` (`id_rapat`) USING BTREE,
ADD KEY `nim` (`nim`);
--
-- Indexes for table `dokumentasipelatihan`
--
ALTER TABLE `dokumentasipelatihan`
ADD PRIMARY KEY (`id`),
ADD KEY `FK id pelatihan` (`id_pelatihan`);
--
-- Indexes for table `dokumentasirapat`
--
ALTER TABLE `dokumentasirapat`
ADD PRIMARY KEY (`id`),
ADD KEY `FK id rapat` (`id_rapat`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tb_anggota`
--
ALTER TABLE `tb_anggota`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `email` (`email`),
ADD UNIQUE KEY `nim` (`nim`);
--
-- Indexes for table `tb_pelatihan`
--
ALTER TABLE `tb_pelatihan`
ADD PRIMARY KEY (`id`),
ADD KEY `pemohon` (`pemohon`);
--
-- Indexes for table `tb_rapat`
--
ALTER TABLE `tb_rapat`
ADD PRIMARY KEY (`id`),
ADD KEY `pemohon` (`pemohon`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `absenpelatihan`
--
ALTER TABLE `absenpelatihan`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `absenrapat`
--
ALTER TABLE `absenrapat`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
--
-- AUTO_INCREMENT for table `dokumentasipelatihan`
--
ALTER TABLE `dokumentasipelatihan`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `dokumentasirapat`
--
ALTER TABLE `dokumentasirapat`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `tb_anggota`
--
ALTER TABLE `tb_anggota`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `tb_pelatihan`
--
ALTER TABLE `tb_pelatihan`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `tb_rapat`
--
ALTER TABLE `tb_rapat`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `absenpelatihan`
--
ALTER TABLE `absenpelatihan`
ADD CONSTRAINT `fk_id_pelatihan` FOREIGN KEY (`id_pelatihan`) REFERENCES `tb_pelatihan` (`id`),
ADD CONSTRAINT `fk_nim` FOREIGN KEY (`nim`) REFERENCES `tb_anggota` (`nim`);
--
-- Constraints for table `absenrapat`
--
ALTER TABLE `absenrapat`
ADD CONSTRAINT `absenrapat_ibfk_1` FOREIGN KEY (`id_rapat`) REFERENCES `tb_rapat` (`id`),
ADD CONSTRAINT `absenrapat_ibfk_2` FOREIGN KEY (`nim`) REFERENCES `tb_anggota` (`nim`);
--
-- Constraints for table `dokumentasipelatihan`
--
ALTER TABLE `dokumentasipelatihan`
ADD CONSTRAINT `FK id pelatihan` FOREIGN KEY (`id_pelatihan`) REFERENCES `tb_pelatihan` (`id`);
--
-- Constraints for table `dokumentasirapat`
--
ALTER TABLE `dokumentasirapat`
ADD CONSTRAINT `FK id rapat` FOREIGN KEY (`id_rapat`) REFERENCES `tb_rapat` (`id`);
--
-- Constraints for table `tb_pelatihan`
--
ALTER TABLE `tb_pelatihan`
ADD CONSTRAINT `fk_pemohon2` FOREIGN KEY (`pemohon`) REFERENCES `tb_anggota` (`nim`);
--
-- Constraints for table `tb_rapat`
--
ALTER TABLE `tb_rapat`
ADD CONSTRAINT `fk_pemohon` FOREIGN KEY (`pemohon`) REFERENCES `tb_anggota` (`nim`);
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 */;