-
Notifications
You must be signed in to change notification settings - Fork 0
/
msbd.sql
2187 lines (1880 loc) · 106 KB
/
msbd.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
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 29, 2022 at 09:10 AM
-- Server version: 10.4.24-MariaDB
-- PHP Version: 8.1.6
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: `msbd`
--
DELIMITER $$
--
-- Procedures
--
CREATE DEFINER=`root`@`localhost` PROCEDURE `pr_mhs_per_angkatan` (IN `tahun` VARCHAR(255)) BEGIN
SELECT nim, nama, email, angkatan, jenis_kelamin
FROM mahasiswas
WHERE angkatan = tahun;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `pr_semhas_per_date` (IN `tanggal` DATE) BEGIN
SELECT m.nama, m.nim, m.angkatan, s.judul_skripsi, d.nama AS `dosbing`
FROM mahasiswas m
JOIN skripsis s ON m.nim = s.nim
JOIN dosen_pembimbings dp ON m.nim = dp.nim
JOIN dosens d ON dp.nip_dosbing1 = d.nip OR dp.nip_dosbing2 = d.nip
JOIN jadwal_semhas js ON m.nim = js.nim
WHERE tanggal_semhas = tanggal;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `pr_semproPerDate_dosbing` (IN `nip` VARCHAR(16), IN `tanggal` DATE) BEGIN
SELECT m.nama, m.nim, m.angkatan, s.judul_skripsi
FROM mahasiswas m
JOIN skripsis s ON m.nim = s.nim
JOIN dosen_pembimbings dp ON m.nim = dp.nim
JOIN jadwal_sempros js ON m.nim = js.nim
WHERE js.tanggal_sempro = tanggal AND (dp.nip_dosbing1 = nip OR dp.nip_dosbing2 = nip);
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `pr_sempro_per_date` (IN `tanggal` DATE) BEGIN
SELECT m.nama, m.nim, m.angkatan, s.judul_skripsi, d.nama AS `dosbing`
FROM mahasiswas m
JOIN skripsis s ON m.nim = s.nim
JOIN dosen_pembimbings dp ON m.nim = dp.nim
JOIN dosens d ON dp.nip_dosbing1 = d.nip OR dp.nip_dosbing2 = d.nip
JOIN jadwal_sempros js ON m.nim = js.nim
WHERE tanggal_sempro = tanggal;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `pr_sidang_per_date` (IN `tanggal` DATE) BEGIN
SELECT m.nama, m.nim, m.angkatan, s.judul_skripsi, d.nama AS `dosbing`
FROM mahasiswas m
JOIN skripsis s ON m.nim = s.nim
JOIN dosen_pembimbings dp ON m.nim = dp.nim
JOIN dosens d ON dp.nip_dosbing1 = d.nip OR dp.nip_dosbing2 = d.nip
JOIN jadwal_sidangs js ON m.nim = js.nim
WHERE tanggal_sidangs = tanggal;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `setToFive` (IN `nim` VARCHAR(9)) BEGIN
DECLARE st_akses INT;
SET st_akses = (SELECT no_statusAkses FROM `status_akses` `sa` WHERE `sa`.`nim` COLLATE utf8mb4_general_ci = nim);
UPDATE `status_akses` `s`
SET no_statusAkses = 5
WHERE s.nim COLLATE utf8mb4_general_ci = nim;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `setToFour` (IN `nim` VARCHAR(9)) BEGIN
DECLARE st_akses INT;
SET st_akses = (SELECT no_statusAkses FROM `status_akses` `sa` WHERE `sa`.`nim` COLLATE utf8mb4_general_ci = nim);
UPDATE `status_akses` `s`
SET no_statusAkses = 4
WHERE s.nim COLLATE utf8mb4_general_ci = nim;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `setToOne` (IN `nim` VARCHAR(9)) BEGIN
DECLARE st_akses INT;
SET st_akses = (SELECT no_statusAkses FROM `status_akses` `sa` WHERE `sa`.`nim` COLLATE utf8mb4_general_ci = nim);
UPDATE `status_akses` `s`
SET no_statusAkses = 1
WHERE s.nim COLLATE utf8mb4_general_ci = nim;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `setToSeven` (IN `nim` VARCHAR(9)) BEGIN
DECLARE st_akses INT;
SET st_akses = (SELECT no_statusAkses FROM `status_akses` `sa` WHERE `sa`.`nim` COLLATE utf8mb4_general_ci = nim);
UPDATE `status_akses` `s`
SET no_statusAkses = 7
WHERE s.nim COLLATE utf8mb4_general_ci = nim;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `setToSix` (IN `nim` VARCHAR(9)) BEGIN
DECLARE st_akses INT;
SET st_akses = (SELECT no_statusAkses FROM `status_akses` `sa` WHERE `sa`.`nim` COLLATE utf8mb4_general_ci = nim);
UPDATE `status_akses` `s`
SET no_statusAkses = 6
WHERE s.nim COLLATE utf8mb4_general_ci = nim;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `setToThree` (IN `nim` VARCHAR(9)) BEGIN
DECLARE st_akses INT;
SET st_akses = (SELECT no_statusAkses FROM `status_akses` `sa` WHERE `sa`.`nim` COLLATE utf8mb4_general_ci = nim);
UPDATE `status_akses` `s`
SET no_statusAkses = 3
WHERE s.nim COLLATE utf8mb4_general_ci = nim;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `setToTwo` (IN `nim` VARCHAR(9)) BEGIN
DECLARE st_akses INT;
SET st_akses = (SELECT no_statusAkses FROM `status_akses` `sa` WHERE `sa`.`nim` COLLATE utf8mb4_general_ci = nim);
UPDATE `status_akses` `s`
SET no_statusAkses = 2
WHERE s.nim COLLATE utf8mb4_general_ci = nim;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `setToZero` (IN `nim` VARCHAR(9)) BEGIN
DECLARE st_akses INT;
SET st_akses = (SELECT no_statusAkses FROM `status_akses` `sa` WHERE `sa`.`nim` COLLATE utf8mb4_general_ci = nim);
UPDATE `status_akses` `s`
SET no_statusAkses = 0
WHERE s.nim COLLATE utf8mb4_general_ci = nim;
END$$
--
-- Functions
--
CREATE DEFINER=`root`@`localhost` FUNCTION `batas_skripsi` (`angkatan` INT) RETURNS INT(11) BEGIN
DECLARE batas INT;
SET batas = angkatan + 7;
RETURN batas;
END$$
CREATE DEFINER=`root`@`localhost` FUNCTION `persentase_skripsi` (`status` INT) RETURNS DECIMAL(5,2) BEGIN
DECLARE persentase DECIMAL (5,2);
DECLARE percent DECIMAL (5,2);
SET percent = (status / 7) * 100;
SET persentase = ROUND(percent, 2);
RETURN persentase;
END$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `admins`
--
CREATE TABLE `admins` (
`id` int(9) UNSIGNED NOT NULL,
`nama` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` enum('admin','super admin') COLLATE utf8mb4_unicode_ci NOT NULL,
`id_user` int(9) UNSIGNED NOT NULL,
`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 `admins`
--
INSERT INTO `admins` (`id`, `nama`, `status`, `id_user`, `created_at`, `updated_at`) VALUES
(1, 'Ariana Grande', 'super admin', 21, NULL, '2022-06-02 13:08:52'),
(2, 'Olivia Rodrigo', 'super admin', 22, NULL, NULL),
(3, 'Conan Gray', 'super admin', 23, NULL, NULL),
(4, 'Sufjan Stevens', 'admin', 24, NULL, NULL),
(5, 'Casey Luong', 'admin', 25, NULL, NULL),
(6, 'Lana Del Ray', 'admin', 26, NULL, NULL),
(7, 'Greg Gonzalez', 'admin', 27, NULL, NULL),
(8, 'Shawn Mendez', 'admin', 28, NULL, NULL),
(9, 'Christian Yu', 'admin', 29, NULL, NULL),
(10, 'Alex Turner', 'admin', 30, NULL, NULL),
(11, 'Harry Styles', 'admin', 38, '2022-05-25 17:14:43', '2022-05-25 17:14:43'),
(12, 'Patrick Watson', 'admin', 39, '2022-05-25 17:16:07', '2022-05-25 17:16:07');
--
-- Triggers `admins`
--
DELIMITER $$
CREATE TRIGGER `tr_delete_admin` AFTER DELETE ON `admins` FOR EACH ROW BEGIN
DELETE FROM users WHERE id = OLD.id_user;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_duplicate_id_user` BEFORE INSERT ON `admins` FOR EACH ROW BEGIN
IF NEW.id_user IN (SELECT m.id_user FROM mahasiswas m)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Data pengguna sudah terdaftar sebagai mahasiswa!";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_duplicate_id_user2` BEFORE INSERT ON `admins` FOR EACH ROW BEGIN
IF NEW.id_user IN (SELECT d.id_user FROM dosens d)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Data pengguna sudah terdaftar sebagai dosen!";
END IF;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `bidang_ilmus`
--
CREATE TABLE `bidang_ilmus` (
`bidang_ilmu` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `bidang_ilmus`
--
INSERT INTO `bidang_ilmus` (`bidang_ilmu`) VALUES
('Analisis dan Desain Sistem'),
('Animasi'),
('Interaksi Manusia dan Komputer'),
('Pemrograman'),
('Pemrograman Web'),
('Pengantar Teknologi Informasi'),
('Teori Graph dan Aplikasi');
-- --------------------------------------------------------
--
-- Stand-in structure for view `dosbing1`
-- (See below for the actual view)
--
CREATE TABLE `dosbing1` (
`nama_mhs` varchar(64)
,`nim` varchar(9)
,`nip_dosbing1` varchar(18)
,`nama_dosbing1` varchar(64)
);
-- --------------------------------------------------------
--
-- Stand-in structure for view `dosbing2`
-- (See below for the actual view)
--
CREATE TABLE `dosbing2` (
`nama_mhs` varchar(64)
,`nim` varchar(9)
,`nip_dosbing2` varchar(18)
,`nama_dosbing2` varchar(64)
);
-- --------------------------------------------------------
--
-- Table structure for table `dosens`
--
CREATE TABLE `dosens` (
`nip` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`nama` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`NIDN` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`kode` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`jenis_kelamin` enum('laki-laki','perempuan') COLLATE utf8mb4_unicode_ci NOT NULL,
`id_user` int(9) UNSIGNED NOT NULL,
`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 `dosens`
--
INSERT INTO `dosens` (`nip`, `nama`, `NIDN`, `kode`, `jenis_kelamin`, `id_user`, `created_at`, `updated_at`) VALUES
('178603032010121006', 'Hange Zoe', '0031125984', 'HGZ', 'perempuan', 59, '2022-06-01 17:01:22', '2022-06-01 17:01:22'),
('195912311998021001', 'Dr.Sawaluddin, M.IT', '0031125982', 'SWL', 'laki-laki', 12, '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('196108171987011001', 'Prof. Dr. Opim Salim Sitompul M.Sc', '0017086108', 'OPM', 'laki-laki', 16, '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('197603032010121004', 'Uchiha Sasuke', '0031125972', 'UCS', 'laki-laki', 52, '2022-06-01 16:54:43', '2022-06-01 16:54:43'),
('197908312009121002', 'Dedy Arisandi ST., M.Kom. ', '0031087905', 'DDA', 'laki-laki', 13, '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('198001102008011010', 'Muhammad Anggia Muchtar ST., MMIT.', '0010018006', 'MAM', 'laki-laki', 19, '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('198302262010122003', 'Sarah Purnamawati ST., MSc.', '0026028304', 'SRH', 'perempuan', 14, '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('198302262010122015', 'Maudy Ayunda', '0026028379', 'MDY', 'perempuan', 78, '2022-06-06 08:29:09', '2022-06-06 08:29:09'),
('198402262010122003', 'Gang Mo Lee', '0026028387', 'GML', 'laki-laki', 76, '2022-06-06 08:25:37', '2022-06-06 08:25:37'),
('198407072015041001', 'Ivan Jaya S.Si., M.Kom.', '0107078404', 'IVJ', 'laki-laki', 11, '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('198510272017061001', 'Ainul Hizriadi S.Kom, M.Sc ', '0127108502', 'AIN', 'laki-laki', 20, '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('198603032010121004', 'Romi Fadillah Rahmat B.Comp.Sc., M.Sc.', '0003038601', 'ROM', 'laki-laki', 47, '2022-05-26 06:36:12', '2022-05-26 06:36:12'),
('198603032010121005', 'Mikasa Ackerman', '0107078407', 'MKC', 'perempuan', 55, '2022-06-01 16:57:56', '2022-06-01 16:57:56'),
('198603032010121006', 'Erwin Smith', '0107078409', 'EWS', 'laki-laki', 58, '2022-06-01 17:00:11', '2022-06-01 17:00:11'),
('198603032010121007', 'Haruno Sakura', '0107097404', 'HRS', 'perempuan', 50, '2022-06-01 16:52:26', '2022-06-01 16:52:26'),
('198603032010121009', 'Uzumaki Naruto', '0107098404', 'UZN', 'laki-laki', 51, '2022-06-01 16:53:04', '2022-06-01 16:53:04'),
('198604032010121004', 'Taylor Swift', '0003038631', 'TYS', 'perempuan', 53, '2022-06-01 16:55:43', '2022-06-01 16:55:43'),
('198610122018052001', 'Fahrurrozi Lubis B.IT., M.Sc.IT', '0012108604', 'ROZ', 'laki-laki', 17, '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('198703032010121003', 'Armin Arlert', '0107079405', 'ARM', 'laki-laki', 57, '2022-06-01 16:59:29', '2022-06-01 16:59:29'),
('198703032010121004', 'Eren Yeager', '0031127992', 'ERN', 'laki-laki', 54, '2022-06-01 16:57:18', '2022-06-01 16:57:18'),
('198707012018052001', 'Rossy Nurhasanah S.Kom., M.Kom ', '0001078708', 'RSS', 'perempuan', 18, '0000-00-00 00:00:00', '2022-05-23 17:00:00'),
('198903032010121005', 'Levi Ackerman', '0001071978', 'LEV', 'laki-laki', 56, '2022-06-01 16:58:54', '2022-06-01 16:58:54');
--
-- Triggers `dosens`
--
DELIMITER $$
CREATE TRIGGER `tr_cek_dosen` BEFORE INSERT ON `dosens` FOR EACH ROW BEGIN
IF NEW.nip IN (SELECT d.nip FROM dosens d)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Dosen dengan NIP tersebut sudah terdaftar!";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_delete_dosen` AFTER DELETE ON `dosens` FOR EACH ROW BEGIN
DELETE FROM users WHERE id = OLD.id_user;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_dosen_exist` BEFORE INSERT ON `dosens` FOR EACH ROW BEGIN
IF EXISTS (SELECT nip FROM dosens WHERE nip = NEW.nip)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Dosen dengan NIP tersebut sudah terdaftar.";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_duplicate_id_user3` BEFORE INSERT ON `dosens` FOR EACH ROW BEGIN
IF NEW.id_user IN (SELECT a.id_user FROM admins a)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Data pengguna sudah terdaftar sebagai admin!";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_duplicate_id_user4` BEFORE INSERT ON `dosens` FOR EACH ROW BEGIN
IF NEW.id_user IN (SELECT m.id_user FROM mahasiswas m)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Data pengguna sudah terdaftar sebagai mahasiswa!";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_duplicate_id_user6` BEFORE INSERT ON `dosens` FOR EACH ROW BEGIN
IF NEW.id_user IN (SELECT a.id_user FROM admins a)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Data pengguna sudah terdaftar sebagai admin!";
END IF;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `dosen_pembimbings`
--
CREATE TABLE `dosen_pembimbings` (
`nim` varchar(9) COLLATE utf8mb4_unicode_ci NOT NULL,
`nip_dosbing1` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`nip_dosbing2` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`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 `dosen_pembimbings`
--
INSERT INTO `dosen_pembimbings` (`nim`, `nip_dosbing1`, `nip_dosbing2`, `created_at`, `updated_at`) VALUES
('171402002', '195912311998021001', '197908312009121002', '2022-05-25 17:00:00', '2022-05-25 17:00:00'),
('171402001', '196108171987011001', '198510272017061001', '2022-05-31 17:00:00', '2022-05-31 17:00:00'),
('171402003', '198610122018052001', '198001102008011010', '2022-05-31 17:00:00', '2022-05-31 17:00:00'),
('171402004', '198302262010122003', '197908312009121002', '2022-05-31 17:00:00', '2022-05-31 17:00:00'),
('171402006', '197908312009121002', '198603032010121004', '2022-05-31 17:00:00', '2022-05-31 17:00:00'),
('171402005', '198510272017061001', '198610122018052001', '2022-05-31 17:00:00', '2022-05-31 17:00:00'),
('181402004', '178603032010121006', '198603032010121005', '2022-06-01 19:36:52', '2022-06-01 19:36:52'),
('181402001', '198603032010121006', '198903032010121005', '2022-06-02 08:56:35', '2022-06-02 08:56:35'),
('181402009', '198603032010121005', '198603032010121007', '2022-06-02 14:01:29', '2022-06-02 14:01:29'),
('181402007', '198703032010121004', '198703032010121003', '2022-06-02 16:57:29', '2022-06-02 16:57:29'),
('181402002', '198603032010121006', '198903032010121005', '2022-06-03 02:38:07', '2022-06-03 02:38:07'),
('181402005', '198510272017061001', '198407072015041001', '2022-06-18 14:19:41', '2022-06-18 14:19:41');
--
-- Triggers `dosen_pembimbings`
--
DELIMITER $$
CREATE TRIGGER `tr_dosbing_exist` BEFORE INSERT ON `dosen_pembimbings` FOR EACH ROW BEGIN
IF EXISTS (SELECT nim FROM dosen_pembimbings WHERE nim = NEW.nim)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Dosen pembimbing untuk mahasiswa tersebut sudah terdaftar.";
END IF;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Stand-in structure for view `dosen_penguji1`
-- (See below for the actual view)
--
CREATE TABLE `dosen_penguji1` (
`nama_mhs` varchar(64)
,`nim` varchar(9)
,`nama_dosen_penguji1` varchar(64)
,`nip_dosen_penguji1` varchar(18)
);
-- --------------------------------------------------------
--
-- Stand-in structure for view `dosen_penguji2`
-- (See below for the actual view)
--
CREATE TABLE `dosen_penguji2` (
`nama_mhs` varchar(64)
,`nim` varchar(9)
,`nama_dosen_penguji2` varchar(64)
,`nip_dosen_penguji2` varchar(18)
);
-- --------------------------------------------------------
--
-- Table structure for table `dosen_pengujis`
--
CREATE TABLE `dosen_pengujis` (
`nim` varchar(9) COLLATE utf8mb4_unicode_ci NOT NULL,
`nip_penguji1` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`nip_penguji2` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`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 `dosen_pengujis`
--
INSERT INTO `dosen_pengujis` (`nim`, `nip_penguji1`, `nip_penguji2`, `created_at`, `updated_at`) VALUES
('171402001', '198903032010121005', '198707012018052001', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
('171402002', '198903032010121005', '198707012018052001', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
('171402003', '198707012018052001', '198703032010121004', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
('171402004', '198703032010121004', '198703032010121003', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
('171402005', '198903032010121005', '198707012018052001', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
('171402006', '198707012018052001', '198903032010121005', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
('181402004', '198604032010121004', '198603032010121006', '2022-06-02 08:37:11', '2022-06-02 08:37:11'),
('181402001', '198604032010121004', '198707012018052001', '2022-06-02 09:31:11', '2022-06-02 09:31:11');
--
-- Triggers `dosen_pengujis`
--
DELIMITER $$
CREATE TRIGGER `tr_cek_dosbing` BEFORE INSERT ON `dosen_pengujis` FOR EACH ROW BEGIN
IF NEW.nim NOT IN (SELECT db.nim FROM dosen_pembimbings db)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Mahasiswa belum seharusnya mendaftarkan dosbing!!";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_cek_jd_sempro2` BEFORE INSERT ON `dosen_pengujis` FOR EACH ROW BEGIN
IF NEW.nim NOT IN (SELECT s.nim FROM skripsis s)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Mahasiswa belum memiliki judul skripsi";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_dosen_penguji` BEFORE INSERT ON `dosen_pengujis` FOR EACH ROW BEGIN
IF(SELECT dp.nip_dosbing1 FROM dosen_pembimbings dp WHERE dp.nim = NEW.nim AND dp.nip_dosbing1 = NEW.nip_penguji1) OR (SELECT dp.nip_dosbing2 FROM dosen_pembimbings dp WHERE dp.nim = NEW.nim AND dp.nip_dosbing2 = NEW.nip_penguji1) OR (SELECT dp.nip_dosbing1 FROM dosen_pembimbings dp WHERE dp.nim = NEW.nim AND dp.nip_dosbing1 = NEW.nip_penguji2) OR (SELECT dp.nip_dosbing2 FROM dosen_pembimbings dp WHERE dp.nim = NEW.nim AND dp.nip_dosbing2 = NEW.nip_penguji2)
THEN
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Dosen penguji sudah terdaftar sebagai doping mahasiswa yang bersangkutan!";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_dosen_penguji2` BEFORE UPDATE ON `dosen_pengujis` FOR EACH ROW BEGIN
IF(SELECT dp.nip_dosbing1 FROM dosen_pembimbings dp WHERE dp.nim = NEW.nim AND dp.nip_dosbing1 = NEW.nip_penguji1) OR (SELECT dp.nip_dosbing2 FROM dosen_pembimbings dp WHERE dp.nim = NEW.nim AND dp.nip_dosbing2 = NEW.nip_penguji1) OR (SELECT dp.nip_dosbing1 FROM dosen_pembimbings dp WHERE dp.nim = NEW.nim AND dp.nip_dosbing1 = NEW.nip_penguji2) OR (SELECT dp.nip_dosbing2 FROM dosen_pembimbings dp WHERE dp.nim = NEW.nim AND dp.nip_dosbing2 = NEW.nip_penguji2)
THEN
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Dosen penguji sudah terdaftar sebagai doping mahasiswa yang bersangkutan!";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_dosen_uji_exist` BEFORE INSERT ON `dosen_pengujis` FOR EACH ROW BEGIN
IF EXISTS (SELECT nim FROM dosen_pengujis WHERE nim = NEW.nim)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Dosen penguji untuk mahasiswa tersebut sudah terdaftar.";
END IF;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `jadwal_semhas`
--
CREATE TABLE `jadwal_semhas` (
`nim` varchar(9) COLLATE utf8mb4_unicode_ci NOT NULL,
`tanggal_semhas` date NOT NULL,
`waktu` time NOT NULL DEFAULT '09:00:00',
`tempat` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`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 `jadwal_semhas`
--
INSERT INTO `jadwal_semhas` (`nim`, `tanggal_semhas`, `waktu`, `tempat`, `created_at`, `updated_at`) VALUES
('171402002', '2022-07-13', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('171402003', '2022-07-13', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('171402004', '2022-07-13', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('171402005', '2022-07-13', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('171402006', '2022-07-13', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('171402001', '2022-07-13', '09:00:00', 'Online Elearning USU', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
('181402004', '2022-06-29', '09:00:00', 'Online Elearning USU', '2022-06-01 18:41:41', '2022-06-01 18:41:41'),
('181402001', '2022-07-13', '22:26:00', 'Online Elearning USU', '2022-06-02 09:57:37', '2022-06-04 15:26:06');
--
-- Triggers `jadwal_semhas`
--
DELIMITER $$
CREATE TRIGGER `tr_cek_jd_sempro` BEFORE INSERT ON `jadwal_semhas` FOR EACH ROW BEGIN
IF (NEW.nim NOT IN (SELECT nim FROM jadwal_sempros))
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Mahasiswa yang bersangkutan belum melakukan seminar proposal.";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_cek_skripsi` BEFORE INSERT ON `jadwal_semhas` FOR EACH ROW BEGIN
IF NEW.nim NOT IN (SELECT s.nim FROM skripsis s)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Mahasiswa harus sudah memiliki judul skripsi!";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_dont_schedule_semhas` BEFORE INSERT ON `jadwal_semhas` FOR EACH ROW BEGIN
IF NEW.nim NOT IN (SELECT nim FROM status_akses WHERE no_statusAkses >= 3)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Mahasiswa belum lulus seminar proposal!";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_jadwal_semhas_exist` BEFORE INSERT ON `jadwal_semhas` FOR EACH ROW BEGIN
IF EXISTS (SELECT nim FROM jadwal_semhas WHERE nim = NEW.nim)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Jadwal seminar hasil untuk mahasiswa tersebut sudah terdaftar.";
END IF;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `jadwal_sempros`
--
CREATE TABLE `jadwal_sempros` (
`nim` varchar(9) COLLATE utf8mb4_unicode_ci NOT NULL,
`tanggal_sempro` date NOT NULL,
`waktu` time NOT NULL,
`tempat` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`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 `jadwal_sempros`
--
INSERT INTO `jadwal_sempros` (`nim`, `tanggal_sempro`, `waktu`, `tempat`, `created_at`, `updated_at`) VALUES
('171402002', '2022-05-03', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('171402003', '2022-05-04', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('171402004', '2022-05-05', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('171402005', '2022-05-04', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('171402006', '2022-05-03', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('171402001', '2022-06-15', '09:00:00', 'Online Elearning USU', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
('181402004', '2022-07-13', '09:00:00', 'Online Elearning USU', '2022-06-01 19:40:04', '2022-06-02 16:59:28'),
('181402001', '2022-06-28', '09:00:00', 'Online Elearning USU', '2022-06-02 09:05:10', '2022-06-02 09:05:10'),
('181402009', '2022-06-24', '09:00:00', 'Online Elearning USU', '2022-06-02 14:02:43', '2022-06-02 14:02:43'),
('181402007', '2022-06-25', '09:45:00', 'Online Elearning USU', '2022-06-04 14:35:27', '2022-06-14 01:24:42');
--
-- Triggers `jadwal_sempros`
--
DELIMITER $$
CREATE TRIGGER `tr_cek_skripsi3` BEFORE INSERT ON `jadwal_sempros` FOR EACH ROW BEGIN
IF NEW.nim NOT IN (SELECT s.nim FROM skripsis s)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Mahasiswa harus sudah memiliki judul skripsi!";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_dont_schedule_sempro` BEFORE INSERT ON `jadwal_sempros` FOR EACH ROW BEGIN
IF NEW.nim NOT IN (SELECT nim FROM status_akses WHERE no_statusAkses >= 1)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Mahasiswa belum terdaftar mengikuti sempro!";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_jadwal_sempro_exist` BEFORE INSERT ON `jadwal_sempros` FOR EACH ROW BEGIN
IF EXISTS (SELECT nim FROM jadwal_sempros WHERE nim = NEW.nim)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Jadwal seminar proposal untuk mahasiswa tersebut sudah terdaftar.";
END IF;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `jadwal_sidangs`
--
CREATE TABLE `jadwal_sidangs` (
`nim` varchar(9) COLLATE utf8mb4_unicode_ci NOT NULL,
`tanggal_sidang` date NOT NULL,
`waktu` time DEFAULT NULL,
`tempat` varchar(64) 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;
--
-- Dumping data for table `jadwal_sidangs`
--
INSERT INTO `jadwal_sidangs` (`nim`, `tanggal_sidang`, `waktu`, `tempat`, `created_at`, `updated_at`) VALUES
('171402002', '2022-08-17', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('171402003', '2022-08-17', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('171402004', '2022-08-17', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-23 17:00:00'),
('171402006', '2022-08-17', '09:00:00', 'Online Elearning USU', '2022-05-23 17:00:00', '2022-05-26 12:40:19'),
('171402001', '2022-08-17', '09:00:00', 'Online Elearning USU', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
('171402005', '2022-08-17', '09:00:00', 'Online Elearning USU', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
('181402004', '2022-06-16', '10:00:00', 'Online Elearning USU', '2022-06-04 15:39:42', '2022-06-04 15:39:42'),
('181402001', '2022-06-23', '09:00:00', 'Online Elearning USU', '2022-06-07 15:23:48', '2022-06-07 15:23:48');
--
-- Triggers `jadwal_sidangs`
--
DELIMITER $$
CREATE TRIGGER `tr_cek_jd_semhas` BEFORE INSERT ON `jadwal_sidangs` FOR EACH ROW BEGIN
IF (NEW.nim NOT IN (SELECT nim FROM jadwal_semhas))
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Mahasiswa yang bersangkutan belum melakukan seminar hasil.";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_cek_skripsi2` BEFORE INSERT ON `jadwal_sidangs` FOR EACH ROW BEGIN
IF NEW.nim NOT IN (SELECT s.nim FROM skripsis s)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Mahasiswa harus sudah memiliki judul skripsi!";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_dont_schedule_sidang` BEFORE INSERT ON `jadwal_sidangs` FOR EACH ROW BEGIN
IF NEW.nim NOT IN (SELECT nim FROM status_akses WHERE no_statusAkses >= 5)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Mahasiswa belum lulus seminar hasil!";
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tr_jadwal_sidang_exist` BEFORE INSERT ON `jadwal_sidangs` FOR EACH ROW BEGIN
IF EXISTS (SELECT nim FROM jadwal_sidangs WHERE nim = NEW.nim)
THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Jadwal sidang meja hijau untuk mahasiswa tersebut sudah terdaftar.";
END IF;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Stand-in structure for view `jdsidangmejahijau`
-- (See below for the actual view)
--
CREATE TABLE `jdsidangmejahijau` (
`tanggal_sidang` date
,`waktu` time
,`tempat` varchar(64)
,`nama` varchar(64)
,`nim` varchar(9)
,`nip` varchar(18)
,`nama_dosen` varchar(64)
,`bidang_TA` varchar(64)
,`judul_skripsi` varchar(255)
);
-- --------------------------------------------------------
--
-- Table structure for table `keterangan_status_akses`
--
CREATE TABLE `keterangan_status_akses` (
`no_statusAkses` int(9) UNSIGNED NOT NULL,
`keterangan` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `keterangan_status_akses`
--
INSERT INTO `keterangan_status_akses` (`no_statusAkses`, `keterangan`) VALUES
(0, 'Belum memulai'),
(1, 'Sedang mempersiapkan seminar proposal'),
(2, 'Akan segera seminar proposal'),
(3, 'Sedang mempersiapkan seminar hasil'),
(4, 'Akan segera seminar hasil'),
(5, 'Sedang mempersiapkan sidang meja hijau'),
(6, 'Akan segera sidang meja hijau'),
(7, 'Sudah lulus sidang');
-- --------------------------------------------------------
--
-- Table structure for table `log_mahasiswa_luluses`
--
CREATE TABLE `log_mahasiswa_luluses` (
`id` bigint(20) UNSIGNED NOT NULL,
`nim` varchar(9) COLLATE utf8mb4_unicode_ci NOT NULL,
`nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`judul_skripsi` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`bidang_ilmu` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`nip_dosbing1` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`nama_dosbing1` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`nip_dosbing2` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`nama_dosbing2` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`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 `log_mahasiswa_luluses`
--
INSERT INTO `log_mahasiswa_luluses` (`id`, `nim`, `nama`, `judul_skripsi`, `bidang_ilmu`, `nip_dosbing1`, `nama_dosbing1`, `nip_dosbing2`, `nama_dosbing2`, `created_at`, `updated_at`) VALUES
(1, '171402001', 'Cadis Etrama di Raizel', 'Pengembangan Bahan Ajar Pengantar Teknologi Informasi Berbasis Contextual Teaching and Learning di Jurusan Teknik Elektro Universitas Negeri Malang', 'Analisis dan Desain Sistem', '196108171987011001', 'Prof. Dr. Opim Salim Sitompul M.Sc', '198510272017061001', 'Ainul Hizriadi S.Kom, M.Sc ', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(2, '171402002', 'Jeno Lee', 'Rancang Bangun Game 2d Shooter Pltformer Menggunakan Metode Finite State Machine', 'Analisis dan Desain Sistem', '195912311998021001', 'Dr.Sawaluddin, M.IT', '198510272017061001', 'Ainul Hizriadi S.Kom, M.Sc ', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(3, '171402003', 'Mark Lee', 'Analisa Perancangan Sistem Pendukung Keputusan Admisi Siswa Baru Menggunakan Analytical Hierarcy Process di SMA Negeri II Manado', 'Analisis dan Desain Sistem', '198610122018052001', 'Fahrurrozi Lubis B.IT., M.Sc.IT', '198001102008011010', 'Muhammad Anggia Muchtar ST., MMIT.', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(4, '171402004', 'Jisung Park', 'Perancangan Animasi 3 Dimensi Alur Pengurusan Administrasi Pasien Umum dan Jaminan di Bagian Rehabilitasi Medik RSUP Prof. DR. R. D. Kandou Manado', 'Animasi', '198302262010122003', 'Sarah Purnamawati ST., MSc.', '197908312009121002', 'Dedy Arisandi ST., M.Kom. ', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(5, '171402005', 'Jaemin Na', 'Pemanfaatan Virtual Tour Sebagai Interaksi Manusia dan Komputer', 'Interaksi Manusia dan Komputer', '198510272017061001', 'Ainul Hizriadi S.Kom, M.Sc ', '198610122018052001', 'Fahrurrozi Lubis B.IT., M.Sc.IT', NULL, NULL),
(6, '171402006', 'Renjun Huang', 'Rancang Bangun Aplikasi Bimbingan Dosen Wali Secara Online', 'Pemrograman', '197908312009121002', 'Dedy Arisandi ST., M.Kom. ', '198603032010121004', 'Romi Fadillah Rahmat B.Comp.Sc., M.Sc.', '2022-06-01 17:00:00', '2022-06-01 17:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `log_penambahan_dosbings`
--
CREATE TABLE `log_penambahan_dosbings` (
`id` int(9) UNSIGNED NOT NULL,
`id_admin` int(9) UNSIGNED NOT NULL,
`nama_admin` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`nim` varchar(9) COLLATE utf8mb4_unicode_ci NOT NULL,
`nip_dosbing1` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`nip_dosbing2` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`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 `log_penambahan_dosbings`
--
INSERT INTO `log_penambahan_dosbings` (`id`, `id_admin`, `nama_admin`, `nim`, `nip_dosbing1`, `nip_dosbing2`, `created_at`, `updated_at`) VALUES
(5, 1, 'Ariana Grande', '171402001', '196108171987011001', '198510272017061001', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(6, 2, 'Olivia Rodrigo', '171402002', '196108171987011001', '198510272017061001', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(7, 3, 'Conan Gray', '171402003', '198610122018052001', '198001102008011010', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(9, 1, 'Ariana Grande', '171402004', '198302262010122003', '197908312009121002', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(10, 2, 'Olivia Rodrigo', '171402005', '198510272017061001', '198610122018052001', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(11, 3, 'Conan Gray', '171402006', '197908312009121002', '198603032010121004', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(12, 1, 'Ariana Grandee', '181402001', '178603032010121006', '198603032010121005', '2022-06-01 18:51:44', '2022-06-01 18:51:44'),
(13, 1, 'Ariana Grandee', '181402004', '178603032010121006', '198603032010121005', '2022-06-01 18:58:27', '2022-06-01 18:58:27'),
(14, 1, 'Ariana Grandee', '181402004', '178603032010121006', '198703032010121004', '2022-06-01 19:30:04', '2022-06-01 19:30:04'),
(15, 1, 'Ariana Grandee', '181402004', '178603032010121006', '198603032010121005', '2022-06-01 19:36:52', '2022-06-01 19:36:52'),
(16, 1, 'Ariana Grandee', '181402001', '198603032010121006', '198903032010121005', '2022-06-02 08:56:36', '2022-06-02 08:56:36'),
(17, 1, 'Ariana Grande', '181402009', '198603032010121005', '198603032010121007', '2022-06-02 14:01:29', '2022-06-02 14:01:29'),
(18, 1, 'Ariana Grande', '181402002', '198604032010121004', '198703032010121004', '2022-06-02 16:06:43', '2022-06-02 16:06:43'),
(19, 1, 'Ariana Grande', '181402002', '198707012018052001', '198603032010121009', '2022-06-02 16:32:54', '2022-06-02 16:32:54'),
(20, 1, 'Ariana Grande', '181402007', '198703032010121004', '198703032010121003', '2022-06-02 16:57:29', '2022-06-02 16:57:29'),
(21, 5, 'Casey Luong', '181402002', '198603032010121006', '198903032010121005', '2022-06-03 02:38:09', '2022-06-03 02:38:09'),
(22, 1, 'Ariana Grande', '181402003', '198603032010121009', '198604032010121004', '2022-06-04 15:49:22', '2022-06-04 15:49:22'),
(23, 1, 'Ariana Grande', '181402005', '198610122018052001', '198603032010121004', '2022-06-18 13:54:55', '2022-06-18 13:54:55'),
(24, 1, 'Ariana Grande', '181402005', '198510272017061001', '198407072015041001', '2022-06-18 14:19:41', '2022-06-18 14:19:41');
--
-- Triggers `log_penambahan_dosbings`
--
DELIMITER $$
CREATE TRIGGER `dont_delete_log_penambahan_dosbing` BEFORE DELETE ON `log_penambahan_dosbings` FOR EACH ROW BEGIN
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Data log tidak dapat dihapus!";
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `log_pendaftaran_skripsis`
--
CREATE TABLE `log_pendaftaran_skripsis` (
`id` int(9) UNSIGNED NOT NULL,
`id_user` int(9) NOT NULL,
`nama_pendaftar` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`nim` varchar(9) COLLATE utf8mb4_unicode_ci NOT NULL,
`judul_skripsi` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
`registered_by` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`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 `log_pendaftaran_skripsis`
--
INSERT INTO `log_pendaftaran_skripsis` (`id`, `id_user`, `nama_pendaftar`, `nim`, `judul_skripsi`, `registered_by`, `created_at`, `updated_at`) VALUES
(4, 21, 'Ariana Grande', '171402001', 'Pengembangan Bahan Ajar Pengantar Teknologi Informasi Berbasis Contextual Teaching and Learning di Jurusan Teknik Elektro Universitas Negeri Malang', 'admin', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(5, 22, 'Olivia Rodrigo', '171402002', 'Rancang Bangun Game 2d Shooter Pltformer Menggunakan Metode Finite State Machine', 'admin', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(6, 23, 'Conan Gray', '171402003', 'Analisa Perancangan Sistem Pendukung Keputusan Admisi Siswa Baru Menggunakan Analytical Hierarcy Process di SMA Negeri II Manado', 'admin', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(7, 7, 'Jisung Park', '171402004', 'Perancangan Animasi 3 Dimensi Alur Pengurusan Administrasi Pasien Umum dan Jaminan di Bagian Rehabilitasi Medik RSUP Prof. DR. R. D. Kandou Manado', 'mahasiswa', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(8, 8, 'Jaemin Na', '171402005', 'Pemanfaatan Virtual Tour Sebagai Interaksi Manusia dan Komputer', 'mahasiswa', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(9, 9, 'Renjun Huang', '171402006', 'Rancang Bangun Aplikasi Bimbingan Dosen Wali Secara Online', 'mahasiswa', '2022-06-01 17:00:00', '2022-06-01 17:00:00'),
(10, 21, 'Ariana Grandee', '181402004', 'Sistem Penunjang Keputusan Pencarian Jarak Terpendek Menuju Rumah Sakit Dan Puskesmas Dengan Metode Dijkstra', 'admin', '2022-06-01 19:37:44', '2022-06-01 19:37:44'),
(11, 21, 'Ariana Grandee', '181402001', 'Analisis Perbandingan Framework Codeigniter Dan Framework Laravel (Studi Kasus Inventaris Hmj Ti Stmik Akakom Yogyakarta)', 'admin', '2022-06-02 09:04:21', '2022-06-02 09:04:21'),
(12, 21, 'Ariana Grande', '181402009', 'Analisis Perbandingan Framework Codeigniter Dan Framework Laravel (Studi Kasus Inventaris Ti Stmik Akakom Yogyakarta)', 'admin', '2022-06-02 14:02:12', '2022-06-02 14:02:12'),
(13, 21, 'Ariana Grande', '181402009', 'Sistem Pendukung Keputusan Penilaian Kesehatan Tanah Dengan Metode Simple Additive Weighting', 'admin', '2022-06-02 16:39:51', '2022-06-02 16:39:51'),
(14, 21, 'Ariana Grande', '181402007', 'Perancangan Sistem Informasi Manajemen Rumah Sakit Berbasis Mobile', 'admin', '2022-06-02 16:57:58', '2022-06-02 16:57:58'),
(15, 25, 'Casey Luong', '181402002', 'Perancangan Sistem Informasi Manajemen Rumah Sakit Umum Sidikalang', 'admin', '2022-06-03 02:38:53', '2022-06-03 02:38:53'),
(16, 21, 'Ariana Grande', '181402001', 'Analisis Perbandingan Framework Codeigniter Dan Framework Laravel (Studi Kasus Inventaris Hmj Ti Stmik Akakom Yogyakarta)', 'admin', '2022-06-07 15:36:48', '2022-06-07 15:36:48'),
(17, 21, 'Ariana Grande', '181402001', 'Analisis Perbandingan Framework Codeigniter Dan Framework Laravel (Studi Kasus Inventaris Hmj Ti Stm)', 'admin', '2022-06-07 15:37:31', '2022-06-07 15:37:31'),
(18, 21, 'Ariana Grande', '181402001', 'Analisis Perbandingan Framework Codeigniter Dan Framework Laravel (Studi Kasus Inventaris Hmj Ti Stmik Akakom Yogyakarta)', 'admin', '2022-06-07 15:38:39', '2022-06-07 15:38:39'),
(19, 21, 'Ariana Grande', '181402007', 'Perancangan Sistem Informasi Manajemen Rumah Sakit Berbasis Web Dinamis', 'admin', '2022-06-14 00:49:56', '2022-06-14 00:49:56'),
(20, 21, 'Ariana Grande', '181402007', 'Perancangan Sistem Informasi Manajemen Rumah Sakit', 'admin', '2022-06-17 12:48:42', '2022-06-17 12:48:42'),
(21, 4, 'Rael Kertia', '181402005', 'Perancangan Sistem Informasi Manajemen Klinik Light House Berbasis Web', 'mahasiswa', '2022-06-18 14:07:01', '2022-06-18 14:07:01'),
(22, 21, 'Ariana Grande', '181402005', 'Perancangan Sistem Informasi Manajemen Klinik Light House Berbasis Web', 'admin', '2022-06-18 14:20:13', '2022-06-18 14:20:13'),
(23, 1, 'Annelis Mellema', '181402001', 'Perancangan Sistem Informasi Manajemen Rumah Sakit Umum Jonggol', 'mahasiswa', '2022-06-29 04:19:17', '2022-06-29 04:19:17'),
(24, 21, 'Ariana Grande', '181402002', 'Perancangan Sistem Informasi Manajemen Klinik Light House', 'admin', '2022-06-29 06:33:26', '2022-06-29 06:33:26'),
(25, 21, 'Ariana Grande', '181402002', 'Perancangan Sistem Informasi Manajemen Klinik Light House', 'admin', '2022-06-29 06:33:50', '2022-06-29 06:33:50'),
(26, 33, 'Anneliese Mitchel', '181402002', 'Perancangan Sistem Informasi Manajemen Z Library Berbasis Web', 'mahasiswa', '2022-06-29 06:41:39', '2022-06-29 06:41:39'),
(27, 33, 'Anneliese Mitchel', '181402002', 'Perancangan Sistem Informasi Manajemen Z Library', 'mahasiswa', '2022-06-29 06:59:05', '2022-06-29 06:59:05'),
(28, 33, 'Anneliese Mitchel', '181402002', 'Perancangan Sistem Informasi Manajemen Z Library', 'mahasiswa', '2022-06-29 06:59:39', '2022-06-29 06:59:39');
--
-- Triggers `log_pendaftaran_skripsis`
--
DELIMITER $$
CREATE TRIGGER `dont_delete_log_pendaftaran_skripsi` BEFORE DELETE ON `log_pendaftaran_skripsis` FOR EACH ROW BEGIN
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Data log tidak dapat dihapus!";
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `log_penghapusan_dosbings`
--
CREATE TABLE `log_penghapusan_dosbings` (
`id` int(9) UNSIGNED NOT NULL,
`id_admin` int(9) UNSIGNED NOT NULL,
`nama_admin` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`nim` varchar(9) COLLATE utf8mb4_unicode_ci NOT NULL,
`nip_dosbing1` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`nip_dosbing2` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`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 `log_penghapusan_dosbings`
--
INSERT INTO `log_penghapusan_dosbings` (`id`, `id_admin`, `nama_admin`, `nim`, `nip_dosbing1`, `nip_dosbing2`, `created_at`, `updated_at`) VALUES
(1, 1, 'Ariana Grande', '161402002', '195912311998021001', '198707012018052001', '2022-05-30 15:13:46', '2022-05-30 15:13:46'),
(2, 1, 'Ariana Grandee', '181402001', '178603032010121006', '198603032010121005', '2022-06-01 18:53:03', '2022-06-01 18:53:03'),
(3, 1, 'Ariana Grandee', '181402004', '178603032010121006', '198603032010121005', '2022-06-01 18:59:26', '2022-06-01 18:59:26'),
(4, 1, 'Ariana Grandee', '181402004', '178603032010121006', '198703032010121004', '2022-06-01 19:33:17', '2022-06-01 19:33:17'),
(5, 1, 'Ariana Grande', '181402002', '198604032010121004', '198703032010121004', '2022-06-02 16:06:57', '2022-06-02 16:06:57'),
(6, 1, 'Ariana Grande', '181402002', '198707012018052001', '198610122018052001', '2022-06-02 16:34:33', '2022-06-02 16:34:33'),
(7, 1, 'Ariana Grande', '181402003', '198610122018052001', '198604032010121004', '2022-06-04 15:49:40', '2022-06-04 15:49:40'),
(8, 1, 'Ariana Grande', '181402005', '198610122018052001', '198603032010121004', '2022-06-18 14:11:38', '2022-06-18 14:11:38');
--
-- Triggers `log_penghapusan_dosbings`
--
DELIMITER $$
CREATE TRIGGER `dont_delete_log_penghapusan_dosbing` BEFORE DELETE ON `log_penghapusan_dosbings` FOR EACH ROW BEGIN
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Data log tidak dapat dihapus!";
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `log_penghapusan_skripsis`
--
CREATE TABLE `log_penghapusan_skripsis` (
`id` int(9) UNSIGNED NOT NULL,
`id_admin` int(9) UNSIGNED NOT NULL,
`nama_admin` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`nim` varchar(9) COLLATE utf8mb4_unicode_ci NOT NULL,
`judul_skripsi` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
`bidang_ilmu` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`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 `log_penghapusan_skripsis`
--
INSERT INTO `log_penghapusan_skripsis` (`id`, `id_admin`, `nama_admin`, `nim`, `judul_skripsi`, `bidang_ilmu`, `created_at`, `updated_at`) VALUES
(1, 1, 'Ariana Grande', '161402002', 'Perancangan Sistem Informasi Manajemen Rumah Sakit Berbasis Android', 'Pemrograman Mobile', '2022-05-30 16:42:57', '2022-05-30 16:42:57'),
(2, 1, 'Ariana Grande', '181402009', 'Analisis Perbandingan Framework Codeigniter Dan Framework Laravel (Studi Kasus Inventaris Ti Stmik Akakom Yogyakarta)', 'Pemrograman Web', '2022-06-02 16:35:12', '2022-06-02 16:35:12'),
(3, 1, 'Ariana Grande', '181402009', 'Analisis Perbandingan Framework Codeigniter Dan Framework Laravel (Studi Kasus Inventaris Ti Stmik Akakom Yogyakarta)', 'Pemrograman Web', '2022-06-02 16:35:56', '2022-06-02 16:35:56'),
(4, 1, 'Ariana Grande', '181402001', 'Analisis Perbandingan Framework Codeigniter Dan Framework Laravel (Studi Kasus Inventaris Hmj Ti Stm', 'Pemrograman Web', '2022-06-07 15:33:07', '2022-06-07 15:33:07'),
(5, 1, 'Ariana Grande', '181402001', 'Analisis Perbandingan Framework Codeigniter Dan Framework Laravel (Studi Kasus Inventaris Hmj Ti Stmik Akakom Yogyakarta)', 'Pemrograman Web', '2022-06-07 15:38:28', '2022-06-07 15:38:28'),
(6, 1, 'Ariana Grande', '181402007', 'Perancangan Sistem Informasi Manajemen Rumah Sakit Berbasis Mobile', 'Pemrograman Mobile', '2022-06-14 00:30:11', '2022-06-14 00:30:11'),
(7, 1, 'Ariana Grande', '181402007', 'Perancangan Sistem Informasi Manajemen Rumah Sakit Berbasis Web Dinamis', 'Pemrograman Web', '2022-06-14 00:52:17', '2022-06-14 00:52:17'),
(8, 1, 'Ariana Grande', '181402005', 'Perancangan Sistem Informasi Manajemen Klinik Light House Berbasis Web', 'Animasi', '2022-06-18 14:11:27', '2022-06-18 14:11:27'),
(9, 1, 'Ariana Grande', '181402002', 'Perancangan Sistem Informasi Manajemen Rumah Sakit Umum Sidikalang', 'Pemrograman web', '2022-06-18 14:21:17', '2022-06-18 14:21:17'),
(10, 1, 'Ariana Grande', '181402001', 'Analisis Pengunaan Framework Laravel (Studi Kasus Inventaris Hmj Ti Stmik Akakom Yogyakarta)', 'Pemrograman Web', '2022-06-29 04:18:48', '2022-06-29 04:18:48'),
(11, 1, 'Ariana Grande', '181402002', 'Perancangan Sistem Informasi Manajemen Klinik Light House', 'Analisis dan Desain Sistem', '2022-06-29 06:34:51', '2022-06-29 06:34:51'),
(12, 1, 'Ariana Grande', '181402002', 'Perancangan Sistem Informasi Manajemen Z Library Berbasis Web', 'Animasi', '2022-06-29 06:58:31', '2022-06-29 06:58:31');
--
-- Triggers `log_penghapusan_skripsis`
--
DELIMITER $$
CREATE TRIGGER `dont_delete_log_penghapusan_skripsi` BEFORE DELETE ON `log_penghapusan_skripsis` FOR EACH ROW BEGIN
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "Data log tidak dapat dihapus!";
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `log_pengubahan_dosbings`
--
CREATE TABLE `log_pengubahan_dosbings` (
`id` int(9) UNSIGNED NOT NULL,
`id_admin` int(9) UNSIGNED NOT NULL,
`nama_admin` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`nim` varchar(9) COLLATE utf8mb4_unicode_ci NOT NULL,
`old_nip_dosbing1` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`new_nip_dosbing1` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`old_nip_dosbing2` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`new_nip_dosbing2` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
`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 `log_pengubahan_dosbings`
--