CREATE TABLE `worksheetfields` (
  `ID` int(11) NOT NULL,
  `Field_id` int(11) DEFAULT NULL,
  `CreateBy` int(11) DEFAULT NULL,
  `CreateDate` datetime DEFAULT NULL,
  `CreateTerminal` varchar(100) DEFAULT NULL,
  `UpdateBy` int(11) DEFAULT NULL,
  `UpdateDate` datetime DEFAULT NULL,
  `UpdateTerminal` varchar(100) DEFAULT NULL,
  `Worksheet_id` int(11) DEFAULT NULL,
  `IsAkuisisi` bit(1) DEFAULT b'0',
  `ISDEPOSIT` bit(1) DEFAULT b'0',
  `ISDETAILKOLEKSI_PENGOLAHAN` bit(1) DEFAULT b'0',
  `ISDETAILKOLEKSI_AKUISISI` bit(1) DEFAULT b'0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data untuk tabel `worksheetfields`
--

INSERT INTO `worksheetfields` (`ID`, `Field_id`, `CreateBy`, `CreateDate`, `CreateTerminal`, `UpdateBy`, `UpdateDate`, `UpdateTerminal`, `Worksheet_id`, `IsAkuisisi`, `ISDEPOSIT`, `ISDETAILKOLEKSI_PENGOLAHAN`, `ISDETAILKOLEKSI_AKUISISI`) VALUES
(1, 1, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(2, 3, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(3, 4, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(4, 28, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(5, 29, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(6, 31, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'1', b'0', b'0', b'0'),
(7, 32, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(8, 33, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(9, 36, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(10, 37, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(11, 38, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(12, 39, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(13, 45, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'1', b'0', b'0', b'0'),
(14, 46, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'1', b'0', b'0', b'0'),
(15, 51, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'1', b'0', b'0', b'0'),
(16, 54, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(17, 58, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(18, 60, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(19, 70, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(20, 72, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(21, 79, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(22, 80, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', 1, b'0', b'0', b'0', b'0'),
(48, NULL, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, b'0', b'0', b'0', b'0'),
(68, NULL, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, b'0', b'0', b'0', b'0'),
(114, 1, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'0', b'0', b'0', b'0'),
(115, 3, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'0', b'0', b'0', b'0'),
(116, 4, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'0', b'0', b'0', b'0'),
(117, 28, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'0', b'0', b'0', b'0'),
(118, 29, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'0', b'0', b'0', b'0'),
(119, 32, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'0', b'0', b'0', b'0'),
(120, 33, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'0', b'0', b'0', b'0'),
(121, 38, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'0', b'0', b'0', b'0'),
(122, 45, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'1', b'0', b'0', b'0'),
(123, 51, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'1', b'0', b'0', b'0'),
(124, 54, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'0', b'0', b'0', b'0'),
(125, 60, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'0', b'0', b'0', b'0'),
(127, 70, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'0', b'0', b'0', b'0'),
(129, 79, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'0', b'0', b'0', b'0'),
(130, 80, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 6, b'0', b'0', b'0', b'0'),
(131, 1, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(132, 3, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(133, 4, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(134, 28, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(135, 29, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(136, 32, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(137, 33, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(138, 36, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(139, 45, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'1', b'0', b'0', b'0'),
(140, 51, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'1', b'0', b'0', b'0'),
(141, 54, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'1', b'0', b'0', b'0'),
(142, 60, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(143, 102, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(144, 104, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(145, 70, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(146, 72, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(147, 79, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(148, 80, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 7, b'0', b'0', b'0', b'0'),
(166, 1, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'0', b'0', b'0', b'0'),
(167, 3, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'0', b'0', b'0', b'0'),
(168, 4, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'0', b'0', b'0', b'0'),
(169, 28, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'0', b'0', b'0', b'0'),
(170, 29, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'0', b'0', b'0', b'0'),
(171, 32, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'0', b'0', b'0', b'0'),
(172, 33, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'0', b'0', b'0', b'0'),
(173, 38, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'0', b'0', b'0', b'0'),
(174, 39, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'0', b'0', b'0', b'0'),
(175, 45, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'1', b'0', b'0', b'0'),
(176, 54, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'1', b'0', b'0', b'0'),
(177, 60, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'0', b'0', b'0', b'0'),
(178, 16, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'0', b'0', b'0', b'0'),
(179, 66, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'0', b'0', b'0', b'0'),
(180, 80, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 9, b'0', b'0', b'0', b'0'),
(181, 1, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(182, 3, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(183, 4, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(184, 28, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(185, 29, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(186, 32, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(187, 33, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(188, 36, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(189, 38, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(190, 45, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'1', b'0', b'0', b'0'),
(191, 51, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'1', b'0', b'0', b'0'),
(192, 54, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(193, 60, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(194, 70, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(195, 79, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(196, 80, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2012-09-12 13:54:52', 'DeniPC', 10, b'0', b'0', b'0', b'0'),
(197, 1, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'0', b'0', b'0', b'0'),
(198, 3, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'0', b'0', b'0', b'0'),
(199, 4, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'0', b'0', b'0', b'0'),
(200, 28, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'0', b'0', b'0', b'0'),
(201, 29, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'0', b'0', b'0', b'0'),
(202, 33, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'0', b'0', b'0', b'0'),
(203, 38, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'0', b'0', b'0', b'0'),
(204, 45, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'1', b'0', b'0', b'0'),
(205, 51, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'1', b'0', b'0', b'0'),
(206, 54, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'1', b'0', b'0', b'0'),
(207, 60, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'0', b'0', b'0', b'0'),
(208, 70, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'0', b'0', b'0', b'0'),
(209, 71, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'0', b'0', b'0', b'0'),
(210, 73, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'0', b'0', b'0', b'0'),
(211, 79, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'0', b'0', b'0', b'0'),
(212, 80, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2012-09-12 13:54:53', 'DeniPC', 11, b'0', b'0', b'0', b'0'),
(252, 1, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(253, 2, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(254, 3, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(255, 4, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(256, 28, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(257, 29, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(258, 32, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(259, 33, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(260, 36, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(261, 38, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(262, 45, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'1', b'0', b'0', b'0'),
(263, 51, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'1', b'0', b'0', b'0'),
(264, 54, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'1', b'0', b'0', b'0'),
(265, 60, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(266, 70, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(267, 79, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(268, 80, NULL, NULL, NULL, NULL, '2012-10-28 03:55:08', '::1', 8, b'0', b'0', b'0', b'0'),
(269, 1, NULL, NULL, NULL, NULL, '2012-10-28 16:55:04', '::1', 12, b'0', b'0', b'0', b'0'),
(270, 3, NULL, NULL, NULL, NULL, '2012-10-28 16:55:04', '::1', 12, b'0', b'0', b'0', b'0'),
(271, 4, NULL, NULL, NULL, NULL, '2012-10-28 16:55:04', '::1', 12, b'0', b'0', b'0', b'0'),
(272, 28, NULL, NULL, NULL, NULL, '2012-10-28 16:55:04', '::1', 12, b'0', b'0', b'0', b'0'),
(273, 29, NULL, NULL, NULL, NULL, '2012-10-28 16:55:04', '::1', 12, b'0', b'0', b'0', b'0'),
(274, 31, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'1', b'0', b'0', b'0'),
(275, 32, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'0', b'0', b'0', b'0'),
(276, 33, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'0', b'0', b'0', b'0'),
(277, 36, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'0', b'0', b'0', b'0'),
(278, 37, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'0', b'0', b'0', b'0'),
(279, 38, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'0', b'0', b'0', b'0'),
(280, 39, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'1', b'0', b'0', b'0'),
(281, 45, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'1', b'0', b'0', b'0'),
(282, 46, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'1', b'0', b'0', b'0'),
(283, 51, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'1', b'0', b'0', b'0'),
(284, 54, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'1', b'0', b'0', b'0'),
(285, 58, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'0', b'0', b'0', b'0'),
(286, 60, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'0', b'0', b'0', b'0'),
(287, 70, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'0', b'0', b'0', b'0'),
(288, 72, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'0', b'0', b'0', b'0'),
(289, 79, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'0', b'0', b'0', b'0'),
(290, 80, NULL, NULL, NULL, NULL, '2012-10-28 16:55:05', '::1', 12, b'0', b'0', b'0', b'0'),
(362, 34, NULL, NULL, NULL, NULL, '2015-08-15 04:18:22', '::1', 1, b'0', b'0', b'0', b'0'),
(363, 35, NULL, NULL, NULL, NULL, '2015-08-15 04:18:22', '::1', 1, b'0', b'0', b'0', b'0'),
(364, 40, NULL, NULL, NULL, NULL, '2015-08-15 04:18:22', '::1', 1, b'0', b'0', b'0', b'0'),
(365, 41, NULL, NULL, NULL, NULL, '2015-08-15 04:18:22', '::1', 1, b'0', b'0', b'0', b'0'),
(366, 5, NULL, NULL, NULL, NULL, '2015-08-15 04:18:22', '::1', 1, b'0', b'0', b'0', b'0'),
(367, 42, NULL, NULL, NULL, NULL, '2015-08-15 04:18:22', '::1', 1, b'0', b'0', b'0', b'0'),
(368, 59, NULL, NULL, NULL, NULL, '2015-08-15 04:18:22', '::1', 1, b'0', b'0', b'0', b'0'),
(369, 61, NULL, NULL, NULL, NULL, '2015-08-15 04:18:22', '::1', 1, b'0', b'0', b'0', b'0'),
(370, 62, NULL, NULL, NULL, NULL, '2015-08-15 04:18:22', '::1', 1, b'0', b'0', b'0', b'0'),
(371, 63, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(372, 64, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(373, 65, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(374, 66, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(375, 67, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(376, 68, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(377, 69, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(378, 71, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(379, 73, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(380, 23, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(381, 74, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(382, 75, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(383, 76, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(384, 77, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(385, 78, NULL, NULL, NULL, NULL, '2015-08-15 04:18:23', '::1', 1, b'0', b'0', b'0', b'0'),
(456, 36, NULL, NULL, NULL, NULL, '2015-08-15 04:50:54', '::1', 6, b'0', b'0', b'0', b'0'),
(457, 37, NULL, NULL, NULL, NULL, '2015-08-15 04:50:54', '::1', 6, b'0', b'0', b'0', b'0'),
(458, 39, NULL, NULL, NULL, NULL, '2015-08-15 04:50:54', '::1', 6, b'0', b'0', b'0', b'0'),
(459, 40, NULL, NULL, NULL, NULL, '2015-08-15 04:50:54', '::1', 6, b'1', b'0', b'0', b'0'),
(460, 41, NULL, NULL, NULL, NULL, '2015-08-15 04:50:54', '::1', 6, b'0', b'0', b'0', b'0'),
(461, 46, NULL, NULL, NULL, NULL, '2015-08-15 04:50:54', '::1', 6, b'1', b'0', b'0', b'0'),
(462, 113, NULL, NULL, NULL, NULL, '2015-08-15 04:50:54', '::1', 6, b'0', b'0', b'0', b'0'),
(463, 66, NULL, NULL, NULL, NULL, '2015-08-15 04:50:54', '::1', 6, b'0', b'0', b'0', b'0'),
(464, 67, NULL, NULL, NULL, NULL, '2015-08-15 04:50:54', '::1', 6, b'0', b'0', b'0', b'0'),
(465, 128, NULL, NULL, NULL, NULL, '2015-08-15 04:50:54', '::1', 6, b'0', b'0', b'0', b'0'),
(466, 78, NULL, NULL, NULL, NULL, '2015-08-15 04:50:54', '::1', 6, b'0', b'0', b'0', b'0'),
(467, 19, NULL, NULL, NULL, NULL, '2015-08-15 04:50:54', '::1', 6, b'0', b'0', b'0', b'0'),
(468, 31, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'1', b'0', b'0', b'0'),
(469, 88, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(470, 34, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(471, 35, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(472, 37, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(473, 26, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(474, 63, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(475, 109, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(476, 64, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(477, 65, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(478, 66, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(479, 67, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(480, 68, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(481, 71, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(482, 73, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(483, 74, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(484, 24, NULL, NULL, NULL, NULL, '2015-08-15 04:54:18', '::1', 7, b'0', b'0', b'0', b'0'),
(485, 84, NULL, NULL, NULL, NULL, '2015-08-15 05:20:38', '::1', 8, b'1', b'0', b'0', b'0'),
(486, 34, NULL, NULL, NULL, NULL, '2015-08-15 05:20:38', '::1', 8, b'0', b'0', b'0', b'0'),
(487, 35, NULL, NULL, NULL, NULL, '2015-08-15 05:20:38', '::1', 8, b'0', b'0', b'0', b'0'),
(488, 96, NULL, NULL, NULL, NULL, '2015-08-15 05:20:38', '::1', 8, b'0', b'0', b'0', b'0'),
(489, 37, NULL, NULL, NULL, NULL, '2015-08-15 05:20:38', '::1', 8, b'0', b'0', b'0', b'0'),
(490, 39, NULL, NULL, NULL, NULL, '2015-08-15 05:20:38', '::1', 8, b'0', b'0', b'0', b'0'),
(491, 40, NULL, NULL, NULL, NULL, '2015-08-15 05:20:38', '::1', 8, b'0', b'0', b'0', b'0'),
(492, 41, NULL, NULL, NULL, NULL, '2015-08-15 05:20:38', '::1', 8, b'0', b'0', b'0', b'0'),
(493, 20, NULL, NULL, NULL, NULL, '2015-08-15 05:20:38', '::1', 8, b'0', b'0', b'0', b'0'),
(494, 72, NULL, NULL, NULL, NULL, '2015-08-15 05:20:38', '::1', 8, b'0', b'0', b'0', b'0'),
(495, 73, NULL, NULL, NULL, NULL, '2015-08-15 05:20:38', '::1', 8, b'0', b'0', b'0', b'0'),
(496, 23, NULL, NULL, NULL, NULL, '2015-08-15 05:20:39', '::1', 8, b'0', b'0', b'0', b'0'),
(497, 74, NULL, NULL, NULL, NULL, '2015-08-15 05:20:39', '::1', 8, b'0', b'0', b'0', b'0'),
(498, 19, NULL, NULL, NULL, NULL, '2015-08-15 05:20:39', '::1', 8, b'0', b'0', b'0', b'0'),
(499, 24, NULL, NULL, NULL, NULL, '2015-08-15 05:20:39', '::1', 8, b'0', b'0', b'0', b'0'),
(500, 34, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'0', b'0', b'0', b'0'),
(501, 35, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'0', b'0', b'0', b'0'),
(502, 36, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'0', b'0', b'0', b'0'),
(503, 37, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'0', b'0', b'0', b'0'),
(504, 40, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'1', b'0', b'0', b'0'),
(505, 41, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'0', b'0', b'0', b'0'),
(506, 46, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'1', b'0', b'0', b'0'),
(507, 51, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'1', b'0', b'0', b'0'),
(508, 64, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'0', b'0', b'0', b'0'),
(509, 111, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'0', b'0', b'0', b'0'),
(510, 20, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'0', b'0', b'0', b'0'),
(511, 117, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'0', b'0', b'0', b'0'),
(512, 118, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'0', b'0', b'0', b'0'),
(513, 67, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'0', b'0', b'0', b'0'),
(514, 70, NULL, NULL, NULL, NULL, '2015-08-15 05:23:52', '::1', 9, b'0', b'0', b'0', b'0'),
(515, 71, NULL, NULL, NULL, NULL, '2015-08-15 05:23:53', '::1', 9, b'0', b'0', b'0', b'0'),
(516, 79, NULL, NULL, NULL, NULL, '2015-08-15 05:23:53', '::1', 9, b'0', b'0', b'0', b'0'),
(517, 24, NULL, NULL, NULL, NULL, '2015-08-15 05:23:53', '::1', 9, b'0', b'0', b'0', b'0'),
(518, 87, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'0', b'0', b'0', b'0'),
(519, 34, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'0', b'0', b'0', b'0'),
(520, 93, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'0', b'0', b'0', b'0'),
(521, 95, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'0', b'0', b'0', b'0'),
(522, 96, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'0', b'0', b'0', b'0'),
(523, 37, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'0', b'0', b'0', b'0'),
(524, 39, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'0', b'0', b'0', b'0'),
(525, 40, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'1', b'0', b'0', b'0'),
(526, 41, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'0', b'0', b'0', b'0'),
(527, 42, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'0', b'0', b'0', b'0'),
(528, 46, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'1', b'0', b'0', b'0'),
(529, 50, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'1', b'0', b'0', b'0'),
(530, 58, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'0', b'0', b'0', b'0'),
(531, 63, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'0', b'0', b'0', b'0'),
(532, 16, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'0', b'0', b'0', b'0'),
(533, 104, NULL, NULL, NULL, NULL, '2015-08-15 05:27:28', '::1', 10, b'0', b'0', b'0', b'0'),
(534, 109, NULL, NULL, NULL, NULL, '2015-08-15 05:27:29', '::1', 10, b'0', b'0', b'0', b'0'),
(535, 64, NULL, NULL, NULL, NULL, '2015-08-15 05:27:29', '::1', 10, b'0', b'0', b'0', b'0'),
(536, 72, NULL, NULL, NULL, NULL, '2015-08-15 05:27:29', '::1', 10, b'0', b'0', b'0', b'0'),
(537, 73, NULL, NULL, NULL, NULL, '2015-08-15 05:27:29', '::1', 10, b'0', b'0', b'0', b'0'),
(538, 23, NULL, NULL, NULL, NULL, '2015-08-15 05:27:29', '::1', 10, b'0', b'0', b'0', b'0'),
(539, 19, NULL, NULL, NULL, NULL, '2015-08-15 05:27:29', '::1', 10, b'0', b'0', b'0', b'0'),
(540, 24, NULL, NULL, NULL, NULL, '2015-08-15 05:27:29', '::1', 10, b'0', b'0', b'0', b'0'),
(541, 32, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(542, 35, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(543, 36, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(544, 37, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(545, 39, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(546, 26, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(547, 50, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'1', b'0', b'0', b'0'),
(548, 15, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(549, 64, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(550, 20, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(551, 113, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(552, 116, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(553, 66, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(554, 67, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(555, 72, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(556, 75, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(557, 125, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(558, 18, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(559, 78, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(560, 19, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(561, 24, NULL, NULL, NULL, NULL, '2015-08-15 05:31:13', '::1', 11, b'0', b'0', b'0', b'0'),
(562, 40, NULL, NULL, NULL, NULL, '2015-08-15 05:34:02', '::1', 12, b'1', b'0', b'0', b'0'),
(563, 53, NULL, NULL, NULL, NULL, '2015-08-15 05:34:02', '::1', 12, b'1', b'0', b'0', b'0'),
(564, 11, NULL, NULL, NULL, NULL, '2015-08-15 05:34:02', '::1', 12, b'0', b'0', b'0', b'0'),
(565, 16, NULL, NULL, NULL, NULL, '2015-08-15 05:34:02', '::1', 12, b'0', b'0', b'0', b'0'),
(566, 103, NULL, NULL, NULL, NULL, '2015-08-15 05:34:02', '::1', 12, b'0', b'0', b'0', b'0'),
(567, 64, NULL, NULL, NULL, NULL, '2015-08-15 05:34:02', '::1', 12, b'1', b'0', b'0', b'0'),
(568, 65, NULL, NULL, NULL, NULL, '2015-08-15 05:34:02', '::1', 12, b'0', b'0', b'0', b'0'),
(569, 110, NULL, NULL, NULL, NULL, '2015-08-15 05:34:02', '::1', 12, b'0', b'0', b'0', b'0'),
(570, 20, NULL, NULL, NULL, NULL, '2015-08-15 05:34:02', '::1', 12, b'0', b'0', b'0', b'0'),
(571, 113, NULL, NULL, NULL, NULL, '2015-08-15 05:34:02', '::1', 12, b'0', b'0', b'0', b'0'),
(572, 116, NULL, NULL, NULL, NULL, '2015-08-15 05:34:02', '::1', 12, b'0', b'0', b'0', b'0'),
(573, 138, NULL, NULL, NULL, NULL, '2015-08-15 05:40:08', '::1', 12, b'0', b'0', b'0', b'0'),
(574, 117, NULL, NULL, NULL, NULL, '2015-08-15 05:40:08', '::1', 12, b'0', b'0', b'0', b'0'),
(575, 118, NULL, NULL, NULL, NULL, '2015-08-15 05:40:08', '::1', 12, b'0', b'0', b'0', b'0'),
(576, 120, NULL, NULL, NULL, NULL, '2015-08-15 05:40:08', '::1', 12, b'0', b'0', b'0', b'0'),
(577, 121, NULL, NULL, NULL, NULL, '2015-08-15 05:40:08', '::1', 12, b'0', b'0', b'0', b'0'),
(578, 122, NULL, NULL, NULL, NULL, '2015-08-15 05:40:08', '::1', 12, b'0', b'0', b'0', b'0'),
(579, 123, NULL, NULL, NULL, NULL, '2015-08-15 05:40:08', '::1', 12, b'0', b'0', b'0', b'0'),
(580, 74, NULL, NULL, NULL, NULL, '2015-08-15 05:40:08', '::1', 12, b'0', b'0', b'0', b'0'),
(581, 18, NULL, NULL, NULL, NULL, '2015-08-15 05:40:08', '::1', 12, b'0', b'0', b'0', b'0'),
(582, 22, NULL, NULL, NULL, NULL, '2015-08-15 05:40:08', '::1', 12, b'0', b'0', b'0', b'0'),
(583, 130, NULL, NULL, NULL, NULL, '2015-08-15 05:40:08', '::1', 12, b'0', b'0', b'0', b'0'),
(584, 19, NULL, NULL, NULL, NULL, '2015-08-15 05:40:08', '::1', 12, b'0', b'0', b'0', b'0'),
(585, 1, NULL, NULL, NULL, NULL, '2015-08-15 06:09:41', '::1', 15, b'0', b'0', b'0', b'0'),
(586, 3, NULL, NULL, NULL, NULL, '2015-08-15 06:09:41', '::1', 15, b'0', b'0', b'0', b'0'),
(587, 4, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(588, 28, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(589, 29, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(590, 31, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'1', b'0', b'0', b'0'),
(591, 32, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(592, 33, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(593, 34, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(594, 35, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(595, 36, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(596, 37, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(597, 38, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(598, 39, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'1', b'0', b'0', b'0'),
(599, 40, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'1', b'0', b'0', b'0'),
(600, 41, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(601, 5, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(602, 42, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(603, 45, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'1', b'0', b'0', b'0'),
(604, 46, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'1', b'0', b'0', b'0'),
(605, 51, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'1', b'0', b'0', b'0'),
(606, 54, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'1', b'0', b'0', b'0'),
(607, 58, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(608, 59, NULL, NULL, NULL, NULL, '2015-08-15 06:09:42', '::1', 15, b'0', b'0', b'0', b'0'),
(609, 60, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(610, 61, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(611, 62, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(612, 63, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(613, 64, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'1', b'0', b'0', b'0'),
(614, 65, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(615, 66, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(616, 67, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(617, 68, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(618, 69, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(619, 70, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(620, 71, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(621, 72, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(622, 73, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(623, 23, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(624, 74, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(625, 75, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(626, 76, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(627, 77, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(628, 78, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(629, 79, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(630, 80, NULL, NULL, NULL, NULL, '2015-08-15 06:09:43', '::1', 15, b'0', b'0', b'0', b'0'),
(631, 139, NULL, NULL, NULL, NULL, '2016-04-04 23:39:53', '::1', 1, b'0', b'0', b'0', b'0'),
(636, 139, NULL, NULL, NULL, NULL, '2016-04-04 23:46:12', '::1', 6, b'0', b'0', b'0', b'0'),
(637, 139, NULL, NULL, NULL, NULL, '2016-04-04 23:46:21', '::1', 7, b'0', b'0', b'0', b'0'),
(638, 139, NULL, NULL, NULL, NULL, '2016-04-04 23:46:53', '::1', 8, b'0', b'0', b'0', b'0'),
(639, 139, NULL, NULL, NULL, NULL, '2016-04-04 23:47:01', '::1', 9, b'0', b'0', b'0', b'0'),
(640, 139, NULL, NULL, NULL, NULL, '2016-04-04 23:47:08', '::1', 10, b'0', b'0', b'0', b'0'),
(641, 139, NULL, NULL, NULL, NULL, '2016-04-04 23:47:25', '::1', 11, b'0', b'0', b'0', b'0'),
(642, 139, NULL, NULL, NULL, NULL, '2016-04-04 23:47:32', '::1', 12, b'0', b'0', b'0', b'0'),
(644, 139, NULL, NULL, NULL, NULL, '2016-04-04 23:47:50', '::1', 15, b'0', b'0', b'0', b'0'),
(645, 140, NULL, NULL, NULL, NULL, '2016-04-05 03:32:42', '::1', 1, b'0', b'0', b'0', b'0'),
(646, 141, NULL, NULL, NULL, NULL, '2016-04-05 03:32:42', '::1', 1, b'0', b'0', b'0', b'0'),
(647, 142, NULL, NULL, NULL, NULL, '2016-04-05 03:32:42', '::1', 1, b'0', b'0', b'0', b'0'),
(949, 1, NULL, '2016-05-20 13:51:21', '192.168.0.1', NULL, '2016-05-20 13:51:21', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(950, 3, NULL, '2016-05-20 13:51:21', '192.168.0.1', NULL, '2016-05-20 13:51:21', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(951, 4, NULL, '2016-05-20 13:51:21', '192.168.0.1', NULL, '2016-05-20 13:51:21', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(952, 28, NULL, '2016-05-20 13:51:21', '192.168.0.1', NULL, '2016-05-20 13:51:21', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(953, 29, NULL, '2016-05-20 13:51:22', '192.168.0.1', NULL, '2016-05-20 13:51:22', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(954, 6, NULL, '2016-05-20 13:51:22', '192.168.0.1', NULL, '2016-05-20 13:51:22', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(955, 32, NULL, '2016-05-20 13:51:22', '192.168.0.1', NULL, '2016-05-20 13:51:22', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(956, 33, NULL, '2016-05-20 13:51:22', '192.168.0.1', NULL, '2016-05-20 13:51:22', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(957, 36, NULL, '2016-05-20 13:51:22', '192.168.0.1', NULL, '2016-05-20 13:51:22', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(958, 38, NULL, '2016-05-20 13:51:22', '192.168.0.1', NULL, '2016-05-20 13:51:22', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(959, 7, NULL, '2016-05-20 13:51:22', '192.168.0.1', NULL, '2016-05-20 13:51:22', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(960, 45, NULL, '2016-05-20 13:51:22', '192.168.0.1', NULL, '2016-05-20 13:51:22', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(961, 51, NULL, '2016-05-20 13:51:22', '192.168.0.1', NULL, '2016-05-20 13:51:22', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(962, 54, NULL, '2016-05-20 13:51:22', '192.168.0.1', NULL, '2016-05-20 13:51:22', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(963, 9, NULL, '2016-05-20 13:51:22', '192.168.0.1', NULL, '2016-05-20 13:51:22', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(964, 15, NULL, '2016-05-20 13:51:22', '192.168.0.1', NULL, '2016-05-20 13:51:22', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(965, 60, NULL, '2016-05-20 13:51:23', '192.168.0.1', NULL, '2016-05-20 13:51:23', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(966, 70, NULL, '2016-05-20 13:51:23', '192.168.0.1', NULL, '2016-05-20 13:51:23', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(967, 80, NULL, '2016-05-20 13:51:23', '192.168.0.1', NULL, '2016-05-20 13:51:23', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(968, 34, NULL, '2016-05-20 13:51:23', '192.168.0.1', NULL, '2016-05-20 13:51:23', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(969, 37, NULL, '2016-05-20 13:51:23', '192.168.0.1', NULL, '2016-05-20 13:51:23', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(970, 5, NULL, '2016-05-20 13:51:23', '192.168.0.1', NULL, '2016-05-20 13:51:23', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(971, 8, NULL, '2016-05-20 13:51:23', '192.168.0.1', NULL, '2016-05-20 13:51:23', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(972, 26, NULL, '2016-05-20 13:51:23', '192.168.0.1', NULL, '2016-05-20 13:51:23', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(973, 27, NULL, '2016-05-20 13:51:23', '192.168.0.1', NULL, '2016-05-20 13:51:23', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(974, 46, NULL, '2016-05-20 13:51:23', '192.168.0.1', NULL, '2016-05-20 13:51:23', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(975, 10, NULL, '2016-05-20 13:51:24', '192.168.0.1', NULL, '2016-05-20 13:51:24', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(976, 59, NULL, '2016-05-20 13:51:24', '192.168.0.1', NULL, '2016-05-20 13:51:24', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(977, 63, NULL, '2016-05-20 13:51:24', '192.168.0.1', NULL, '2016-05-20 13:51:24', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(978, 112, NULL, '2016-05-20 13:51:24', '192.168.0.1', NULL, '2016-05-20 13:51:24', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(979, 120, NULL, '2016-05-20 13:51:24', '192.168.0.1', NULL, '2016-05-20 13:51:24', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(980, 136, NULL, '2016-05-20 13:51:24', '192.168.0.1', NULL, '2016-05-20 13:51:24', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(981, 71, NULL, '2016-05-20 13:51:24', '192.168.0.1', NULL, '2016-05-20 13:51:24', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(982, 130, NULL, '2016-05-20 13:51:24', '192.168.0.1', NULL, '2016-05-20 13:51:24', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(983, 19, NULL, '2016-05-20 13:51:24', '192.168.0.1', NULL, '2016-05-20 13:51:24', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(984, 137, NULL, '2016-05-20 13:51:24', '192.168.0.1', NULL, '2016-05-20 13:51:24', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(985, 139, NULL, '2016-05-20 13:51:25', '192.168.0.1', NULL, '2016-05-20 13:51:25', '192.168.0.1', 4, b'0', b'0', b'0', b'0'),
(986, 1, NULL, '2016-05-20 13:51:40', '192.168.0.1', NULL, '2016-05-20 13:51:40', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(987, 3, NULL, '2016-05-20 13:51:40', '192.168.0.1', NULL, '2016-05-20 13:51:40', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(988, 4, NULL, '2016-05-20 13:51:40', '192.168.0.1', NULL, '2016-05-20 13:51:40', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(989, 28, NULL, '2016-05-20 13:51:40', '192.168.0.1', NULL, '2016-05-20 13:51:40', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(990, 29, NULL, '2016-05-20 13:51:40', '192.168.0.1', NULL, '2016-05-20 13:51:40', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(991, 31, NULL, '2016-05-20 13:51:40', '192.168.0.1', NULL, '2016-05-20 13:51:40', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(992, 32, NULL, '2016-05-20 13:51:40', '192.168.0.1', NULL, '2016-05-20 13:51:40', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(993, 33, NULL, '2016-05-20 13:51:40', '192.168.0.1', NULL, '2016-05-20 13:51:40', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(994, 36, NULL, '2016-05-20 13:51:40', '192.168.0.1', NULL, '2016-05-20 13:51:40', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(995, 37, NULL, '2016-05-20 13:51:40', '192.168.0.1', NULL, '2016-05-20 13:51:40', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(996, 38, NULL, '2016-05-20 13:51:40', '192.168.0.1', NULL, '2016-05-20 13:51:40', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(997, 39, NULL, '2016-05-20 13:51:41', '192.168.0.1', NULL, '2016-05-20 13:51:41', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(998, 45, NULL, '2016-05-20 13:51:41', '192.168.0.1', NULL, '2016-05-20 13:51:41', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(999, 46, NULL, '2016-05-20 13:51:41', '192.168.0.1', NULL, '2016-05-20 13:51:41', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1000, 51, NULL, '2016-05-20 13:51:41', '192.168.0.1', NULL, '2016-05-20 13:51:41', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1001, 54, NULL, '2016-05-20 13:51:41', '192.168.0.1', NULL, '2016-05-20 13:51:41', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1002, 58, NULL, '2016-05-20 13:51:41', '192.168.0.1', NULL, '2016-05-20 13:51:41', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1003, 60, NULL, '2016-05-20 13:51:41', '192.168.0.1', NULL, '2016-05-20 13:51:41', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1004, 70, NULL, '2016-05-20 13:51:41', '192.168.0.1', NULL, '2016-05-20 13:51:41', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1005, 72, NULL, '2016-05-20 13:51:41', '192.168.0.1', NULL, '2016-05-20 13:51:41', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1006, 79, NULL, '2016-05-20 13:51:41', '192.168.0.1', NULL, '2016-05-20 13:51:41', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1007, 80, NULL, '2016-05-20 13:51:41', '192.168.0.1', NULL, '2016-05-20 13:51:41', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1008, 34, NULL, '2016-05-20 13:51:41', '192.168.0.1', NULL, '2016-05-20 13:51:41', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1009, 35, NULL, '2016-05-20 13:51:42', '192.168.0.1', NULL, '2016-05-20 13:51:42', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1010, 40, NULL, '2016-05-20 13:51:42', '192.168.0.1', NULL, '2016-05-20 13:51:42', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1011, 41, NULL, '2016-05-20 13:51:42', '192.168.0.1', NULL, '2016-05-20 13:51:42', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1012, 5, NULL, '2016-05-20 13:51:42', '192.168.0.1', NULL, '2016-05-20 13:51:42', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1013, 42, NULL, '2016-05-20 13:51:42', '192.168.0.1', NULL, '2016-05-20 13:51:42', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1014, 59, NULL, '2016-05-20 13:51:42', '192.168.0.1', NULL, '2016-05-20 13:51:42', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1015, 61, NULL, '2016-05-20 13:51:42', '192.168.0.1', NULL, '2016-05-20 13:51:42', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1016, 62, NULL, '2016-05-20 13:51:42', '192.168.0.1', NULL, '2016-05-20 13:51:42', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1017, 63, NULL, '2016-05-20 13:51:42', '192.168.0.1', NULL, '2016-05-20 13:51:42', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1018, 64, NULL, '2016-05-20 13:51:43', '192.168.0.1', NULL, '2016-05-20 13:51:43', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1019, 65, NULL, '2016-05-20 13:51:43', '192.168.0.1', NULL, '2016-05-20 13:51:43', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1020, 66, NULL, '2016-05-20 13:51:43', '192.168.0.1', NULL, '2016-05-20 13:51:43', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1021, 67, NULL, '2016-05-20 13:51:43', '192.168.0.1', NULL, '2016-05-20 13:51:43', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1022, 68, NULL, '2016-05-20 13:51:43', '192.168.0.1', NULL, '2016-05-20 13:51:43', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1023, 69, NULL, '2016-05-20 13:51:43', '192.168.0.1', NULL, '2016-05-20 13:51:43', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1024, 71, NULL, '2016-05-20 13:51:43', '192.168.0.1', NULL, '2016-05-20 13:51:43', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1025, 73, NULL, '2016-05-20 13:51:43', '192.168.0.1', NULL, '2016-05-20 13:51:43', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1026, 23, NULL, '2016-05-20 13:51:43', '192.168.0.1', NULL, '2016-05-20 13:51:43', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1027, 74, NULL, '2016-05-20 13:51:43', '192.168.0.1', NULL, '2016-05-20 13:51:43', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1028, 75, NULL, '2016-05-20 13:51:44', '192.168.0.1', NULL, '2016-05-20 13:51:44', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1029, 76, NULL, '2016-05-20 13:51:44', '192.168.0.1', NULL, '2016-05-20 13:51:44', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1030, 77, NULL, '2016-05-20 13:51:44', '192.168.0.1', NULL, '2016-05-20 13:51:44', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1031, 78, NULL, '2016-05-20 13:51:44', '192.168.0.1', NULL, '2016-05-20 13:51:44', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1032, 139, NULL, '2016-05-20 13:51:44', '192.168.0.1', NULL, '2016-05-20 13:51:44', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1033, 140, NULL, '2016-05-20 13:51:44', '192.168.0.1', NULL, '2016-05-20 13:51:44', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1034, 141, NULL, '2016-05-20 13:51:44', '192.168.0.1', NULL, '2016-05-20 13:51:44', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1035, 142, NULL, '2016-05-20 13:51:44', '192.168.0.1', NULL, '2016-05-20 13:51:44', '192.168.0.1', 68, b'0', b'0', b'0', b'0'),
(1036, 1, NULL, '2016-05-24 15:15:48', '192.168.0.1', NULL, '2016-05-24 15:15:48', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1037, 3, NULL, '2016-05-24 15:15:48', '192.168.0.1', NULL, '2016-05-24 15:15:48', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1038, 4, NULL, '2016-05-24 15:15:48', '192.168.0.1', NULL, '2016-05-24 15:15:48', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1039, 28, NULL, '2016-05-24 15:15:48', '192.168.0.1', NULL, '2016-05-24 15:15:48', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1040, 29, NULL, '2016-05-24 15:15:48', '192.168.0.1', NULL, '2016-05-24 15:15:48', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1041, 31, NULL, '2016-05-24 15:15:48', '192.168.0.1', NULL, '2016-05-24 15:15:48', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1042, 32, NULL, '2016-05-24 15:15:48', '192.168.0.1', NULL, '2016-05-24 15:15:48', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1043, 33, NULL, '2016-05-24 15:15:48', '192.168.0.1', NULL, '2016-05-24 15:15:48', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1044, 36, NULL, '2016-05-24 15:15:48', '192.168.0.1', NULL, '2016-05-24 15:15:48', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1045, 37, NULL, '2016-05-24 15:15:48', '192.168.0.1', NULL, '2016-05-24 15:15:48', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1046, 38, NULL, '2016-05-24 15:15:49', '192.168.0.1', NULL, '2016-05-24 15:15:49', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1047, 39, NULL, '2016-05-24 15:15:49', '192.168.0.1', NULL, '2016-05-24 15:15:49', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1048, 45, NULL, '2016-05-24 15:15:49', '192.168.0.1', NULL, '2016-05-24 15:15:49', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1049, 46, NULL, '2016-05-24 15:15:49', '192.168.0.1', NULL, '2016-05-24 15:15:49', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1050, 51, NULL, '2016-05-24 15:15:49', '192.168.0.1', NULL, '2016-05-24 15:15:49', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1051, 54, NULL, '2016-05-24 15:15:49', '192.168.0.1', NULL, '2016-05-24 15:15:49', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1052, 58, NULL, '2016-05-24 15:15:49', '192.168.0.1', NULL, '2016-05-24 15:15:49', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1053, 60, NULL, '2016-05-24 15:15:49', '192.168.0.1', NULL, '2016-05-24 15:15:49', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1054, 70, NULL, '2016-05-24 15:15:49', '192.168.0.1', NULL, '2016-05-24 15:15:49', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1055, 72, NULL, '2016-05-24 15:15:49', '192.168.0.1', NULL, '2016-05-24 15:15:49', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1056, 79, NULL, '2016-05-24 15:15:49', '192.168.0.1', NULL, '2016-05-24 15:15:49', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1057, 80, NULL, '2016-05-24 15:15:50', '192.168.0.1', NULL, '2016-05-24 15:15:50', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1058, 34, NULL, '2016-05-24 15:15:50', '192.168.0.1', NULL, '2016-05-24 15:15:50', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1059, 35, NULL, '2016-05-24 15:15:50', '192.168.0.1', NULL, '2016-05-24 15:15:50', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1060, 40, NULL, '2016-05-24 15:15:50', '192.168.0.1', NULL, '2016-05-24 15:15:50', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1061, 41, NULL, '2016-05-24 15:15:50', '192.168.0.1', NULL, '2016-05-24 15:15:50', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1062, 5, NULL, '2016-05-24 15:15:50', '192.168.0.1', NULL, '2016-05-24 15:15:50', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1063, 42, NULL, '2016-05-24 15:15:50', '192.168.0.1', NULL, '2016-05-24 15:15:50', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1064, 59, NULL, '2016-05-24 15:15:50', '192.168.0.1', NULL, '2016-05-24 15:15:50', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1065, 61, NULL, '2016-05-24 15:15:50', '192.168.0.1', NULL, '2016-05-24 15:15:50', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1066, 62, NULL, '2016-05-24 15:15:50', '192.168.0.1', NULL, '2016-05-24 15:15:50', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1067, 63, NULL, '2016-05-24 15:15:51', '192.168.0.1', NULL, '2016-05-24 15:15:51', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1068, 64, NULL, '2016-05-24 15:15:51', '192.168.0.1', NULL, '2016-05-24 15:15:51', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1069, 65, NULL, '2016-05-24 15:15:51', '192.168.0.1', NULL, '2016-05-24 15:15:51', '192.168.0.1', 69, b'0', b'0', b'0', b'0');
INSERT INTO `worksheetfields` (`ID`, `Field_id`, `CreateBy`, `CreateDate`, `CreateTerminal`, `UpdateBy`, `UpdateDate`, `UpdateTerminal`, `Worksheet_id`, `IsAkuisisi`, `ISDEPOSIT`, `ISDETAILKOLEKSI_PENGOLAHAN`, `ISDETAILKOLEKSI_AKUISISI`) VALUES
(1070, 66, NULL, '2016-05-24 15:15:51', '192.168.0.1', NULL, '2016-05-24 15:15:51', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1071, 67, NULL, '2016-05-24 15:15:51', '192.168.0.1', NULL, '2016-05-24 15:15:51', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1072, 68, NULL, '2016-05-24 15:15:51', '192.168.0.1', NULL, '2016-05-24 15:15:51', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1073, 69, NULL, '2016-05-24 15:15:51', '192.168.0.1', NULL, '2016-05-24 15:15:51', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1074, 71, NULL, '2016-05-24 15:15:51', '192.168.0.1', NULL, '2016-05-24 15:15:51', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1075, 73, NULL, '2016-05-24 15:15:51', '192.168.0.1', NULL, '2016-05-24 15:15:51', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1076, 23, NULL, '2016-05-24 15:15:51', '192.168.0.1', NULL, '2016-05-24 15:15:51', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1077, 74, NULL, '2016-05-24 15:15:51', '192.168.0.1', NULL, '2016-05-24 15:15:51', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1078, 75, NULL, '2016-05-24 15:15:52', '192.168.0.1', NULL, '2016-05-24 15:15:52', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1079, 76, NULL, '2016-05-24 15:15:52', '192.168.0.1', NULL, '2016-05-24 15:15:52', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1080, 77, NULL, '2016-05-24 15:15:52', '192.168.0.1', NULL, '2016-05-24 15:15:52', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1081, 78, NULL, '2016-05-24 15:15:52', '192.168.0.1', NULL, '2016-05-24 15:15:52', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1082, 139, NULL, '2016-05-24 15:15:52', '192.168.0.1', NULL, '2016-05-24 15:15:52', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1083, 140, NULL, '2016-05-24 15:15:52', '192.168.0.1', NULL, '2016-05-24 15:15:52', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1084, 141, NULL, '2016-05-24 15:15:52', '192.168.0.1', NULL, '2016-05-24 15:15:52', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1085, 142, NULL, '2016-05-24 15:15:52', '192.168.0.1', NULL, '2016-05-24 15:15:52', '192.168.0.1', 69, b'0', b'0', b'0', b'0'),
(1086, 1, NULL, '2016-05-25 09:13:49', '192.168.0.1', NULL, '2016-05-25 09:13:49', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1087, 3, NULL, '2016-05-25 09:13:49', '192.168.0.1', NULL, '2016-05-25 09:13:49', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1088, 4, NULL, '2016-05-25 09:13:49', '192.168.0.1', NULL, '2016-05-25 09:13:49', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1089, 28, NULL, '2016-05-25 09:13:49', '192.168.0.1', NULL, '2016-05-25 09:13:49', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1090, 29, NULL, '2016-05-25 09:13:49', '192.168.0.1', NULL, '2016-05-25 09:13:49', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1091, 32, NULL, '2016-05-25 09:13:50', '192.168.0.1', NULL, '2016-05-25 09:13:50', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1092, 33, NULL, '2016-05-25 09:13:50', '192.168.0.1', NULL, '2016-05-25 09:13:50', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1093, 36, NULL, '2016-05-25 09:13:50', '192.168.0.1', NULL, '2016-05-25 09:13:50', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1094, 38, NULL, '2016-05-25 09:13:50', '192.168.0.1', NULL, '2016-05-25 09:13:50', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1095, 45, NULL, '2016-05-25 09:13:50', '192.168.0.1', NULL, '2016-05-25 09:13:50', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1096, 51, NULL, '2016-05-25 09:13:50', '192.168.0.1', NULL, '2016-05-25 09:13:50', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1097, 54, NULL, '2016-05-25 09:13:50', '192.168.0.1', NULL, '2016-05-25 09:13:50', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1098, 9, NULL, '2016-05-25 09:13:50', '192.168.0.1', NULL, '2016-05-25 09:13:50', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1099, 15, NULL, '2016-05-25 09:13:50', '192.168.0.1', NULL, '2016-05-25 09:13:50', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1100, 60, NULL, '2016-05-25 09:13:50', '192.168.0.1', NULL, '2016-05-25 09:13:50', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1101, 21, NULL, '2016-05-25 09:13:51', '192.168.0.1', NULL, '2016-05-25 09:13:51', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1102, 70, NULL, '2016-05-25 09:13:51', '192.168.0.1', NULL, '2016-05-25 09:13:51', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1103, 73, NULL, '2016-05-25 09:13:51', '192.168.0.1', NULL, '2016-05-25 09:13:51', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1104, 79, NULL, '2016-05-25 09:13:51', '192.168.0.1', NULL, '2016-05-25 09:13:51', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1105, 80, NULL, '2016-05-25 09:13:51', '192.168.0.1', NULL, '2016-05-25 09:13:51', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1106, 31, NULL, '2016-05-25 09:13:51', '192.168.0.1', NULL, '2016-05-25 09:13:51', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1107, 6, NULL, '2016-05-25 09:13:51', '192.168.0.1', NULL, '2016-05-25 09:13:51', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1108, 34, NULL, '2016-05-25 09:13:51', '192.168.0.1', NULL, '2016-05-25 09:13:51', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1109, 35, NULL, '2016-05-25 09:13:51', '192.168.0.1', NULL, '2016-05-25 09:13:51', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1110, 37, NULL, '2016-05-25 09:13:51', '192.168.0.1', NULL, '2016-05-25 09:13:51', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1111, 39, NULL, '2016-05-25 09:13:52', '192.168.0.1', NULL, '2016-05-25 09:13:52', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1112, 40, NULL, '2016-05-25 09:13:52', '192.168.0.1', NULL, '2016-05-25 09:13:52', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1113, 41, NULL, '2016-05-25 09:13:52', '192.168.0.1', NULL, '2016-05-25 09:13:52', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1114, 5, NULL, '2016-05-25 09:13:52', '192.168.0.1', NULL, '2016-05-25 09:13:52', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1115, 7, NULL, '2016-05-25 09:13:52', '192.168.0.1', NULL, '2016-05-25 09:13:52', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1116, 8, NULL, '2016-05-25 09:13:52', '192.168.0.1', NULL, '2016-05-25 09:13:52', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1117, 26, NULL, '2016-05-25 09:13:52', '192.168.0.1', NULL, '2016-05-25 09:13:52', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1118, 46, NULL, '2016-05-25 09:13:52', '192.168.0.1', NULL, '2016-05-25 09:13:52', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1119, 16, NULL, '2016-05-25 09:13:52', '192.168.0.1', NULL, '2016-05-25 09:13:52', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1120, 64, NULL, '2016-05-25 09:13:52', '192.168.0.1', NULL, '2016-05-25 09:13:52', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1121, 20, NULL, '2016-05-25 09:13:53', '192.168.0.1', NULL, '2016-05-25 09:13:53', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1122, 66, NULL, '2016-05-25 09:13:53', '192.168.0.1', NULL, '2016-05-25 09:13:53', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1123, 67, NULL, '2016-05-25 09:13:53', '192.168.0.1', NULL, '2016-05-25 09:13:53', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1124, 68, NULL, '2016-05-25 09:13:53', '192.168.0.1', NULL, '2016-05-25 09:13:53', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1125, 69, NULL, '2016-05-25 09:13:53', '192.168.0.1', NULL, '2016-05-25 09:13:53', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1126, 71, NULL, '2016-05-25 09:13:53', '192.168.0.1', NULL, '2016-05-25 09:13:53', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1127, 72, NULL, '2016-05-25 09:13:53', '192.168.0.1', NULL, '2016-05-25 09:13:53', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1128, 23, NULL, '2016-05-25 09:13:53', '192.168.0.1', NULL, '2016-05-25 09:13:53', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1129, 17, NULL, '2016-05-25 09:13:53', '192.168.0.1', NULL, '2016-05-25 09:13:53', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1130, 18, NULL, '2016-05-25 09:13:53', '192.168.0.1', NULL, '2016-05-25 09:13:53', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1131, 22, NULL, '2016-05-25 09:13:53', '192.168.0.1', NULL, '2016-05-25 09:13:53', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1132, 19, NULL, '2016-05-25 09:13:53', '192.168.0.1', NULL, '2016-05-25 09:13:53', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1133, 24, NULL, '2016-05-25 09:13:54', '192.168.0.1', NULL, '2016-05-25 09:13:54', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1134, 139, NULL, '2016-05-25 09:13:54', '192.168.0.1', NULL, '2016-05-25 09:13:54', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1135, 140, NULL, '2016-05-25 09:13:54', '192.168.0.1', NULL, '2016-05-25 09:13:54', '192.168.0.1', 2, b'0', b'0', b'0', b'0'),
(1136, 1, NULL, '2016-05-25 09:14:21', '192.168.0.1', NULL, '2016-05-25 09:14:21', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1137, 3, NULL, '2016-05-25 09:14:21', '192.168.0.1', NULL, '2016-05-25 09:14:21', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1138, 4, NULL, '2016-05-25 09:14:21', '192.168.0.1', NULL, '2016-05-25 09:14:21', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1139, 28, NULL, '2016-05-25 09:14:21', '192.168.0.1', NULL, '2016-05-25 09:14:21', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1140, 29, NULL, '2016-05-25 09:14:21', '192.168.0.1', NULL, '2016-05-25 09:14:21', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1141, 32, NULL, '2016-05-25 09:14:21', '192.168.0.1', NULL, '2016-05-25 09:14:21', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1142, 33, NULL, '2016-05-25 09:14:21', '192.168.0.1', NULL, '2016-05-25 09:14:21', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1143, 36, NULL, '2016-05-25 09:14:21', '192.168.0.1', NULL, '2016-05-25 09:14:21', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1144, 37, NULL, '2016-05-25 09:14:22', '192.168.0.1', NULL, '2016-05-25 09:14:22', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1145, 45, NULL, '2016-05-25 09:14:22', '192.168.0.1', NULL, '2016-05-25 09:14:22', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1146, 50, NULL, '2016-05-25 09:14:22', '192.168.0.1', NULL, '2016-05-25 09:14:22', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1147, 51, NULL, '2016-05-25 09:14:22', '192.168.0.1', NULL, '2016-05-25 09:14:22', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1148, 54, NULL, '2016-05-25 09:14:22', '192.168.0.1', NULL, '2016-05-25 09:14:22', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1149, 60, NULL, '2016-05-25 09:14:22', '192.168.0.1', NULL, '2016-05-25 09:14:22', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1150, 102, NULL, '2016-05-25 09:14:22', '192.168.0.1', NULL, '2016-05-25 09:14:22', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1151, 103, NULL, '2016-05-25 09:14:22', '192.168.0.1', NULL, '2016-05-25 09:14:22', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1152, 104, NULL, '2016-05-25 09:14:22', '192.168.0.1', NULL, '2016-05-25 09:14:22', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1153, 64, NULL, '2016-05-25 09:14:22', '192.168.0.1', NULL, '2016-05-25 09:14:22', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1154, 116, NULL, '2016-05-25 09:14:23', '192.168.0.1', NULL, '2016-05-25 09:14:23', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1155, 66, NULL, '2016-05-25 09:14:23', '192.168.0.1', NULL, '2016-05-25 09:14:23', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1156, 70, NULL, '2016-05-25 09:14:23', '192.168.0.1', NULL, '2016-05-25 09:14:23', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1157, 72, NULL, '2016-05-25 09:14:23', '192.168.0.1', NULL, '2016-05-25 09:14:23', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1158, 73, NULL, '2016-05-25 09:14:23', '192.168.0.1', NULL, '2016-05-25 09:14:23', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1159, 128, NULL, '2016-05-25 09:14:23', '192.168.0.1', NULL, '2016-05-25 09:14:23', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1160, 18, NULL, '2016-05-25 09:14:23', '192.168.0.1', NULL, '2016-05-25 09:14:23', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1161, 79, NULL, '2016-05-25 09:14:23', '192.168.0.1', NULL, '2016-05-25 09:14:23', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1162, 19, NULL, '2016-05-25 09:14:23', '192.168.0.1', NULL, '2016-05-25 09:14:23', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1163, 24, NULL, '2016-05-25 09:14:23', '192.168.0.1', NULL, '2016-05-25 09:14:23', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1164, 80, NULL, '2016-05-25 09:14:23', '192.168.0.1', NULL, '2016-05-25 09:14:23', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1165, 139, NULL, '2016-05-25 09:14:23', '192.168.0.1', NULL, '2016-05-25 09:14:23', '192.168.0.1', 3, b'0', b'0', b'0', b'0'),
(1166, 1, NULL, '2016-05-27 14:01:58', '192.168.0.1', NULL, '2016-05-27 14:01:58', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1167, 3, NULL, '2016-05-27 14:01:58', '192.168.0.1', NULL, '2016-05-27 14:01:58', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1168, 4, NULL, '2016-05-27 14:01:59', '192.168.0.1', NULL, '2016-05-27 14:01:59', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1169, 28, NULL, '2016-05-27 14:01:59', '192.168.0.1', NULL, '2016-05-27 14:01:59', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1170, 29, NULL, '2016-05-27 14:01:59', '192.168.0.1', NULL, '2016-05-27 14:01:59', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1171, 32, NULL, '2016-05-27 14:01:59', '192.168.0.1', NULL, '2016-05-27 14:01:59', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1172, 35, NULL, '2016-05-27 14:01:59', '192.168.0.1', NULL, '2016-05-27 14:01:59', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1173, 36, NULL, '2016-05-27 14:01:59', '192.168.0.1', NULL, '2016-05-27 14:01:59', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1174, 38, NULL, '2016-05-27 14:01:59', '192.168.0.1', NULL, '2016-05-27 14:01:59', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1175, 45, NULL, '2016-05-27 14:01:59', '192.168.0.1', NULL, '2016-05-27 14:01:59', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1176, 48, NULL, '2016-05-27 14:01:59', '192.168.0.1', NULL, '2016-05-27 14:01:59', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1177, 51, NULL, '2016-05-27 14:02:00', '192.168.0.1', NULL, '2016-05-27 14:02:00', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1178, 54, NULL, '2016-05-27 14:02:00', '192.168.0.1', NULL, '2016-05-27 14:02:00', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1179, 58, NULL, '2016-05-27 14:02:00', '192.168.0.1', NULL, '2016-05-27 14:02:00', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1180, 60, NULL, '2016-05-27 14:02:00', '192.168.0.1', NULL, '2016-05-27 14:02:00', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1181, 71, NULL, '2016-05-27 14:02:00', '192.168.0.1', NULL, '2016-05-27 14:02:00', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1182, 73, NULL, '2016-05-27 14:02:00', '192.168.0.1', NULL, '2016-05-27 14:02:00', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1183, 79, NULL, '2016-05-27 14:02:00', '192.168.0.1', NULL, '2016-05-27 14:02:00', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1184, 80, NULL, '2016-05-27 14:02:00', '192.168.0.1', NULL, '2016-05-27 14:02:00', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1185, 31, NULL, '2016-05-27 14:02:00', '192.168.0.1', NULL, '2016-05-27 14:02:00', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1186, 6, NULL, '2016-05-27 14:02:00', '192.168.0.1', NULL, '2016-05-27 14:02:00', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1187, 33, NULL, '2016-05-27 14:02:00', '192.168.0.1', NULL, '2016-05-27 14:02:00', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1188, 34, NULL, '2016-05-27 14:02:01', '192.168.0.1', NULL, '2016-05-27 14:02:01', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1189, 97, NULL, '2016-05-27 14:02:01', '192.168.0.1', NULL, '2016-05-27 14:02:01', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1190, 37, NULL, '2016-05-27 14:02:01', '192.168.0.1', NULL, '2016-05-27 14:02:01', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1191, 39, NULL, '2016-05-27 14:02:01', '192.168.0.1', NULL, '2016-05-27 14:02:01', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1192, 40, NULL, '2016-05-27 14:02:01', '192.168.0.1', NULL, '2016-05-27 14:02:01', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1193, 7, NULL, '2016-05-27 14:02:01', '192.168.0.1', NULL, '2016-05-27 14:02:01', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1194, 8, NULL, '2016-05-27 14:02:01', '192.168.0.1', NULL, '2016-05-27 14:02:01', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1195, 42, NULL, '2016-05-27 14:02:01', '192.168.0.1', NULL, '2016-05-27 14:02:01', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1196, 26, NULL, '2016-05-27 14:02:01', '192.168.0.1', NULL, '2016-05-27 14:02:01', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1197, 46, NULL, '2016-05-27 14:02:01', '192.168.0.1', NULL, '2016-05-27 14:02:01', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1198, 57, NULL, '2016-05-27 14:02:01', '192.168.0.1', NULL, '2016-05-27 14:02:01', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1199, 59, NULL, '2016-05-27 14:02:01', '192.168.0.1', NULL, '2016-05-27 14:02:01', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1200, 63, NULL, '2016-05-27 14:02:01', '192.168.0.1', NULL, '2016-05-27 14:02:01', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1201, 20, NULL, '2016-05-27 14:02:02', '192.168.0.1', NULL, '2016-05-27 14:02:02', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1202, 113, NULL, '2016-05-27 14:02:02', '192.168.0.1', NULL, '2016-05-27 14:02:02', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1203, 66, NULL, '2016-05-27 14:02:02', '192.168.0.1', NULL, '2016-05-27 14:02:02', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1204, 67, NULL, '2016-05-27 14:02:02', '192.168.0.1', NULL, '2016-05-27 14:02:02', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1205, 70, NULL, '2016-05-27 14:02:02', '192.168.0.1', NULL, '2016-05-27 14:02:02', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1206, 74, NULL, '2016-05-27 14:02:02', '192.168.0.1', NULL, '2016-05-27 14:02:02', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1207, 128, NULL, '2016-05-27 14:02:02', '192.168.0.1', NULL, '2016-05-27 14:02:02', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1208, 78, NULL, '2016-05-27 14:02:02', '192.168.0.1', NULL, '2016-05-27 14:02:02', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1209, 19, NULL, '2016-05-27 14:02:02', '192.168.0.1', NULL, '2016-05-27 14:02:02', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1210, 24, NULL, '2016-05-27 14:02:02', '192.168.0.1', NULL, '2016-05-27 14:02:02', '192.168.0.1', 5, b'0', b'0', b'0', b'0'),
(1211, 139, NULL, '2016-05-27 14:02:03', '192.168.0.1', NULL, '2016-05-27 14:02:03', '192.168.0.1', 5, b'0', b'0', b'0', b'0');

-- --------------------------------------------------------

--
-- Struktur dari tabel `worksheets`
--

CREATE TABLE `worksheets` (
  `ID` int(11) NOT NULL,
  `Name` varchar(100) NOT NULL,
  `Format_id` int(11) NOT NULL,
  `CreateBy` int(11) DEFAULT NULL,
  `CreateDate` datetime DEFAULT NULL,
  `CreateTerminal` varchar(100) DEFAULT NULL,
  `UpdateBy` int(11) DEFAULT NULL,
  `UpdateDate` datetime DEFAULT NULL,
  `UpdateTerminal` varchar(100) DEFAULT NULL,
  `NoUrut` int(11) DEFAULT 99,
  `DEPOSITFORMAT_CODE` varchar(5) DEFAULT NULL,
  `ISSERIAL` tinyint(1) DEFAULT 0,
  `ISMUSIK` bit(1) DEFAULT b'0',
  `ISKARTOGRAFI` bit(1) DEFAULT b'0',
  `CODE` varchar(10) NOT NULL,
  `Keterangan` varchar(255) DEFAULT NULL,
  `MaxPinjamKoleksi` int(11) DEFAULT 0,
  `MaxLoanDays` int(11) DEFAULT 0,
  `DendaType` varchar(45) DEFAULT 'Konstan',
  `DendaTenorJumlah` decimal(10,0) DEFAULT 0,
  `DendaTenorSatuan` varchar(45) DEFAULT 'Hari',
  `DendaPerTenor` decimal(10,0) DEFAULT 0,
  `DendaTenorMultiply` int(11) DEFAULT 1,
  `SuspendMember` bit(1) DEFAULT b'0',
  `WarningLoanDueDay` int(11) DEFAULT 0,
  `SuspendType` varchar(45) DEFAULT 'Konstan',
  `SuspendTenorJumlah` double DEFAULT 0,
  `SuspendTenorSatuan` varchar(45) DEFAULT 'Hari',
  `DaySuspend` int(11) DEFAULT 0,
  `SuspendTenorMultiply` int(11) DEFAULT 1,
  `DayPerpanjang` int(11) DEFAULT 0,
  `CountPerpanjang` int(11) DEFAULT 0,
  `IsBerisiArtikel` bit(1) DEFAULT b'0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data untuk tabel `worksheets`
--

INSERT INTO `worksheets` (`ID`, `Name`, `Format_id`, `CreateBy`, `CreateDate`, `CreateTerminal`, `UpdateBy`, `UpdateDate`, `UpdateTerminal`, `NoUrut`, `DEPOSITFORMAT_CODE`, `ISSERIAL`, `ISMUSIK`, `ISKARTOGRAFI`, `CODE`, `Keterangan`, `MaxPinjamKoleksi`, `MaxLoanDays`, `DendaType`, `DendaTenorJumlah`, `DendaTenorSatuan`, `DendaPerTenor`, `DendaTenorMultiply`, `SuspendMember`, `WarningLoanDueDay`, `SuspendType`, `SuspendTenorJumlah`, `SuspendTenorSatuan`, `DaySuspend`, `SuspendTenorMultiply`, `DayPerpanjang`, `CountPerpanjang`, `IsBerisiArtikel`) VALUES
(1, 'Monograf', 1, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2015-12-02 12:13:13', '::1', 1, 'CB', 0, b'0', b'0', '001', 'Buku, Jurnal, Laporan, dll', 0, 0, 'Konstan', '0', 'Hari', '0', 0, NULL, 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(2, 'Sumber Elektronik', 1, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2016-05-25 09:13:49', '192.168.0.1', 10, NULL, 0, b'0', b'0', '002', 'CD-ROM, Floppy Disk, VCD, dll', 0, 0, 'Konstan', '0', '0', '0', 0, NULL, 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(3, 'Film', 1, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2016-05-25 09:14:20', '192.168.0.1', 11, NULL, 0, b'0', b'0', '003', 'Film, dll', 0, 0, 'Konstan', '0', 'Hari', '0', 0, NULL, 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(4, 'Terbitan Berkala', 1, NULL, '2012-09-12 13:54:51', 'DeniPC', NULL, '2016-05-20 13:51:21', '192.168.0.1', 2, NULL, 1, b'0', b'0', '004', 'Surat Kabar, Majalah, dll', 0, 0, 'Konstan', '0', '0', '0', 0, NULL, 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(5, 'Bahan Kartografis', 1, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2016-05-27 14:01:58', '192.168.0.1', 9, NULL, 0, b'0', b'0', '005', 'Peta, dll', 0, 0, 'Konstan', '0', '0', '0', 0, NULL, 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(6, 'Bahan Grafis', 1, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2015-09-18 15:19:24', '::1', 6, NULL, 0, b'0', b'0', '006', 'Foto, Lukisan, dll', 0, 0, 'Konstan', '0', '0', '0', 0, NULL, 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(7, 'Rekaman Video', 1, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2015-08-15 04:54:17', '::1', 7, NULL, 0, b'0', b'0', '007', NULL, 0, 0, 'Konstan', '0', '0', '0', 0, NULL, 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(8, 'Musik', 1, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2015-08-15 05:20:38', '::1', 8, NULL, 0, b'1', b'0', '008', NULL, 0, 0, 'Konstan', '0', '0', '0', 0, NULL, 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(9, 'Bahan Campuran', 1, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2015-08-15 05:23:52', '::1', 9, NULL, 0, b'0', b'0', '009', NULL, 0, 0, 'Konstan', '0', '0', '0', 0, NULL, 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(10, 'Rekaman Suara', 1, NULL, '2012-09-12 13:54:52', 'DeniPC', NULL, '2015-08-15 05:27:28', '::1', 10, NULL, 0, b'0', b'0', '010', NULL, 0, 0, 'Konstan', '0', '0', '0', 0, NULL, 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(11, 'Bentuk Mikro', 1, NULL, '2012-09-12 13:54:53', 'DeniPC', NULL, '2015-08-15 05:31:13', '::1', 11, NULL, 0, b'0', b'0', '011', NULL, 0, 0, 'Konstan', '0', '0', '0', 0, NULL, 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(12, 'Manuskrip', 1, NULL, '2012-10-24 20:30:35', '114.79.54.148', NULL, '2015-08-15 05:40:07', '::1', 12, NULL, 0, b'0', b'0', '012', NULL, 0, 0, 'Konstan', '0', '0', '0', 0, NULL, 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(15, 'Bahan Ephemeral', 1, NULL, '2015-08-15 06:07:47', '::1', NULL, '2015-08-15 06:09:41', '::1', 15, NULL, 0, b'0', b'0', '015', NULL, 0, 0, 'Konstan', '0', '0', '0', 0, NULL, 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(68, 'Skripsi', 1, NULL, '2016-04-22 11:45:59', '192.168.0.1', NULL, '2016-05-20 13:51:39', '192.168.0.1', 3, NULL, 0, b'0', b'0', 'skripsi', 'Karya Akademik Mahasiswa S1', 0, 0, 'Konstan', '0', 'Hari', '0', 1, b'0', 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0'),
(69, 'Tesis', 1, NULL, '2016-05-24 15:15:48', '192.168.0.1', NULL, '2016-05-24 15:15:48', '192.168.0.1', 5, NULL, 0, b'0', b'0', 'Tesis', 'Karya Akademik Mahasiswa S2', 0, 0, 'Konstan', '0', 'Hari', '0', 1, b'0', 0, 'Konstan', 0, 'Hari', 0, 1, 0, 0, b'0');

-- --------------------------------------------------------

--
-- Struktur untuk view `item_koleksi`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `item_koleksi`  AS  select concat(year(`collections`.`CreateDate`),lpad(month(`collections`.`CreateDate`),2,0)) AS `periode`,month(`collections`.`CreateDate`) AS `bulan`,year(`collections`.`CreateDate`) AS `tahun`,count('*') AS `jumlah_eksemplar` from `collections` group by month(`collections`.`CreateDate`),year(`collections`.`CreateDate`) ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_abjadopac`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_abjadopac`  AS  select 'A' AS `A` union all select 'B' AS `B` union all select 'C' AS `C` union all select 'D' AS `D` union all select 'E' AS `E` union all select 'F' AS `F` union all select 'G' AS `G` union all select 'H' AS `H` union all select 'I' AS `I` union all select 'J' AS `J` union all select 'K' AS `K` union all select 'L' AS `L` union all select 'M' AS `M` union all select 'N' AS `N` union all select 'O' AS `O` union all select 'P' AS `P` union all select 'Q' AS `Q` union all select 'R' AS `R` union all select 'S' AS `S` union all select 'T' AS `T` union all select 'U' AS `U` union all select 'V' AS `V` union all select 'W' AS `W` union all select 'X' AS `X` union all select 'Y' AS `Y` union all select 'Z' AS `Z` ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_lap_kriteria_anggota`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_lap_kriteria_anggota`  AS  select distinct 'Pekerjaan' AS `kriteria`,`master_pekerjaan`.`Pekerjaan` AS `id_dtl_anggota`,`master_pekerjaan`.`Pekerjaan` AS `dtl_anggota` from `master_pekerjaan` union all select distinct 'Pendidikan' AS `kriteria`,`master_pendidikan`.`Nama` AS `id_dtl_anggota`,`master_pendidikan`.`Nama` AS `dtl_anggota` from `master_pendidikan` union all select distinct 'Status_Anggota' AS `kriteria`,`status_anggota`.`Nama` AS `id_dtl_anggota`,`status_anggota`.`Nama` AS `dtl_anggota` from `status_anggota` union all select distinct 'Jenis_Anggota' AS `kriteria`,`jenis_anggota`.`jenisanggota` AS `id_dtl_anggota`,`jenis_anggota`.`jenisanggota` AS `dtl_anggota` from `jenis_anggota` union all select distinct 'Kelas' AS `kriteria`,`kelas_siswa`.`namakelassiswa` AS `id_dtl_anggota`,`kelas_siswa`.`namakelassiswa` AS `dtl_anggota` from `kelas_siswa` union all select distinct 'Fakultas' AS `kriteria`,`master_fakultas`.`Nama` AS `id_dtl_anggota`,`master_fakultas`.`Nama` AS `dtl_anggota` from `master_fakultas` union all select distinct 'Jurusan' AS `kriteria`,`master_jurusan`.`Nama` AS `id_dtl_anggota`,`master_jurusan`.`Nama` AS `dtl_anggota` from `master_jurusan` ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_lap_kriteria_koleksi`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_lap_kriteria_koleksi`  AS  select distinct 'PublishLocation' AS `kriteria`,`catalogs`.`PublishLocation` AS `id_dtl_kriteria`,`catalogs`.`PublishLocation` AS `dtl_kriteria` from `catalogs` union all select distinct 'Publisher' AS `kriteria`,`catalogs`.`Publisher` AS `id_dtl_kriteria`,`catalogs`.`Publisher` AS `dtl_kriteria` from `catalogs` union all select distinct 'PublishYear' AS `kriteria`,`catalogs`.`PublishYear` AS `id_dtl_kriteria`,`catalogs`.`PublishYear` AS `dtl_kriteria` from `catalogs` union all select distinct 'Subject' AS `kriteria`,`catalogs`.`Subject` AS `id_dtl_kriteria`,`catalogs`.`Subject` AS `dtl_kriteria` from `catalogs` union all select 'location_library' AS `kriteria`,`location_library`.`ID` AS `id_dtl_kriteria`,`location_library`.`Name` AS `dtl_kriteria` from `location_library` union all select 'locations' AS `kriteria`,`locations`.`ID` AS `id_dtl_kriteria`,`locations`.`Name` AS `dtl_kriteria` from `locations` union all select 'collectionsources' AS `kriteria`,`collectionsources`.`ID` AS `id_dtl_kriteria`,`collectionsources`.`Name` AS `dtl_kriteria` from `collectionsources` union all select 'partners' AS `kriteria`,`partners`.`ID` AS `id_dtl_kriteria`,`partners`.`Name` AS `dtl_kriteria` from `partners` union all select 'currency' AS `kriteria`,`currency`.`Currency` AS `id_dtl_kriteria`,concat(`currency`.`Currency`,' - ',`currency`.`Description`) AS `dtl_kriteria` from `currency` union all select 'collectioncategorys' AS `kriteria`,`collectioncategorys`.`ID` AS `id_dtl_kriteria`,`collectioncategorys`.`Name` AS `dtl_kriteria` from `collectioncategorys` union all select 'collectionrules' AS `kriteria`,`collectionrules`.`ID` AS `id_dtl_kriteria`,`collectionrules`.`Name` AS `dtl_kriteria` from `collectionrules` union all select 'worksheets' AS `kriteria`,`worksheets`.`ID` AS `id_dtl_kriteria`,`worksheets`.`Name` AS `dtl_kriteria` from `worksheets` union all select 'collectionmedias' AS `kriteria`,`collectionmedias`.`ID` AS `id_dtl_kriteria`,`collectionmedias`.`Name` AS `dtl_kriteria` from `collectionmedias` union all select 'no_klas' AS `kriteria`,`master_kelas_besar`.`kdKelas` AS `id_dtl_kriteria`,`master_kelas_besar`.`namakelas` AS `dtl_kriteria` from `master_kelas_besar` union all select 'createby' AS `kriteria`,`users`.`ID` AS `id_dtl_kriteria`,`users`.`username` AS `dtl_kriteria` from `users` union all select 'Members' AS `kriteria`,`members`.`ID` AS `id_dtl_kriteria`,concat(`members`.`MemberNo`,' - ',`members`.`Fullname`) AS `dtl_kriteria` from `members` ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_pertumb_jml_kunjungan`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_pertumb_jml_kunjungan`  AS  select 'ANGGOTA' AS `kriteria`,year(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')) AS `tahun`,count(0) AS `jumlah` from `memberguesses` where `memberguesses`.`NoAnggota` is not null group by year(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')) union all select 'NONANGGOTA' AS `kriteria`,year(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')) AS `tahun`,count(0) AS `jumlah` from `memberguesses` where `memberguesses`.`NoAnggota` is null group by year(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')) union all select 'ROMBONGAN' AS `kriteria`,year(str_to_date(`groupguesses`.`CreateDate`,'%Y-%m-%d')) AS `tahun`,count(0) AS `jumlah` from `groupguesses` group by year(str_to_date(`groupguesses`.`CreateDate`,'%Y-%m-%d')) ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_pertumb_jml_kunjungan_bulanan`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_pertumb_jml_kunjungan_bulanan`  AS  select 'ANGGOTA' AS `kriteria`,year(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')) AS `tahun`,month(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')) AS `bulan`,count(0) AS `jumlah` from `memberguesses` where `memberguesses`.`NoAnggota` is not null group by year(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')),month(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')) union all select 'NONANGGOTA' AS `kriteria`,year(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')) AS `tahun`,month(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')) AS `bulan`,count(0) AS `jumlah` from `memberguesses` where `memberguesses`.`NoAnggota` is null group by year(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')),month(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')) union all select 'ROMBONGAN' AS `kriteria`,year(str_to_date(`groupguesses`.`CreateDate`,'%Y-%m-%d')) AS `tahun`,month(str_to_date(`groupguesses`.`CreateDate`,'%Y-%m-%d')) AS `bulan`,sum(`groupguesses`.`CountPersonel`) AS `jumlah` from `groupguesses` group by year(str_to_date(`groupguesses`.`CreateDate`,'%Y-%m-%d')),month(str_to_date(`groupguesses`.`CreateDate`,'%Y-%m-%d')) order by `tahun` ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_stat_anggota`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_stat_anggota`  AS  select year(str_to_date(`members`.`CreateDate`,'%Y-%m-%d')) AS `tahun`,month(str_to_date(`members`.`CreateDate`,'%Y-%m-%d')) AS `bulan`,count(0) AS `jumlah`,`jenis_anggota`.`jenisanggota` AS `jenisanggota`,`jenis_anggota`.`id` AS `IDjenisanggota` from (`members` left join `jenis_anggota` on(`jenis_anggota`.`id` = `members`.`JenisAnggota_id`)) group by year(str_to_date(`members`.`CreateDate`,'%Y-%m-%d')),month(str_to_date(`members`.`CreateDate`,'%Y-%m-%d')),`jenis_anggota`.`id` ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_stat_colectionloan`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_stat_colectionloan`  AS  select 2015 AS `tahun`,2 AS `bulan`,10 AS `jumlah_judul`,100 AS `jumlah_eksemplar`,20 AS `jumlah_dijital` ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_stat_jenis_pendidikan`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_stat_jenis_pendidikan`  AS  select `mp`.`Nama` AS `Keterangan`,count(`mem`.`ID`) AS `Jumlah`,date_format(`mem`.`CreateDate`,'%Y') AS `Tahun`,month(str_to_date(`mem`.`CreateDate`,'%Y-%m-%d')) AS `bulan` from (`master_pendidikan` `mp` left join `members` `mem` on(`mem`.`EducationLevel_id` = `mp`.`id`)) where `mem`.`EducationLevel_id` is not null group by `mp`.`Nama`,date_format(`mem`.`CreateDate`,'%Y'),month(str_to_date(`mem`.`CreateDate`,'%Y-%m-%d')) order by `mp`.`id`,`mem`.`CreateDate` ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_stat_jumlah_koleksi`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_stat_jumlah_koleksi`  AS  select `item_koleksi`.`bulan` AS `bulan`,`item_koleksi`.`tahun` AS `tahun`,(select count(0) from `catalogs` where concat(year(`catalogs`.`CreateDate`),lpad(month(`catalogs`.`CreateDate`),2,0)) = `item_koleksi`.`periode`) AS `jumlah_judul`,`item_koleksi`.`jumlah_eksemplar` AS `jumlah_eksemplar`,(select count(0) from `catalogfiles` where concat(year(`catalogfiles`.`CreateDate`),lpad(month(`catalogfiles`.`CreateDate`),2,0)) = `item_koleksi`.`periode`) AS `jumlah_dijital` from `item_koleksi` ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_stat_kelas_subjek`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_stat_kelas_subjek`  AS  select `master_kelas_besar`.`namakelas` AS `Keterangan`,`master_kelas_besar`.`ID` AS `Jumlah`,2015 AS `Tahun` from `master_kelas_besar` ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_stat_koleksi_dipinjam_eksemplar`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_stat_koleksi_dipinjam_eksemplar`  AS  select year(str_to_date(`colit`.`CreateDate`,'%Y-%m-%d')) AS `tahun`,month(str_to_date(`colit`.`CreateDate`,'%Y-%m-%d')) AS `bulan`,count(0) AS `jumlah_eksemplar` from `collectionloanitems` `colit` where `colit`.`CreateDate` between current_timestamp() + interval -12 month and current_timestamp() + interval -1 month group by year(str_to_date(`colit`.`CreateDate`,'%Y-%m-%d')),month(str_to_date(`colit`.`CreateDate`,'%Y-%m-%d')) ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_stat_koleksi_dipinjam_judul`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_stat_koleksi_dipinjam_judul`  AS  select year(str_to_date(`colit`.`CreateDate`,'%Y-%m-%d')) AS `tahun`,month(str_to_date(`colit`.`CreateDate`,'%Y-%m-%d')) AS `bulan`,count(distinct `colit`.`Collection_id`) AS `jumlah_judul` from `collectionloanitems` `colit` where `colit`.`CreateDate` between current_timestamp() + interval -12 month and current_timestamp() + interval -1 month group by year(str_to_date(`colit`.`CreateDate`,'%Y-%m-%d')),month(str_to_date(`colit`.`CreateDate`,'%Y-%m-%d')) ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_stat_pendidikan`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_stat_pendidikan`  AS  select `master_pendidikan`.`Nama` AS `Nama`,`master_pendidikan`.`id` AS `Jumlah`,2015 AS `Tahun` from `master_pendidikan` ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_stat_rangeumur_kunj`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_stat_rangeumur_kunj`  AS  select `KATEGORY_UMUR`(`members`.`DateOfBirth`) AS `Keterangan`,date_format(`memberguesses`.`CreateDate`,'%Y') AS `Tahun`,count(`memberguesses`.`ID`) AS `Jumlah` from (`memberguesses` join `members` on(`memberguesses`.`NoAnggota` = `members`.`MemberNo`)) where cast(`memberguesses`.`CreateDate` as date) between '2010-01-01' and '2016-12-31' group by `KATEGORY_UMUR`(`members`.`DateOfBirth`),date_format(`memberguesses`.`CreateDate`,'%Y') order by date_format(`memberguesses`.`CreateDate`,'%Y') desc,count(`memberguesses`.`ID`) desc ;

-- --------------------------------------------------------

--
-- Struktur untuk view `v_stat_rangeumur_kunj_bulanan`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_stat_rangeumur_kunj_bulanan`  AS  select `KATEGORY_UMUR`(`members`.`DateOfBirth`) AS `Keterangan`,date_format(`memberguesses`.`CreateDate`,'%Y') AS `Tahun`,month(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')) AS `bulan`,count(`memberguesses`.`ID`) AS `Jumlah` from (`memberguesses` join `members` on(`memberguesses`.`NoAnggota` = `members`.`MemberNo`)) group by `KATEGORY_UMUR`(`members`.`DateOfBirth`),date_format(`memberguesses`.`CreateDate`,'%Y'),month(str_to_date(`memberguesses`.`CreateDate`,'%Y-%m-%d')) order by date_format(`memberguesses`.`CreateDate`,'%Y') desc,count(`memberguesses`.`ID`) desc ;

--
-- Indexes for dumped tables
--

--
-- Indeks untuk tabel `agama`
--
ALTER TABLE `agama`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `agama_createby` (`CreateBy`),
  ADD KEY `agama_updateby` (`UpdateBy`),
  ADD KEY `agama_kii` (`KIILastUploadDate`),
  ADD KEY `agama_createdate` (`CreateDate`),
  ADD KEY `agama_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `applications`
--
ALTER TABLE `applications`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `applications_createby` (`CreateBy`),
  ADD KEY `applications_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `app_installed`
--
ALTER TABLE `app_installed`
  ADD PRIMARY KEY (`ID`),
  ADD UNIQUE KEY `UNIQUE` (`ActivationCode`);

--
-- Indeks untuk tabel `auth_assignment`
--
ALTER TABLE `auth_assignment`
  ADD PRIMARY KEY (`item_name`,`user_id`),
  ADD KEY `auth_assignment_createby` (`CreateBy`),
  ADD KEY `auth_assignment_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `auth_data`
--
ALTER TABLE `auth_data`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `auth_data_auth_header` (`Auth_Header_ID`),
  ADD KEY `auth_data_createby` (`CreateBy`),
  ADD KEY `auth_data_updateby` (`UpdateBy`),
  ADD KEY `auth_data_IDX1` (`Auth_Header_ID`,`Tag`) USING BTREE,
  ADD KEY `auth_data_IDX2` (`Tag`,`Value`) USING BTREE,
  ADD KEY `auth_data_IDX3` (`Tag`,`DataItem`),
  ADD KEY `auth_data_IDX4` (`Value`);

--
-- Indeks untuk tabel `auth_header`
--
ALTER TABLE `auth_header`
  ADD PRIMARY KEY (`ID`),
  ADD UNIQUE KEY `auth_header_id` (`Auth_ID`),
  ADD KEY `auth_header_worksheet_id` (`Worksheet_id`),
  ADD KEY `auth_header_createby` (`CreateBy`),
  ADD KEY `auth_header_updateby` (`UpdateBy`),
  ADD KEY `auth_header_authid` (`Auth_ID`);

--
-- Indeks untuk tabel `auth_item`
--
ALTER TABLE `auth_item`
  ADD PRIMARY KEY (`name`),
  ADD KEY `rule_name` (`rule_name`),
  ADD KEY `idx-auth_item-type` (`type`),
  ADD KEY `auth_item_createby` (`CreateBy`),
  ADD KEY `auth_item_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `auth_item_child`
--
ALTER TABLE `auth_item_child`
  ADD PRIMARY KEY (`parent`,`child`),
  ADD KEY `child` (`child`),
  ADD KEY `auth_item_child_createby` (`CreateBy`),
  ADD KEY `auth_item_child_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `auth_rule`
--
ALTER TABLE `auth_rule`
  ADD PRIMARY KEY (`name`),
  ADD KEY `auth_rule_createby` (`CreateBy`),
  ADD KEY `auth_rule_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `bacaditempat`
--
ALTER TABLE `bacaditempat`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `BacaDitempat_NoPengujung` (`NoPengunjung`),
  ADD KEY `bacaditempat_createby` (`CreateBy`),
  ADD KEY `bacaditempat_updateby` (`UpdateBy`),
  ADD KEY `bacaditempat_collections` (`collection_id`),
  ADD KEY `bacaditempat_locations` (`Location_Id`),
  ADD KEY `bacaditempat_Noanggota` (`Member_id`) USING BTREE;

--
-- Indeks untuk tabel `bacaditempat_locations`
--
ALTER TABLE `bacaditempat_locations`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `FK_logincheckpoint_locations` (`Location_ID`),
  ADD KEY `checkpoint_locations_createby` (`CreateBy`),
  ADD KEY `checkpoint_locations_updateby` (`UpdateBy`),
  ADD KEY `bacaditempat_locations_ip` (`IP_PC`);

--
-- Indeks untuk tabel `backup`
--
ALTER TABLE `backup`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `backup_createby` (`CreateBy`);

--
-- Indeks untuk tabel `bibidavailable`
--
ALTER TABLE `bibidavailable`
  ADD PRIMARY KEY (`BIBID`),
  ADD UNIQUE KEY `BIBID_UNIQUE` (`BIBID`),
  ADD KEY `bibidavailable_createby` (`CreateBy`),
  ADD KEY `bibidavailable_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `bookinglogs`
--
ALTER TABLE `bookinglogs`
  ADD KEY `fk_bookinglogs_memberId_idx` (`memberId`);

--
-- Indeks untuk tabel `bookmark`
--
ALTER TABLE `bookmark`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `bookmark_createby` (`CreateBy`),
  ADD KEY `bookmark_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `branchs`
--
ALTER TABLE `branchs`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `branchs_createby` (`CreateBy`),
  ADD KEY `branchs_updateby` (`UpdateBy`),
  ADD KEY `branchs_code` (`Code`);

--
-- Indeks untuk tabel `cardformats`
--
ALTER TABLE `cardformats`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `cardformats_createby` (`CreateBy`),
  ADD KEY `cardformats_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `catalogfiles`
--
ALTER TABLE `catalogfiles`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `catalogfiles_catalog` (`Catalog_id`),
  ADD KEY `catalogfiles_createby` (`CreateBy`),
  ADD KEY `catalogfiles_updateby` (`UpdateBy`),
  ADD KEY `catalogfiles_fileurl` (`FileURL`),
  ADD KEY `catalogfiles_fileflash` (`FileFlash`),
  ADD KEY `catalogfiles_ispublish` (`IsPublish`),
  ADD KEY `catalogfiles_member_idx` (`Member_id`);

--
-- Indeks untuk tabel `catalogs`
--
ALTER TABLE `catalogs`
  ADD PRIMARY KEY (`ID`),
  ADD UNIQUE KEY `catalogs_BIBID` (`BIBID`),
  ADD KEY `catalogs_createby` (`CreateBy`),
  ADD KEY `catalogs_updateby` (`UpdateBy`),
  ADD KEY `catalogs_author` (`Author`),
  ADD KEY `catalogs_edition` (`Edition`),
  ADD KEY `catalogs_publisher` (`Publisher`),
  ADD KEY `catalogs_publishlocation` (`PublishLocation`),
  ADD KEY `catalogs_publishyear` (`PublishYear`),
  ADD KEY `catalogs_subject` (`Subject`),
  ADD KEY `catalogs_physicaldesc` (`PhysicalDescription`),
  ADD KEY `catalogs_isbn` (`ISBN`),
  ADD KEY `catalogs_callnumber` (`CallNumber`),
  ADD KEY `catalogs_deweyno` (`DeweyNo`),
  ADD KEY `catalogs_languages` (`Languages`),
  ADD KEY `catalogs_quarantinedby` (`QUARANTINEDBY`),
  ADD KEY `catalogs_createdate` (`CreateDate`),
  ADD KEY `catalogs_isopac` (`IsOPAC`),
  ADD KEY `catalogs_Worksheet_id` (`Worksheet_id`),
  ADD KEY `catalogs_Branch_id` (`Branch_id`),
  ADD KEY `catalogs_member_idx` (`Member_id`),
  ADD KEY `catalogs_controlnumber` (`ControlNumber`),
  ADD KEY `catalogs_kii` (`KIILastUploadDate`),
  ADD KEY `catalogs_updatedate` (`UpdateDate`),
  ADD KEY `catalogs_title` (`Title`),
  ADD KEY `catalogs_publikasi` (`Publikasi`);

--
-- Indeks untuk tabel `catalogstaging`
--
ALTER TABLE `catalogstaging`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `catalogstaging_createby` (`CreateBy`),
  ADD KEY `catalogstaging_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `catalog_ruas`
--
ALTER TABLE `catalog_ruas`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `catalog_ruas_catalogs_idx` (`CatalogId`),
  ADD KEY `catalog_ruas_createby_idx` (`CreateBy`),
  ADD KEY `catalog_ruas_tag` (`Tag`),
  ADD KEY `catalog_ruas_IDX1` (`CatalogId`,`Tag`,`Value`(767)),
  ADD KEY `catalog_ruas_updateby_idx` (`UpdateBy`);

--
-- Indeks untuk tabel `catalog_subruas`
--
ALTER TABLE `catalog_subruas`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `SubRuas` (`SubRuas`),
  ADD KEY `RuasID_SubRuas` (`RuasID`,`SubRuas`),
  ADD KEY `Catalog_Subruas_Value` (`Value`(767)),
  ADD KEY `catalog_subruas_createby` (`CreateBy`),
  ADD KEY `catalog_subruas_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `checkpoint_locations`
--
ALTER TABLE `checkpoint_locations`
  ADD PRIMARY KEY (`ID`),
  ADD UNIQUE KEY `IP_PC` (`IP_PC`),
  ADD KEY `FK_logincheckpoint_locations` (`Location_ID`),
  ADD KEY `checkpoint_locations_createby` (`CreateBy`),
  ADD KEY `checkpoint_locations_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `collectioncategorys`
--
ALTER TABLE `collectioncategorys`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `collectioncategorys_createby` (`CreateBy`),
  ADD KEY `collectioncategorys_updateby` (`UpdateBy`),
  ADD KEY `collectioncategorys_kii` (`KIILastUploadDate`),
  ADD KEY `collectioncategorys_createdate` (`CreateDate`),
  ADD KEY `collectioncategorys_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `collectioncategorysdefault`
--
ALTER TABLE `collectioncategorysdefault`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `collectioncategorysdefault_category` (`CollectionCategory_id`),
  ADD KEY `collectioncategorysdefault_jenis_anggota` (`JenisAnggota_id`),
  ADD KEY `collectioncategorysdefault_createby` (`CreateBy`),
  ADD KEY `collectioncategorysdefault_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `collectioncategorysloanhari`
--
ALTER TABLE `collectioncategorysloanhari`
  ADD PRIMARY KEY (`DataID`),
  ADD KEY `collectioncategorysloanhari_category_id` (`Category_id`),
  ADD KEY `collectioncategorysloanhari_peminjaman_hari_id` (`Peminjaman_hari_id`),
  ADD KEY `collectioncategorysloanhari_createby` (`CreateBy`),
  ADD KEY `collectioncategorysloanhari_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `collectionloanextends`
--
ALTER TABLE `collectionloanextends`
  ADD PRIMARY KEY (`id`),
  ADD KEY `collectionloanextends_colloan_idx` (`CollectionLoan_id`),
  ADD KEY `collectionloanextends_colloanitem_idx` (`CollectionLoanItem_id`),
  ADD KEY `collectionloanextends_col_idx` (`Collection_id`),
  ADD KEY `collectionloanextends_member_idx` (`Member_id`),
  ADD KEY `collectionloanextends_createby_idx` (`CreateBy`),
  ADD KEY `collectionloanextends_updateby_idx` (`UpdateBy`);

--
-- Indeks untuk tabel `collectionloanitems`
--
ALTER TABLE `collectionloanitems`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `collectionloanitems_members` (`member_id`),
  ADD KEY `collectionloanitems_LoanDate` (`LoanDate`),
  ADD KEY `collectionloanitems_LoanStatus` (`LoanStatus`),
  ADD KEY `collectionloanitems_createby` (`CreateBy`),
  ADD KEY `collectionloanitems_updateby` (`UpdateBy`),
  ADD KEY `collectionloanitems_collections` (`Collection_id`),
  ADD KEY `collectionloanitems_collectionloans` (`CollectionLoan_id`),
  ADD KEY `collectionloanitems_duedate` (`DueDate`),
  ADD KEY `collectionloanitems_actualreturn` (`ActualReturn`),
  ADD KEY `collectionloanitems_idx1` (`LoanDate`,`member_id`);

--
-- Indeks untuk tabel `collectionloans`
--
ALTER TABLE `collectionloans`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `Member_id` (`Member_id`),
  ADD KEY `Branch_id` (`Branch_id`),
  ADD KEY `collectionloans_createby` (`CreateBy`),
  ADD KEY `collectionloans_updateby` (`UpdateBy`),
  ADD KEY `FK_collectionloans_location_library` (`LocationLibrary_id`);

--
-- Indeks untuk tabel `collectionlocations`
--
ALTER TABLE `collectionlocations`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `collectionlocations_createby` (`CreateBy`),
  ADD KEY `collectionlocations_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `collectionmedias`
--
ALTER TABLE `collectionmedias`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `collectionmedias_worksheet` (`Worksheet_id`),
  ADD KEY `collectionmedias_createby` (`CreateBy`),
  ADD KEY `collectionmedias_updateby` (`UpdateBy`),
  ADD KEY `collectionmedias_kii` (`KIILastUploadDate`),
  ADD KEY `collectionmedias_createdate` (`CreateDate`),
  ADD KEY `collectionmedias_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `collectionrules`
--
ALTER TABLE `collectionrules`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `collectionrules_createby` (`CreateBy`),
  ADD KEY `collectionrules_updateby` (`UpdateBy`),
  ADD KEY `collectionrules_kii` (`KIILastUploadDate`),
  ADD KEY `collectionrules_createdate` (`CreateDate`),
  ADD KEY `collectionrules_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `collectionrulesitems`
--
ALTER TABLE `collectionrulesitems`
  ADD KEY `CollectionRules_id` (`CollectionRules_id`),
  ADD KEY `collectionrulesitems_createby` (`CreateBy`),
  ADD KEY `collectionrulesitems_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `collections`
--
ALTER TABLE `collections`
  ADD PRIMARY KEY (`ID`),
  ADD UNIQUE KEY `collections_NomorBarcode` (`NomorBarcode`),
  ADD KEY `Branch_id` (`Branch_id`),
  ADD KEY `Catalog_id` (`Catalog_id`),
  ADD KEY `Partner_id` (`Partner_id`),
  ADD KEY `Location_id` (`Location_id`),
  ADD KEY `Rule_id` (`Rule_id`),
  ADD KEY `Category_id` (`Category_id`),
  ADD KEY `Media_id` (`Media_id`),
  ADD KEY `Source_id` (`Source_id`),
  ADD KEY `collections_callnumber` (`CallNumber`),
  ADD KEY `collections_status` (`Status_id`),
  ADD KEY `collections_createby` (`CreateBy`),
  ADD KEY `collections_updateby` (`UpdateBy`),
  ADD KEY `collections_quarantinedby` (`QUARANTINEDBY`),
  ADD KEY `collections_jilidcreateby` (`JILIDCREATEBY`),
  ADD KEY `collections_idjilid` (`IDJILID`),
  ADD KEY `collections_currency` (`Currency`) USING BTREE,
  ADD KEY `collections_NoInduk` (`NoInduk`) USING BTREE,
  ADD KEY `collections_edisiserial` (`EDISISERIAL`),
  ADD KEY `collections_nopanggiljilid` (`NOMORPANGGILJILID`),
  ADD KEY `collections_jilid1` (`IDJILID`,`NOMORPANGGILJILID`,`Catalog_id`),
  ADD KEY `collections_tglentryjilid` (`TGLENTRYJILID`),
  ADD KEY `collections_tanggalpengadaan` (`TanggalPengadaan`),
  ADD KEY `collections_rfid` (`RFID`),
  ADD KEY `collections_location_library_idx` (`Location_Library_id`),
  ADD KEY `collections_kii` (`KIILastUploadDate`),
  ADD KEY `collections_createdate` (`CreateDate`),
  ADD KEY `collections_updatedate` (`UpdateDate`),
  ADD KEY `collections_deposit_ws_ID` (`deposit_ws_ID`),
  ADD KEY `collection_deposit_kode_wilayah_ID` (`deposit_kode_wilayah_ID`);

--
-- Indeks untuk tabel `collectionsources`
--
ALTER TABLE `collectionsources`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `collectionsources_createby` (`CreateBy`),
  ADD KEY `collectionsources_updateby` (`UpdateBy`),
  ADD KEY `collectionsources_kii` (`KIILastUploadDate`),
  ADD KEY `collectionsources_createdate` (`CreateDate`),
  ADD KEY `collectionsources_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `collectionstatus`
--
ALTER TABLE `collectionstatus`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `collectionstatus_createby` (`CreateBy`),
  ADD KEY `collectionstatus_updateby` (`UpdateBy`),
  ADD KEY `collectionstatus_kii` (`KIILastUploadDate`),
  ADD KEY `collectionstatus_createdate` (`CreateDate`),
  ADD KEY `collectionstatus_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `colloclib`
--
ALTER TABLE `colloclib`
  ADD KEY `Col_id` (`Col_id`),
  ADD KEY `LocLib_id` (`LocLib_id`),
  ADD KEY `colloclib_createby` (`CreateBy`),
  ADD KEY `colloclib_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `currency`
--
ALTER TABLE `currency`
  ADD PRIMARY KEY (`Currency`),
  ADD UNIQUE KEY `CURRENCY_UNIQUE` (`Currency`),
  ADD KEY `currency_createby` (`CreateBy`),
  ADD KEY `currency_updateby` (`UpdateBy`),
  ADD KEY `currency_kii` (`KIILastUploadDate`),
  ADD KEY `currency_createdate` (`CreateDate`),
  ADD KEY `currency_updatedate` (`UpdateDate`),
  ADD KEY `currency_sortno` (`Sort_ID`);

--
-- Indeks untuk tabel `departments`
--
ALTER TABLE `departments`
  ADD PRIMARY KEY (`ID`),
  ADD UNIQUE KEY `Code` (`Code`),
  ADD KEY `ParentID` (`ParentID`),
  ADD KEY `departments_createby` (`CreateBy`),
  ADD KEY `departments_updateby` (`UpdateBy`),
  ADD KEY `departments_kii` (`KIILastUploadDate`),
  ADD KEY `departments_createdate` (`CreateDate`),
  ADD KEY `departments_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `deposit_group_ws`
--
ALTER TABLE `deposit_group_ws`
  ADD PRIMARY KEY (`id_group`),
  ADD KEY `deposit_group_ws_createby` (`CreateBy`),
  ADD KEY `deposit_group_ws_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `deposit_kelompok_penerbit`
--
ALTER TABLE `deposit_kelompok_penerbit`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `deposit_kelompok_penerbit_createby` (`CreateBy`);

--
-- Indeks untuk tabel `deposit_kode_wilayah`
--
ALTER TABLE `deposit_kode_wilayah`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `deposit_kode_wilayah_createby` (`CreateBy`),
  ADD KEY `deposit_kode_wilayah_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `deposit_taksiran_harga`
--
ALTER TABLE `deposit_taksiran_harga`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `colections_id` (`ID_collections`);

--
-- Indeks untuk tabel `deposit_ws`
--
ALTER TABLE `deposit_ws`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `(id_group)group-ws` (`id_group_deposit_group_ws`),
  ADD KEY `(ID)deposit_kode_wilayah` (`ID_deposit_kode_wilayah`),
  ADD KEY `(ID)deposit_kelompok_penerbit` (`id_deposit_kelompok_penerbit_ws`);

--
-- Indeks untuk tabel `djkn_data`
--
ALTER TABLE `djkn_data`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `djkn_data_createby_idx` (`CreateBy`),
  ADD KEY `djkn_data_updateby_idx` (`UpdateBy`),
  ADD KEY `djkn_data_collection_idx` (`Collection_id`);

--
-- Indeks untuk tabel `favorite`
--
ALTER TABLE `favorite`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_Catalog` (`Catalog_Id`),
  ADD KEY `FK_members` (`Member_Id`);

--
-- Indeks untuk tabel `fielddatas`
--
ALTER TABLE `fielddatas`
  ADD PRIMARY KEY (`Field_id`,`Code`),
  ADD KEY `fielddatas_delimiter` (`Delimiter`),
  ADD KEY `fielddatas_createby` (`CreateBy`),
  ADD KEY `fielddatas_updateby` (`UpdateBy`),
  ADD KEY `fielddatas_fieldid` (`Field_id`),
  ADD KEY `fielddatas_code` (`Code`);

--
-- Indeks untuk tabel `fieldgroups`
--
ALTER TABLE `fieldgroups`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `fieldgroups_createby` (`CreateBy`),
  ADD KEY `fieldgroups_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `fieldindicator1s`
--
ALTER TABLE `fieldindicator1s`
  ADD PRIMARY KEY (`Field_id`,`Code`),
  ADD KEY `Field_id` (`Field_id`),
  ADD KEY `fieldindicator1s_createby` (`CreateBy`),
  ADD KEY `fieldindicator1s_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `fieldindicator2s`
--
ALTER TABLE `fieldindicator2s`
  ADD PRIMARY KEY (`Field_id`,`Code`),
  ADD KEY `Field_id` (`Field_id`),
  ADD KEY `fieldindicator2s_createby` (`CreateBy`),
  ADD KEY `fieldindicator2s_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `fields`
--
ALTER TABLE `fields`
  ADD PRIMARY KEY (`ID`),
  ADD UNIQUE KEY `UQ_Tag` (`Tag`,`Format_id`),
  ADD KEY `Format_id` (`Format_id`),
  ADD KEY `Group_id` (`Group_id`),
  ADD KEY `fields_createby` (`CreateBy`),
  ADD KEY `fields_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `formats`
--
ALTER TABLE `formats`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `formats_createby` (`CreateBy`),
  ADD KEY `formats_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `groupguesses`
--
ALTER TABLE `groupguesses`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `groupguesses_locations` (`Location_ID`),
  ADD KEY `groupguesses_tujuankunjungan_fk` (`TujuanKunjungan_ID`),
  ADD KEY `groupguesses_createby` (`CreateBy`),
  ADD KEY `groupguesses_updateby` (`UpdateBy`),
  ADD KEY `groupguesses_loclib_idx` (`LocationLoans_ID`);

--
-- Indeks untuk tabel `historydata`
--
ALTER TABLE `historydata`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `historydata_createby` (`CreateBy`),
  ADD KEY `historydata_updateby` (`UpdateBy`),
  ADD KEY `historydata_IDX1` (`TableName`,`IDRef`,`Action`),
  ADD KEY `historydata_IDX2` (`TableName`,`Action`,`CreateBy`,`CreateDate`),
  ADD KEY `historydata_createdate` (`CreateDate`),
  ADD KEY `historydata_member_idx` (`Member_id`);

--
-- Indeks untuk tabel `holidays`
--
ALTER TABLE `holidays`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `holidays_createby` (`CreateBy`),
  ADD KEY `holidays_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `inbox`
--
ALTER TABLE `inbox`
  ADD PRIMARY KEY (`ID`);

--
-- Indeks untuk tabel `jenis_anggota`
--
ALTER TABLE `jenis_anggota`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jenis_anggota_createby` (`CreateBy`),
  ADD KEY `jenis_anggota_updateby` (`UpdateBy`),
  ADD KEY `jenis_anggota_kii` (`KIILastUploadDate`),
  ADD KEY `jenis_anggota_createdate` (`CreateDate`),
  ADD KEY `jenis_anggota_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `jenis_denda`
--
ALTER TABLE `jenis_denda`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `jenis_denda_createby` (`CreateBy`),
  ADD KEY `jenis_denda_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `jenis_kelamin`
--
ALTER TABLE `jenis_kelamin`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `jenis_kelamin_createby` (`CreateBy`),
  ADD KEY `jenis_kelamin_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `jenis_pelanggaran`
--
ALTER TABLE `jenis_pelanggaran`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `jenis_pelanggaran_createby` (`CreateBy`),
  ADD KEY `jenis_pelanggaran_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `jenis_permohonan`
--
ALTER TABLE `jenis_permohonan`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `jenis_permohonan_createby` (`CreateBy`),
  ADD KEY `jenis_permohonan_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `jenis_perpustakaan`
--
ALTER TABLE `jenis_perpustakaan`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `jenis_perpustakaan_createby` (`CreateBy`),
  ADD KEY `jenis_perpustakaan_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `judul_koleksi`
--
ALTER TABLE `judul_koleksi`
  ADD KEY `judul_koleksi_createby` (`CreateBy`),
  ADD KEY `judul_koleksi_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `kabupaten`
--
ALTER TABLE `kabupaten`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `kabupaten_nama` (`NamaKab`),
  ADD KEY `kabupaten_propinsi` (`PropinsiID`),
  ADD KEY `kabupaten_createby` (`CreateBy`),
  ADD KEY `kabupaten_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `kata_sandang`
--
ALTER TABLE `kata_sandang`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `kata_sandang_tag` (`Tag`),
  ADD KEY `kata_sandang_name` (`Name`),
  ADD KEY `kata_sandang_createby` (`CreateBy`),
  ADD KEY `kata_sandang_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `kelas_siswa`
--
ALTER TABLE `kelas_siswa`
  ADD PRIMARY KEY (`id`),
  ADD KEY `kelas_siswa_createby` (`CreateBy`),
  ADD KEY `kelas_siswa_updateby` (`UpdateBy`),
  ADD KEY `kelas_siswa_kii` (`KIILastUploadDate`),
  ADD KEY `kelas_siswa_createdate` (`CreateDate`),
  ADD KEY `kelas_siswa_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `kelompok_pelanggaran`
--
ALTER TABLE `kelompok_pelanggaran`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `kelompok_pelanggaran_createby` (`CreateBy`),
  ADD KEY `kelompok_pelanggaran_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `keranjang_anggota`
--
ALTER TABLE `keranjang_anggota`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `keranjang_anggota_createby` (`CreateBy`),
  ADD KEY `keranjang_anggota_updateby` (`UpdateBy`),
  ADD KEY `keranjang_anggota_createdate` (`CreateDate`),
  ADD KEY `keranjang_anggota_updatedate` (`UpdateDate`),
  ADD KEY `keranjang_anggota_member_idx` (`Member_id`);

--
-- Indeks untuk tabel `keranjang_katalog`
--
ALTER TABLE `keranjang_katalog`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `keranjang_katalog_createby` (`CreateBy`),
  ADD KEY `keranjang_katalog_updateby` (`UpdateBy`),
  ADD KEY `keranjang_katalog_createdate` (`CreateDate`),
  ADD KEY `keranjang_katalog_updatedate` (`UpdateDate`),
  ADD KEY `keranjang_katalog_catalog_idx` (`Catalog_id`);

--
-- Indeks untuk tabel `keranjang_koleksi`
--
ALTER TABLE `keranjang_koleksi`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `keranjang_koleksi_createby` (`CreateBy`),
  ADD KEY `keranjang_koleksi_updateby` (`UpdateBy`),
  ADD KEY `keranjang_koleksi_createdate` (`CreateDate`),
  ADD KEY `keranjang_koleksi_updatedate` (`UpdateDate`),
  ADD KEY `keranjang_koleksi_collection_idx` (`Collection_id`);

--
-- Indeks untuk tabel `kriteria_koleksi`
--
ALTER TABLE `kriteria_koleksi`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `kriteria_koleksi_idx1` (`catalog_id`),
  ADD KEY `kriteria_koleksi_createby_idx` (`CreateBy`),
  ADD KEY `kriteria_koleksi_updateby_idx` (`UpdateBy`);

--
-- Indeks untuk tabel `letter`
--
ALTER TABLE `letter`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `(ID)deposit_ws` (`PUBLISHER_ID`),
  ADD KEY `letter_createby` (`CreateBy`),
  ADD KEY `letter_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `letter_detail`
--
ALTER TABLE `letter_detail`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `(ID)letter` (`LETTER_ID`),
  ADD KEY `(ID)collectiomedias` (`SUB_TYPE_COLLECTION`);

--
-- Indeks untuk tabel `library`
--
ALTER TABLE `library`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `library_createby` (`CreateBy`),
  ADD KEY `library_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `librarysearchcriteria`
--
ALTER TABLE `librarysearchcriteria`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `librarysearchcriteria_library` (`LIBRARYID`),
  ADD KEY `librarysearchcriteria_createby` (`CreateBy`),
  ADD KEY `librarysearchcriteria_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `locations`
--
ALTER TABLE `locations`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `locations_createby` (`CreateBy`),
  ADD KEY `locations_updateby` (`UpdateBy`),
  ADD KEY `locations_kii` (`KIILastUploadDate`),
  ADD KEY `locations_createdate` (`CreateDate`),
  ADD KEY `locations_updatedate` (`UpdateDate`),
  ADD KEY `locations_loclib_idx` (`LocationLibrary_id`);

--
-- Indeks untuk tabel `location_library`
--
ALTER TABLE `location_library`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `location_library_createby` (`CreateBy`),
  ADD KEY `location_library_updateby` (`UpdateBy`),
  ADD KEY `location_library_kii` (`KIILastUploadDate`),
  ADD KEY `location_library_createdate` (`CreateDate`),
  ADD KEY `location_library_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `location_library_default`
--
ALTER TABLE `location_library_default`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `location_library_default_loc` (`Location_Library_id`),
  ADD KEY `location_library_default_jenis_anggota` (`JenisAnggota_id`),
  ADD KEY `location_library_default_createby` (`CreateBy`),
  ADD KEY `location_library_default_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `lockers`
--
ALTER TABLE `lockers`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `fk_lockers_master_loker_idx` (`loker_id`),
  ADD KEY `lockers_createby_idx` (`CreateBy`),
  ADD KEY `lockers_jenisidentitas_idx` (`id_jamin_idt`),
  ADD KEY `lockers_jenisjaminan` (`jenis_jaminan`),
  ADD KEY `lockers_noidentitas` (`no_identitas`),
  ADD KEY `lockers_nopinjama` (`No_pinjaman`),
  ADD KEY `lockers_pelanggaran_idx` (`id_pelanggaran_locker`),
  ADD KEY `lockers_tglkembali` (`tanggal_kembali`),
  ADD KEY `lockers_tglpinjam` (`tanggal_pinjam`),
  ADD KEY `lockers_uangjaminan_idx` (`id_jamin_uang`),
  ADD KEY `lockers_updateby_idx` (`UpdateBy`);

--
-- Indeks untuk tabel `logsdownload`
--
ALTER TABLE `logsdownload`
  ADD PRIMARY KEY (`id`),
  ADD KEY `fk_logsDownload_1_idx` (`User_id`),
  ADD KEY `fk_logsDownload_catalogfiles_idx` (`catalogfilesID`);

--
-- Indeks untuk tabel `logsdownload_article`
--
ALTER TABLE `logsdownload_article`
  ADD PRIMARY KEY (`id`),
  ADD KEY `fk_logsDownload_u_idx` (`User_id`),
  ADD KEY `fk_logsDownload_articlefiles_idx` (`articlefilesID`);

--
-- Indeks untuk tabel `mailserver`
--
ALTER TABLE `mailserver`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `mailserver_createby` (`CreateBy`),
  ADD KEY `mailserver_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `masa_berlaku_anggota`
--
ALTER TABLE `masa_berlaku_anggota`
  ADD PRIMARY KEY (`id`),
  ADD KEY `masa_berlaku_anggota_createby` (`CreateBy`),
  ADD KEY `masa_berlaku_anggota_updateby` (`UpdateBy`),
  ADD KEY `masa_berlaku_anggota_kii` (`KIILastUploadDate`),
  ADD KEY `masa_berlaku_anggota_createdate` (`CreateDate`),
  ADD KEY `masa_berlaku_anggota_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `master_djkn`
--
ALTER TABLE `master_djkn`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `master_djkn_createby_idx` (`CreateBy`),
  ADD KEY `master_djkn_updateby_idx` (`UpdateBy`),
  ADD KEY `master_djkn_option` (`Option_id`);

--
-- Indeks untuk tabel `master_edisi_serial`
--
ALTER TABLE `master_edisi_serial`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique` (`no_edisi_serial`),
  ADD KEY `edisiSerial_catalog` (`Catalog_id`);

--
-- Indeks untuk tabel `master_fakultas`
--
ALTER TABLE `master_fakultas`
  ADD PRIMARY KEY (`id`),
  ADD KEY `master_fakultas_createby` (`CreateBy`),
  ADD KEY `master_fakultas_updateby` (`UpdateBy`),
  ADD KEY `master_fakultas_createdate` (`CreateDate`),
  ADD KEY `master_fakultas_updatedate` (`UpdateDate`),
  ADD KEY `master_fakultas_kii` (`KIILastUploadDate`);

--
-- Indeks untuk tabel `master_jam_buka`
--
ALTER TABLE `master_jam_buka`
  ADD PRIMARY KEY (`ID`);

--
-- Indeks untuk tabel `master_jenis_identitas`
--
ALTER TABLE `master_jenis_identitas`
  ADD PRIMARY KEY (`id`),
  ADD KEY `master_jenis_identitas_createby` (`CreateBy`),
  ADD KEY `master_jenis_identitas_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `master_jenjang_pendidikan`
--
ALTER TABLE `master_jenjang_pendidikan`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `masjer_jenjang_pendidikan_create_by` (`CreateBy`),
  ADD KEY `masjer_jenjang_pendidikan_create_date` (`CreateDate`),
  ADD KEY `masjer_jenjang_pendidikan_update_by` (`UpdateBy`),
  ADD KEY `masjer_jenjang_pendidikan_update_date` (`UpdateDate`);

--
-- Indeks untuk tabel `master_jurusan`
--
ALTER TABLE `master_jurusan`
  ADD PRIMARY KEY (`id`),
  ADD KEY `master_jurusan_fakultas` (`id_fakultas`),
  ADD KEY `master_jurusan_createby` (`CreateBy`),
  ADD KEY `master_jurusan_updateby` (`UpdateBy`),
  ADD KEY `master_jurusan_kii` (`KIILastUploadDate`),
  ADD KEY `master_jurusan_createdate` (`CreateDate`),
  ADD KEY `master_jurusan_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `master_kelas_besar`
--
ALTER TABLE `master_kelas_besar`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `master_kelas_besar_createby` (`CreateBy`),
  ADD KEY `master_kelas_besar_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `master_kependudukan`
--
ALTER TABLE `master_kependudukan`
  ADD PRIMARY KEY (`id`),
  ADD KEY `master_kependudukan_createby` (`CreateBy`),
  ADD KEY `master_kependudukan_updateby` (`UpdateBy`),
  ADD KEY `master_kependudukan_nik` (`nik`);

--
-- Indeks untuk tabel `master_loker`
--
ALTER TABLE `master_loker`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `master_loker_createby_idx` (`CreateBy`),
  ADD KEY `master_loker_location_idx` (`locations_id`),
  ADD KEY `master_loker_updateby_idx` (`UpdateBy`);

--
-- Indeks untuk tabel `master_pekerjaan`
--
ALTER TABLE `master_pekerjaan`
  ADD PRIMARY KEY (`id`),
  ADD KEY `master_pekerjaan_createby` (`CreateBy`),
  ADD KEY `master_pekerjaan_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `master_pelanggaran_locker`
--
ALTER TABLE `master_pelanggaran_locker`
  ADD PRIMARY KEY (`ID`);

--
-- Indeks untuk tabel `master_pendidikan`
--
ALTER TABLE `master_pendidikan`
  ADD PRIMARY KEY (`id`),
  ADD KEY `master_pendidikan_createby` (`CreateBy`),
  ADD KEY `master_pendidikan_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `master_program_studi`
--
ALTER TABLE `master_program_studi`
  ADD PRIMARY KEY (`id`),
  ADD KEY `master_program_studi_createby` (`CreateBy`),
  ADD KEY `master_program_studi_updateby` (`UpdateBy`),
  ADD KEY `master_program_studi_kii` (`KIILastUploadDate`),
  ADD KEY `master_program_studi_jurusan_idx` (`id_jurusan`);

--
-- Indeks untuk tabel `master_range_umur`
--
ALTER TABLE `master_range_umur`
  ADD PRIMARY KEY (`id`),
  ADD KEY `master_range_umur_createby` (`CreateBy`),
  ADD KEY `master_range_umur_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `master_status_perkawinan`
--
ALTER TABLE `master_status_perkawinan`
  ADD PRIMARY KEY (`id`),
  ADD KEY `master_status_perkawinan_createby` (`CreateBy`),
  ADD KEY `master_status_perkawinan_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `master_uang_jaminan`
--
ALTER TABLE `master_uang_jaminan`
  ADD PRIMARY KEY (`ID`);

--
-- Indeks untuk tabel `memberguesses`
--
ALTER TABLE `memberguesses`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `memberguesses_locationloans` (`LOCATIONLOANS_ID`),
  ADD KEY `memberguesses_location_id` (`Location_Id`),
  ADD KEY `memberguesses_TujuanKunjungan_Id` (`TujuanKunjungan_Id`),
  ADD KEY `Membergueeses_NoPengunjung` (`NoPengunjung`),
  ADD KEY `memberguesses_status` (`Status_id`),
  ADD KEY `memberguesses_pekerjaan` (`Profesi_id`),
  ADD KEY `memberguesses_pendidikan` (`PendidikanTerakhir_id`),
  ADD KEY `memberguesses_jeniskelamin` (`JenisKelamin_id`),
  ADD KEY `memberguesses_masaberlaku` (`MasaBerlaku_id`),
  ADD KEY `memberguesses_createby` (`CreateBy`),
  ADD KEY `memberguesses_updateby` (`UpdateBy`),
  ADD KEY `memberguesses_nama` (`Nama`),
  ADD KEY `memberguesses_createdate` (`CreateDate`),
  ADD KEY `memberguesses_noanggota` (`NoAnggota`);

--
-- Indeks untuk tabel `memberloanauthorizecategory`
--
ALTER TABLE `memberloanauthorizecategory`
  ADD PRIMARY KEY (`DataID`),
  ADD KEY `CategoryLoan_id` (`CategoryLoan_id`),
  ADD KEY `Member_id` (`Member_id`),
  ADD KEY `memberloanauthorizecategory_createby` (`CreateBy`),
  ADD KEY `memberloanauthorizecategory_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `memberloanauthorizelocation`
--
ALTER TABLE `memberloanauthorizelocation`
  ADD PRIMARY KEY (`DataID`),
  ADD KEY `memberloanauthorizelocation_createby` (`CreateBy`),
  ADD KEY `memberloanauthorizelocation_updateby` (`UpdateBy`),
  ADD KEY `memberloanauthorizelocation_loc_idx` (`LocationLoan_id`),
  ADD KEY `memberloanauthorizelocation_member_idx` (`Member_id`);

--
-- Indeks untuk tabel `memberrules`
--
ALTER TABLE `memberrules`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `memberrules_createby` (`CreateBy`),
  ADD KEY `memberrules_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `members`
--
ALTER TABLE `members`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `Branch_id` (`Branch_id`),
  ADD KEY `MemberNo` (`MemberNo`),
  ADD KEY `member_job` (`Job_id`),
  ADD KEY `member_sex` (`Sex_id`),
  ADD KEY `member_agama` (`Agama_id`),
  ADD KEY `member_unit_kerja` (`UnitKerja_id`),
  ADD KEY `members_status_perkawinan` (`MaritalStatus_id`),
  ADD KEY `members_jenispermohonan` (`JenisPermohonan_id`),
  ADD KEY `members_statusanggota` (`StatusAnggota_id`),
  ADD KEY `members_education` (`EducationLevel_id`),
  ADD KEY `members_jenis_anggota` (`JenisAnggota_id`),
  ADD KEY `members_identitytype` (`IdentityType_id`),
  ADD KEY `members_kelassiswa` (`Kelas_id`),
  ADD KEY `members_fakultas` (`Fakultas_id`),
  ADD KEY `members_jurusan` (`Jurusan_id`),
  ADD KEY `members_createby` (`CreateBy`),
  ADD KEY `members_updateby` (`UpdateBy`),
  ADD KEY `members_dateofbirth` (`DateOfBirth`),
  ADD KEY `members_createdate` (`CreateDate`),
  ADD KEY `members_updatedate` (`UpdateDate`),
  ADD KEY `members_kii` (`KIILastUploadDate`),
  ADD KEY `members_registerdate` (`RegisterDate`),
  ADD KEY `members_programstudi_idx` (`ProgramStudi_id`),
  ADD KEY `members_jenjang_pendidikan` (`JenjangPendidikan_id`);

--
-- Indeks untuk tabel `membersonline`
--
ALTER TABLE `membersonline`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `BranchId` (`BranchId`),
  ADD KEY `LocationLoanId` (`LocationLoanId`),
  ADD KEY `NoAnggota` (`NoAnggota`),
  ADD KEY `membersonline_createby` (`CreateBy`),
  ADD KEY `membersonline_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `members_form`
--
ALTER TABLE `members_form`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `members_form_field` (`Member_Field_id`),
  ADD KEY `members_form_perpus` (`Jenis_Perpustakaan_id`),
  ADD KEY `members_form_createby` (`CreateBy`),
  ADD KEY `members_form_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `members_form_list`
--
ALTER TABLE `members_form_list`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `members_form_list_field` (`Member_Field_id`),
  ADD KEY `members_form_list_perpus` (`Jenis_Perpustakaan_id`),
  ADD KEY `members_form_list_createby` (`CreateBy`),
  ADD KEY `members_form_list_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `members_info_form`
--
ALTER TABLE `members_info_form`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `members_info_form_field` (`Member_Field_id`),
  ADD KEY `members_info_form_perpus` (`Jenis_Perpustakaan_id`),
  ADD KEY `members_info_form_createby` (`CreateBy`),
  ADD KEY `members_info_form_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `members_loanreturn_form`
--
ALTER TABLE `members_loanreturn_form`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `members_loanreturn_form_field` (`Member_Field_id`),
  ADD KEY `members_loanreturn_form_perpus` (`Jenis_Perpustakaan_id`),
  ADD KEY `members_loanreturn_form_createby` (`CreateBy`),
  ADD KEY `members_loanreturn_form_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `members_loan_form`
--
ALTER TABLE `members_loan_form`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `members_loan_form_field` (`Member_Field_id`),
  ADD KEY `members_loan_form_perpus` (`Jenis_Perpustakaan_id`),
  ADD KEY `members_loan_form_createby` (`CreateBy`),
  ADD KEY `members_loan_form_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `members_online_form`
--
ALTER TABLE `members_online_form`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `members_online_form_field` (`Member_Field_id`),
  ADD KEY `members_online_form_perpus` (`Jenis_Perpustakaan_id`),
  ADD KEY `members_online_form_createby` (`CreateBy`),
  ADD KEY `members_online_form_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `members_online_form_edit`
--
ALTER TABLE `members_online_form_edit`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `members_online_form_edit_field` (`Member_Field_id`),
  ADD KEY `members_online_form_edit_perpus` (`Jenis_Perpustakaan_id`),
  ADD KEY `members_online_form_edit_createby` (`CreateBy`),
  ADD KEY `members_online_form_edit_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `member_fields`
--
ALTER TABLE `member_fields`
  ADD PRIMARY KEY (`id`),
  ADD KEY `member_fields_mandatory` (`mandatory`),
  ADD KEY `member_fields_createby` (`CreateBy`),
  ADD KEY `member_fields_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `member_perpanjangan`
--
ALTER TABLE `member_perpanjangan`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `member_perpanjangan_member` (`Member_id`),
  ADD KEY `member_perpanjangan_createby` (`CreateBy`),
  ADD KEY `member_perpanjangan_updateby` (`UpdateBy`),
  ADD KEY `member_perpanjangan_createdate` (`CreateDate`),
  ADD KEY `member_perpanjangan_tanggal` (`Tanggal`);

--
-- Indeks untuk tabel `menu`
--
ALTER TABLE `menu`
  ADD PRIMARY KEY (`id`),
  ADD KEY `parent` (`parent`),
  ADD KEY `menu_createby` (`CreateBy`),
  ADD KEY `menu_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `migration`
--
ALTER TABLE `migration`
  ADD PRIMARY KEY (`version`),
  ADD KEY `migration_createby` (`CreateBy`),
  ADD KEY `migration_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `modelhistory`
--
ALTER TABLE `modelhistory`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx-table` (`table`),
  ADD KEY `idx-field_name` (`field_name`),
  ADD KEY `idx-type` (`type`),
  ADD KEY `idx-user_id` (`user_id`);

--
-- Indeks untuk tabel `modules`
--
ALTER TABLE `modules`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `Application_id` (`Application_id`),
  ADD KEY `ParentID` (`ParentID`),
  ADD KEY `modules_url` (`URL`),
  ADD KEY `modules_IsPublish` (`IsPublish`),
  ADD KEY `modules_name` (`Name`),
  ADD KEY `modules_isheader` (`IsHeader`),
  ADD KEY `modules_classname` (`ClassName`),
  ADD KEY `modules_sortno` (`SortNo`),
  ADD KEY `modules_moduleslevel` (`ModuleLevel`),
  ADD KEY `modules_createby` (`CreateBy`),
  ADD KEY `modules_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `notif_sms_gateway`
--
ALTER TABLE `notif_sms_gateway`
  ADD PRIMARY KEY (`ID`);

--
-- Indeks untuk tabel `notif_sms_gateway_hist`
--
ALTER TABLE `notif_sms_gateway_hist`
  ADD PRIMARY KEY (`ID`);

--
-- Indeks untuk tabel `opacfields`
--
ALTER TABLE `opacfields`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `opacfields_createby` (`CreateBy`),
  ADD KEY `opacfields_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `opaclogs`
--
ALTER TABLE `opaclogs`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `opaclogs_userid` (`User_id`),
  ADD KEY `opaclogs_createby_idx` (`CreateBy`),
  ADD KEY `opaclogs_updateby_idx` (`UpdateBy`);

--
-- Indeks untuk tabel `opaclogs_keyword`
--
ALTER TABLE `opaclogs_keyword`
  ADD PRIMARY KEY (`Id`),
  ADD KEY `opaclogs_keyword_field_idx` (`Field`),
  ADD KEY `opaclogs_keyword_opaclogsid_idx` (`OpaclogsId`),
  ADD KEY `opaclogs_keyword_keyword_idx` (`Keyword`(240));

--
-- Indeks untuk tabel `opac_counter`
--
ALTER TABLE `opac_counter`
  ADD PRIMARY KEY (`hit_id`);

--
-- Indeks untuk tabel `outbox`
--
ALTER TABLE `outbox`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `outbox_date` (`SendingDateTime`,`SendingTimeOut`),
  ADD KEY `outbox_sender` (`SenderID`);

--
-- Indeks untuk tabel `outbox_multipart`
--
ALTER TABLE `outbox_multipart`
  ADD PRIMARY KEY (`ID`,`SequencePosition`);

--
-- Indeks untuk tabel `partners`
--
ALTER TABLE `partners`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `Partners_Name` (`Name`),
  ADD KEY `partners_createby` (`CreateBy`),
  ADD KEY `partners_updateby` (`UpdateBy`),
  ADD KEY `partners_kii` (`KIILastUploadDate`),
  ADD KEY `partners_createdate` (`CreateDate`),
  ADD KEY `partners_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `pbk`
--
ALTER TABLE `pbk`
  ADD PRIMARY KEY (`ID`);

--
-- Indeks untuk tabel `pbk_groups`
--
ALTER TABLE `pbk_groups`
  ADD PRIMARY KEY (`ID`);

--
-- Indeks untuk tabel `pelanggaran`
--
ALTER TABLE `pelanggaran`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `Pelanggaran_JumlahDenda` (`JumlahDenda`),
  ADD KEY `pelanggaran_cli` (`CollectionLoanItem_id`),
  ADD KEY `Pelanggaran_JenisPelanggaran` (`JenisPelanggaran_id`),
  ADD KEY `Pelanggaran_JenisDenda` (`JenisDenda_id`),
  ADD KEY `pelanggaran_createby` (`CreateBy`),
  ADD KEY `pelanggaran_updateby` (`UpdateBy`),
  ADD KEY `pelanggaran_collectionloan` (`CollectionLoan_id`),
  ADD KEY `pelanggaran_member` (`Member_id`),
  ADD KEY `pelanggaran_collection` (`Collection_id`);

--
-- Indeks untuk tabel `penduduk`
--
ALTER TABLE `penduduk`
  ADD PRIMARY KEY (`id`);

--
-- Indeks untuk tabel `pengiriman`
--
ALTER TABLE `pengiriman`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `pengiriman_createby` (`CreateBy`),
  ADD KEY `pengiriman_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `pengiriman_koleksi`
--
ALTER TABLE `pengiriman_koleksi`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `pengirimankoleksi_createby` (`CreateBy`),
  ADD KEY `pengirimankoleksi_updateby` (`UpdateBy`),
  ADD KEY `pengiriman_cetak_id` (`PengirimanID`),
  ADD KEY `pengirimankoleksi_collectionid` (`Collection_id`);

--
-- Indeks untuk tabel `peraturan_peminjaman_hari`
--
ALTER TABLE `peraturan_peminjaman_hari`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `pp_hari_createby` (`CreateBy`),
  ADD KEY `pp_hari_updateby` (`UpdateBy`),
  ADD KEY `pp_hari_createdate` (`CreateDate`),
  ADD KEY `pp_hari_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `peraturan_peminjaman_tanggal`
--
ALTER TABLE `peraturan_peminjaman_tanggal`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `pp_tanggal_createby` (`CreateBy`),
  ADD KEY `pp_tanggal_updateby` (`UpdateBy`),
  ADD KEY `pp_tanggal_createdate` (`CreateDate`),
  ADD KEY `pp_tanggal_updatedate` (`UpdateDate`),
  ADD KEY `pp_tanggalawal` (`TanggalAwal`),
  ADD KEY `pp_tanggalakhir` (`TanggalAkhir`);

--
-- Indeks untuk tabel `phones`
--
ALTER TABLE `phones`
  ADD PRIMARY KEY (`IMEI`);

--
-- Indeks untuk tabel `propinsi`
--
ALTER TABLE `propinsi`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `propinsi_nama` (`NamaPropinsi`),
  ADD KEY `propinsi_createby` (`CreateBy`),
  ADD KEY `propinsi_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `publishers`
--
ALTER TABLE `publishers`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `publishers_createby` (`CreateBy`),
  ADD KEY `publishers_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `quarantined_auth_data`
--
ALTER TABLE `quarantined_auth_data`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `quarantined_auth_data_auth_header` (`Auth_Header_ID`),
  ADD KEY `quarantined_auth_data_ID` (`ID`),
  ADD KEY `quarantined_auth_data_createby` (`CreateBy`),
  ADD KEY `quarantined_auth_data_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `quarantined_auth_header`
--
ALTER TABLE `quarantined_auth_header`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `quarantined_auth_header_ID` (`ID`),
  ADD KEY `quarantined_auth_header_createby` (`CreateBy`),
  ADD KEY `quarantined_auth_header_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `quarantined_catalogs`
--
ALTER TABLE `quarantined_catalogs`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `quarantined_catalogs_ID` (`ID`),
  ADD KEY `quarantined_catalogs_createby` (`CreateBy`),
  ADD KEY `quarantined_catalogs_updateby` (`UpdateBy`),
  ADD KEY `quarantined_catalogs_member_idx` (`Member_id`),
  ADD KEY `quarantined_catalogs_qby_idx` (`QUARANTINEDBY`);

--
-- Indeks untuk tabel `quarantined_catalog_ruas`
--
ALTER TABLE `quarantined_catalog_ruas`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `quarantined_catalog_ruas_catalogs` (`CatalogId`),
  ADD KEY `quarantined_catalog_ruas_ID` (`ID`),
  ADD KEY `quarantined_catalog_ruas_createby` (`CreateBy`),
  ADD KEY `quarantined_catalog_ruas_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `quarantined_catalog_subruas`
--
ALTER TABLE `quarantined_catalog_subruas`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `quarantined_catalog_subruas_ruas` (`RuasID`),
  ADD KEY `quarantined_catalog_subruas_createby` (`CreateBy`),
  ADD KEY `quarantined_catalog_subruas_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `quarantined_collections`
--
ALTER TABLE `quarantined_collections`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `quarantined_collections_ID` (`ID`),
  ADD KEY `quarantined_collections_createby` (`CreateBy`),
  ADD KEY `quarantined_collections_updateby` (`UpdateBy`),
  ADD KEY `quarantined_collections_qby_idx` (`QUARANTINEDBY`);

--
-- Indeks untuk tabel `quarantined_pengiriman`
--
ALTER TABLE `quarantined_pengiriman`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `quarantined_pengiriman_ID` (`ID`),
  ADD KEY `quarantined_pengiriman_createby` (`CreateBy`),
  ADD KEY `quarantined_pengiriman_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `readinlocation`
--
ALTER TABLE `readinlocation`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `readinlocation_location` (`LocationId`),
  ADD KEY `readinlocation_createby` (`CreateBy`),
  ADD KEY `readinlocation_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `refferenceitems`
--
ALTER TABLE `refferenceitems`
  ADD PRIMARY KEY (`RefferenceItemsID`),
  ADD KEY `Refference_id` (`Refference_id`),
  ADD KEY `refferenceitems_code` (`Code`),
  ADD KEY `refferenceitems_createby` (`CreateBy`),
  ADD KEY `refferenceitems_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `refferences`
--
ALTER TABLE `refferences`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `refferences_format` (`Format_id`),
  ADD KEY `refferences_createby` (`CreateBy`),
  ADD KEY `refferences_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `requestcatalog`
--
ALTER TABLE `requestcatalog`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `requestcatalog_createby` (`CreateBy`),
  ADD KEY `requestcatalog_updateby` (`UpdateBy`),
  ADD KEY `requestcatalog_daterequest` (`DateRequest`),
  ADD KEY `requestcatalog_member_idx` (`MemberID`),
  ADD KEY `requestcatalog_Title` (`Title`),
  ADD KEY `requestcatalog_PublishLocation` (`PublishLocation`),
  ADD KEY `requestcatalog_PublishYear` (`PublishYear`),
  ADD KEY `requestcatalog_Publisher` (`Publisher`);

--
-- Indeks untuk tabel `rfid_temp`
--
ALTER TABLE `rfid_temp`
  ADD KEY `rfid_temp_createby` (`CreateBy`),
  ADD KEY `rfid_temp_updateby` (`UpdateBy`),
  ADD KEY `rfid_temp_ip` (`ip`),
  ADD KEY `rfid_temp_rfidno` (`rfid_no`),
  ADD KEY `rfid_temp_statusalarm` (`status_alarm`),
  ADD KEY `rfid_temp_serialnumber` (`serial_number`),
  ADD KEY `rfid_temp_itemtype` (`item_type`);

--
-- Indeks untuk tabel `rolemodule`
--
ALTER TABLE `rolemodule`
  ADD PRIMARY KEY (`Role_id`,`Module_id`),
  ADD KEY `Module_id` (`Module_id`),
  ADD KEY `Role_id` (`Role_id`),
  ADD KEY `rolemodule_isview` (`IsView`),
  ADD KEY `rolemodule_isadd` (`IsAdd`),
  ADD KEY `rolemodule_isedit` (`IsEdit`),
  ADD KEY `rolemodule_createby` (`CreateBy`),
  ADD KEY `rolemodule_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `Application_id` (`Application_id`),
  ADD KEY `roles_createby` (`CreateBy`),
  ADD KEY `roles_updateby` (`UpdateBy`),
  ADD KEY `roles_kii` (`KIILastUploadDate`),
  ADD KEY `roles_createdate` (`CreateDate`),
  ADD KEY `roles_updatedate` (`UpdateDate`);

--
-- Indeks untuk tabel `route`
--
ALTER TABLE `route`
  ADD PRIMARY KEY (`name`);

--
-- Indeks untuk tabel `sentitems`
--
ALTER TABLE `sentitems`
  ADD PRIMARY KEY (`ID`,`SequencePosition`),
  ADD KEY `sentitems_date` (`DeliveryDateTime`),
  ADD KEY `sentitems_tpmr` (`TPMR`),
  ADD KEY `sentitems_dest` (`DestinationNumber`),
  ADD KEY `sentitems_sender` (`SenderID`),
  ADD KEY `sentitems_cli_idx` (`CollectionLoanItem_id`);

--
-- Indeks untuk tabel `serial_articlefiles`
--
ALTER TABLE `serial_articlefiles`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `Articles_id` (`Articles_id`);

--
-- Indeks untuk tabel `serial_articles`
--
ALTER TABLE `serial_articles`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_title` (`Title`),
  ADD KEY `articles_catalog` (`Catalog_id`),
  ADD KEY `articles_createby` (`CreateBy`),
  ADD KEY `articles_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `serial_articles_repeatable`
--
ALTER TABLE `serial_articles_repeatable`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `SERIAL_ARTICLE_ID` (`serial_article_ID`),
  ADD KEY `CREATE_USER` (`CreateBy`),
  ADD KEY `UPDATE_USER` (`UpdateBy`);

--
-- Indeks untuk tabel `session`
--
ALTER TABLE `session`
  ADD PRIMARY KEY (`id`);

--
-- Indeks untuk tabel `settingcatalogdetail`
--
ALTER TABLE `settingcatalogdetail`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `settingcatalogdetail_Field` (`Field_id`),
  ADD KEY `settingcatalogdetail_createby` (`CreateBy`),
  ADD KEY `settingcatalogdetail_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `settingparameters`
--
ALTER TABLE `settingparameters`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `settingparameters_name` (`Name`),
  ADD KEY `settingparameters_createby` (`CreateBy`),
  ADD KEY `settingparameters_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `smslogs`
--
ALTER TABLE `smslogs`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `recieverID_IDX` (`recieverID`),
  ADD KEY `phoneNumber_IDX` (`phoneNumber`),
  ADD KEY `updateby` (`CreateBy`),
  ADD KEY `createby` (`UpdateBy`);

--
-- Indeks untuk tabel `status_anggota`
--
ALTER TABLE `status_anggota`
  ADD PRIMARY KEY (`id`),
  ADD KEY `status_anggota_createby` (`CreateBy`),
  ADD KEY `status_anggota_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `stockopname`
--
ALTER TABLE `stockopname`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `stockopname_createby` (`CreateBy`),
  ADD KEY `stockopname_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `stockopnamedetail`
--
ALTER TABLE `stockopnamedetail`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `stockopnamedetail_stockopname` (`StockOpnameID`),
  ADD KEY `stockopnamedetail_collection` (`CollectionID`),
  ADD KEY `stockopnamedetail_location1` (`PrevLocationID`),
  ADD KEY `stockopnamedetail_location2` (`CurrentLocationID`),
  ADD KEY `stockopnamedetail_collectionrule1` (`PrevCollectionRuleID`),
  ADD KEY `stockopnamedetail_collectionrule2` (`CurrentCollectionRuleID`),
  ADD KEY `stockopnamedetail_colstatus1` (`PrevStatusID`),
  ADD KEY `stockopnamedetail_colstatus2` (`CurrentStatusID`),
  ADD KEY `stockopnamedetail_createby` (`CreateBy`),
  ADD KEY `stockopnamedetail_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `sumbangan`
--
ALTER TABLE `sumbangan`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `sumbangan_member` (`Member_id`),
  ADD KEY `sumbangan_createby` (`CreateBy`),
  ADD KEY `sumbangan_updateby` (`UpdateBy`),
  ADD KEY `sumbangan_createdate` (`CreateDate`);

--
-- Indeks untuk tabel `sumbangan_koleksi`
--
ALTER TABLE `sumbangan_koleksi`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `sumbangan_koleksi_collection_idx` (`Collection_id`),
  ADD KEY `sumbangan_koleksi_sumbangan_idx` (`Sumbangan_id`) USING BTREE,
  ADD KEY `sumbangan_koleksi_createby` (`CreateBy`),
  ADD KEY `sumbangan_koleksi_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `survey`
--
ALTER TABLE `survey`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `survey_createby_idx` (`CreateBy`),
  ADD KEY `survey_updateby_idx` (`UpdateBy`);

--
-- Indeks untuk tabel `survey_isian`
--
ALTER TABLE `survey_isian`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `survey_isian_pertanyaan_idx` (`Survey_Pertanyaan_id`),
  ADD KEY `survey_isian_sesi` (`Sesi`);

--
-- Indeks untuk tabel `survey_pertanyaan`
--
ALTER TABLE `survey_pertanyaan`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `survey_pertanyaan_survey_idx` (`Survey_id`),
  ADD KEY `survey_pertanyaan_createby_idx` (`CreateBy`),
  ADD KEY `survey_pertanyaan_updateby_idx` (`UpdateBy`),
  ADD KEY `survey_pertanyaan_nourut` (`NoUrut`),
  ADD KEY `survey_pertanyaan_jenis` (`JenisPertanyaan`);

--
-- Indeks untuk tabel `survey_pilihan`
--
ALTER TABLE `survey_pilihan`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `survey_pilihan_survey_pertanyaan_idx` (`Survey_Pertanyaan_id`),
  ADD KEY `survey_pilihan_createby_idx` (`CreateBy`),
  ADD KEY `survey_pilihan_updateby_idx` (`UpdateBy`);

--
-- Indeks untuk tabel `survey_pilihan_sesi`
--
ALTER TABLE `survey_pilihan_sesi`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `survey_pilihan_sesi_pilihan_idx` (`Survey_Pilihan_id`),
  ADD KEY `survey_pilihan_sesi` (`Sesi`);

--
-- Indeks untuk tabel `tempnoinduk`
--
ALTER TABLE `tempnoinduk`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `tempnoinduk_createby` (`CreateBy`),
  ADD KEY `tempnoinduk_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `tujuan_kunjungan`
--
ALTER TABLE `tujuan_kunjungan`
  ADD PRIMARY KEY (`ID`),
  ADD UNIQUE KEY `Code` (`Code`),
  ADD KEY `tujuan_kunjungan_createby` (`CreateBy`),
  ADD KEY `tujuan_kunjungan_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `user`
--
ALTER TABLE `user`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `username` (`username`),
  ADD UNIQUE KEY `email` (`email`),
  ADD UNIQUE KEY `password_reset_token` (`password_reset_token`),
  ADD KEY `user_createby` (`CreateBy`),
  ADD KEY `user` (`UpdateBy`);

--
-- Indeks untuk tabel `userloclibforcol`
--
ALTER TABLE `userloclibforcol`
  ADD KEY `User_id` (`User_id`),
  ADD KEY `LocLib_id` (`LocLib_id`),
  ADD KEY `userloclibforcol_createby` (`CreateBy`),
  ADD KEY `userloclibforcol_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `userloclibforloan`
--
ALTER TABLE `userloclibforloan`
  ADD KEY `User_id` (`User_id`),
  ADD KEY `LocLib_id` (`LocLib_id`),
  ADD KEY `userloclibforloan_createby` (`CreateBy`),
  ADD KEY `userloclibforloan` (`UpdateBy`);

--
-- Indeks untuk tabel `userlogs`
--
ALTER TABLE `userlogs`
  ADD KEY `User_id` (`User_id`),
  ADD KEY `userlogs_createby` (`CreateBy`),
  ADD KEY `userlogs` (`UpdateBy`);

--
-- Indeks untuk tabel `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `Department_id` (`Department_id`),
  ADD KEY `Branch_id` (`Branch_id`),
  ADD KEY `Role_id` (`Role_id`),
  ADD KEY `Users_Password` (`password`),
  ADD KEY `users_createby` (`CreateBy`),
  ADD KEY `users_updateby` (`UpdateBy`),
  ADD KEY `users_kii` (`KIILastUploadDate`),
  ADD KEY `Users_UserName` (`username`),
  ADD KEY `users_createdate` (`CreateDate`),
  ADD KEY `users_updatedate` (`UpdateDate`),
  ADD KEY `users_IsActive` (`IsActive`);

--
-- Indeks untuk tabel `worksheetfielditems`
--
ALTER TABLE `worksheetfielditems`
  ADD KEY `Refference_id` (`Refference_id`),
  ADD KEY `WorksheetField_id` (`WorksheetField_id`),
  ADD KEY `WFItems_StartPosition` (`StartPosition`),
  ADD KEY `worksheetfielditems_createby` (`CreateBy`),
  ADD KEY `worksheetfielditems_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `worksheetfields`
--
ALTER TABLE `worksheetfields`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `Field_id` (`Field_id`),
  ADD KEY `Worksheet_id` (`Worksheet_id`),
  ADD KEY `worksheetfields_createby` (`CreateBy`),
  ADD KEY `worksheetfields_updateby` (`UpdateBy`);

--
-- Indeks untuk tabel `worksheets`
--
ALTER TABLE `worksheets`
  ADD PRIMARY KEY (`ID`),
  ADD UNIQUE KEY `Name` (`Name`),
  ADD KEY `Format_id` (`Format_id`),
  ADD KEY `worksheets_createby` (`CreateBy`),
  ADD KEY `worksheets_updateby` (`UpdateBy`);

--
-- AUTO_INCREMENT untuk tabel yang dibuang
--

--
-- AUTO_INCREMENT untuk tabel `agama`
--
ALTER TABLE `agama`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT untuk tabel `applications`
--
ALTER TABLE `applications`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT untuk tabel `app_installed`
--
ALTER TABLE `app_installed`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `auth_data`
--
ALTER TABLE `auth_data`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `auth_header`
--
ALTER TABLE `auth_header`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `bacaditempat`
--
ALTER TABLE `bacaditempat`
  MODIFY `ID` double NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `bacaditempat_locations`
--
ALTER TABLE `bacaditempat_locations`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `backup`
--
ALTER TABLE `backup`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `bookmark`
--
ALTER TABLE `bookmark`
  MODIFY `ID` double NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `branchs`
--
ALTER TABLE `branchs`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;

--
-- AUTO_INCREMENT untuk tabel `cardformats`
--
ALTER TABLE `cardformats`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT untuk tabel `catalogfiles`
--
ALTER TABLE `catalogfiles`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT untuk tabel `catalogs`
--
ALTER TABLE `catalogs`
  MODIFY `ID` double NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=810;

--
-- AUTO_INCREMENT untuk tabel `catalogstaging`
--
ALTER TABLE `catalogstaging`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `catalog_ruas`
--
ALTER TABLE `catalog_ruas`
  MODIFY `ID` double NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13632;

--
-- AUTO_INCREMENT untuk tabel `catalog_subruas`
--
ALTER TABLE `catalog_subruas`
  MODIFY `ID` double NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15854;

--
-- AUTO_INCREMENT untuk tabel `checkpoint_locations`
--
ALTER TABLE `checkpoint_locations`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `collectioncategorys`
--
ALTER TABLE `collectioncategorys`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT untuk tabel `collectioncategorysdefault`
--
ALTER TABLE `collectioncategorysdefault`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;

--
-- AUTO_INCREMENT untuk tabel `collectioncategorysloanhari`
--
ALTER TABLE `collectioncategorysloanhari`
  MODIFY `DataID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=62;

--
-- AUTO_INCREMENT untuk tabel `collectionloanextends`
--
ALTER TABLE `collectionloanextends`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `collectionloanitems`
--
ALTER TABLE `collectionloanitems`
  MODIFY `ID` double NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `collectionlocations`
--
ALTER TABLE `collectionlocations`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `collectionmedias`
--
ALTER TABLE `collectionmedias`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;

--
-- AUTO_INCREMENT untuk tabel `collectionrules`
--
ALTER TABLE `collectionrules`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT untuk tabel `collections`
--
ALTER TABLE `collections`
  MODIFY `ID` double NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2743;

--
-- AUTO_INCREMENT untuk tabel `collectionsources`
--
ALTER TABLE `collectionsources`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT untuk tabel `collectionstatus`
--
ALTER TABLE `collectionstatus`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT untuk tabel `departments`
--
ALTER TABLE `departments`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT untuk tabel `deposit_group_ws`
--
ALTER TABLE `deposit_group_ws`
  MODIFY `id_group` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `deposit_kelompok_penerbit`
--
ALTER TABLE `deposit_kelompok_penerbit`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT untuk tabel `deposit_kode_wilayah`
--
ALTER TABLE `deposit_kode_wilayah`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `deposit_taksiran_harga`
--
ALTER TABLE `deposit_taksiran_harga`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `deposit_ws`
--
ALTER TABLE `deposit_ws`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `djkn_data`
--
ALTER TABLE `djkn_data`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `favorite`
--
ALTER TABLE `favorite`
  MODIFY `id` double NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `fieldgroups`
--
ALTER TABLE `fieldgroups`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT untuk tabel `fields`
--
ALTER TABLE `fields`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=143;

--
-- AUTO_INCREMENT untuk tabel `formats`
--
ALTER TABLE `formats`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT untuk tabel `groupguesses`
--
ALTER TABLE `groupguesses`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `historydata`
--
ALTER TABLE `historydata`
  MODIFY `ID` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `holidays`
--
ALTER TABLE `holidays`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT untuk tabel `inbox`
--
ALTER TABLE `inbox`
  MODIFY `ID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `jenis_anggota`
--
ALTER TABLE `jenis_anggota`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT untuk tabel `jenis_denda`
--
ALTER TABLE `jenis_denda`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT untuk tabel `jenis_kelamin`
--
ALTER TABLE `jenis_kelamin`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT untuk tabel `jenis_pelanggaran`
--
ALTER TABLE `jenis_pelanggaran`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT untuk tabel `jenis_permohonan`
--
ALTER TABLE `jenis_permohonan`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT untuk tabel `jenis_perpustakaan`
--
ALTER TABLE `jenis_perpustakaan`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT untuk tabel `kabupaten`
--
ALTER TABLE `kabupaten`
  MODIFY `ID` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=499;

--
-- AUTO_INCREMENT untuk tabel `kata_sandang`
--
ALTER TABLE `kata_sandang`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT untuk tabel `kelas_siswa`
--
ALTER TABLE `kelas_siswa`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT untuk tabel `kelompok_pelanggaran`
--
ALTER TABLE `kelompok_pelanggaran`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `keranjang_anggota`
--
ALTER TABLE `keranjang_anggota`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `keranjang_katalog`
--
ALTER TABLE `keranjang_katalog`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT untuk tabel `keranjang_koleksi`
--
ALTER TABLE `keranjang_koleksi`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `kriteria_koleksi`
--
ALTER TABLE `kriteria_koleksi`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `letter`
--
ALTER TABLE `letter`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `letter_detail`
--
ALTER TABLE `letter_detail`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `library`
--
ALTER TABLE `library`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT untuk tabel `librarysearchcriteria`
--
ALTER TABLE `librarysearchcriteria`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT untuk tabel `locations`
--
ALTER TABLE `locations`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=643;

--
-- AUTO_INCREMENT untuk tabel `location_library`
--
ALTER TABLE `location_library`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT untuk tabel `location_library_default`
--
ALTER TABLE `location_library_default`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT untuk tabel `lockers`
--
ALTER TABLE `lockers`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `logsdownload`
--
ALTER TABLE `logsdownload`
  MODIFY `id` bigint(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT untuk tabel `logsdownload_article`
--
ALTER TABLE `logsdownload_article`
  MODIFY `id` bigint(30) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `mailserver`
--
ALTER TABLE `mailserver`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `masa_berlaku_anggota`
--
ALTER TABLE `masa_berlaku_anggota`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `master_djkn`
--
ALTER TABLE `master_djkn`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `master_edisi_serial`
--
ALTER TABLE `master_edisi_serial`
  MODIFY `id` double NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `master_fakultas`
--
ALTER TABLE `master_fakultas`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `master_jam_buka`
--
ALTER TABLE `master_jam_buka`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT untuk tabel `master_jenis_identitas`
--
ALTER TABLE `master_jenis_identitas`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT untuk tabel `master_jenjang_pendidikan`
--
ALTER TABLE `master_jenjang_pendidikan`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `master_jurusan`
--
ALTER TABLE `master_jurusan`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT untuk tabel `master_kelas_besar`
--
ALTER TABLE `master_kelas_besar`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT untuk tabel `master_kependudukan`
--
ALTER TABLE `master_kependudukan`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT untuk tabel `master_loker`
--
ALTER TABLE `master_loker`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT untuk tabel `master_pekerjaan`
--
ALTER TABLE `master_pekerjaan`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT untuk tabel `master_pelanggaran_locker`
--
ALTER TABLE `master_pelanggaran_locker`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT untuk tabel `master_pendidikan`
--
ALTER TABLE `master_pendidikan`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT untuk tabel `master_program_studi`
--
ALTER TABLE `master_program_studi`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT untuk tabel `master_range_umur`
--
ALTER TABLE `master_range_umur`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT untuk tabel `master_status_perkawinan`
--
ALTER TABLE `master_status_perkawinan`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT untuk tabel `master_uang_jaminan`
--
ALTER TABLE `master_uang_jaminan`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `memberguesses`
--
ALTER TABLE `memberguesses`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `memberloanauthorizecategory`
--
ALTER TABLE `memberloanauthorizecategory`
  MODIFY `DataID` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1733;

--
-- AUTO_INCREMENT untuk tabel `memberloanauthorizelocation`
--
ALTER TABLE `memberloanauthorizelocation`
  MODIFY `DataID` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1156;

--
-- AUTO_INCREMENT untuk tabel `memberrules`
--
ALTER TABLE `memberrules`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT untuk tabel `members`
--
ALTER TABLE `members`
  MODIFY `ID` double NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=972;

--
-- AUTO_INCREMENT untuk tabel `membersonline`
--
ALTER TABLE `membersonline`
  MODIFY `ID` int(9) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=301;

--
-- AUTO_INCREMENT untuk tabel `members_form`
--
ALTER TABLE `members_form`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=971;

--
-- AUTO_INCREMENT untuk tabel `members_form_list`
--
ALTER TABLE `members_form_list`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=208;

--
-- AUTO_INCREMENT untuk tabel `members_info_form`
--
ALTER TABLE `members_info_form`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=121;

--
-- AUTO_INCREMENT untuk tabel `members_loanreturn_form`
--
ALTER TABLE `members_loanreturn_form`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=80;

--
-- AUTO_INCREMENT untuk tabel `members_loan_form`
--
ALTER TABLE `members_loan_form`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=104;

--
-- AUTO_INCREMENT untuk tabel `members_online_form`
--
ALTER TABLE `members_online_form`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=520;

--
-- AUTO_INCREMENT untuk tabel `members_online_form_edit`
--
ALTER TABLE `members_online_form_edit`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=75;

--
-- AUTO_INCREMENT untuk tabel `member_fields`
--
ALTER TABLE `member_fields`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49;

--
-- AUTO_INCREMENT untuk tabel `member_perpanjangan`
--
ALTER TABLE `member_perpanjangan`
  MODIFY `ID` double NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `menu`
--
ALTER TABLE `menu`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=257;

--
-- AUTO_INCREMENT untuk tabel `modelhistory`
--
ALTER TABLE `modelhistory`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=118234;

--
-- AUTO_INCREMENT untuk tabel `modules`
--
ALTER TABLE `modules`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=357;

--
-- AUTO_INCREMENT untuk tabel `notif_sms_gateway`
--
ALTER TABLE `notif_sms_gateway`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `notif_sms_gateway_hist`
--
ALTER TABLE `notif_sms_gateway_hist`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `opaclogs`
--
ALTER TABLE `opaclogs`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;

--
-- AUTO_INCREMENT untuk tabel `opaclogs_keyword`
--
ALTER TABLE `opaclogs_keyword`
  MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;

--
-- AUTO_INCREMENT untuk tabel `opac_counter`
--
ALTER TABLE `opac_counter`
  MODIFY `hit_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50;

--
-- AUTO_INCREMENT untuk tabel `outbox`
--
ALTER TABLE `outbox`
  MODIFY `ID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT untuk tabel `partners`
--
ALTER TABLE `partners`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1099;

--
-- AUTO_INCREMENT untuk tabel `pbk`
--
ALTER TABLE `pbk`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `pbk_groups`
--
ALTER TABLE `pbk_groups`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `pelanggaran`
--
ALTER TABLE `pelanggaran`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `penduduk`
--
ALTER TABLE `penduduk`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `pengiriman`
--
ALTER TABLE `pengiriman`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `pengiriman_koleksi`
--
ALTER TABLE `pengiriman_koleksi`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `peraturan_peminjaman_hari`
--
ALTER TABLE `peraturan_peminjaman_hari`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `peraturan_peminjaman_tanggal`
--
ALTER TABLE `peraturan_peminjaman_tanggal`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `propinsi`
--
ALTER TABLE `propinsi`
  MODIFY `ID` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34;

--
-- AUTO_INCREMENT untuk tabel `publishers`
--
ALTER TABLE `publishers`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `readinlocation`
--
ALTER TABLE `readinlocation`
  MODIFY `ID` double NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `refferenceitems`
--
ALTER TABLE `refferenceitems`
  MODIFY `RefferenceItemsID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1421;

--
-- AUTO_INCREMENT untuk tabel `refferences`
--
ALTER TABLE `refferences`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=151;

--
-- AUTO_INCREMENT untuk tabel `requestcatalog`
--
ALTER TABLE `requestcatalog`
  MODIFY `ID` int(10) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `roles`
--
ALTER TABLE `roles`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;

--
-- AUTO_INCREMENT untuk tabel `serial_articlefiles`
--
ALTER TABLE `serial_articlefiles`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `serial_articles`
--
ALTER TABLE `serial_articles`
  MODIFY `id` double NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `serial_articles_repeatable`
--
ALTER TABLE `serial_articles_repeatable`
  MODIFY `ID` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `settingcatalogdetail`
--
ALTER TABLE `settingcatalogdetail`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=256;

--
-- AUTO_INCREMENT untuk tabel `settingparameters`
--
ALTER TABLE `settingparameters`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=129;

--
-- AUTO_INCREMENT untuk tabel `smslogs`
--
ALTER TABLE `smslogs`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `status_anggota`
--
ALTER TABLE `status_anggota`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT untuk tabel `stockopname`
--
ALTER TABLE `stockopname`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `stockopnamedetail`
--
ALTER TABLE `stockopnamedetail`
  MODIFY `ID` double NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `sumbangan`
--
ALTER TABLE `sumbangan`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `sumbangan_koleksi`
--
ALTER TABLE `sumbangan_koleksi`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `survey`
--
ALTER TABLE `survey`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `survey_isian`
--
ALTER TABLE `survey_isian`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `survey_pertanyaan`
--
ALTER TABLE `survey_pertanyaan`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `survey_pilihan`
--
ALTER TABLE `survey_pilihan`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `survey_pilihan_sesi`
--
ALTER TABLE `survey_pilihan_sesi`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `tempnoinduk`
--
ALTER TABLE `tempnoinduk`
  MODIFY `ID` double NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2090;

--
-- AUTO_INCREMENT untuk tabel `tujuan_kunjungan`
--
ALTER TABLE `tujuan_kunjungan`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT untuk tabel `user`
--
ALTER TABLE `user`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `users`
--
ALTER TABLE `users`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47;

--
-- AUTO_INCREMENT untuk tabel `worksheetfields`
--
ALTER TABLE `worksheetfields`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1212;

--
-- AUTO_INCREMENT untuk tabel `worksheets`
--
ALTER TABLE `worksheets`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=70;

--
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
--

--
-- Ketidakleluasaan untuk tabel `agama`
--
ALTER TABLE `agama`
  ADD CONSTRAINT `agama_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `agama_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `applications`
--
ALTER TABLE `applications`
  ADD CONSTRAINT `applications_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `applications_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `auth_assignment`
--
ALTER TABLE `auth_assignment`
  ADD CONSTRAINT `auth_assignment_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `auth_assignment_ibfk_1` FOREIGN KEY (`item_name`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `auth_assignment_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `auth_data`
--
ALTER TABLE `auth_data`
  ADD CONSTRAINT `auth_data_auth_header` FOREIGN KEY (`Auth_Header_ID`) REFERENCES `auth_header` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `auth_data_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `auth_data_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `auth_header`
--
ALTER TABLE `auth_header`
  ADD CONSTRAINT `auth_header_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `auth_header_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `auth_header_worksheet_id` FOREIGN KEY (`Worksheet_id`) REFERENCES `worksheets` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `auth_item`
--
ALTER TABLE `auth_item`
  ADD CONSTRAINT `auth_item_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `auth_item_ibfk_1` FOREIGN KEY (`rule_name`) REFERENCES `auth_rule` (`name`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `auth_item_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `auth_item_child`
--
ALTER TABLE `auth_item_child`
  ADD CONSTRAINT `auth_item_child_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `auth_item_child_ibfk_1` FOREIGN KEY (`parent`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `auth_item_child_ibfk_2` FOREIGN KEY (`child`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `auth_item_child_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `auth_rule`
--
ALTER TABLE `auth_rule`
  ADD CONSTRAINT `auth_rule_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `auth_rule_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `bacaditempat`
--
ALTER TABLE `bacaditempat`
  ADD CONSTRAINT `bacaditempat_collections` FOREIGN KEY (`collection_id`) REFERENCES `collections` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `bacaditempat_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `bacaditempat_locations` FOREIGN KEY (`Location_Id`) REFERENCES `locations` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `bacaditempat_members` FOREIGN KEY (`Member_id`) REFERENCES `members` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `bibidavailable`
--
ALTER TABLE `bibidavailable`
  ADD CONSTRAINT `bibidavailable_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `bibidavailable_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `bookinglogs`
--
ALTER TABLE `bookinglogs`
  ADD CONSTRAINT `fk_bookinglogs_memberId` FOREIGN KEY (`memberId`) REFERENCES `members` (`MemberNo`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `bookmark`
--
ALTER TABLE `bookmark`
  ADD CONSTRAINT `bookmark_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `bookmark_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `branchs`
--
ALTER TABLE `branchs`
  ADD CONSTRAINT `branchs_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `branchs_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `cardformats`
--
ALTER TABLE `cardformats`
  ADD CONSTRAINT `cardformats_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `cardformats_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `catalogfiles`
--
ALTER TABLE `catalogfiles`
  ADD CONSTRAINT `catalogfiles_catalog` FOREIGN KEY (`Catalog_id`) REFERENCES `catalogs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `catalogfiles_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `catalogfiles_member` FOREIGN KEY (`Member_id`) REFERENCES `members` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `catalogfiles_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `catalogs`
--
ALTER TABLE `catalogs`
  ADD CONSTRAINT `catalogs_branch` FOREIGN KEY (`Branch_id`) REFERENCES `branchs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `catalogs_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `catalogs_member` FOREIGN KEY (`Member_id`) REFERENCES `members` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `catalogs_quarantinedby` FOREIGN KEY (`QUARANTINEDBY`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `catalogs_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `catalogs_worksheet` FOREIGN KEY (`Worksheet_id`) REFERENCES `worksheets` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `catalogstaging`
--
ALTER TABLE `catalogstaging`
  ADD CONSTRAINT `catalogstaging_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `catalogstaging_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `catalog_ruas`
--
ALTER TABLE `catalog_ruas`
  ADD CONSTRAINT `catalog_ruas_catalogs` FOREIGN KEY (`CatalogId`) REFERENCES `catalogs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `catalog_ruas_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `catalog_ruas_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `catalog_subruas`
--
ALTER TABLE `catalog_subruas`
  ADD CONSTRAINT `catalog_subruas_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `catalog_subruas_ruas` FOREIGN KEY (`RuasID`) REFERENCES `catalog_ruas` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `catalog_subruas_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `checkpoint_locations`
--
ALTER TABLE `checkpoint_locations`
  ADD CONSTRAINT `FK_logincheckpoint_locations` FOREIGN KEY (`Location_ID`) REFERENCES `locations` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `checkpoint_locations_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `checkpoint_locations_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `collectioncategorys`
--
ALTER TABLE `collectioncategorys`
  ADD CONSTRAINT `collectioncategorys_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectioncategorys_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `collectioncategorysdefault`
--
ALTER TABLE `collectioncategorysdefault`
  ADD CONSTRAINT `collectioncategorysdefault_category` FOREIGN KEY (`CollectionCategory_id`) REFERENCES `collectioncategorys` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collectioncategorysdefault_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectioncategorysdefault_jenis_anggota` FOREIGN KEY (`JenisAnggota_id`) REFERENCES `jenis_anggota` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collectioncategorysdefault_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `collectioncategorysloanhari`
--
ALTER TABLE `collectioncategorysloanhari`
  ADD CONSTRAINT `collectioncategorysloanhari_category_id` FOREIGN KEY (`Category_id`) REFERENCES `collectioncategorys` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collectioncategorysloanhari_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectioncategorysloanhari_peminjaman_hari_id` FOREIGN KEY (`Peminjaman_hari_id`) REFERENCES `peraturan_peminjaman_hari` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collectioncategorysloanhari_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `collectionloanextends`
--
ALTER TABLE `collectionloanextends`
  ADD CONSTRAINT `collectionloanextends_col` FOREIGN KEY (`Collection_id`) REFERENCES `collections` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionloanextends_colloan` FOREIGN KEY (`CollectionLoan_id`) REFERENCES `collectionloans` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionloanextends_colloanitem` FOREIGN KEY (`CollectionLoanItem_id`) REFERENCES `collectionloanitems` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionloanextends_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionloanextends_member` FOREIGN KEY (`Member_id`) REFERENCES `members` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionloanextends_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `collectionloanitems`
--
ALTER TABLE `collectionloanitems`
  ADD CONSTRAINT `collectionloanitems_col` FOREIGN KEY (`Collection_id`) REFERENCES `collections` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionloanitems_colloan` FOREIGN KEY (`CollectionLoan_id`) REFERENCES `collectionloans` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionloanitems_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionloanitems_members` FOREIGN KEY (`member_id`) REFERENCES `members` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionloanitems_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `collectionloans`
--
ALTER TABLE `collectionloans`
  ADD CONSTRAINT `FKA5D300395DD8E7A8` FOREIGN KEY (`Member_id`) REFERENCES `members` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `FKA5D300396ADC8006` FOREIGN KEY (`Branch_id`) REFERENCES `branchs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `FK_collectionloans_location_library` FOREIGN KEY (`LocationLibrary_id`) REFERENCES `location_library` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionloans_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionloans_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `collectionlocations`
--
ALTER TABLE `collectionlocations`
  ADD CONSTRAINT `collectionlocations_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionlocations_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `collectionmedias`
--
ALTER TABLE `collectionmedias`
  ADD CONSTRAINT `collectionmedias_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionmedias_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionmedias_worksheet` FOREIGN KEY (`Worksheet_id`) REFERENCES `worksheets` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `collectionrules`
--
ALTER TABLE `collectionrules`
  ADD CONSTRAINT `collectionrules_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionrules_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `collectionrulesitems`
--
ALTER TABLE `collectionrulesitems`
  ADD CONSTRAINT `FKA288C9A1451A301A` FOREIGN KEY (`CollectionRules_id`) REFERENCES `collectionrules` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionrulesitems_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionrulesitems_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `collections`
--
ALTER TABLE `collections`
  ADD CONSTRAINT `collection_deposit_kode_wilayah_ID` FOREIGN KEY (`deposit_kode_wilayah_ID`) REFERENCES `deposit_kode_wilayah` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_branch` FOREIGN KEY (`Branch_id`) REFERENCES `branchs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_catalog` FOREIGN KEY (`Catalog_id`) REFERENCES `catalogs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_category` FOREIGN KEY (`Category_id`) REFERENCES `collectioncategorys` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_currency` FOREIGN KEY (`Currency`) REFERENCES `currency` (`Currency`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_deposit_ws_ID` FOREIGN KEY (`deposit_ws_ID`) REFERENCES `deposit_ws` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_jilidcreateby` FOREIGN KEY (`JILIDCREATEBY`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_location` FOREIGN KEY (`Location_id`) REFERENCES `locations` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_location_library` FOREIGN KEY (`Location_Library_id`) REFERENCES `location_library` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_media` FOREIGN KEY (`Media_id`) REFERENCES `collectionmedias` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_partner` FOREIGN KEY (`Partner_id`) REFERENCES `partners` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_quarantinedby` FOREIGN KEY (`QUARANTINEDBY`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_rule` FOREIGN KEY (`Rule_id`) REFERENCES `collectionrules` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_source` FOREIGN KEY (`Source_id`) REFERENCES `collectionsources` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_status` FOREIGN KEY (`Status_id`) REFERENCES `collectionstatus` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `collections_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `collectionsources`
--
ALTER TABLE `collectionsources`
  ADD CONSTRAINT `collectionsources_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionsources_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `collectionstatus`
--
ALTER TABLE `collectionstatus`
  ADD CONSTRAINT `collectionstatus_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `collectionstatus_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `colloclib`
--
ALTER TABLE `colloclib`
  ADD CONSTRAINT `FK_colloclib_col` FOREIGN KEY (`Col_id`) REFERENCES `collections` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `FK_colloclib_loclib` FOREIGN KEY (`LocLib_id`) REFERENCES `location_library` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `colloclib_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `colloclib_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `currency`
--
ALTER TABLE `currency`
  ADD CONSTRAINT `currency_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `currency_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `departments`
--
ALTER TABLE `departments`
  ADD CONSTRAINT `FKFE0DEFC7922003A1` FOREIGN KEY (`ParentID`) REFERENCES `departments` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `departments_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `departments_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `deposit_group_ws`
--
ALTER TABLE `deposit_group_ws`
  ADD CONSTRAINT `deposit_group_ws_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `deposit_group_ws_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `deposit_kelompok_penerbit`
--
ALTER TABLE `deposit_kelompok_penerbit`
  ADD CONSTRAINT `deposit_kelompok_penerbit_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `deposit_kode_wilayah`
--
ALTER TABLE `deposit_kode_wilayah`
  ADD CONSTRAINT `deposit_kode_wilayah_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `deposit_kode_wilayah_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `deposit_taksiran_harga`
--
ALTER TABLE `deposit_taksiran_harga`
  ADD CONSTRAINT `colections_id` FOREIGN KEY (`ID_collections`) REFERENCES `collections` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `deposit_ws`
--
ALTER TABLE `deposit_ws`
  ADD CONSTRAINT `(ID)deposit_kelompok_penerbit` FOREIGN KEY (`id_deposit_kelompok_penerbit_ws`) REFERENCES `deposit_kelompok_penerbit` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `(ID)deposit_kode_wilayah` FOREIGN KEY (`ID_deposit_kode_wilayah`) REFERENCES `deposit_kode_wilayah` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `(id_group)group-ws` FOREIGN KEY (`id_group_deposit_group_ws`) REFERENCES `deposit_group_ws` (`id_group`) ON DELETE NO ACTION ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `djkn_data`
--
ALTER TABLE `djkn_data`
  ADD CONSTRAINT `djkn_data_collection` FOREIGN KEY (`Collection_id`) REFERENCES `collections` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `djkn_data_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `djkn_data_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `favorite`
--
ALTER TABLE `favorite`
  ADD CONSTRAINT `FK_Catalog` FOREIGN KEY (`Catalog_Id`) REFERENCES `catalogs` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `FK_members` FOREIGN KEY (`Member_Id`) REFERENCES `members` (`MemberNo`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `fielddatas`
--
ALTER TABLE `fielddatas`
  ADD CONSTRAINT `fielddatas_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `fielddatas_fieldid` FOREIGN KEY (`Field_id`) REFERENCES `fields` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `fielddatas_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `fieldgroups`
--
ALTER TABLE `fieldgroups`
  ADD CONSTRAINT `fieldgroups_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `fieldgroups_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `fieldindicator1s`
--
ALTER TABLE `fieldindicator1s`
  ADD CONSTRAINT `FKBC43AFA166DFF9B4` FOREIGN KEY (`Field_id`) REFERENCES `fields` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `fieldindicator1s_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `fieldindicator1s_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `fieldindicator2s`
--
ALTER TABLE `fieldindicator2s`
  ADD CONSTRAINT `FKBC43AFA066DFF9B4` FOREIGN KEY (`Field_id`) REFERENCES `fields` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `fieldindicator2s_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `fieldindicator2s_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `fields`
--
ALTER TABLE `fields`
  ADD CONSTRAINT `fields_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `fields_fieldgroup` FOREIGN KEY (`Group_id`) REFERENCES `fieldgroups` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `fields_format` FOREIGN KEY (`Format_id`) REFERENCES `formats` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `fields_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `formats`
--
ALTER TABLE `formats`
  ADD CONSTRAINT `formats_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `formats_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `groupguesses`
--
ALTER TABLE `groupguesses`
  ADD CONSTRAINT `groupguesses_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `groupguesses_locations` FOREIGN KEY (`Location_ID`) REFERENCES `locations` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `groupguesses_loclib` FOREIGN KEY (`LocationLoans_ID`) REFERENCES `location_library` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `groupguesses_tujuankunjungan_fk` FOREIGN KEY (`TujuanKunjungan_ID`) REFERENCES `tujuan_kunjungan` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `groupguesses_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `historydata`
--
ALTER TABLE `historydata`
  ADD CONSTRAINT `historydata_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `historydata_member` FOREIGN KEY (`Member_id`) REFERENCES `members` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `historydata_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `holidays`
--
ALTER TABLE `holidays`
  ADD CONSTRAINT `holidays_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `holidays_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `jenis_anggota`
--
ALTER TABLE `jenis_anggota`
  ADD CONSTRAINT `jenis_anggota_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `jenis_anggota_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `jenis_denda`
--
ALTER TABLE `jenis_denda`
  ADD CONSTRAINT `jenis_denda_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `jenis_denda_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `jenis_kelamin`
--
ALTER TABLE `jenis_kelamin`
  ADD CONSTRAINT `jenis_kelamin_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `jenis_kelamin_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `jenis_pelanggaran`
--
ALTER TABLE `jenis_pelanggaran`
  ADD CONSTRAINT `jenis_pelanggaran_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `jenis_pelanggaran_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `jenis_permohonan`
--
ALTER TABLE `jenis_permohonan`
  ADD CONSTRAINT `jenis_permohonan_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `jenis_permohonan_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `jenis_perpustakaan`
--
ALTER TABLE `jenis_perpustakaan`
  ADD CONSTRAINT `jenis_perpustakaan_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `jenis_perpustakaan_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `judul_koleksi`
--
ALTER TABLE `judul_koleksi`
  ADD CONSTRAINT `judul_koleksi_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `judul_koleksi_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `kabupaten`
--
ALTER TABLE `kabupaten`
  ADD CONSTRAINT `kabupaten_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `kabupaten_propinsi` FOREIGN KEY (`PropinsiID`) REFERENCES `propinsi` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `kabupaten_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `kata_sandang`
--
ALTER TABLE `kata_sandang`
  ADD CONSTRAINT `kata_sandang_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `kata_sandang_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `kelas_siswa`
--
ALTER TABLE `kelas_siswa`
  ADD CONSTRAINT `kelas_siswa_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `kelas_siswa_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `kelompok_pelanggaran`
--
ALTER TABLE `kelompok_pelanggaran`
  ADD CONSTRAINT `kelompok_pelanggaran_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `kelompok_pelanggaran_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `keranjang_anggota`
--
ALTER TABLE `keranjang_anggota`
  ADD CONSTRAINT `keranjang_anggota_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `keranjang_anggota_members` FOREIGN KEY (`Member_id`) REFERENCES `members` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `keranjang_anggota_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `keranjang_katalog`
--
ALTER TABLE `keranjang_katalog`
  ADD CONSTRAINT `keranjang_katalog_catalogs` FOREIGN KEY (`Catalog_id`) REFERENCES `catalogs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `keranjang_katalog_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `keranjang_katalog_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `keranjang_koleksi`
--
ALTER TABLE `keranjang_koleksi`
  ADD CONSTRAINT `keranjang_koleksi_collection` FOREIGN KEY (`Collection_id`) REFERENCES `collections` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `keranjang_koleksi_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `keranjang_koleksi_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `kriteria_koleksi`
--
ALTER TABLE `kriteria_koleksi`
  ADD CONSTRAINT `kriteria_koleksi_catalogby` FOREIGN KEY (`catalog_id`) REFERENCES `catalogs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `kriteria_koleksi_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `kriteria_koleksi_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `letter`
--
ALTER TABLE `letter`
  ADD CONSTRAINT `(ID)deposit_ws` FOREIGN KEY (`PUBLISHER_ID`) REFERENCES `deposit_ws` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `letter_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `letter_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `letter_detail`
--
ALTER TABLE `letter_detail`
  ADD CONSTRAINT `(ID)collectiomedias` FOREIGN KEY (`SUB_TYPE_COLLECTION`) REFERENCES `collectionmedias` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `(ID)letter` FOREIGN KEY (`LETTER_ID`) REFERENCES `letter` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `library`
--
ALTER TABLE `library`
  ADD CONSTRAINT `library_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `library_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `librarysearchcriteria`
--
ALTER TABLE `librarysearchcriteria`
  ADD CONSTRAINT `librarysearchcriteria_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `librarysearchcriteria_library` FOREIGN KEY (`LIBRARYID`) REFERENCES `library` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `librarysearchcriteria_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `locations`
--
ALTER TABLE `locations`
  ADD CONSTRAINT `locations_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `locations_loclib` FOREIGN KEY (`LocationLibrary_id`) REFERENCES `location_library` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `locations_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `location_library`
--
ALTER TABLE `location_library`
  ADD CONSTRAINT `location_library_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `location_library_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `location_library_default`
--
ALTER TABLE `location_library_default`
  ADD CONSTRAINT `location_library_default_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `location_library_default_jenis_anggota` FOREIGN KEY (`JenisAnggota_id`) REFERENCES `jenis_anggota` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `location_library_default_loc` FOREIGN KEY (`Location_Library_id`) REFERENCES `location_library` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `location_library_default_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `lockers`
--
ALTER TABLE `lockers`
  ADD CONSTRAINT `fk_lockers_master_loker` FOREIGN KEY (`loker_id`) REFERENCES `master_loker` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `lockers_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `lockers_jenisidentitas` FOREIGN KEY (`id_jamin_idt`) REFERENCES `master_jenis_identitas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `lockers_pelanggaran` FOREIGN KEY (`id_pelanggaran_locker`) REFERENCES `master_pelanggaran_locker` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `lockers_uangjaminan` FOREIGN KEY (`id_jamin_uang`) REFERENCES `master_uang_jaminan` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `lockers_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `logsdownload`
--
ALTER TABLE `logsdownload`
  ADD CONSTRAINT `fk_logsDownload_catalogfiles` FOREIGN KEY (`catalogfilesID`) REFERENCES `catalogfiles` (`ID`) ON DELETE SET NULL ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_logsDownload_userid` FOREIGN KEY (`User_id`) REFERENCES `members` (`MemberNo`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Ketidakleluasaan untuk tabel `logsdownload_article`
--
ALTER TABLE `logsdownload_article`
  ADD CONSTRAINT `fk_logsDownload_articlefiles` FOREIGN KEY (`articlefilesID`) REFERENCES `serial_articlefiles` (`ID`) ON DELETE SET NULL ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_logsDownload_memberid` FOREIGN KEY (`User_id`) REFERENCES `members` (`MemberNo`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Ketidakleluasaan untuk tabel `mailserver`
--
ALTER TABLE `mailserver`
  ADD CONSTRAINT `mailserver_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `mailserver_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `masa_berlaku_anggota`
--
ALTER TABLE `masa_berlaku_anggota`
  ADD CONSTRAINT `masa_berlaku_anggota_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `masa_berlaku_anggota_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `master_djkn`
--
ALTER TABLE `master_djkn`
  ADD CONSTRAINT `master_djkn_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `master_djkn_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `master_edisi_serial`
--
ALTER TABLE `master_edisi_serial`
  ADD CONSTRAINT `edisiSerial_catalog` FOREIGN KEY (`Catalog_id`) REFERENCES `catalogs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `master_fakultas`
--
ALTER TABLE `master_fakultas`
  ADD CONSTRAINT `master_fakultas_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `master_fakultas_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `master_jenis_identitas`
--
ALTER TABLE `master_jenis_identitas`
  ADD CONSTRAINT `master_jenis_identitas_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `master_jenis_identitas_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `master_jurusan`
--
ALTER TABLE `master_jurusan`
  ADD CONSTRAINT `master_jurusan_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `master_jurusan_fakultas` FOREIGN KEY (`id_fakultas`) REFERENCES `master_fakultas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `master_jurusan_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `master_kelas_besar`
--
ALTER TABLE `master_kelas_besar`
  ADD CONSTRAINT `master_kelas_besar_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `master_kelas_besar_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `master_kependudukan`
--
ALTER TABLE `master_kependudukan`
  ADD CONSTRAINT `master_kependudukan_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `master_kependudukan_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `master_loker`
--
ALTER TABLE `master_loker`
  ADD CONSTRAINT `master_loker_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `master_loker_locations` FOREIGN KEY (`locations_id`) REFERENCES `locations` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `master_loker_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `master_pekerjaan`
--
ALTER TABLE `master_pekerjaan`
  ADD CONSTRAINT `master_pekerjaan_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `master_pekerjaan_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `master_pendidikan`
--
ALTER TABLE `master_pendidikan`
  ADD CONSTRAINT `master_pendidikan_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `master_pendidikan_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `master_program_studi`
--
ALTER TABLE `master_program_studi`
  ADD CONSTRAINT `master_program_studi_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `master_program_studi_jurusan` FOREIGN KEY (`id_jurusan`) REFERENCES `master_jurusan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `master_program_studi_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `master_range_umur`
--
ALTER TABLE `master_range_umur`
  ADD CONSTRAINT `master_range_umur_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `master_range_umur_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `master_status_perkawinan`
--
ALTER TABLE `master_status_perkawinan`
  ADD CONSTRAINT `master_status_perkawinan_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `master_status_perkawinan_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `memberguesses`
--
ALTER TABLE `memberguesses`
  ADD CONSTRAINT `memberguesses_TujuanKunjungan_Id` FOREIGN KEY (`TujuanKunjungan_Id`) REFERENCES `tujuan_kunjungan` (`ID`),
  ADD CONSTRAINT `memberguesses_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `memberguesses_jeniskelamin` FOREIGN KEY (`JenisKelamin_id`) REFERENCES `jenis_kelamin` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `memberguesses_location_id` FOREIGN KEY (`Location_Id`) REFERENCES `locations` (`ID`),
  ADD CONSTRAINT `memberguesses_locationloans` FOREIGN KEY (`LOCATIONLOANS_ID`) REFERENCES `location_library` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `memberguesses_masaberlaku` FOREIGN KEY (`MasaBerlaku_id`) REFERENCES `masa_berlaku_anggota` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `memberguesses_pekerjaan` FOREIGN KEY (`Profesi_id`) REFERENCES `master_pekerjaan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `memberguesses_pendidikan` FOREIGN KEY (`PendidikanTerakhir_id`) REFERENCES `master_pendidikan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `memberguesses_status` FOREIGN KEY (`Status_id`) REFERENCES `status_anggota` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `memberguesses_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `memberloanauthorizecategory`
--
ALTER TABLE `memberloanauthorizecategory`
  ADD CONSTRAINT `FKCB16B2E75DD8E7A8` FOREIGN KEY (`Member_id`) REFERENCES `members` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `FKCB16B2E7A5EDFBF6` FOREIGN KEY (`CategoryLoan_id`) REFERENCES `collectioncategorys` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `memberloanauthorizecategory_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `memberloanauthorizecategory_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `memberloanauthorizelocation`
--
ALTER TABLE `memberloanauthorizelocation`
  ADD CONSTRAINT `memberloanauthorizelocation_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `memberloanauthorizelocation_loc` FOREIGN KEY (`LocationLoan_id`) REFERENCES `location_library` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `memberloanauthorizelocation_member` FOREIGN KEY (`Member_id`) REFERENCES `members` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `memberloanauthorizelocation_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `memberrules`
--
ALTER TABLE `memberrules`
  ADD CONSTRAINT `memberrules_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `memberrules_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `members`
--
ALTER TABLE `members`
  ADD CONSTRAINT `FK418999036ADC8006` FOREIGN KEY (`Branch_id`) REFERENCES `branchs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `member_agama` FOREIGN KEY (`Agama_id`) REFERENCES `agama` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `member_job` FOREIGN KEY (`Job_id`) REFERENCES `master_pekerjaan` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `member_sex` FOREIGN KEY (`Sex_id`) REFERENCES `jenis_kelamin` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `member_unit_kerja` FOREIGN KEY (`UnitKerja_id`) REFERENCES `departments` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `members_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `members_education` FOREIGN KEY (`EducationLevel_id`) REFERENCES `master_pendidikan` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `members_fakultas` FOREIGN KEY (`Fakultas_id`) REFERENCES `master_fakultas` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `members_identitytype` FOREIGN KEY (`IdentityType_id`) REFERENCES `master_jenis_identitas` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `members_jenis_anggota` FOREIGN KEY (`JenisAnggota_id`) REFERENCES `jenis_anggota` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `members_jenispermohonan` FOREIGN KEY (`JenisPermohonan_id`) REFERENCES `jenis_permohonan` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `members_jenjang_pendidikan` FOREIGN KEY (`JenjangPendidikan_id`) REFERENCES `master_jenjang_pendidikan` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `members_jurusan` FOREIGN KEY (`Jurusan_id`) REFERENCES `master_jurusan` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `members_kelassiswa` FOREIGN KEY (`Kelas_id`) REFERENCES `kelas_siswa` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `members_programstudi` FOREIGN KEY (`ProgramStudi_id`) REFERENCES `master_program_studi` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `members_status_perkawinan` FOREIGN KEY (`MaritalStatus_id`) REFERENCES `master_status_perkawinan` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `members_statusanggota` FOREIGN KEY (`StatusAnggota_id`) REFERENCES `status_anggota` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `members_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `membersonline`
--
ALTER TABLE `membersonline`
  ADD CONSTRAINT `FK_branch` FOREIGN KEY (`BranchId`) REFERENCES `branchs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `FK_locationloan` FOREIGN KEY (`LocationLoanId`) REFERENCES `location_library` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `membersonline_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `membersonline_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `members_form`
--
ALTER TABLE `members_form`
  ADD CONSTRAINT `members_form_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `members_form_field` FOREIGN KEY (`Member_Field_id`) REFERENCES `member_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_form_perpus` FOREIGN KEY (`Jenis_Perpustakaan_id`) REFERENCES `jenis_perpustakaan` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_form_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `members_form_list`
--
ALTER TABLE `members_form_list`
  ADD CONSTRAINT `members_form_list_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `members_form_list_field` FOREIGN KEY (`Member_Field_id`) REFERENCES `member_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_form_list_perpus` FOREIGN KEY (`Jenis_Perpustakaan_id`) REFERENCES `jenis_perpustakaan` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_form_list_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `members_info_form`
--
ALTER TABLE `members_info_form`
  ADD CONSTRAINT `members_info_form_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `members_info_form_field` FOREIGN KEY (`Member_Field_id`) REFERENCES `member_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_info_form_perpus` FOREIGN KEY (`Jenis_Perpustakaan_id`) REFERENCES `jenis_perpustakaan` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_info_form_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `members_loanreturn_form`
--
ALTER TABLE `members_loanreturn_form`
  ADD CONSTRAINT `members_loanreturn_form_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `members_loanreturn_form_field` FOREIGN KEY (`Member_Field_id`) REFERENCES `member_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_loanreturn_form_perpus` FOREIGN KEY (`Jenis_Perpustakaan_id`) REFERENCES `jenis_perpustakaan` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_loanreturn_form_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `members_loan_form`
--
ALTER TABLE `members_loan_form`
  ADD CONSTRAINT `members_loan_form_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `members_loan_form_field` FOREIGN KEY (`Member_Field_id`) REFERENCES `member_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_loan_form_perpus` FOREIGN KEY (`Jenis_Perpustakaan_id`) REFERENCES `jenis_perpustakaan` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_loan_form_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `members_online_form`
--
ALTER TABLE `members_online_form`
  ADD CONSTRAINT `members_online_form_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `members_online_form_field` FOREIGN KEY (`Member_Field_id`) REFERENCES `member_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_online_form_perpus` FOREIGN KEY (`Jenis_Perpustakaan_id`) REFERENCES `jenis_perpustakaan` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_online_form_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `members_online_form_edit`
--
ALTER TABLE `members_online_form_edit`
  ADD CONSTRAINT `members_online_form_edit_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `members_online_form_edit_field` FOREIGN KEY (`Member_Field_id`) REFERENCES `member_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_online_form_edit_perpus` FOREIGN KEY (`Jenis_Perpustakaan_id`) REFERENCES `jenis_perpustakaan` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `members_online_form_edit_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `member_fields`
--
ALTER TABLE `member_fields`
  ADD CONSTRAINT `member_fields_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `member_fields_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `member_perpanjangan`
--
ALTER TABLE `member_perpanjangan`
  ADD CONSTRAINT `member_perpanjangan_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `member_perpanjangan_member` FOREIGN KEY (`Member_id`) REFERENCES `members` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `member_perpanjangan_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `menu`
--
ALTER TABLE `menu`
  ADD CONSTRAINT `menu_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `menu_ibfk_1` FOREIGN KEY (`parent`) REFERENCES `menu` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `menu_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `migration`
--
ALTER TABLE `migration`
  ADD CONSTRAINT `migration_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `migration_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `modules`
--
ALTER TABLE `modules`
  ADD CONSTRAINT `FK578D5FF54CBDA5AE` FOREIGN KEY (`Application_id`) REFERENCES `applications` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `FK578D5FF550C48F63` FOREIGN KEY (`ParentID`) REFERENCES `modules` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `modules_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `modules_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `opacfields`
--
ALTER TABLE `opacfields`
  ADD CONSTRAINT `opacfields_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `opacfields_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `opaclogs`
--
ALTER TABLE `opaclogs`
  ADD CONSTRAINT `opaclogs_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `opaclogs_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `opaclogs_userid` FOREIGN KEY (`User_id`) REFERENCES `members` (`MemberNo`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `opaclogs_keyword`
--
ALTER TABLE `opaclogs_keyword`
  ADD CONSTRAINT `opaclogs_keyword_opaclogsid` FOREIGN KEY (`OpaclogsId`) REFERENCES `opaclogs` (`ID`);

--
-- Ketidakleluasaan untuk tabel `partners`
--
ALTER TABLE `partners`
  ADD CONSTRAINT `partners_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `partners_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `pelanggaran`
--
ALTER TABLE `pelanggaran`
  ADD CONSTRAINT `pelanggaran_cli` FOREIGN KEY (`CollectionLoanItem_id`) REFERENCES `collectionloanitems` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `pelanggaran_collection` FOREIGN KEY (`Collection_id`) REFERENCES `collections` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `pelanggaran_collectionloan` FOREIGN KEY (`CollectionLoan_id`) REFERENCES `collectionloans` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `pelanggaran_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `pelanggaran_jenisdenda` FOREIGN KEY (`JenisDenda_id`) REFERENCES `jenis_denda` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `pelanggaran_jenispelanggaran` FOREIGN KEY (`JenisPelanggaran_id`) REFERENCES `jenis_pelanggaran` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `pelanggaran_member` FOREIGN KEY (`Member_id`) REFERENCES `members` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `pelanggaran_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `pengiriman`
--
ALTER TABLE `pengiriman`
  ADD CONSTRAINT `pengiriman_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `pengiriman_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `pengiriman_koleksi`
--
ALTER TABLE `pengiriman_koleksi`
  ADD CONSTRAINT `pengiriman_cetak_id` FOREIGN KEY (`PengirimanID`) REFERENCES `pengiriman` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `pengirimankoleksi_collectionid` FOREIGN KEY (`Collection_id`) REFERENCES `collections` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `pengirimankoleksi_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `pengirimankoleksi_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `peraturan_peminjaman_hari`
--
ALTER TABLE `peraturan_peminjaman_hari`
  ADD CONSTRAINT `pp_hari_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `pp_hari_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `peraturan_peminjaman_tanggal`
--
ALTER TABLE `peraturan_peminjaman_tanggal`
  ADD CONSTRAINT `pp_tanggal_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `pp_tanggal_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `propinsi`
--
ALTER TABLE `propinsi`
  ADD CONSTRAINT `propinsi_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `propinsi_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `publishers`
--
ALTER TABLE `publishers`
  ADD CONSTRAINT `publishers_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `publishers_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `quarantined_auth_data`
--
ALTER TABLE `quarantined_auth_data`
  ADD CONSTRAINT `quarantined_auth_data_auth_header` FOREIGN KEY (`Auth_Header_ID`) REFERENCES `quarantined_auth_header` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `quarantined_auth_data_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `quarantined_auth_data_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `quarantined_auth_header`
--
ALTER TABLE `quarantined_auth_header`
  ADD CONSTRAINT `quarantined_auth_header_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `quarantined_auth_header_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `quarantined_catalogs`
--
ALTER TABLE `quarantined_catalogs`
  ADD CONSTRAINT `quarantined_catalogs_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `quarantined_catalogs_member` FOREIGN KEY (`Member_id`) REFERENCES `members` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `quarantined_catalogs_qby` FOREIGN KEY (`QUARANTINEDBY`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `quarantined_catalogs_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `quarantined_catalog_ruas`
--
ALTER TABLE `quarantined_catalog_ruas`
  ADD CONSTRAINT `quarantined_catalog_ruas_catalogs` FOREIGN KEY (`CatalogId`) REFERENCES `quarantined_catalogs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `quarantined_catalog_ruas_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `quarantined_catalog_ruas_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `quarantined_catalog_subruas`
--
ALTER TABLE `quarantined_catalog_subruas`
  ADD CONSTRAINT `quarantined_catalog_subruas_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `quarantined_catalog_subruas_ruas` FOREIGN KEY (`RuasID`) REFERENCES `quarantined_catalog_ruas` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `quarantined_catalog_subruas_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `quarantined_collections`
--
ALTER TABLE `quarantined_collections`
  ADD CONSTRAINT `quarantined_collections_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `quarantined_collections_qby` FOREIGN KEY (`QUARANTINEDBY`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `quarantined_collections_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `quarantined_pengiriman`
--
ALTER TABLE `quarantined_pengiriman`
  ADD CONSTRAINT `quarantined_pengiriman_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `quarantined_pengiriman_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `readinlocation`
--
ALTER TABLE `readinlocation`
  ADD CONSTRAINT `readinlocation_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `readinlocation_location` FOREIGN KEY (`LocationId`) REFERENCES `locations` (`ID`) ON UPDATE CASCADE,
  ADD CONSTRAINT `readinlocation_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `refferenceitems`
--
ALTER TABLE `refferenceitems`
  ADD CONSTRAINT `FKFCF3C0CBEACE6BC0` FOREIGN KEY (`Refference_id`) REFERENCES `refferences` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `refferenceitems_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `refferenceitems_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `refferences`
--
ALTER TABLE `refferences`
  ADD CONSTRAINT `refferences_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `refferences_format` FOREIGN KEY (`Format_id`) REFERENCES `formats` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `refferences_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `requestcatalog`
--
ALTER TABLE `requestcatalog`
  ADD CONSTRAINT `requestcatalog_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `requestcatalog_member` FOREIGN KEY (`MemberID`) REFERENCES `members` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `requestcatalog_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `rfid_temp`
--
ALTER TABLE `rfid_temp`
  ADD CONSTRAINT `rfid_temp_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `rfid_temp_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `rolemodule`
--
ALTER TABLE `rolemodule`
  ADD CONSTRAINT `FK4533E5AE26BAF3EC` FOREIGN KEY (`Module_id`) REFERENCES `modules` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `FK4533E5AED86F6C52` FOREIGN KEY (`Role_id`) REFERENCES `roles` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `rolemodule_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `rolemodule_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `roles`
--
ALTER TABLE `roles`
  ADD CONSTRAINT `FK5F7A48334CBDA5AE` FOREIGN KEY (`Application_id`) REFERENCES `applications` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `roles_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `roles_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `sentitems`
--
ALTER TABLE `sentitems`
  ADD CONSTRAINT `sentitems_cli` FOREIGN KEY (`CollectionLoanItem_id`) REFERENCES `collectionloanitems` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `serial_articlefiles`
--
ALTER TABLE `serial_articlefiles`
  ADD CONSTRAINT `serial_articlefiles_ibfk_1` FOREIGN KEY (`Articles_id`) REFERENCES `serial_articles` (`id`);

--
-- Ketidakleluasaan untuk tabel `serial_articles`
--
ALTER TABLE `serial_articles`
  ADD CONSTRAINT `articles_catalog` FOREIGN KEY (`Catalog_id`) REFERENCES `catalogs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `articles_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `articles_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `serial_articles_repeatable`
--
ALTER TABLE `serial_articles_repeatable`
  ADD CONSTRAINT `CREATE_USER` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `SERIAL_ARTICLE_ID` FOREIGN KEY (`serial_article_ID`) REFERENCES `serial_articles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `UPDATE_USER` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `settingcatalogdetail`
--
ALTER TABLE `settingcatalogdetail`
  ADD CONSTRAINT `settingcatalogdetail_Field` FOREIGN KEY (`Field_id`) REFERENCES `fields` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `settingcatalogdetail_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `settingcatalogdetail_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `settingparameters`
--
ALTER TABLE `settingparameters`
  ADD CONSTRAINT `settingparameters_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `settingparameters_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `status_anggota`
--
ALTER TABLE `status_anggota`
  ADD CONSTRAINT `status_anggota_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `status_anggota_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `stockopname`
--
ALTER TABLE `stockopname`
  ADD CONSTRAINT `stockopname_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `stockopname_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `stockopnamedetail`
--
ALTER TABLE `stockopnamedetail`
  ADD CONSTRAINT `stockopnamedetail_collection` FOREIGN KEY (`CollectionID`) REFERENCES `collections` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `stockopnamedetail_collectionrule1` FOREIGN KEY (`PrevCollectionRuleID`) REFERENCES `collectionrules` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `stockopnamedetail_collectionrule2` FOREIGN KEY (`CurrentCollectionRuleID`) REFERENCES `collectionrules` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `stockopnamedetail_colstatus1` FOREIGN KEY (`PrevStatusID`) REFERENCES `collectionstatus` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `stockopnamedetail_colstatus2` FOREIGN KEY (`CurrentStatusID`) REFERENCES `collectionstatus` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `stockopnamedetail_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `stockopnamedetail_location1` FOREIGN KEY (`PrevLocationID`) REFERENCES `locations` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `stockopnamedetail_location2` FOREIGN KEY (`CurrentLocationID`) REFERENCES `locations` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `stockopnamedetail_stockopname` FOREIGN KEY (`StockOpnameID`) REFERENCES `stockopname` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `stockopnamedetail_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `sumbangan`
--
ALTER TABLE `sumbangan`
  ADD CONSTRAINT `sumbangan_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `sumbangan_member` FOREIGN KEY (`Member_id`) REFERENCES `members` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `sumbangan_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `sumbangan_koleksi`
--
ALTER TABLE `sumbangan_koleksi`
  ADD CONSTRAINT `sumbangan_koleksi_collection` FOREIGN KEY (`Collection_id`) REFERENCES `collections` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `sumbangan_koleksi_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `sumbangan_koleksi_sumbangan` FOREIGN KEY (`Sumbangan_id`) REFERENCES `sumbangan` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `sumbangan_koleksi_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `survey`
--
ALTER TABLE `survey`
  ADD CONSTRAINT `survey_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `survey_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `survey_isian`
--
ALTER TABLE `survey_isian`
  ADD CONSTRAINT `survey_isian_pertanyaan` FOREIGN KEY (`Survey_Pertanyaan_id`) REFERENCES `survey_pertanyaan` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `survey_pertanyaan`
--
ALTER TABLE `survey_pertanyaan`
  ADD CONSTRAINT `survey_pertanyaan_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `survey_pertanyaan_survey` FOREIGN KEY (`Survey_id`) REFERENCES `survey` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `survey_pertanyaan_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `survey_pilihan`
--
ALTER TABLE `survey_pilihan`
  ADD CONSTRAINT `survey_pilihan_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `survey_pilihan_survey_pertanyaan` FOREIGN KEY (`Survey_Pertanyaan_id`) REFERENCES `survey_pertanyaan` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `survey_pilihan_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `survey_pilihan_sesi`
--
ALTER TABLE `survey_pilihan_sesi`
  ADD CONSTRAINT `survey_pilihan_sesi_pilihan` FOREIGN KEY (`Survey_Pilihan_id`) REFERENCES `survey_pilihan` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `tempnoinduk`
--
ALTER TABLE `tempnoinduk`
  ADD CONSTRAINT `tempnoinduk_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `tempnoinduk_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `tujuan_kunjungan`
--
ALTER TABLE `tujuan_kunjungan`
  ADD CONSTRAINT `tujuan_kunjungan_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `tujuan_kunjungan_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `user`
--
ALTER TABLE `user`
  ADD CONSTRAINT `user` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `user_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `userloclibforcol`
--
ALTER TABLE `userloclibforcol`
  ADD CONSTRAINT `FK_userloclibforcol_loclib` FOREIGN KEY (`LocLib_id`) REFERENCES `location_library` (`ID`) ON DELETE NO ACTION ON UPDATE CASCADE,
  ADD CONSTRAINT `FK_userloclibforcol_user` FOREIGN KEY (`User_id`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `userloclibforcol_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `userloclibforcol_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `userloclibforloan`
--
ALTER TABLE `userloclibforloan`
  ADD CONSTRAINT `FK_userloclibforloan_loclib` FOREIGN KEY (`LocLib_id`) REFERENCES `location_library` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `FK_userloclibforloan_user` FOREIGN KEY (`User_id`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `userloclibforloan` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `userloclibforloan_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `userlogs`
--
ALTER TABLE `userlogs`
  ADD CONSTRAINT `FKF49AED76753825B6` FOREIGN KEY (`User_id`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `userlogs` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `userlogs_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `users`
--
ALTER TABLE `users`
  ADD CONSTRAINT `FK617D3C3A6ADC8006` FOREIGN KEY (`Branch_id`) REFERENCES `branchs` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `FK617D3C3AA5775E88` FOREIGN KEY (`Department_id`) REFERENCES `departments` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `FK617D3C3AD86F6C52` FOREIGN KEY (`Role_id`) REFERENCES `roles` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `users` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `users_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `worksheetfielditems`
--
ALTER TABLE `worksheetfielditems`
  ADD CONSTRAINT `FKB9A428D2352BBDA2` FOREIGN KEY (`WorksheetField_id`) REFERENCES `worksheetfields` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `FKB9A428D2EACE6BC0` FOREIGN KEY (`Refference_id`) REFERENCES `refferences` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `worksheetfielditems_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `worksheetfielditems_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `worksheetfields`
--
ALTER TABLE `worksheetfields`
  ADD CONSTRAINT `FK1471BB4B66DFF9B4` FOREIGN KEY (`Field_id`) REFERENCES `fields` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `FK1471BB4BFEC5D3CC` FOREIGN KEY (`Worksheet_id`) REFERENCES `worksheets` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `worksheetfields_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `worksheetfields_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Ketidakleluasaan untuk tabel `worksheets`
--
ALTER TABLE `worksheets`
  ADD CONSTRAINT `FK3800D37D5B024CA8` FOREIGN KEY (`Format_id`) REFERENCES `formats` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `worksheets_createby` FOREIGN KEY (`CreateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `worksheets_updateby` FOREIGN KEY (`UpdateBy`) REFERENCES `users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE;
COMMIT;

