-- Table structure for table `mag_user`
--

CREATE TABLE IF NOT EXISTS `mag_user` (
  `mag_id` tinyint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `materials`
--

CREATE TABLE IF NOT EXISTS `materials` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `code` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `material` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `min_qnt` double(8,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=200 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `materials`
--

INSERT INTO `materials` (`id`, `code`, `material`, `min_qnt`, `created_at`, `updated_at`) VALUES
(1, '51', 'ŽIVA GUMA    1m', 5.00, '2022-12-08 11:41:26', '2023-03-29 08:42:31'),
(3, '52', 'CREVCE    2M', 15.00, '2022-12-08 12:57:16', '2023-03-09 12:18:49'),
(4, '53', 'PATRONI SILIKONSKI', 30.00, '2022-12-08 12:59:33', '2023-03-09 12:19:21'),
(5, '1345', 'SILIKON MALER BASIĆ', 30.00, '2022-12-08 13:00:37', '2023-03-09 12:19:56'),
(6, '55', 'UTP KONEKTOR', 200.00, '2022-12-08 13:01:59', '2023-03-09 12:20:16'),
(7, '67', 'IZOLIR TRAKA  19X20', 30.00, '2022-12-08 13:03:55', '2023-03-09 12:20:39'),
(8, '68', 'IZOLIR TRAKA  19X10', 10.00, '2022-12-08 13:04:28', '2023-03-09 12:20:58'),
(9, '83', 'SKALPER B-18', 15.00, '2022-12-08 13:05:03', '2023-03-09 12:21:15'),
(10, '84', 'NOŽ ZA SKALPER   10/1', 50.00, '2022-12-08 13:07:10', '2023-03-09 12:21:38'),
(11, '1327', 'OBUJMICA  SA EKSEROM  5-7', 400.00, '2022-12-08 13:10:32', '2023-03-09 12:22:07'),
(12, '57', 'KUKICA LUSTER  6X90', 40.00, '2022-12-08 13:12:07', '2023-03-09 12:22:26'),
(13, '59', 'KUKICA TELEDIREKT', 40.00, '2022-12-08 13:13:09', '2023-03-09 12:22:56'),
(15, '1328', 'UKUCAVAJUĆI TIPLI   Ф 6х40', 0.00, '2022-12-08 13:18:01', '2023-01-01 14:15:31'),
(16, '445', 'UKUCAVAJUĆI TIPLI  6X50', 0.00, '2022-12-08 13:19:15', '2023-01-14 18:34:53'),
(17, '1331', 'MALE VEZICE  2,5X110', 500.00, '2022-12-08 13:20:13', '2023-03-09 13:41:28'),
(18, '1332', 'SREDNJE VEZICE  3,6X200', 500.00, '2022-12-08 13:28:47', '2023-03-09 13:41:58'),
(19, '1334', 'VELIKE VEZICE    3,6X250', 500.00, '2022-12-08 13:29:36', '2023-03-09 13:42:27'),
(20, '421', 'TIPLI  8X40', 0.00, '2022-12-08 13:32:06', '2023-01-14 18:38:42'),
(21, '1329', 'TIPLI 10X50', 0.00, '2022-12-08 13:33:11', '2023-01-14 18:39:30'),
(22, '1330', 'TIPLI  12X60', 0.00, '2022-12-09 12:32:03', '2023-01-14 18:40:40'),
(23, '1344', 'PUŽIĆI TIPLI 14X25', 200.00, '2022-12-09 12:32:53', '2023-03-09 13:43:01'),
(24, '70', 'GUŽVAJUĆI TIPLI 6X45', 0.00, '2022-12-09 12:37:26', '2023-01-14 18:42:54'),
(25, '71', 'TIPLI 14x80', 0.00, '2022-12-09 12:38:41', '2023-07-06 18:31:54'),
(26, '1341', 'RUKAVICE PINTO  SIVE-CRNE', 40.00, '2022-12-09 12:39:19', '2023-03-09 13:43:30'),
(27, '1342', 'RUKAVICE nitrax', 0.00, '2022-12-09 12:39:55', '2023-04-05 12:19:46'),
(28, '79', 'VIJAK  KNAUF 3,5X25', 400.00, '2022-12-09 12:40:34', '2023-03-09 13:43:57'),
(29, '424', 'TIPLI  12X100', 0.00, '2022-12-09 12:42:07', '2023-01-14 18:47:36'),
(30, '61', 'BIT ZVEZDAST   5\"', 5.00, '2022-12-09 12:42:45', '2023-03-09 13:44:20'),
(31, '62', 'NASTAYAK MAGNETNI ZA BIT', 2.00, '2022-12-09 12:54:55', '2023-03-09 13:44:49'),
(32, '78', 'OBIČAN NASTAVAK ZA BIT', 0.00, '2022-12-09 13:01:20', '2023-01-14 18:50:34'),
(33, '1346', 'PIŠTOLJ ZA SILIKON', 2.00, '2022-12-09 13:03:26', '2023-03-09 13:45:18'),
(34, '54', 'PIŠTOLJ ZA PATRON', 2.00, '2022-12-09 18:19:15', '2023-03-09 13:47:02'),
(35, '1343', 'PERFORNIRANA TRAKA    M', 5.00, '2022-12-09 18:44:59', '2023-04-06 11:38:43'),
(36, '763', 'REZNA PLOČA  115X1', 15.00, '2022-12-09 18:45:40', '2023-03-09 13:47:50'),
(37, '764', 'REZNA PLOČA 125X1', 15.00, '2022-12-09 18:46:48', '2023-03-09 13:48:20'),
(38, '72', 'VIJ.ŠESTOUG.GLAVA DRVO 8X100', 0.00, '2022-12-09 18:47:55', '2023-01-15 12:01:28'),
(39, '73', 'VIJ.ŠESTOUG.GLAVA DRVO 8X70', 0.00, '2022-12-09 18:48:39', '2023-01-15 12:02:17'),
(40, '74', 'VIJ.ŠESTOUG.GLAVA DRVO 8X60', 0.00, '2022-12-09 18:55:18', '2023-01-15 12:02:55'),
(41, '76', 'VIJ.ŠESTOUG.GLAVA DRVO 6X60', 0.00, '2022-12-09 18:56:23', '2023-04-18 17:31:41'),
(42, '77', 'VIJ.ŠESTOUG.GLAVA DRVO   6X 50', 0.00, '2022-12-09 18:57:11', '2023-06-03 14:32:31'),
(43, '174', 'ŠPAKLA  60\"', 0.00, '2022-12-09 18:57:54', '2023-01-15 12:06:27'),
(44, '175', 'ŠPAKLA  80\"', 0.00, '2022-12-09 18:58:43', '2023-01-15 12:07:06'),
(45, '794', 'DIJAM.REZ.PLIČA  F230', 0.00, '2022-12-09 18:59:22', '2023-01-15 12:08:14'),
(46, '798', 'DIJAM.REZ.PLIČA  ASFALT', 0.00, '2022-12-09 19:00:16', '2023-01-15 12:09:07'),
(47, '797', 'DIJAM.REZ.PLOČA  F115X1', 0.00, '2022-12-09 19:02:31', '2023-01-15 12:13:16'),
(48, '60', 'NAOČARI ZAŠTITNI', 0.00, '2022-12-09 19:06:04', '2023-01-15 12:47:19'),
(49, '751', 'BURGIJA ZA GVOŽĐE Ф6X135', 5.00, '2022-12-09 19:08:07', '2023-03-09 13:48:56'),
(50, '752', 'BURGIJA ZA GVOŽĐE Ф6X', 0.00, '2022-12-09 19:09:02', '2023-01-15 12:49:50'),
(51, '753', 'BURGIJA ZA GVOŽĐE Ф8X115', 0.00, '2022-12-12 08:15:35', '2023-04-05 12:03:45'),
(52, '754', 'BURGIJA ZA GVOŽĐE Ф10X120', 0.00, '2022-12-12 08:16:16', '2023-01-15 12:51:29'),
(53, '755', 'BURGIJA ZA GVOŽĐE Ф10X160', 0.00, '2022-12-12 08:17:16', '2023-01-15 12:53:20'),
(54, '1452', 'BURGIJA  VIDIJA Ф6X', 0.00, '2022-12-12 08:29:05', '2023-01-15 12:54:49'),
(55, '1453', 'BURGIJA  VIDIJA Ф 14x160', 0.00, '2022-12-12 08:30:58', '2023-07-06 16:25:56'),
(56, '1454', 'BURGIJA  VIDIJA Ф 10 X', 0.00, '2022-12-12 09:18:08', '2023-01-15 12:57:30'),
(57, '1455', 'BURGIJA ZA  DRVO  ZA ŠRAFILICU  Ф16', 0.00, '2022-12-12 09:18:43', '2023-01-15 12:58:39'),
(58, '1456', 'BURGIJA ZA BDRVO  8X100', 0.00, '2022-12-12 09:19:06', '2023-01-16 10:44:25'),
(59, '1457', 'KUTIJA LIMENA ZA  SITAN ALAT', 0.00, '2022-12-12 09:19:37', '2023-02-06 10:01:33'),
(60, '1483', 'HILTI BURG.  6X110', 10.00, '2022-12-12 09:21:59', '2023-03-09 13:49:19'),
(61, '1484', 'HILTI BURG. 6 X120', 5.00, '2022-12-12 09:31:31', '2023-03-09 13:50:09'),
(62, '1485', 'HILTI BURG. 8 X160', 2.00, '2022-12-12 09:31:59', '2023-04-29 16:15:29'),
(63, '1486', 'HILTI BURG. 12 X 260', 2.00, '2022-12-12 09:32:21', '2023-04-29 16:22:54'),
(64, '1487', 'HILTI BURG. 8 X 350', 5.00, '2022-12-12 09:33:43', '2023-03-09 13:51:52'),
(65, '1488', 'HILTI BURG. 12 X 460', 0.00, '2022-12-12 09:34:13', '2023-04-29 16:25:37'),
(66, '1489', 'HILTI BURG. 10 X 160', 3.00, '2022-12-12 09:34:47', '2023-03-09 13:53:08'),
(67, '1490', 'HILTI BURG. 10 X 380', 5.00, '2022-12-12 09:35:51', '2023-03-09 13:53:40'),
(68, '1491', 'HILTI BURG. 10 X 600', 5.00, '2022-12-12 09:36:25', '2023-03-09 13:54:10'),
(69, '1492', 'HILTI BURG. 10 X 800', 0.00, '2022-12-12 09:59:01', '2023-01-15 13:13:28'),
(70, '1493', 'HILTI BURG. 10 X 1000', 3.00, '2022-12-12 09:59:19', '2023-03-09 13:54:31'),
(71, '1494', 'HILTI BURG. 10 X 450', 4.00, '2022-12-12 09:59:42', '2023-04-29 16:41:08'),
(72, '1495', 'HILTI BURG. 8 X 300', 0.00, '2022-12-12 10:13:58', '2023-02-27 11:11:10'),
(73, '1497', 'HILTI BURG. 12 X 600', 5.00, '2022-12-12 10:15:51', '2023-03-09 13:55:59'),
(74, '1498', 'HILTI BURG. 12 X 1000', 4.00, '2022-12-12 14:29:46', '2023-03-09 13:57:53'),
(75, '1499', 'KOMPLET KLJUCEVI  OD 6--17      (  6  KOM.)', 0.00, '2022-12-12 14:30:16', '2023-02-06 10:00:12'),
(76, '781', 'SEČICE', 2.00, '2022-12-12 14:30:48', '2023-03-09 13:58:15'),
(77, '82', 'BLANKERICE', 0.00, '2022-12-12 14:31:25', '2023-01-15 13:47:13'),
(78, '85', 'ŠRAFCIGER ZVEZDAST', 0.00, '2022-12-12 14:32:01', '2023-01-15 13:48:41'),
(79, '86', 'ŠRAFCIGER RAVAN', 0.00, '2022-12-12 14:33:08', '2023-01-15 13:49:29'),
(80, '87', 'LIBELA  MALA', 0.00, '2023-01-01 14:01:08', '2023-01-15 13:50:25'),
(81, '1202', 'ČEKIČ  0,200gr', 0.00, '2023-01-01 14:28:06', '2023-01-15 13:53:55'),
(82, '1203', 'ČEKIČ 0,300GR', 0.00, '2023-01-01 14:29:02', '2023-01-15 13:54:38'),
(84, '1302', 'KRAMP 2,5KG', 0.00, '2023-01-01 16:22:03', '2023-01-15 13:55:50'),
(86, '1303', 'DRŽALJE ZA KRAMP', 0.00, '2023-01-01 16:23:02', '2023-01-15 13:57:19'),
(87, '1304', 'BUDAK SRPSKI', 0.00, '2023-01-01 16:24:31', '2023-01-15 13:58:18'),
(88, '1305', 'DRŽALJE ZA BUDAK', 0.00, '2023-01-01 16:24:55', '2023-01-15 13:58:57'),
(90, '1307', 'LOPATA 105', 0.00, '2023-01-01 17:24:42', '2023-01-15 14:01:16'),
(92, '1308', 'LOPATA  ZA SNEG', 0.00, '2023-01-01 17:26:41', '2023-01-15 14:02:48'),
(93, '1309', 'LOPATA  AUTO  ZA SNEG', 0.00, '2023-01-01 17:27:24', '2023-01-15 14:03:56'),
(94, '1310', 'RILJAČ KOVANI', 0.00, '2023-01-01 17:43:35', '2023-01-15 14:04:53'),
(95, '1311', 'RILJAČ LIMENI SA GAZIŠTEM', 0.00, '2023-01-01 17:49:28', '2023-01-15 14:05:42'),
(96, '1312', 'RILJAČ LIMENI BEZ GAZIŠTA', 0.00, '2023-01-01 17:50:28', '2023-01-15 14:06:43'),
(97, '1315', 'DRŽALJE ZA LOPATU,RILJAČ I AŠOV', 0.00, '2023-01-01 17:51:03', '2023-01-15 14:08:12'),
(98, '1316', 'GRABULJA METALNA SA 16 ZUBA', 0.00, '2023-01-01 17:51:53', '2023-01-15 14:09:13'),
(99, '1317', 'METLA PAJALICA 40SM', 0.00, '2023-01-01 17:52:12', '2023-01-15 14:10:12'),
(100, '1318', 'DRŽALJE ZA METLU I GRABULJU', 0.00, '2023-01-01 17:52:33', '2023-01-15 14:11:16'),
(103, '1335', 'GERT SA TESTERICOM', 0.00, '2023-01-02 15:18:39', '2023-01-15 14:12:07'),
(104, '1340', 'PRSLUK REFLEKTUJUĆI', 0.00, '2023-01-02 15:18:51', '2023-01-15 14:12:58'),
(105, '1350', 'LOPATA  POCINKOVANA', 0.00, '2023-01-02 15:19:02', '2023-01-15 14:13:43'),
(106, '65', 'MAT TRAKA', 2.00, '2023-01-02 15:20:31', '2023-05-02 05:35:54'),
(107, '147', 'RUKAVICA BLACK PU   10', 12.00, '2023-01-02 15:20:45', '2023-03-09 14:03:56'),
(108, '298', 'VIJAK ZA DRVOO  M6X100', 0.00, '2023-01-02 15:20:59', '2023-01-16 20:10:09'),
(109, '69', 'MARKER', 0.00, '2023-01-02 15:21:14', '2023-01-16 20:11:17'),
(110, '64', 'SELOTEP TRAKA 50CM', 5.00, '2023-01-02 15:21:27', '2023-03-09 14:04:21'),
(112, '88', 'Hilti burgija F32x600', 2.00, '2023-01-02 15:28:38', '2023-03-23 08:21:04'),
(113, '89', 'Hilti burgija FI55x600 SDS MAX', 2.00, '2023-01-02 15:28:50', '2023-03-23 08:47:11'),
(114, '90', 'Festa SDS fi 8x350x280 - beton', 2.00, '2023-01-02 15:29:00', '2023-04-03 10:42:08'),
(115, '91', 'Festa SDS fi 10x160x90 - beton', 2.00, '2023-01-02 15:29:11', '2023-04-03 10:42:33'),
(116, '92', 'Festa SDS fi 10x1000x930 - beton', 2.00, '2023-01-02 15:29:23', '2023-04-03 10:43:15'),
(117, '93', 'Festa SDS fi 12x1000x920 - beton', 2.00, '2023-01-02 15:29:33', '2023-04-03 10:43:47'),
(118, '94', 'Sthor SDS fi 8x300 - beton', 2.00, '2023-01-02 15:29:44', '2023-04-03 10:44:20'),
(119, '95', 'Bosch SDS fi 10x100x160 - beton', 2.00, '2023-01-02 15:29:59', '2023-04-03 10:44:46'),
(120, '96', 'Bosch SDS fi 16x400x540 - beton', 1.00, '2023-01-02 15:30:08', '2023-04-03 10:45:23'),
(121, '97', 'Bosch fi 8 - metal', 1.00, '2023-01-02 15:30:19', '2023-04-03 10:45:51'),
(122, '98', 'Burgija SDS max -4 32/400/520', 1.00, '2023-01-02 15:30:32', '2023-04-03 10:50:36'),
(123, '99', 'BIT PRODUZNI SA  GEDOROM 13', 1.00, '2023-01-02 15:30:44', '2023-03-09 14:04:36'),
(124, '100', 'SRAFILICA NA BATERIJU', 0.00, '2023-01-02 15:32:33', '2023-02-20 09:38:50'),
(125, '100', 'Bosch fi 10 - metal', 1.00, '2023-01-09 09:47:53', '2023-04-03 10:56:51'),
(126, '60', 'ZAŠTITNE NAOČARI', 3.00, '2023-01-16 17:26:38', '2023-03-09 14:48:16'),
(127, '298', 'VIJAK ZA DRVO 6X100', 0.00, '2023-01-16 17:27:54', '2023-01-16 17:27:54'),
(130, '298', 'VIJ.ŠESTOUG.GLAVA DRVO 6X100', 0.00, '2023-01-16 17:31:16', '2023-01-16 17:31:16'),
(132, '445', 'Perforirana traka R', 5.00, '2023-01-16 17:33:03', '2023-04-06 11:39:44'),
(133, '57', 'LUSTER KUKA 6X90', 0.00, '2023-01-16 19:47:09', '2023-01-16 19:47:09'),
(134, '58', 'LUSTER KUKA', 0.00, '2023-01-16 19:47:50', '2023-01-16 19:47:50'),
(135, '59', 'KUKICA TELEDIDEKT', 0.00, '2023-01-16 19:48:52', '2023-01-16 19:48:52'),
(140, '1449', 'HILTI BURGIJA  8X260', 0.00, '2023-01-17 12:46:13', '2023-04-05 12:12:28'),
(142, '1614', 'GLET MASA 5/1', 2.00, '2023-02-05 14:50:57', '2023-04-06 11:40:44'),
(144, '195', 'KATANAC PLAVI 52', 0.00, '2023-02-16 10:19:56', '2023-02-16 10:19:56'),
(145, '196', 'KATANAC PLAVI 45', 0.00, '2023-02-16 10:21:10', '2023-02-16 10:21:10'),
(146, '200', 'KATANAC STREND PRO  63', 0.00, '2023-02-16 10:22:05', '2023-02-16 10:22:05'),
(147, '199', 'KATANAC STREND PREO   63', 0.00, '2023-02-16 10:26:07', '2023-02-16 10:26:07'),
(148, '413', 'Plastična vezica 4,8x300mm', 1.00, '2023-05-09 12:25:54', '2023-05-09 12:25:54'),
(149, '338', 'Plastična vezica 3,6x250mm', 1.00, '2023-05-09 12:26:27', '2023-05-09 12:26:27'),
(150, '390', 'Plastična vezica 4,8x250mm', 1.00, '2023-05-09 12:27:15', '2023-05-09 12:27:15'),
(151, '443', 'Flomaster plavi', 1.00, '2023-05-09 12:35:24', '2023-05-09 12:35:24'),
(152, '079', 'traka izolir 19x20 crna Hrvatska', 2.00, '2023-05-09 12:35:59', '2023-05-09 12:35:59'),
(153, '4390', 'Rukavice PU crne  9 Hrvatska', 2.00, '2023-05-09 12:36:41', '2023-05-09 12:36:55'),
(154, '406', 'Rukavice PU crne 11 Hrvatska', 2.00, '2023-05-09 12:37:23', '2023-05-09 12:37:23'),
(155, '885', 'Rukavice PU crne 10 Hrvatska', 2.00, '2023-05-09 12:37:59', '2023-05-09 12:37:59'),
(156, '237', 'Burgija SDS plus 8x250x315 beton', 1.00, '2023-05-09 12:40:08', '2023-05-09 12:40:08'),
(157, '665', 'Burgija SDS plus 12x300x360 beton', 1.00, '2023-05-09 12:42:38', '2023-05-09 12:42:38'),
(158, '658', 'Burgija SDS plus 12x200x260 beton', 1.00, '2023-05-09 12:44:02', '2023-05-09 12:44:02'),
(159, '382', 'Burgija SDS plus 6x50x110 beton', 1.00, '2023-05-09 12:44:48', '2023-05-09 12:44:48'),
(160, '570', 'Set burgija za drvo 5 kom', 1.00, '2023-05-09 12:45:22', '2023-05-09 12:45:22'),
(161, '503', 'Zidarska olovka L24 H6', 1.00, '2023-05-09 12:45:56', '2023-05-09 12:45:56'),
(162, '609', 'Burgija za metal HSS 5X60mm', 1.00, '2023-05-09 13:03:58', '2023-05-09 13:03:58'),
(163, '568', 'Burgija SDS plus 310x100x160 beton', 1.00, '2023-05-09 13:04:53', '2023-05-09 13:04:53'),
(164, '504', 'Burgija SDS plus 8x100x160 beton', 1.00, '2023-05-09 13:05:35', '2023-05-09 13:05:35'),
(165, '145', 'Rezna ploča 125x1x22 inox A60', 1.00, '2023-05-09 13:08:11', '2023-05-09 13:08:11'),
(166, '276', 'Perforirana traka 12mm 10m Hrvatska', 1.00, '2023-05-09 13:08:37', '2023-05-09 13:08:37'),
(167, '481', 'Nožići za skalpel 18mm Hrvatska', 1.00, '2023-05-09 13:09:20', '2023-05-09 13:09:20'),
(168, '612', 'Burgija SDS plus GL 250 mm 13705 Hrvatska', 1.00, '2023-05-09 13:10:44', '2023-05-09 13:10:44'),
(169, '427', 'Dijamantska rezna ploča s pror 180 mm Hrvatska', 1.00, '2023-05-09 13:11:17', '2023-05-09 13:11:17'),
(170, '579', 'Flomaster crni', 1.00, '2023-05-09 13:18:42', '2023-05-09 13:18:42'),
(171, '1499', 'HILTI BURGIJA  6,5 X 300', 2.00, '2023-06-03 13:42:52', '2023-06-03 13:42:52'),
(172, '1341', 'RUKAVICA PINTO CRNA-SIVA', 12.00, '2023-06-03 14:56:28', '2023-06-03 14:56:28'),
(173, '147', 'RUKAVICA BLACK PU-10', 12.00, '2023-06-03 14:59:14', '2023-06-03 14:59:14'),
(174, '135107', 'Perforirana traka 17x0,7-10m Hrvatska', 2.00, '2023-06-28 09:53:26', '2023-06-28 09:53:26'),
(175, '6524', 'Rezna ploča 115x6x22,2 metal Hrvatska', 2.00, '2023-06-28 09:56:28', '2023-06-28 09:56:28'),
(176, '3539', 'Traka izolir 19mmx20m CRVENA Hrvatska', 2.00, '2023-06-28 09:57:54', '2023-06-28 09:57:54'),
(177, '3522', 'Traka izolir 19mmx20m PLAVA Hrvatska', 2.00, '2023-06-28 09:58:22', '2023-06-28 09:58:22'),
(178, '3386', 'Traka za označavanje 75mmx100m Hrvatska', 1.00, '2023-06-28 09:58:57', '2023-06-28 09:59:20'),
(179, '9597', 'Burgija SDS PLUS 3 10x250x310 Hrvatska', 1.00, '2023-06-28 10:03:02', '2023-06-28 10:03:02'),
(180, '0237', 'Burgija SDS PLUS 5 8x250x315 Hrvatska', 1.00, '2023-06-28 10:03:47', '2023-06-28 10:14:45'),
(181, '9382', 'Burgija SDS PLUS 3 6x50x110mm Hrvatska', 1.00, '2023-06-28 10:04:34', '2023-06-28 10:04:34'),
(182, '8861', 'Plastična vezica 4,8x370mm crna', 1.00, '2023-06-28 10:05:48', '2023-06-28 10:05:48'),
(183, '58852', 'Kanap pamučni 8mm Hravtska', 1.00, '2023-06-28 10:08:24', '2023-06-28 10:08:24'),
(184, '9606', 'Spray 2l marking neon red 500 Hrvatska', 1.00, '2023-07-13 11:05:57', '2023-07-13 11:06:06'),
(185, '1600', 'Plastične vezice 16cm Hrvatska pak', 1.00, '2023-07-17 07:56:54', '2023-07-17 07:56:54'),
(186, '3000', 'Plastične vezice 30cm Hrvatska pak', 1.00, '2023-07-17 07:57:23', '2023-07-17 07:57:23'),
(187, '3515', 'Traka izolir 15mmx10m crvena Hrvatska', 1.00, '2023-08-10 14:54:04', '2023-08-10 14:54:04'),
(188, '1252', 'Traka izolir 15mmx10m crna Hrvatska', 1.00, '2023-08-10 14:54:42', '2023-08-10 14:54:42'),
(189, '47766', 'Plastične vezice 3,6x300mm bela 100/1 Hrvatska', 1.00, '2023-08-10 14:56:51', '2023-08-10 14:56:51'),
(190, '35507', 'Rukavice PU palm soft  classic vel 10 Hrvatska', 2.00, '2023-08-10 14:57:39', '2023-08-10 14:57:39'),
(191, '5119', 'Marker permanentni 300 crni', 1.00, '2023-08-10 14:58:19', '2023-08-10 14:58:19'),
(192, '28633', 'Spray 2l marking neon yellow 500 Hrvatska', 1.00, '2023-08-10 14:59:15', '2023-08-10 14:59:15'),
(193, '47753', 'Plastična vezica 2,5x130mm crna 100/1 Hrvatska', 1.00, '2023-08-10 15:11:10', '2023-08-10 15:11:28'),
(194, '47773', 'Plastična vezica 4,8x360mm crna 100/1', 1.00, '2023-08-10 15:12:49', '2023-08-10 15:12:49'),
(195, '4356', 'Perforirana traka 17x0,8 kolut Hrvatska', 1.00, '2023-08-10 15:13:45', '2023-08-10 15:13:45'),
(196, '65976', 'Obujmica GT fi 5-6 50/1 Hrvatska', 1.00, '2023-08-10 15:14:23', '2023-08-10 15:14:23'),
(197, '3329', 'Pištolj za podmazivanje 400ml Hrvatska', 1.00, '2023-08-11 12:48:12', '2023-08-11 12:48:12'),
(198, '22100', 'Lanac za katanac Hrvatska', 1.00, '2023-08-11 12:51:20', '2023-08-11 12:51:20'),
(199, '50236', 'Šrafovi samoresci 7504/N-M-4,2X25 Hrvatska', 10.00, '2023-08-11 12:53:33', '2023-08-11 12:53:33');

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

--
-- Table structure for table `material_dispatch_note`
--

CREATE TABLE IF NOT EXISTS `material_dispatch_note` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `material_id` bigint UNSIGNED NOT NULL,
  `dispatch_note_id` bigint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `material_dispatch_note_material_id_foreign` (`material_id`),
  KEY `material_dispatch_note_dispatch_note_id_foreign` (`dispatch_note_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `material_logs`
--

CREATE TABLE IF NOT EXISTS `material_logs` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `material_id` bigint UNSIGNED NOT NULL,
  `storekeeper` bigint UNSIGNED NOT NULL,
  `worker` bigint UNSIGNED DEFAULT NULL,
  `storage_id` tinyint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `mat_dispatch_notes`
--

CREATE TABLE IF NOT EXISTS `mat_dispatch_notes` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint UNSIGNED NOT NULL,
  `storekeeper_id` bigint UNSIGNED NOT NULL,
  `taken_by` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `mesta`
--

CREATE TABLE IF NOT EXISTS `mesta` (
  `id` tinyint UNSIGNED NOT NULL AUTO_INCREMENT,
  `naziv` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_slovenian_ci;

--
-- Dumping data for table `mesta`
--

INSERT INTO `mesta` (`id`, `naziv`) VALUES
(1, 'Leskovac'),
(2, 'Nis'),
(3, 'Beograd'),
(4, 'Novi Sad'),
(5, 'Surdulica');

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

--
-- Table structure for table `migrations`
--

CREATE TABLE IF NOT EXISTS `migrations` (
  `id` int UNSIGNED NOT NULL AUTO_INCREMENT,
  `migration` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=363 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2020_02_18_112217_create_change_history_table', 1),
(2, '2020_02_26_081604_create_magacin_history_table', 2),
(3, '2020_02_28_121412_create_teams_table', 3),
(4, '2020_02_28_121458_create_team_prodavac_table', 3),
(5, '2020_03_21_114807_create_oprema_table', 4),
(6, '2020_03_21_121510_create_povratnice_table', 4),
(7, '2020_03_21_121911_create_oprema_povratnica_table', 4),
(8, '2020_03_21_124434_create_statusi_uredjaja_table', 4),
(9, '2020_03_21_124452_create_stanje_uredjaja_table', 4),
(10, '2020_03_21_124458_create_povratna_roba_table', 4),
(11, '2020_03_25_083625_alter_oprema_povratnica_table', 5),
(12, '2020_04_16_155626_create_klijenti_supernova_table', 6),
(13, '2020_04_18_160337_alter_images_documents_table', 6),
(14, '2020_04_18_181433_alter_napomene_table', 6),
(15, '2020_04_18_181507_alter_change_history_table', 6),
(16, '2020_04_26_193537_montirani_uredjaji_table', 7),
(17, '2020_04_29_180457_create_oprema_klijent_table', 7),
(18, '2020_05_06_120910_alter_klijenti_prodaja_table', 8),
(19, '2020_05_06_194937_alter_klijenti_optika_table', 8),
(20, '2020_05_07_142826_create_oprema_revers_table', 9),
(21, '2020_05_19_201345_create_klijenti_bakar_table', 10),
(22, '2020_05_19_221304_adding_client_foreign_keys', 10),
(23, '2020_05_24_123523_alter_oprema_table', 11),
(24, '2020_05_24_212118_create_razlozi_vracanja', 11),
(25, '2020_05_24_212144_alter_magacin', 11),
(26, '2020_05_26_081346_create_oprema_monter', 12),
(27, '2020_05_26_111528_create_oprema_otpremnica', 12),
(28, '2020_05_26_114802_create_vraceni_uredjaji', 12),
(29, '2020_05_28_192956_create_tip_opreme_alter_oprema', 13),
(30, '2020_05_29_105010_alter_oprema_klijent', 14),
(31, '2020_06_10_175544_adding_br_ugovora_field_optika', 15),
(32, '2020_07_07_200718_alter_klijent_table', 16),
(33, '2020_07_25_151958_create_payments_table', 16),
(34, '2020_07_28_101559_alter_montirani_uredjaji', 16),
(35, '2020_07_28_103548_insert_id_supernova_klijent', 16),
(36, '2020_09_01_090107_create_device_history', 17),
(37, '2020_09_04_143212_alter_device_history', 18),
(38, '2020_09_09_135530_create_construction_tables', 19),
(39, '2020_09_09_215908_alter_construction_tables', 19),
(40, '2020_09_10_203948_create_contractors', 19),
(41, '2020_09_10_203959_alter_construction_sites', 19),
(42, '2020_09_11_085141_alter_change_log', 19),
(43, '2020_09_20_072441_create_site_equipment', 19),
(44, '2020_09_20_072504_create_site_work', 19),
(45, '2020_09_22_155112_alter_construction_tables_two', 19),
(46, '2020_09_25_135646_alter_remove_id_price', 19),
(47, '2020_09_25_135707_alter_construction_prices', 19),
(48, '2020_09_25_165536_alter_mac_addresses', 19),
(49, '2020_09_28_172652_alter_construction_sites_table', 20),
(50, '2020_10_01_141926_change_foreign_key_state', 20),
(51, '2020_10_09_104545_create_network_groups', 20),
(52, '2020_10_09_113238_alter_napomene', 20),
(53, '2020_10_09_131349_change_foreign_key_states', 20),
(54, '2020_10_09_164903_create_worker_equipment_table', 20),
(56, '2020_10_27_120410_create_fobos_tables', 21),
(57, '2020_10_27_132624_alter_klijenti_prodaja', 21),
(58, '2020_10_28_123008_alter_fobos_table', 21),
(59, '2020_11_09_215514_alter_klijenti_prodaja_table', 21),
(60, '2020_11_12_183055_alter_construction_prices', 21),
(61, '2020_11_13_092537_create_device_types', 22),
(62, '2020_11_13_092919_alter_uredjaji_type_id', 22),
(63, '2020_11_13_132054_alter_otpremnice_jmbg_tel', 22),
(64, '2020_11_23_120954_alter_fobos_table', 23),
(65, '2020_11_28_130402_alter_construction_sites', 23),
(66, '2020_11_29_212930_change_type_construction_prices', 24),
(67, '2020_12_07_094347_alter_users_table', 25),
(68, '2020_12_08_190012_create_callisto_bills_table', 26),
(69, '2020_12_13_125946_create_mag_user', 27),
(70, '2020_12_13_130017_create_storage_equipment', 27),
(71, '2020_12_13_130358_alter_worker_equipment', 27),
(72, '2020_12_14_181806_create_storage_logs', 27),
(73, '2020_12_15_113141_update_users', 28),
(74, '2020_12_21_192457_create_units_table', 29),
(75, '2020_12_21_193120_alter_construction_works', 29),
(76, '2020_12_26_152442_create_storage_type', 30),
(77, '2020_12_26_152541_alter_magacin', 30),
(78, '2020_12_26_154106_drop_oprema_monter', 30),
(79, '2020_12_26_154153_alter_storage_equipment', 30),
(80, '2020_12_26_154211_alter_storage_logs', 30),
(81, '2020_12_27_125226_alter_worker_equipment_table', 30),
(82, '2020_12_27_191429_alter_oprema_klijent', 30),
(83, '2020_12_29_142910_add_storage_id_worker_equipment', 31),
(84, '2021_01_11_183821_create_settings_table', 32),
(85, '2021_01_16_163057_create_report_marks_table', 33),
(86, '2021_01_16_170746_create_supervisor_comments', 33),
(87, '2021_01_16_180445_alter_optics_report_foreign', 33),
(88, '2021_01_18_102558_alter_adjusted_date_device_history', 34),
(89, '2021_01_18_224129_alter_construction_sites_add_fields', 35),
(90, '2021_01_21_125428_add_return_user_device_history', 36),
(91, '2021_01_25_141612_jmbg_field_povratna_roba', 37),
(92, '2021_01_29_142940_create_terrain_ammounts', 38),
(93, '2021_02_03_174812_add_text_to_revers', 39),
(94, '2021_02_09_075127_create_salaries_table', 40),
(95, '2021_02_15_100908_add_for_payment_to_klijent', 41),
(96, '2021_03_12_084621_add_last_login_to_user_table', 42),
(97, '2021_03_15_082324_add_is_active_in_oprema', 43),
(98, '2021_03_15_181629_add_is_active_to_equipment', 43),
(99, '2021_04_12_093658_create_const_delivery_notes', 43),
(100, '2021_04_12_093828_create_const_equipment_delivery', 43),
(101, '2021_04_15_191150_create_files_table', 43),
(114, '2021_05_18_094748_create_wf_tasks', 44),
(115, '2021_05_18_094955_create_wf_works', 44),
(116, '2021_05_18_095029_create_wf_projects', 44),
(117, '2021_05_18_095124_create_wf_statuses', 44),
(118, '2021_05_18_095158_create_wf_project_task', 44),
(119, '2021_05_18_095159_create_wf_task_work', 44),
(120, '2021_06_10_135933_alter_magacin_history_add_device_id', 44),
(121, '2021_06_11_142850_create_wf_task_equipment', 44),
(126, '2021_06_16_080319_create_campains', 45),
(127, '2021_06_16_080349_create_postpaid_tariffs', 45),
(128, '2021_06_16_080429_create_fobos_copper', 45),
(129, '2021_06_17_084800_alter_fobos_comments_add_fobos_copper_id', 45),
(130, '2021_06_23_094919_alter_klijenti_prodaja_add_fobos_copper_id', 46),
(131, '2021_06_24_180626_alter_files_table', 46),
(132, '2021_06_25_133154_create_installation_image_types', 46),
(133, '2021_06_28_184845_create_client_types', 46),
(134, '2021_06_28_194018_alter_images_add_type_id', 46),
(135, '2021_06_30_074404_alter_change_history_add_data_transfer', 46),
(136, '2021_06_30_153309_alter_oprema_klijent_add_primary_key', 46),
(137, '2021_07_14_082726_alter_revers_roba_add_mounted', 47),
(138, '2021_07_18_082138_create_origin_table', 48),
(139, '2021_07_18_083147_alter_klijenti_optika_table', 48),
(140, '2021_07_18_083835_alter_uredjaji_table', 48),
(141, '2021_07_19_111908_alter_klijent_add_complaint', 49),
(142, '2021_08_18_081254_create_huawei_vertical_statuses', 50),
(143, '2021_08_18_081443_create_huawei_access_statuses', 50),
(144, '2021_08_18_081505_create_huawei', 50),
(145, '2021_08_23_153057_create_huawei_comments', 50),
(146, '2021_08_24_081428_alter_change_history_id_huawei', 50),
(147, '2021_08_24_081738_create_huawei_equipment', 50),
(148, '2021_08_24_081855_create_hw_images', 50),
(149, '2021_08_24_155157_create_hw_site_equipment', 50),
(150, '2021_08_24_162044_create_hw_work_categories', 50),
(151, '2021_08_24_162157_create_hw_vertical_works', 50),
(152, '2021_08_24_210225_create_hw_access_works', 50),
(153, '2021_08_24_210447_hw_site_work', 50),
(154, '2021_08_25_161512_alter_files_id_huawei', 50),
(155, '2021_08_27_082925_alter_huawei_h_id_nullable', 51),
(156, '2021_08_30_152838_alter_huawei_manager_change', 52),
(157, '2021_09_02_154405_alter_huawei_statuses_default', 52),
(158, '2021_09_07_181526_alter_storage_logs_from', 53),
(159, '2021_09_09_154943_create_worker_storage_logs', 53),
(160, '2021_09_10_093824_create_vehicle_user', 54),
(161, '2021_09_10_150523_create_vehicle_images', 54),
(162, '2021_09_10_151443_create_vehicle_comments', 54),
(163, '2021_09_10_154031_create_tools', 54),
(164, '2021_09_10_154330_create_storage_tools', 54),
(165, '2021_09_10_154655_create_worker_tools', 54),
(166, '2021_09_11_203831_create_required_equipment', 54),
(167, '2021_09_13_212000_alter_vehicle_comments_created_by', 55),
(168, '2021_09_15_174539_alter_revers_roba_obsolete', 55),
(169, '2021_09_17_071533_alter_huawei_add_fields', 56),
(170, '2021_09_17_074059_alter_roles_description', 56),
(171, '2021_09_17_155516_alter_required_equipment_supplied', 56),
(172, '2021_09_18_101200_create_equipment_types', 57),
(173, '2021_09_18_101209_alter_equipment_add_type', 57),
(174, '2021_09_20_080934_alter_huawei_add_municipality', 58),
(175, '2021_09_22_160519_create_tool_types', 59),
(176, '2021_09_23_083442_alter_storage_tools_add_storage_id', 59),
(177, '2021_09_23_180138_create_tool_logs', 59),
(178, '2021_09_28_075445_alter_huawei_add_splicing_date', 60),
(179, '2021_10_13_130049_alter_klijent_add_imported', 61),
(180, '2021_10_16_114457_create_tickets', 62),
(181, '2021_10_16_114515_create_ticket_comments', 62),
(182, '2021_10_19_165618_alter_tickets_resolved_by_nullable', 63),
(183, '2021_10_22_092039_alter_tickets_add_asigned_to', 64),
(184, '2021_10_22_141034_alter_construction_sites_add_construction_manager', 64),
(185, '2021_10_22_160827_alter_device_history_add_deleted', 64),
(186, '2021_11_05_112934_create_uniforms', 65),
(187, '2021_11_05_113209_create_storage_uniforms', 65),
(188, '2021_11_05_122855_create_worker_uniforms', 65),
(189, '2021_11_05_144307_create_uniform_types', 65),
(190, '2021_11_05_144958_create_uniform_logs', 65),
(191, '2021_11_09_135737_alter_klijenti_optika_add_imported', 65),
(192, '2021_11_18_110535_alter_users_add_company_id', 66),
(193, '2021_11_18_110933_alter_firm_add_locale', 66),
(194, '2021_12_10_123002_alter_klijent_add_on_terain', 67),
(195, '2021_12_10_123219_alter_klijenti_optika_add_on_terain', 67),
(196, '2021_12_10_123227_alter_klijenti_supernova_add_on_terain', 67),
(197, '2021_12_10_123235_alter_klijenti_bakar_add_on_terain', 67),
(198, '2021_12_23_104420_alter_klijent_add_filed', 68),
(199, '2021_12_24_113323_create_demand_equipment', 68),
(200, '2021_12_24_113513_create_demand_devices', 68),
(201, '2022_02_02_074427_create_hw_documentation', 69),
(202, '2022_02_04_064301_create_folders', 70),
(203, '2022_02_04_080645_alter_hw_documentation_add_folder_id', 70),
(204, '2022_02_09_130805_create_hw_final_statuses', 71),
(205, '2022_02_09_131202_alter_huawei_add_id_status_final', 71),
(206, '2022_02_15_064904_alter_hw_access_works_add_fixed', 72),
(207, '2022_02_22_074928_create_demand_statuses', 73),
(208, '2022_02_22_075833_alter_demand_devices_add_status', 73),
(209, '2022_02_22_075907_alter_demand_equipment_add_status', 73),
(210, '2022_02_23_084207_create_demands', 74),
(211, '2022_02_23_084434_alter_demand_equipment_add_demand_id', 74),
(212, '2022_02_23_084502_alter_demand_devices_add_demand_id', 74),
(213, '2022_02_24_074737_create_demand_comments', 75),
(214, '2022_02_24_075228_alter_demand_devices_add_edited_quantity', 75),
(215, '2022_02_24_075243_alter_demand_equipment_add_edited_quantity', 75),
(216, '2022_04_05_081349_alter_huawei_add_dis_dates', 76),
(217, '2022_04_28_074258_alter_huawei_add_boq', 77),
(218, '2022_04_29_074334_create_hw_prices', 77),
(219, '2022_05_05_073511_create_kir_table', 78),
(220, '2022_05_13_122025_alter_construction_comments_change_foreign', 78),
(221, '2022_05_13_122802_alter_construction_images_change_foreign', 78),
(222, '2022_05_13_123539_alter_site_equipment_change_foreign', 78),
(223, '2022_05_13_123807_alter_site_work_change_foreign', 78),
(224, '2022_05_13_130812_create_kir_work_categories', 78),
(225, '2022_05_13_130843_create_kir_access_works', 78),
(226, '2022_05_13_130913_create_kir_vertical_works', 78),
(227, '2022_05_13_131245_alter_site_work_add_foreign_access_and_vertical_works', 78),
(228, '2022_05_13_133453_alter_change_history_change_foreign', 78),
(229, '2022_05_13_135931_alter_files_change_foreign_key', 78),
(230, '2022_05_13_171316_alter_kir_access_works_add_fixed', 78),
(231, '2022_05_14_070633_alter_works_tables_add_price', 78),
(232, '2022_05_14_090016_alter_site_work_add_price', 78),
(233, '2022_05_16_073656_alter_table_drop_price', 78),
(234, '2022_05_16_073746_alter_huawei_add_price_nullable', 78),
(235, '2022_05_16_141459_alter_huawei_add_origin', 79),
(236, '2022_05_16_141820_alter_klijent_add_company_id', 79),
(237, '2022_05_16_141925_alter_klijenti_optika_add_company_id', 79),
(238, '2022_05_25_130911_alter_required_equipment_add_edited_quantity', 80),
(239, '2022_05_30_115854_create_kir_required_equipment', 81),
(240, '2022_05_31_065633_alter_kir_required_equipment_add_edited_quantity', 82),
(241, '2022_05_31_074421_create_companies', 82),
(242, '2022_05_31_081357_update_kir_add_company_id', 82),
(243, '2022_06_01_100755_alter_huawei_add_order_no', 83),
(244, '2022_06_06_072807_alter_demands_add_storage_id', 84),
(245, '2022_06_08_083054_alter_klijent_add_price', 85),
(246, '2022_06_08_083236_alter_klijenti_optika_add_price', 85),
(247, '2022_06_08_085201_create_montage_prices', 85),
(248, '2022_06_09_082722_alter_montage_prices_add_type', 85),
(249, '2022_06_15_084609_alter_required_equipment', 86),
(250, '2022_06_15_101507_alter_povratnice_add_storage_id', 86),
(252, '2022_06_15_164738_alter_required_equipment_add_ready', 87),
(253, '2022_06_22_081540_alter_revers_add_storage_id', 88),
(254, '2022_06_22_182256_alter_revers_roba_add_storage_id', 89),
(255, '2022_08_04_143300_alter_wf_tasks_add_street', 90),
(256, '2022_08_04_151759_create_wf_task_images', 90),
(257, '2022_08_08_115118_alter_povratna_roba_add_tis_id', 90),
(258, '2022_08_09_105701_alter_povratnice_add_sent_printed', 90),
(259, '2022_08_13_081025_alter_wf_task_images', 91),
(260, '2022_09_07_142411_alter_huawei_and_kir_add_tis_entry_date', 92),
(261, '2022_09_09_114333_create_vehicle_owners_table', 93),
(262, '2022_09_09_130055_alter_vozila_add_owner_company', 93),
(263, '2022_09_14_101300_create_vehicle_types_table', 94),
(264, '2022_09_14_101720_create_fuel_types_table', 94),
(265, '2022_09_14_104838_create_card_types_table', 94),
(266, '2022_09_14_111802_create_vehicle_cards_table', 94),
(267, '2022_09_14_113459_alter_vozila_add_type_id_card_id_fuel_id', 94),
(268, '2022_09_24_095851_alter_huawei_add_invoice', 94),
(269, '2022_09_28_110811_alter_table_vozila_remove_card_id', 95),
(270, '2022_09_28_113303_create_vehicle_card_links_table', 95),
(271, '2022_10_06_170721_alter_kir_add_set_dis', 96),
(272, '2022_10_11_103139_create_de_construction_sites_table', 97),
(273, '2022_10_14_095308_create_de_comments_table', 97),
(274, '2022_10_18_130734_create_de_change_history_table', 97),
(275, '2022_10_18_132420_create_de_images_table', 97),
(276, '2022_10_19_085035_de_works', 97),
(277, '2022_10_19_091005_de_site_work', 97),
(278, '2022_11_03_114412_create_doc_works_table', 98),
(279, '2022_11_03_124810_alter_site_work_table_add_doc_work', 98),
(280, '2022_11_03_152821_alter_hw_site_work_add_doc_work', 98),
(281, '2022_11_07_104151_alter_hw_vertical_works_add_fixed', 99),
(282, '2022_11_07_104645_alter_kir_vertical_works_add_fixed', 99),
(283, '2022_11_16_110232_create_materials_table', 100),
(284, '2022_11_23_083044_create_material_logs', 100),
(285, '2022_11_23_090209_create_worker_materials', 100),
(286, '2022_11_23_105125_create_storage_materials', 100),
(287, '2022_11_25_093920_create_device_categories_table', 101),
(288, '2022_11_25_094041_alter_uredjaji_add_category_id', 101),
(289, '2022_11_25_121858_create_tool_comments', 101),
(290, '2022_11_25_122917_create_tool_providers', 101),
(291, '2022_11_25_123246_alter_tools_add_provider', 101),
(292, '2022_11_25_123529_create_tool_images', 101),
(293, '2022_12_01_113404_alter_magacin_add_provider_and_invoice_number', 102),
(294, '2022_12_01_121947_create_tool_reverse', 102),
(295, '2022_12_01_122022_create_tool_reverse_goods', 102),
(296, '2022_12_06_121814_create_tool_origins', 102),
(297, '2022_12_06_122249_alter_magacin_add_origin', 102),
(298, '2022_12_06_122527_alter_tool_reverse_goods_add_origin', 102),
(299, '2022_12_12_112349_alter_tools_add_origin_id', 103),
(300, '2023_01_18_102717_create_mat_dispatch_notes_table', 104),
(301, '2023_01_18_103206_create_material_dispatch_note', 104),
(302, '2023_01_20_212115_alter_vehicle_user_add_updated_by', 104),
(303, '2023_01_31_105505_alter_huawei_table_add_subcontractor', 105),
(304, '2023_02_13_120352_alter_tool_reverse_goods_add_obsolete_field', 106),
(305, '2023_03_03_133119_alter_materials_table_add_min_qnt', 107),
(306, '2023_03_04_145056_create_device_states_table', 107),
(307, '2023_03_04_203436_alter_magacin_table_add_state_id', 107),
(308, '2023_03_14_104943_alter_paketi_table_add_price', 108),
(309, '2023_03_18_090621_create_commissions_table', 108),
(310, '2023_03_18_102541_alter_klijenti_prodaja_table_add_commission', 108),
(311, '2023_03_18_123742_alter_klijenti_prodaja_table_add_montage_date', 108),
(312, '2023_03_28_105617_alter_huawei_table_add_lght', 109),
(313, '2023_05_11_101248_create_hw_predicted_works', 110),
(314, '2023_06_14_135029_create_tool_delivery_notes', 111),
(315, '2023_06_14_135148_create_tool_delivered_goods', 111),
(316, '2023_06_20_103443_create_vehicle_equipment_table', 112),
(317, '2023_06_20_150824_alter_vehicle_user_add_color', 112),
(318, '2023_06_22_132433_create_storage_vehicle_equipments_table', 112),
(319, '2023_06_22_132952_create_worker_vehicle_equipments_table', 112),
(320, '2023_06_22_133308_create_vehicle_equipment_logs_table', 112),
(323, '2023_07_11_141559_create_fobos_rune', 113),
(324, '2023_07_11_141651_create_fobos_rune_comments', 113),
(348, '2023_07_16_082913_create_rune_optics', 114),
(349, '2023_08_15_101137_create_rune_images', 114),
(350, '2023_08_15_151214_create_rune_comments_table', 114),
(351, '2023_08_15_161540_create_rune_logs', 114),
(352, '2023_08_15_174036_create_rune_files_table', 114),
(353, '2023_08_15_175628_alter_montirani_uredjaji_add_id_rune', 114),
(354, '2023_08_15_180219_alter_oprema_klijent_add_id_rune', 114),
(355, '2023_08_15_205940_alter_vraceni_uredjaji_add_id_rune', 114),
(356, '2023_08_15_210225_alter_device_history_add_id_rune', 114),
(357, '2023_08_16_081024_alter_rune_optics_add_delay_date', 114),
(358, '2023_08_18_091226_alter_fobos_rune_add_name_and_surname', 114),
(360, '2023_08_18_122316_alter_fobos_rune_add_returned', 115),
(362, '2023_08_23_081909_create_servers_table', 116);

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

--
-- Table structure for table `montage_prices`
--

CREATE TABLE IF NOT EXISTS `montage_prices` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `device_id` bigint UNSIGNED NOT NULL,
  `price` decimal(8,2) NOT NULL,
  `type` tinyint DEFAULT NULL,
  `optics_type` tinyint DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `montage_prices`
--

INSERT INTO `montage_prices` (`id`, `device_id`, `price`, `type`, `optics_type`, `created_at`, `updated_at`) VALUES
(1, 1, '4290.00', 1, NULL, '2022-06-14 12:42:53', '2022-06-14 12:42:53'),
(2, 15, '4290.00', 1, NULL, '2022-06-14 12:43:12', '2022-06-14 12:43:12'),
(3, 2, '1000.00', 1, NULL, '2022-06-14 12:43:28', '2022-06-14 12:43:28'),
(4, 4, '1000.00', 1, NULL, '2022-06-14 12:43:51', '2022-06-14 12:43:51'),
(5, 7, '5000.00', 2, 1, '2022-06-14 12:45:33', '2022-06-14 12:45:33'),
(6, 16, '5000.00', 2, 1, '2022-06-14 12:46:01', '2022-06-14 12:46:01'),
(7, 17, '5000.00', 2, 1, '2022-06-14 12:46:17', '2022-06-14 12:46:17'),
(8, 23, '1000.00', 2, 1, '2022-06-14 12:46:45', '2022-06-14 12:46:45'),
(9, 7, '6800.00', 2, 2, '2022-06-14 12:47:13', '2022-06-14 12:47:13'),
(10, 16, '6800.00', 2, 2, '2022-06-14 12:47:31', '2022-06-14 12:47:31'),
(11, 17, '6800.00', 2, 2, '2022-06-14 12:47:48', '2022-06-14 12:47:48'),
(12, 23, '1000.00', 2, 2, '2022-06-14 12:48:22', '2022-06-14 12:48:22'),
(13, 7, '7300.00', 2, 3, '2022-06-14 13:15:39', '2022-06-14 13:15:39'),
(14, 16, '7300.00', 2, 3, '2022-06-14 13:15:55', '2022-06-14 13:15:55'),
(15, 17, '7300.00', 2, 3, '2022-06-14 13:16:10', '2022-06-14 13:16:10'),
(16, 23, '1000.00', 2, 3, '2022-06-14 13:16:31', '2022-06-14 13:16:31'),
(17, 25, '4450.00', 2, 1, '2022-06-14 21:12:47', '2022-06-14 21:12:47'),
(18, 26, '4450.00', 2, 1, '2022-06-14 21:13:01', '2022-06-14 21:13:01'),
(19, 27, '4450.00', 2, 1, '2022-06-14 21:13:19', '2022-06-14 21:13:19'),
(20, 25, '4700.00', 2, 2, '2022-06-14 21:14:00', '2022-06-14 21:14:00'),
(21, 26, '4700.00', 2, 2, '2022-06-14 21:14:11', '2022-06-14 21:14:11'),
(22, 27, '4700.00', 2, 2, '2022-06-14 21:14:22', '2022-06-14 21:14:22'),
(23, 18, '900.00', 2, 1, '2022-06-14 21:14:42', '2022-06-14 21:14:42'),
(24, 18, '900.00', 2, 2, '2022-06-14 21:14:55', '2022-06-14 21:14:55'),
(25, 18, '900.00', 2, 3, '2022-06-14 21:15:09', '2022-06-14 21:15:09'),
(26, 25, '6350.00', 2, 3, '2022-06-14 21:15:55', '2022-06-14 21:15:55'),
(27, 26, '6350.00', 2, 3, '2022-06-14 21:16:07', '2022-06-14 21:16:07'),
(28, 27, '6350.00', 2, 3, '2022-06-14 21:16:19', '2022-06-14 21:16:19');

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

--
-- Table structure for table `montirani_uredjaji`
--

CREATE TABLE IF NOT EXISTS `montirani_uredjaji` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `serijski_broj` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `mac1` char(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `mac2` char(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `id_uredjaj` bigint UNSIGNED DEFAULT NULL,
  `id_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_opticki_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_supernova_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_bakar_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_rune` bigint UNSIGNED DEFAULT NULL,
  `id_monter` bigint UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_uredjaj` (`id_uredjaj`),
  KEY `id_mag` (`id_klijent`) USING BTREE,
  KEY `id_monter` (`id_monter`),
  KEY `montirani_uredjaji_id_opticki_klijent_foreign` (`id_opticki_klijent`),
  KEY `montirani_uredjaji_id_bakar_klijent_foreign` (`id_bakar_klijent`),
  KEY `montirani_uredjaji_id_supernova_klijent_foreign` (`id_supernova_klijent`),
  KEY `montirani_uredjaji_id_rune_foreign` (`id_rune`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_slovenian_ci;

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

--
-- Table structure for table `napomene`
--

CREATE TABLE IF NOT EXISTS `napomene` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `napomena` varchar(1500) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `id_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_opticki_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_supernova_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_bakar_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_klijent_prodaja` bigint UNSIGNED DEFAULT NULL,
  `complaint` tinyint DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `id_user` bigint UNSIGNED DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_klijent` (`id_klijent`),
  KEY `id_user` (`id_user`),
  KEY `id_opticki_klijent` (`id_opticki_klijent`),
  KEY `napomene_id_supernova_klijent_foreign` (`id_supernova_klijent`),
  KEY `napomene_id_bakar_klijent_foreign` (`id_bakar_klijent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_slovenian_ci;

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

--
-- Table structure for table `network_groups`
--

CREATE TABLE IF NOT EXISTS `network_groups` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `network` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `network_groups`
--

INSERT INTO `network_groups` (`id`, `network`, `created_at`, `updated_at`) VALUES
(2, '016', NULL, NULL),
(3, '017', NULL, NULL),
(4, '018', NULL, NULL),
(5, '019', NULL, NULL),
(6, '027', NULL, NULL),
(7, '030', NULL, NULL),
(8, '012', '2022-06-01 09:54:54', '2022-06-01 09:54:54'),
(9, '011', '2022-06-01 09:55:10', '2022-06-01 09:55:10'),
(10, '013', '2022-06-01 09:55:18', '2022-06-01 09:55:18'),
(11, '014', '2022-06-01 09:55:29', '2022-06-01 09:55:29'),
(12, '015', '2022-06-01 09:55:39', '2022-06-01 09:55:39'),
(13, '021', '2022-06-01 09:55:49', '2022-06-01 09:55:49'),
(14, '022', '2022-06-01 09:55:57', '2022-06-01 09:55:57'),
(15, '024', '2022-06-01 09:56:05', '2022-06-01 09:56:05'),
(16, '025', '2022-06-01 09:56:11', '2022-06-01 09:56:11'),
(17, '031', '2022-06-01 09:56:24', '2022-06-01 09:56:24'),
(18, '037', '2022-06-01 12:58:21', '2022-06-01 12:58:21'),
(19, '010', '2022-06-01 12:58:28', '2022-06-01 12:58:28'),
(20, '023', '2022-06-01 12:59:37', '2022-06-01 12:59:37'),
(21, '026', '2022-06-02 08:34:04', '2022-06-02 08:34:04'),
(22, '033', '2022-06-06 11:33:35', '2022-06-06 11:33:35'),
(23, '036', '2022-06-09 08:48:50', '2022-06-13 13:50:36'),
(24, '032', '2022-06-10 13:21:44', '2022-06-10 13:21:44'),
(25, '035', '2022-06-15 07:54:13', '2022-06-15 07:54:13'),
(26, '0230', '2022-06-16 12:53:39', '2022-06-16 12:53:39'),
(27, '020', '2022-06-29 10:08:09', '2022-06-29 10:08:09'),
(28, '034', '2022-07-13 07:31:42', '2022-07-13 07:31:42'),
(29, '028', '2022-08-17 11:46:27', '2022-08-17 11:46:27'),
(30, '020', '2022-09-09 11:15:37', '2022-09-09 11:15:37');

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

--
-- Table structure for table `nov_servis`
--

CREATE TABLE IF NOT EXISTS `nov_servis` (
  `id` tinyint UNSIGNED NOT NULL AUTO_INCREMENT,
  `naziv` varchar(255) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `nov_servis`
--

INSERT INTO `nov_servis` (`id`, `naziv`, `created_at`, `updated_at`) VALUES
(1, 'm:SAT', '2020-01-31 21:06:04', NULL),
(2, 'MiFi; m:SAT', '2020-01-31 21:06:04', NULL),
(3, 'ADSL; m:SAT', '2020-01-31 21:06:04', NULL),
(4, 'ADSL', '2020-01-31 21:06:04', NULL),
(5, 'NET', '2020-05-09 08:41:01', NULL),
(6, 'IRIS TV', '2020-05-09 08:41:04', '2022-06-01 11:47:45'),
(7, 'NET/IRIS', '2020-05-09 08:41:08', '2022-06-01 11:48:04'),
(8, 'fiksni/NET', '2020-05-09 08:41:11', NULL),
(9, 'fiksni/IRIS', '2020-05-09 08:41:14', '2022-06-01 11:48:15'),
(10, 'fiksni/NET/IRIS', '2020-05-09 08:41:16', '2022-06-01 11:48:28'),
(11, 'Omorika 3', '2020-09-22 09:51:55', '2022-06-01 11:48:40'),
(12, 'Omorika 16', '2020-09-22 09:52:04', '2022-06-01 11:48:50'),
(13, 'NET/M:SAT/OMORIKA 3', '2020-09-22 09:52:28', '2022-06-01 11:49:03'),
(14, 'NET/M:SAT/OMORIKA 16', '2020-09-22 09:52:39', '2022-06-01 11:49:13'),
(15, 'NET/OMORIKA 3', '2020-09-22 09:52:54', '2022-06-01 11:49:26'),
(16, 'NET/OMORIKA 16', '2020-09-22 09:53:04', '2022-06-01 11:49:40'),
(17, 'FIKSNI/NET/OMORIKA 3', '2020-09-22 09:53:23', '2022-06-01 11:49:50'),
(18, 'FIKSNI/NET/OMORIKA 16', '2020-09-22 09:53:33', '2022-06-01 11:49:59'),
(19, 'fiksni/NET/IRIS/Kartica', '2022-06-02 09:36:36', '2022-06-02 09:36:36'),
(20, 'MIFI', '2022-06-09 09:46:04', '2022-06-09 09:46:04'),
(21, 'NET/IRIS/Kartica', '2022-06-10 16:49:20', '2022-06-10 16:49:20'),
(22, 'IRIS TV/ Omorika 3', '2022-08-16 14:14:15', '2022-08-16 14:14:15'),
(23, 'Fiksni/Net/M: sat', '2022-08-26 13:25:44', '2022-08-26 13:25:44'),
(24, 'SOKO MAX', '2022-09-22 20:10:40', '2022-09-22 20:10:40'),
(25, 'Fiksni/Iris tv/Omorika 3', '2022-09-30 20:38:03', '2022-09-30 20:38:03'),
(26, 'Fiksn/adsl/m: sat/O3', '2022-10-13 15:39:54', '2022-10-13 15:39:54'),
(27, 'Net / m: Sat / kartica', '2022-12-08 14:39:57', '2022-12-08 14:39:57'),
(28, 'Iris TV / kartica', '2022-12-08 14:40:15', '2022-12-08 14:40:15'),
(29, 'Net / kartica', '2022-12-08 14:40:31', '2022-12-08 14:40:31'),
(30, 'Fiksni / Net / Iris TV / kartica', '2022-12-08 14:41:00', '2022-12-08 14:41:00'),
(31, 'Omorika 12', '2022-12-08 14:41:11', '2022-12-08 14:41:11'),
(32, 'Omorika 25', '2022-12-08 14:41:20', '2022-12-08 14:41:20'),
(33, 'Omorika 50', '2022-12-08 14:41:30', '2022-12-08 14:41:30');

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

--
-- Table structure for table `oprema`
--

CREATE TABLE IF NOT EXISTS `oprema` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `naziv` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `magacin_stanje` int NOT NULL,
  `id_tip_opreme` bigint UNSIGNED DEFAULT NULL,
  `is_active` tinyint NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `oprema_id_tip_opreme_foreign` (`id_tip_opreme`)
) ENGINE=InnoDB AUTO_INCREMENT=207 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `oprema`
--

INSERT INTO `oprema` (`id`, `naziv`, `magacin_stanje`, `id_tip_opreme`, `is_active`, `created_at`, `updated_at`) VALUES
(44, 'TANJIR M:SAT', 990, 1, 1, '2020-06-01 09:45:05', '2021-07-12 07:56:34'),
(45, 'LEĐA ZA M:SAT', 962, 1, 1, '2020-06-01 09:45:31', '2021-07-12 07:56:49'),
(46, 'NOSAČ ZIDNI M:SAT', 45, 1, 1, '2020-06-01 09:45:51', '2021-07-12 07:57:08'),
(47, 'KOAKSIJALNI KABAL', 4322, 1, 1, '2020-06-01 09:46:08', '2021-07-12 07:57:23'),
(48, 'UTP KABAL TELEDIREKT', 10636, 2, 1, '2020-06-01 09:46:18', '2021-07-12 08:00:10'),
(50, 'KONEKTOR KOMPRESIONI', 0, 1, 1, '2020-06-01 09:46:57', '2021-07-12 08:02:24'),
(51, 'SKART ADAPTER', 0, 1, 1, '2020-06-01 09:47:10', '2021-07-12 08:00:47'),
(52, 'ADSS KABAL TELEDIREKT (DROP)', 6231, 2, 1, '2020-06-01 09:47:31', '2022-06-01 19:28:13'),
(53, 'ZOK TELEDIREKT (UTIČNICA STAN)', 0, 2, 1, '2020-06-01 09:47:49', '2022-06-01 19:25:43'),
(54, 'ZOK TELEGROUP (UTIČNICA STAN)', 0, 2, 1, '2020-06-01 09:47:57', '2022-06-01 19:26:21'),
(55, 'PIKTEL KABAL', 7, 2, 1, '2020-06-01 09:48:09', '2021-07-12 08:39:16'),
(57, 'HVATALJKE-ZATEZAČI TELEDIREKT', 747, 2, 1, '2020-06-01 09:48:41', '2021-07-12 08:40:12'),
(58, 'PROLAZNE TELEDIREKT', 230, 2, 1, '2020-06-01 09:48:53', '2021-07-12 08:41:01'),
(59, 'KROVNI NOSAČ TELEDIREKT', 35, 2, 1, '2020-06-01 09:49:03', '2021-07-12 08:42:57'),
(60, 'PRSTEN ŠELNA ZA STUB TELEDIREKT', 15, 2, 1, '2020-06-01 09:49:20', '2021-07-12 08:44:34'),
(62, 'SAPA CREVO TELEDIREKT', 0, 2, 1, '2020-06-01 09:50:08', '2021-07-12 09:02:11'),
(63, 'KUKICE TELEDIEKT', 228, 2, 1, '2020-06-01 09:50:25', '2021-07-12 09:03:32'),
(65, 'PVC KANALICE TELEDIREKT', 439, 2, 1, '2020-06-01 09:50:50', '2021-07-12 09:09:22'),
(69, 'ADAPTER ZA STB M:SAT', 0, 1, 1, '2020-06-02 11:38:52', '2021-07-12 09:09:50'),
(78, 'UTP KABAL TELEGROUP', 0, 2, 1, '2021-07-12 09:15:38', '2021-07-12 09:15:38'),
(79, 'ADSS KABAL TELEGROUP (DROP)', 0, 2, 1, '2021-07-12 09:16:02', '2022-06-01 19:28:39'),
(80, 'ZOK SPOLJNI TELEDIREKT (UTIČNICA KUĆA)', 0, 2, 1, '2021-07-12 09:16:20', '2022-06-01 19:27:01'),
(81, 'ZOK SPOLJNI TELEGROUP (UTIČNICA KUĆA)', 0, 2, 1, '2021-07-12 09:16:46', '2022-06-01 19:27:32'),
(83, 'HVATALJKE-ZATEZAČI TELEGROUP', 0, 2, 1, '2021-07-12 09:20:51', '2021-07-12 09:20:51'),
(84, 'PROLAZNE TELEGROUP', 0, 2, 1, '2021-07-12 09:21:15', '2021-07-12 09:21:15'),
(85, 'KROVNI NOSAČ TELEGROUP', 0, 2, 1, '2021-07-12 09:21:36', '2021-07-12 09:21:36'),
(86, 'PRSTEN ŠELNA ZA STUB TELEGROUP', 0, 2, 1, '2021-07-12 09:22:07', '2021-07-12 09:22:07'),
(87, 'SAPA CREVO TELEGROUP', 0, 2, 1, '2021-07-12 09:22:34', '2021-07-12 09:22:34'),
(88, 'PVC KANALICE TELEGROUP', 0, 2, 1, '2021-07-12 09:22:59', '2021-07-12 09:22:59'),
(89, 'INVISIBLE TELEDIREKT', 0, 2, 1, '2021-07-12 09:23:23', '2021-07-12 09:23:23'),
(90, 'INVISIBLE TELEGROUP', 0, 2, 1, '2021-07-12 09:23:40', '2021-07-12 09:23:40'),
(91, 'PSK 17 TELEGROUP', 0, 2, 1, '2021-07-12 09:24:11', '2021-07-12 09:24:11'),
(92, 'PSK 18 TELEGROUP', 0, 2, 1, '2021-07-12 09:24:27', '2021-07-12 09:24:27'),
(93, 'PSK 10 TELEGROUP', 0, 2, 1, '2021-07-12 09:24:56', '2021-07-12 09:24:56'),
(94, 'PSK 13 TELEGROUP', 0, 2, 1, '2021-07-12 09:25:31', '2021-07-12 09:25:31'),
(95, 'PSK 16 TELEGROUP', 0, 2, 1, '2021-07-12 09:25:48', '2021-07-12 09:25:48'),
(96, 'PSK 7 TELEGROUP', 0, 2, 1, '2021-07-12 09:26:10', '2021-07-12 09:26:10'),
(97, 'AKRIL', 0, 2, 1, '2021-07-12 09:29:12', '2021-07-12 09:29:12'),
(98, 'ŽIVA GUMA', 0, 2, 1, '2021-07-12 09:29:24', '2021-07-12 09:29:24'),
(99, 'PLastika za pištolj', 0, 2, 1, '2021-07-12 09:29:58', '2021-07-12 09:29:58'),
(100, 'Velike vezice', 0, 2, 1, '2021-07-12 09:30:34', '2021-07-12 09:30:34'),
(101, 'Srednje vezice', 0, 2, 1, '2021-07-12 09:30:47', '2021-07-12 09:30:47'),
(102, 'Male vezice', 0, 2, 1, '2021-07-12 09:30:57', '2021-07-12 09:30:57'),
(103, 'KONEKTORI - LAN ŽABICE', 0, 2, 1, '2021-07-12 09:31:37', '2021-07-12 09:31:37'),
(104, 'Crni šrafovi', 0, 2, 1, '2021-07-12 09:32:08', '2021-07-12 09:32:08'),
(105, 'Sivi šrafovi', 0, 2, 1, '2021-07-12 09:32:53', '2021-07-12 09:32:53'),
(106, 'Nakucavajući tipl', 0, 2, 1, '2021-07-12 09:34:09', '2021-07-12 10:24:23'),
(107, 'Obujmice', 0, 2, 1, '2021-07-12 09:34:26', '2021-07-12 09:34:26'),
(108, 'Izolir trake', 0, 2, 1, '2021-07-12 09:34:37', '2021-07-12 09:34:37'),
(109, 'Tiplovi 6*30', 0, 2, 1, '2021-07-12 09:35:00', '2021-07-12 09:35:00'),
(110, 'Gužvajući tipl', 0, 2, 1, '2021-07-12 09:35:47', '2021-07-12 09:35:47'),
(111, 'PVC CREVO ZA OPTIČKI KABAL', 0, 2, 1, '2021-07-12 11:35:42', '2021-07-12 11:35:42'),
(112, 'ZATEZAČ PSK 18', 0, 2, 1, '2022-01-31 14:37:28', '2022-01-31 14:37:28'),
(113, 'PSK 17 TELEDIREKT', 0, 2, 1, '2022-02-08 09:20:29', '2022-02-08 09:20:29'),
(114, 'PSK 26 TELEDIREKT', 0, 2, 1, '2022-06-01 06:15:39', '2022-06-01 06:15:39'),
(115, 'TELEFONSKI KABAL', 0, 2, 1, '2022-06-01 19:30:12', '2022-06-01 19:30:12'),
(116, 'VIJAK   SDK', 0, NULL, 1, '2022-10-06 12:55:11', '2022-10-06 12:55:11'),
(117, 'VIJAK   SDK  6x60', 0, NULL, 1, '2022-10-06 12:56:21', '2022-10-06 12:56:21'),
(118, 'VIJAK   SDK  6x80', 0, NULL, 1, '2022-10-06 12:57:05', '2022-10-06 12:57:05'),
(119, 'VIJAK   SDK  8x60', 0, NULL, 1, '2022-10-06 12:57:42', '2022-10-06 12:57:42'),
(120, 'VIJAK   SDK  8x70', 0, NULL, 1, '2022-10-06 12:58:16', '2022-10-06 12:58:16'),
(121, 'Tipl  Ø 10x50', 0, NULL, 1, '2022-10-06 13:00:32', '2022-10-06 13:00:32'),
(122, 'Tipl  Ø 8x40', 0, NULL, 1, '2022-10-06 13:01:20', '2022-10-06 13:01:20'),
(123, 'PERFORIRANA  TRAKA', 0, NULL, 1, '2022-10-06 13:02:51', '2022-10-06 13:02:51'),
(124, 'PU', 0, NULL, 1, '2022-10-06 13:14:18', '2022-10-06 13:14:18'),
(125, 'PUŽIĆI', 0, NULL, 1, '2022-10-06 13:14:38', '2022-10-06 13:14:38'),
(126, 'Burgija SDS plus 5X 16/550/610', 0, NULL, 1, '2022-10-07 11:48:02', '2022-10-07 11:48:02'),
(127, 'Špic SDS MAX L400 Makita', 0, NULL, 1, '2022-10-07 11:48:27', '2022-10-07 11:48:27'),
(128, 'Sekač SDS max L400 Rtech', 0, NULL, 1, '2022-10-07 11:48:51', '2022-10-07 11:48:51'),
(129, 'Burgja 18x600 SDS+FESTA', 0, NULL, 1, '2022-10-07 11:49:23', '2022-10-07 11:49:23'),
(130, 'Burgija SDS plus 5X 10/150/210', 0, NULL, 1, '2022-10-07 11:50:01', '2022-10-07 11:50:01'),
(131, 'Burgija SDS plus 5X 12/150/210', 0, NULL, 1, '2022-10-07 11:50:30', '2022-10-07 11:50:30'),
(132, 'Burgija SDS plus 5X 8/400/460', 0, NULL, 1, '2022-10-07 11:51:01', '2022-10-07 11:51:01'),
(133, 'Burgija SDS plus 5X 6/50/110', 0, NULL, 1, '2022-10-07 11:51:48', '2022-10-07 11:51:48'),
(134, 'Burgija SDS plus 5X 6/200/265', 0, NULL, 1, '2022-10-07 11:52:21', '2022-10-07 11:52:21'),
(135, 'Špic SDS MAX Rtec Speed 400mm', 0, NULL, 1, '2022-10-07 11:52:48', '2022-10-07 11:52:48'),
(136, 'Burgija metal DIN 338 3.0', 0, NULL, 1, '2022-10-07 11:54:00', '2022-10-07 11:54:00'),
(137, 'Stepenasta burgija 4-20 mm', 0, NULL, 1, '2022-10-07 11:54:28', '2022-10-07 11:54:47'),
(138, 'Lopatasto dleto SDS max 400x50', 0, NULL, 1, '2022-10-07 11:55:15', '2022-10-07 11:55:15'),
(139, 'Lopatasto dleto SDS max 350x50', 0, NULL, 1, '2022-10-07 11:55:51', '2022-10-07 11:55:51'),
(140, 'Burgija metal DIN 338 4.0', 0, NULL, 1, '2022-10-07 11:56:14', '2022-10-07 11:56:14'),
(141, 'Burgija SDS plus 5X 10/400/460', 0, NULL, 1, '2022-10-07 11:56:45', '2022-10-07 11:56:45'),
(142, 'Burgija SDS plus 12x900', 0, NULL, 1, '2022-10-07 11:57:22', '2022-10-07 11:57:22'),
(143, 'Burgija za metal 12mm', 0, NULL, 1, '2022-10-07 11:57:43', '2022-10-07 11:57:43'),
(144, 'Burgija 10x600 za drvo', 0, NULL, 1, '2022-10-07 11:58:02', '2022-10-07 11:58:02'),
(145, 'Burgija SDS plus 5X 12/550/610', 0, NULL, 1, '2022-10-07 11:58:32', '2022-10-07 11:58:32'),
(146, 'Burgija SDS MAX S4 18x200x340', 0, NULL, 1, '2022-10-07 11:59:03', '2022-10-07 11:59:03'),
(147, 'Špic SDS plus L250 Makita', 0, NULL, 1, '2022-10-07 11:59:34', '2022-10-07 11:59:34'),
(148, 'Burgija Bosch SDS + 5X 12x400/460', 0, NULL, 1, '2022-10-07 12:00:24', '2022-10-07 12:01:02'),
(149, 'Burgija SDS plus 5X 8/300/360', 0, NULL, 1, '2022-10-07 12:01:34', '2022-10-07 12:01:34'),
(150, 'Burgija SDS MAX S4 22x400x520', 0, NULL, 1, '2022-10-07 12:02:33', '2022-10-07 12:02:33'),
(151, 'Burgija SDS MAX S4 28x400x520', 0, NULL, 1, '2022-10-07 12:03:14', '2022-10-07 12:03:14'),
(152, 'Burgija SDS MAX 8X 16x400x540', 0, NULL, 1, '2022-10-07 12:03:40', '2022-10-07 12:03:40'),
(153, 'Burgija SDS plus 5X 8x550x610', 0, NULL, 1, '2022-10-07 12:04:08', '2022-10-07 12:04:08'),
(154, 'Burgija za drvo 8x230', 0, NULL, 1, '2022-10-07 12:04:28', '2022-10-07 12:04:28'),
(155, 'Burgija SDS plus 3 12/100/160', 0, NULL, 1, '2022-10-07 12:04:56', '2022-10-07 12:04:56'),
(156, 'Burgija za drvo 6x230', 0, NULL, 1, '2022-10-07 12:05:18', '2022-10-07 12:05:18'),
(157, 'Burgija za drvo leptir 16x150 blade', 0, NULL, 1, '2022-10-07 12:05:48', '2022-10-07 12:05:48'),
(158, 'Špic 28mm GSH16 L400', 0, NULL, 1, '2022-10-07 12:06:19', '2022-10-07 12:06:19'),
(159, 'Burgija beton 8x350', 0, NULL, 1, '2022-10-07 12:07:40', '2022-10-07 12:07:40'),
(160, 'Burgija za metal 16mm', 0, NULL, 1, '2022-10-07 12:10:14', '2022-10-07 12:10:14'),
(161, 'Dleto 28 GSH 16 400x35', 0, NULL, 1, '2022-10-07 12:11:04', '2022-10-07 12:11:04'),
(162, 'Burgija SDS plus 16x600', 0, NULL, 1, '2022-10-07 12:11:37', '2022-10-07 12:11:37'),
(163, 'Burgija SDS plus 5X 8x100x160', 0, NULL, 1, '2022-10-07 12:13:29', '2022-10-07 12:13:29'),
(164, 'Burgija za drvo 3-10 mm', 0, NULL, 1, '2022-10-07 12:13:52', '2022-10-07 12:14:04'),
(165, 'Burgija SDS plus 5X 10x100x160', 0, NULL, 1, '2022-10-07 12:14:32', '2022-10-07 12:14:32'),
(166, 'Burgija SDS MAX 22x400x540', 0, NULL, 1, '2022-10-07 12:14:56', '2022-10-07 12:14:56'),
(167, 'Burgija SDS plus 5X 6/100/160', 0, NULL, 1, '2022-10-07 12:15:29', '2022-10-07 12:15:29'),
(168, 'Burgija SDS plus 5X 10/550/610', 0, NULL, 1, '2022-10-07 12:15:54', '2022-10-07 12:15:54'),
(169, 'Probojna kruna SDS MAX 55/600 BOSCH', 0, NULL, 1, '2022-10-07 12:16:24', '2022-10-07 12:16:24'),
(170, 'Burgija 10x600 SDS+FESTA', 0, NULL, 1, '2022-10-07 12:16:47', '2022-10-07 12:16:47'),
(171, 'Burgija SDS max 955/450/60', 0, NULL, 1, '2022-10-07 12:17:15', '2022-10-07 12:17:15'),
(172, 'Burgija 10x450 SDS+FESTA', 0, NULL, 1, '2022-10-07 12:17:37', '2022-10-07 12:17:37'),
(173, 'Burgija 12x600 SDS+FESTA', 0, NULL, 1, '2022-10-07 12:17:56', '2022-10-07 12:17:56'),
(174, 'Dijam. ploča best asphalt 350', 0, NULL, 1, '2022-10-07 12:18:30', '2022-10-07 12:18:30'),
(175, 'Dijam. ploča 115x1,6 8s', 0, NULL, 1, '2022-10-07 12:18:55', '2022-10-07 12:18:55'),
(176, 'Rezna ploča 115x1 Bosch', 0, NULL, 1, '2022-10-07 12:19:30', '2022-10-07 12:19:30'),
(177, 'Dijam.ploča DT612AB 400x25,4', 0, NULL, 1, '2022-10-07 12:20:03', '2022-10-07 12:20:03'),
(178, 'Rezna ploča 125x1', 0, NULL, 1, '2022-10-07 12:20:21', '2022-10-07 12:20:21'),
(179, 'ZOK utičnica stan Teledirekt bez vlakna', 0, 2, 1, '2022-12-06 09:29:20', '2022-12-06 09:29:20'),
(180, 'ZOK kuća TELEGROUP', 0, 2, 1, '2023-02-11 08:24:51', '2023-02-11 08:26:49'),
(181, 'Adapter A-SC/APC-01-01 TELEGROUP', 0, 2, 1, '2023-02-11 08:25:28', '2023-02-11 08:27:01'),
(182, 'Pigtail NSC2-09S2D-PD-001.0 TELEGROUP', 0, 2, 1, '2023-02-11 08:26:12', '2023-02-11 08:27:17'),
(183, '3T ADSS 4 203527', 0, 2, 1, '2023-07-09 13:23:28', '2023-07-21 15:46:00'),
(184, '3T ADSS 12 203533', 0, 2, 1, '2023-07-09 13:23:42', '2023-07-21 15:46:12'),
(185, '3T SELNA TROUGLASTA 203558', 0, 2, 1, '2023-07-09 13:26:18', '2023-07-21 15:46:24'),
(186, '3T PATCHCORD 203580', 0, 2, 1, '2023-07-09 13:26:52', '2023-07-21 15:46:34'),
(187, '3T ZOK UNUTRASNJI 203582', 0, 2, 1, '2023-07-09 13:27:41', '2023-07-21 15:46:47'),
(188, '3T SPOJNICA 203537', 0, 2, 1, '2023-07-09 13:31:02', '2023-07-21 15:46:59'),
(189, '3T SPOJNICA DRON 203616', 0, 2, 1, '2023-07-09 13:31:32', '2023-07-21 15:47:08'),
(190, '3T SPOJNICA 203559', 0, 2, 1, '2023-07-09 13:31:51', '2023-07-21 15:47:18'),
(191, '3T ZATEZAC RUNE 203586', 0, 2, 1, '2023-07-09 13:45:22', '2023-07-21 15:47:29'),
(192, '3T SPOJNICA V2 203619', 0, 2, 1, '2023-07-11 10:04:28', '2023-07-21 15:47:52'),
(193, '3T KASETA BEZ POKLOPCA 203588', 0, 2, 1, '2023-07-11 10:05:40', '2023-07-21 15:48:04'),
(194, '3T ADSS 96 203617', 0, 2, 1, '2023-07-18 11:48:33', '2023-07-21 15:48:14'),
(195, '3T SPLITER RUNE 1x16  203520', 0, 2, 1, '2023-07-18 13:11:13', '2023-07-21 15:48:33'),
(196, '3T ZATEZAC VECI RUNE 203555', 0, 2, 1, '2023-07-18 13:20:18', '2023-07-21 15:48:44'),
(197, '3T KASETA ZA SPOJNICU BELA 203587', 0, 2, 1, '2023-07-21 15:07:23', '2023-07-21 15:48:53'),
(198, 'GEBERUNG SPLITER 1x4 203519', 0, 2, 1, '2023-07-21 15:49:38', '2023-07-21 15:49:54'),
(199, 'GEBERUNG MIKROCEV 10/8  203620', 0, 2, 1, '2023-07-21 15:50:54', '2023-07-21 15:50:54'),
(200, 'GEBERUNG ADSS 4  203527', 0, 2, 1, '2023-07-21 15:51:55', '2023-07-21 15:51:55'),
(201, 'GEBERUNG ADSS 12  203533', 0, 2, 1, '2023-07-21 15:52:17', '2023-07-21 15:52:17'),
(202, 'GEBERUNG PATCHCORD 203580', 0, 2, 1, '2023-07-24 08:22:47', '2023-07-24 08:43:34'),
(203, 'GEBERUNG ZOK UNUTRASNJI 203582', 0, 2, 1, '2023-07-24 08:36:02', '2023-07-24 08:36:02'),
(204, '3T ADSS 24   203621', 0, 2, 1, '2023-07-27 10:19:52', '2023-07-27 10:19:52'),
(205, 'GEBERUNG SPOJNICA 203559', 0, 2, 1, '2023-08-07 17:10:11', '2023-08-07 17:10:11'),
(206, 'Lim zaštitni PSK 16 Teledirekt', 0, 2, 1, '2023-08-14 10:54:12', '2023-08-14 10:54:12');

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

--
-- Table structure for table `oprema_klijent`
--

CREATE TABLE IF NOT EXISTS `oprema_klijent` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `id_oprema` bigint UNSIGNED DEFAULT NULL,
  `id_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_opticki_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_supernova_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_bakar_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_rune` bigint UNSIGNED DEFAULT NULL,
  `kol` double DEFAULT NULL,
  `id_monter` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `oprema_klijent_id_klijent_foreign` (`id_klijent`),
  KEY `oprema_klijent_id_opticki_klijent_foreign` (`id_opticki_klijent`),
  KEY `oprema_klijent_id_bakar_klijent_foreign` (`id_bakar_klijent`),
  KEY `oprema_klijent_id_oprema_foreign` (`id_oprema`),
  KEY `oprema_klijent_id_monter_foreign` (`id_monter`),
  KEY `oprema_klijent_id_supernova_klijent_foreign` (`id_supernova_klijent`),
  KEY `oprema_klijent_id_rune_foreign` (`id_rune`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `oprema_otpremnica`
--

CREATE TABLE IF NOT EXISTS `oprema_otpremnica` (
  `id_oprema` bigint UNSIGNED DEFAULT NULL,
  `id_otpremnica` bigint UNSIGNED DEFAULT NULL,
  `kol` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  KEY `oprema_otpremnica_id_oprema_foreign` (`id_oprema`),
  KEY `oprema_otpremnica_id_otpremnica_foreign` (`id_otpremnica`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `oprema_povratnica`
--

CREATE TABLE IF NOT EXISTS `oprema_povratnica` (
  `id_oprema` bigint UNSIGNED DEFAULT NULL,
  `id_povratnica` bigint UNSIGNED DEFAULT NULL,
  `kol` int DEFAULT NULL,
  `id_stanje_opreme` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  KEY `oprema_povratnica_id_oprema_foreign` (`id_oprema`),
  KEY `oprema_povratnica_id_povratnica_foreign` (`id_povratnica`),
  KEY `oprema_povratnica_id_stanje_opreme_foreign` (`id_stanje_opreme`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `oprema_revers`
--

CREATE TABLE IF NOT EXISTS `oprema_revers` (
  `id_oprema` bigint UNSIGNED DEFAULT NULL,
  `id_revers` bigint UNSIGNED DEFAULT NULL,
  `kol` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  KEY `oprema_revers_id_oprema_foreign` (`id_oprema`),
  KEY `oprema_revers_id_revers_foreign` (`id_revers`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `origin`
--

CREATE TABLE IF NOT EXISTS `origin` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `origin` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `origin`
--

INSERT INTO `origin` (`id`, `origin`, `created_at`, `updated_at`) VALUES
(1, 'Teledirekt', NULL, NULL),
(2, 'Telegroup', NULL, NULL),
(3, 'RUNE', NULL, NULL);

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

--
-- Table structure for table `otpremljena_roba`
--

CREATE TABLE IF NOT EXISTS `otpremljena_roba` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `serijski_broj` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `id_otpremnice` bigint UNSIGNED DEFAULT NULL,
  `id_uredjaj` bigint UNSIGNED DEFAULT NULL,
  `id_mag` tinyint UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_uredjaj` (`id_uredjaj`),
  KEY `id_otpremnice` (`id_otpremnice`),
  KEY `id_mag` (`id_mag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_slovenian_ci;

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

--
-- Table structure for table `otpremnice`
--

CREATE TABLE IF NOT EXISTS `otpremnice` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `id_monter` bigint UNSIGNED DEFAULT NULL,
  `id_magacioner` bigint UNSIGNED DEFAULT NULL,
  `robu_preuzeo` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `naziv_firme` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `br_lk` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `reg_br` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `jmbg` char(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `tel` char(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_monter` (`id_monter`),
  KEY `id_magacioner` (`id_magacioner`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_slovenian_ci;

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

--
-- Table structure for table `paketi`
--

CREATE TABLE IF NOT EXISTS `paketi` (
  `id` tinyint UNSIGNED NOT NULL AUTO_INCREMENT,
  `naziv` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `price` decimal(8,2) NOT NULL DEFAULT '0.00',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_slovenian_ci;

--
-- Dumping data for table `paketi`
--

INSERT INTO `paketi` (`id`, `naziv`, `price`, `created_at`, `updated_at`) VALUES
(1, 'm:SAT TV Start', '1395.00', '2020-01-31 21:06:04', '2023-04-03 16:46:35'),
(2, 'm:SAT TV Plus', '1899.00', '2020-01-31 21:06:04', '2023-04-03 16:46:51'),
(3, 'm:SAT TV MAX', '2599.00', '2020-01-31 21:06:04', '2023-04-03 16:47:14'),
(4, 'Box2 (MobilniNet 100+m:SAT - PLUS)', '3149.00', '2020-01-31 21:06:04', '2023-05-24 13:09:40'),
(5, 'BOX3 ( Fiksni + Net10 + m:SAT Plus )', '3449.00', '2020-01-31 21:06:04', '2023-04-11 11:07:28'),
(6, 'BOX3 ( Fiksni + Net20 + m:SAT Plus )', '3449.00', '2020-01-31 21:06:04', '2023-04-11 11:07:54'),
(7, 'BOX 2 (Fiksna + Net 50)', '0.00', '2020-05-08 13:26:29', '2020-05-08 13:26:29'),
(8, 'BOX 2 (Fiksna + Net 150)', '0.00', '2020-05-08 13:26:50', '2022-07-01 10:30:16'),
(9, 'BOX 2 (Fiksna + TV Start paket)', '2399.00', '2020-05-08 13:27:22', '2023-04-10 14:47:36'),
(10, 'BOX 2 (Fiksna + TV Plus paket)', '2899.00', '2020-05-08 13:27:44', '2023-04-10 14:47:13'),
(11, 'BOX 2 (Fiksna + TV Max paket)', '3599.00', '2020-05-08 13:28:03', '2023-04-10 14:46:58'),
(12, 'BOX 3 (Fiksna+Net20/150+ Omorika3)', '0.00', '2020-05-08 13:29:01', '2022-06-01 11:31:55'),
(13, 'BOX 3 (Fiksna+Net50/250+ Omorika16)', '0.00', '2020-05-08 13:29:21', '2022-06-01 11:32:21'),
(14, 'BOX 3 (Fiksna+Net 100/500+ Soko lite)', '0.00', '2020-05-08 13:29:49', '2022-06-01 11:32:59'),
(15, 'BOX 3 (Fiksna+TV Start+ Omorika3)', '0.00', '2020-05-08 13:30:15', '2022-06-01 11:33:15'),
(16, 'BOX 3 (Fiksna+TV Plus+ Omorika16)', '0.00', '2020-05-08 13:30:28', '2022-06-01 11:33:32'),
(17, 'BOX 3 (Fiksna+TV Max+ Soko Lite)', '0.00', '2020-05-08 13:30:44', '2022-06-01 11:33:58'),
(18, 'BOX 3 (Fiksna + Net 20/150 + TV Start)', '0.00', '2020-05-08 13:31:12', '2022-06-01 11:38:48'),
(19, 'BOX 3 (Fiksna + Net  50/250 + TV Plus)', '0.00', '2020-05-08 13:31:32', '2022-06-01 11:39:15'),
(20, 'BOX 3 (Fiksna + Net 100/500 + TV Max)', '0.00', '2020-05-08 13:31:53', '2022-06-01 11:40:53'),
(21, 'BOX 4 CRVENI', '5299.00', '2020-05-08 13:32:19', '2023-04-10 13:49:57'),
(22, 'BOX 4 PLAVI', '6299.00', '2020-05-08 13:32:28', '2023-04-10 13:49:29'),
(23, 'BOX 4 BELI', '6999.00', '2020-05-08 13:32:37', '2023-04-10 13:49:11'),
(24, 'BOX 4 ZLATNI', '7399.00', '2020-05-08 13:32:46', '2023-04-10 13:48:55'),
(25, 'SUPER PAR', '0.00', '2020-05-15 09:10:39', '2020-05-15 09:10:39'),
(26, 'SUPER PAR PLUS', '0.00', '2020-05-15 09:10:48', '2020-05-15 09:10:48'),
(27, 'PREBACIVANJE NA OPTIKU', '0.00', '2020-06-11 11:10:41', '2020-06-11 11:10:41'),
(28, 'Fiksna+Net 20 + m:Sat TV Plus + Omorika 3', '0.00', '2020-09-22 09:49:02', '2022-06-01 11:42:02'),
(29, 'Fiksna+Net 20 + m:Sat TV Max + Omorika 16', '0.00', '2020-09-22 09:49:18', '2022-06-01 11:42:15'),
(30, 'Fiksna+Net 10 + m:Sat TV Plus + Omorika 3', '0.00', '2020-09-22 09:50:00', '2022-06-01 11:42:31'),
(31, 'BOX 2 (Fiksna + Net 200)', '0.00', '2020-10-08 12:43:29', '2020-10-08 12:43:29'),
(32, 'BOX4 PLAVI LITE', '5699.00', '2022-06-01 11:41:26', '2023-04-10 13:48:14'),
(33, 'BOX2 ( fiksni + Net 10/20)', '0.00', '2022-06-01 11:44:21', '2022-06-01 11:44:21'),
(34, 'Mobilni Net MEGA', '2049.00', '2022-06-01 11:44:36', '2023-04-10 13:47:24'),
(35, 'Mobilni Net PLUS', '1049.00', '2022-06-01 11:44:51', '2023-04-10 13:47:03'),
(36, 'Mobilni Net START', '649.00', '2022-06-01 11:45:11', '2023-04-10 13:46:46'),
(37, 'Mobini Net MAX', '1549.00', '2022-06-01 11:45:32', '2023-04-10 13:46:24'),
(38, 'Morava 150', '849.00', '2022-06-01 11:45:44', '2023-04-10 13:45:46'),
(39, 'Morava 300', '1249.00', '2022-06-01 11:45:56', '2023-04-10 13:45:28'),
(40, 'Omorika 3', '0.00', '2022-06-01 11:46:08', '2022-06-01 11:46:08'),
(41, 'OMORIKA 8', '0.00', '2022-06-01 11:46:20', '2022-06-01 11:46:20'),
(42, 'OMORIKA 16', '0.00', '2022-06-01 11:46:26', '2022-06-01 11:46:26'),
(43, 'SOKO LITE', '3049.00', '2022-06-01 11:46:37', '2023-04-10 13:45:07'),
(44, 'SOKO MAX', '4549.00', '2022-06-01 11:46:51', '2023-04-10 13:44:47'),
(45, 'SENIOR', '1049.00', '2022-06-01 12:05:44', '2023-04-10 13:44:23'),
(46, 'ZMAJ', '1649.00', '2022-06-01 12:05:51', '2023-04-10 13:44:04'),
(47, 'BOX 3 (Fiksna + Net 10 + TV Start)', '0.00', '2022-06-06 15:22:35', '2022-06-06 15:22:35'),
(48, 'BOX 4 CRVENI LITE', '5299.00', '2022-06-24 13:19:56', '2023-04-10 13:43:30'),
(49, 'BOX 2 (Fiksna + Net 100/500)', '0.00', '2022-07-06 08:52:18', '2022-07-06 08:52:18'),
(50, 'Mts Tv START', '1899.00', '2022-07-19 16:28:28', '2023-04-10 13:42:42'),
(51, 'Mts Tv PLUS', '2399.00', '2022-07-19 16:28:54', '2023-04-03 16:45:30'),
(52, 'Mts Tv MAX', '3099.00', '2022-07-19 16:29:11', '2023-04-03 16:44:54'),
(53, 'Box3(Fiksni+ Net10+Omorika 3)', '0.00', '2022-07-29 14:25:21', '2022-07-29 14:25:21'),
(54, 'Super Plan 2M', '3649.00', '2022-08-22 11:30:11', '2023-04-03 14:02:06'),
(55, 'Super Plan 3M', '4299.00', '2022-09-29 13:38:59', '2023-04-03 14:01:40'),
(56, 'OMORIKA 12', '1949.00', '2022-11-15 16:26:37', '2023-04-10 13:40:57'),
(57, 'OMORIKA 25', '2349.00', '2022-11-15 16:26:51', '2023-04-10 13:41:16'),
(58, 'OMORIKA 50', '2649.00', '2022-11-15 16:27:07', '2023-04-10 13:41:37'),
(59, 'Box3(Fiksni+ Net10+Omorika 12)', '3999.00', '2022-12-06 13:44:44', '2023-04-03 16:55:20'),
(60, 'Box3(Fiksni+ Net20/150+Omorika 12)', '3999.00', '2022-12-06 13:45:18', '2023-04-03 16:54:48'),
(61, 'Box3(Fiksni+ Net50/250+Omorika 25)', '4349.00', '2022-12-06 13:45:49', '2023-04-03 16:53:06'),
(62, 'Box3 (Fiksni+ TV Start + Omorika 12)', '4249.00', '2022-12-06 13:49:49', '2023-04-03 14:00:02'),
(63, 'Box3 (Fiksni+ TV Plus + Omorika 25)', '4849.00', '2022-12-06 13:50:14', '2023-04-03 13:59:29'),
(64, 'Box4 ( Fiksna + Net 10 + m:Sat TV Plus + Omorika 12)', '4599.00', '2022-12-06 13:51:37', '2023-04-28 12:34:27'),
(65, 'Box4 ( Fiksna + Net 20 + m:Sat TV Plus + Omorika 12)', '4599.00', '2022-12-06 13:51:58', '2023-04-28 12:35:49'),
(66, 'Box4 ( Fiksna + Net 20 + m:Sat TV Max + Omorika 25)', '5199.00', '2022-12-06 13:52:52', '2023-04-28 12:36:09'),
(67, 'Box2 ( Fiksni + Net 250)', '2399.00', '2022-12-08 16:39:55', '2023-04-03 16:51:50'),
(68, 'SUPER PLAN 2S', '3349.00', '2022-12-15 19:52:01', '2023-04-03 13:49:55'),
(69, 'SUPER PLAN 4 BELI', '6549.00', '2022-12-23 13:40:42', '2023-04-03 13:49:17'),
(70, 'Super Plan 2XL', '5199.00', '2022-12-23 20:25:16', '2023-04-03 13:48:44'),
(71, 'Super Plan 2L', '4149.00', '2022-12-24 18:14:55', '2023-04-03 13:48:20'),
(72, 'Super Plan 4 CRVENI', '5499.00', '2023-01-13 15:29:33', '2023-04-03 13:47:39'),
(73, 'Supernova Net', '0.00', '2023-01-21 19:47:37', '2023-01-21 19:47:37'),
(74, 'SUPER PLAN 4 ZLATNI', '7599.00', '2023-02-04 18:24:56', '2023-04-03 13:47:13'),
(76, 'Super Plan 3L', '4749.00', '2023-02-13 14:53:11', '2023-04-03 13:46:34'),
(77, 'Super Plan 3S', '3999.00', '2023-02-28 15:06:34', '2023-04-03 13:45:58'),
(78, 'Box3 ( Fiksni + net 20 + m:Sat TV  Max)', '3749.00', '2023-03-15 13:28:04', '2023-04-03 13:44:54'),
(79, 'BOX 3 (Fiksni + Net 20/200 + TV Start)', '4099.00', '2023-03-21 11:48:22', '2023-04-03 13:42:38'),
(80, 'BOX 3 (Fiksni + Net 50/400 + TV Plus)', '4499.00', '2023-03-21 11:48:37', '2023-04-03 13:42:21'),
(81, 'BOX 3 (Fiksni + Net 100/600 + TV Max)', '5299.00', '2023-03-21 11:48:50', '2023-04-03 13:41:58'),
(82, 'BOX 3 (Fiksni + Net 20/200 + Omorika 12)', '4599.00', '2023-03-21 11:49:25', '2023-04-03 13:41:20'),
(83, 'BOX 3 (Fiksni + Net 50/400 + Omorika 25)', '5049.00', '2023-03-21 11:49:44', '2023-04-03 13:40:56'),
(84, 'BOX 3 (Fiksni + Net 100/600 + Soko Lite)', '5649.00', '2023-03-21 11:49:58', '2023-04-03 13:40:32'),
(85, 'BOX 2 (Fiksni + Net 20/200)', '2699.00', '2023-03-21 11:50:10', '2023-04-03 13:36:46'),
(86, 'BOX 2 (Fiksni + Net 50/400)', '2899.00', '2023-03-21 11:50:21', '2023-04-03 13:36:17'),
(87, 'BOX 2 (Fiksni + Net 100/600)', '3399.00', '2023-03-21 11:50:40', '2023-04-03 13:35:09'),
(88, 'Box2 (MobilniNet 500+m:SAT - PLUS)', '0.00', '2023-05-24 13:09:58', '2023-05-24 13:09:58'),
(89, 'SUPER PLAN 4 PLAVI', '0.00', '2023-07-22 18:10:56', '2023-07-22 18:10:56'),
(90, 'Super Plan 3XL', '0.00', '2023-07-31 12:49:05', '2023-07-31 12:49:05');

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

--
-- Table structure for table `payments`
--

CREATE TABLE IF NOT EXISTS `payments` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `amount` double(8,2) NOT NULL,
  `updated_by` bigint UNSIGNED NOT NULL,
  `id_construction_site` bigint UNSIGNED NOT NULL,
  `id_currency` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `payments_id_construction_site_foreign` (`id_construction_site`),
  KEY `payments_id_currency_foreign` (`id_currency`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `pomocnici`
--

CREATE TABLE IF NOT EXISTS `pomocnici` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `ime` varchar(255) DEFAULT NULL,
  `prezime` varchar(255) DEFAULT NULL,
  `jmbg` varchar(20) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `telefon` varchar(255) DEFAULT NULL,
  `adresa` varchar(255) DEFAULT NULL,
  `zanimanje` varchar(255) DEFAULT NULL,
  `id_ugovor` tinyint UNSIGNED DEFAULT NULL,
  `id_user` bigint UNSIGNED DEFAULT NULL,
  `datum_pocetka_osiguranja` date DEFAULT NULL,
  `datum_prestanka_osiguranja` date DEFAULT NULL,
  `oprema` tinyint(1) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_ugovor` (`id_ugovor`),
  KEY `id_user` (`id_user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Table structure for table `postpaid_tariffs`
--

CREATE TABLE IF NOT EXISTS `postpaid_tariffs` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `tariff` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `povratna_roba`
--

CREATE TABLE IF NOT EXISTS `povratna_roba` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `serijski_broj` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `id_povratnica` bigint UNSIGNED DEFAULT NULL,
  `id_uredjaj` bigint UNSIGNED DEFAULT NULL,
  `id_status_uredjaja` bigint UNSIGNED DEFAULT NULL,
  `id_stanje_uredjaja` bigint UNSIGNED DEFAULT NULL,
  `zamena` int DEFAULT NULL,
  `jmbg` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tis_id` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `povratna_roba_id_povratnica_foreign` (`id_povratnica`),
  KEY `povratna_roba_id_uredjaj_foreign` (`id_uredjaj`),
  KEY `povratna_roba_id_status_uredjaja_foreign` (`id_status_uredjaja`),
  KEY `povratna_roba_id_stanje_uredjaja_foreign` (`id_stanje_uredjaja`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `povratnice`
--

CREATE TABLE IF NOT EXISTS `povratnice` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `id_monter` bigint UNSIGNED DEFAULT NULL,
  `id_magacioner` bigint UNSIGNED DEFAULT NULL,
  `robu_preuzeo` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `naziv_firme` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `br_lk` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reg_br` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sent_to_warehouse` tinyint DEFAULT NULL,
  `send_date` date DEFAULT NULL,
  `printed` tinyint DEFAULT NULL,
  `note` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `storage_id` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `prodavac`
--

CREATE TABLE IF NOT EXISTS `prodavac` (
  `id` tinyint UNSIGNED NOT NULL AUTO_INCREMENT,
  `ime` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `prezime` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `id_izvodjac_prodavac` tinyint UNSIGNED DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_izvodjac_prodavac` (`id_izvodjac_prodavac`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_slovenian_ci;

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

--
-- Table structure for table `razlozi_intervencije`
--

CREATE TABLE IF NOT EXISTS `razlozi_intervencije` (
  `id` tinyint UNSIGNED NOT NULL AUTO_INCREMENT,
  `razlog` varchar(255) DEFAULT NULL,
  `default` tinyint(1) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `razlozi_intervencije`
--

INSERT INTO `razlozi_intervencije` (`id`, `razlog`, `default`, `updated_at`, `created_at`) VALUES
(1, 'štelovanje antene', 1, '2020-01-16 21:24:51', '2020-01-16 21:24:51'),
(2, 'izmeštanje antene', 1, '2020-01-16 21:24:51', '2020-01-16 21:24:51'),
(3, 'zamena opreme', 1, '2020-01-16 21:24:51', '2020-01-16 21:24:51'),
(4, 'restart opreme', 1, '2020-01-16 21:24:51', '2020-01-16 21:24:51'),
(5, 'drugi razlozi', 1, '2020-01-16 21:24:51', '2020-01-16 21:24:51'),
(6, 'DEMONTAŽA', 0, '2020-01-29 14:08:11', '2020-01-29 14:08:11'),
(7, 'usb nadogradnja', 0, '2020-11-18 09:47:20', '2020-01-29 14:09:49'),
(8, 'SEOBA', 0, '2020-02-06 14:10:01', '2020-02-06 14:10:01'),
(9, 'DEMONTAŽA DODATNOG STB-a', 0, '2020-06-11 10:16:58', '2020-06-11 10:16:58'),
(10, 'izmestanje STB-a', 0, '2020-11-18 09:44:55', '2020-11-18 09:44:55'),
(11, 'reklamacija - MONTAZA', 0, '2020-12-11 11:19:26', '2020-12-11 11:19:26'),
(12, 'NEMOGUĆA DEMONTAŽA', 0, '2021-09-17 10:35:37', '2021-09-17 10:35:37'),
(13, 'DEMONTAŽA ZBOG DUGA', 0, '2021-12-08 13:19:26', '2021-12-08 13:19:30');

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

--
-- Table structure for table `razlozi_vracanja`
--

CREATE TABLE IF NOT EXISTS `razlozi_vracanja` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `razlog` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `razlozi_vracanja`
--

INSERT INTO `razlozi_vracanja` (`id`, `razlog`, `created_at`, `updated_at`) VALUES
(1, 'zamena', '2020-05-25 06:00:50', '2020-05-25 06:00:50'),
(2, 'neispravno', '2020-05-25 06:00:50', '2020-05-25 06:00:50'),
(3, 'oštećeno', '2020-05-25 06:00:50', '2020-05-25 06:00:50'),
(4, 'demontaža', '2020-05-25 06:00:50', '2020-05-25 06:00:50'),
(5, 'fabrički neispravno', '2020-06-12 09:39:44', '2020-06-12 09:39:46');

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

--
-- Table structure for table `report_marks`
--

CREATE TABLE IF NOT EXISTS `report_marks` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `facility_enterance` tinyint DEFAULT NULL,
  `internal_cabling` tinyint DEFAULT NULL,
  `signal_level` tinyint DEFAULT NULL,
  `coupling_condition` tinyint DEFAULT NULL,
  `behavior` tinyint DEFAULT NULL,
  `customer_satisfaction` tinyint DEFAULT NULL,
  `edited_by` bigint UNSIGNED DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `report_marks_edited_by_foreign` (`edited_by`),
  KEY `report_marks_created_by_foreign` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `required_equipment`
--

CREATE TABLE IF NOT EXISTS `required_equipment` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `equipment_id` bigint UNSIGNED NOT NULL,
  `site_id` bigint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `edited_quantity` decimal(8,2) NOT NULL DEFAULT '0.00',
  `supplied_quantity` decimal(8,2) NOT NULL DEFAULT '0.00',
  `supplied` tinyint NOT NULL DEFAULT '0',
  `supplied_by` bigint UNSIGNED NOT NULL DEFAULT '0',
  `supplied_to` bigint UNSIGNED DEFAULT NULL,
  `ready` tinyint NOT NULL DEFAULT '0',
  `created_by` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `required_equipment_equipment_id_foreign` (`equipment_id`),
  KEY `required_equipment_site_id_foreign` (`site_id`),
  KEY `required_equipment_created_by_foreign` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `revers`
--

CREATE TABLE IF NOT EXISTS `revers` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `text` char(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `id_monter` bigint UNSIGNED DEFAULT NULL,
  `id_magacioner` bigint UNSIGNED DEFAULT NULL,
  `storage_id` bigint UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_monter` (`id_monter`),
  KEY `id_magacioner` (`id_magacioner`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_slovenian_ci;

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

--
-- Table structure for table `revers_roba`
--

CREATE TABLE IF NOT EXISTS `revers_roba` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `serijski_broj` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `id_revers` bigint UNSIGNED DEFAULT NULL,
  `id_uredjaj` bigint UNSIGNED DEFAULT NULL,
  `storage_id` bigint UNSIGNED DEFAULT NULL,
  `mounted` tinyint NOT NULL DEFAULT '0',
  `obsolete` tinyint NOT NULL DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_uredjaj` (`id_uredjaj`),
  KEY `id_otpremnice` (`id_revers`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_slovenian_ci;

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

--
-- Table structure for table `roles`
--

CREATE TABLE IF NOT EXISTS `roles` (
  `id` int UNSIGNED NOT NULL AUTO_INCREMENT,
  `rola` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1002 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `roles`
--

INSERT INTO `roles` (`id`, `rola`, `description`, `created_at`, `updated_at`) VALUES
(1, 'super admin', 'super administrator', '2019-03-27 09:10:22', NULL),
(2, 'admin', 'administrator', '2019-03-27 09:10:46', NULL),
(3, 'fitter', 'monter', '2019-09-06 08:06:19', NULL),
(4, 'storekeeper', 'magacioner', '2019-10-23 06:56:45', NULL),
(5, 'seller', 'prodavac', '2020-01-31 20:06:03', NULL),
(6, 'team leader', 'tim lider', '2020-02-10 20:15:01', NULL),
(7, 'worker', 'radnik', '2020-09-25 19:47:17', NULL),
(8, 'construction area admin', 'administrator za izgradnju', '2020-12-07 17:35:21', NULL),
(9, 'huawei admin', 'huawei admin', '2021-09-02 18:41:04', NULL),
(10, 'construction manager', 'šef gradilišta', '2021-09-17 18:16:15', NULL),
(11, 'project manager', 'projektant', '2021-09-17 18:16:18', NULL),
(12, 'project admin', 'projektant administrator', '2022-02-16 06:47:31', '2022-02-16 06:47:33'),
(13, 'column leader', 'vođa kolone', '2022-10-14 07:16:57', NULL),
(14, 'subcontractor', 'podizvođač', '2023-02-02 08:14:56', '2023-02-02 08:14:56'),
(1001, 'developer', 'gm', '2020-10-25 16:06:02', NULL);

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

--
-- Table structure for table `rune_comments`
--

CREATE TABLE IF NOT EXISTS `rune_comments` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `comment` char(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `client_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rune_comments_client_id_foreign` (`client_id`),
  KEY `rune_comments_user_id_foreign` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `rune_files`
--

CREATE TABLE IF NOT EXISTS `rune_files` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `file_url` char(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `filename` char(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `client_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `rune_images`
--

CREATE TABLE IF NOT EXISTS `rune_images` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `image_url` char(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `client_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rune_images_client_id_foreign` (`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `rune_logs`
--

CREATE TABLE IF NOT EXISTS `rune_logs` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint UNSIGNED NOT NULL,
  `client_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `rune_optics`
--

CREATE TABLE IF NOT EXISTS `rune_optics` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `contract_number` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `surname` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `claim_created_by` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `area` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `claim` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `seller` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `points` decimal(8,2) DEFAULT NULL,
  `report_id` bigint UNSIGNED DEFAULT NULL,
  `user` bigint UNSIGNED DEFAULT NULL,
  `reclamation_user` bigint UNSIGNED DEFAULT NULL,
  `origin` bigint UNSIGNED DEFAULT NULL,
  `claim_date` date DEFAULT NULL,
  `appointment_date` date DEFAULT NULL,
  `date_of_disposal` date DEFAULT NULL,
  `reclamation_date` date DEFAULT NULL,
  `montage_date` date DEFAULT NULL,
  `montage_type` tinyint UNSIGNED DEFAULT NULL,
  `client_sale` bigint UNSIGNED DEFAULT NULL,
  `withdrawal_date` date DEFAULT NULL,
  `delay_date` date DEFAULT NULL,
  `intervention_date` date DEFAULT NULL,
  `withdrawal_reason` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `intervention_status` bigint UNSIGNED DEFAULT NULL,
  `helper` bigint UNSIGNED DEFAULT NULL,
  `extra_stb` tinyint DEFAULT NULL,
  `on_terrain` tinyint DEFAULT NULL,
  `imported` tinyint NOT NULL DEFAULT '0',
  `done` tinyint DEFAULT NULL,
  `decimal` tinyint DEFAULT NULL,
  `company_id` tinyint DEFAULT NULL,
  `cluster` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pan` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `street` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `eta` int DEFAULT NULL,
  `network_group` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tel1` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tel2` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tel3` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fobos_id` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `county` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `settlement` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `household` tinyint DEFAULT NULL,
  `households` tinyint DEFAULT NULL,
  `state` tinyint DEFAULT NULL,
  `state_services` tinyint DEFAULT NULL,
  `home_no` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `enterance` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `floor` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `apartment` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `packet` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `black_list` tinyint NOT NULL DEFAULT '0',
  `recomended_tariff` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `first_offer` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `operator` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `month` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `year` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint UNSIGNED DEFAULT NULL,
  `seller_id` bigint UNSIGNED DEFAULT NULL,
  `project_manager` bigint UNSIGNED DEFAULT NULL,
  `contract_expire_date` date DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL,
  `updated_by` bigint UNSIGNED DEFAULT NULL,
  `cable` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tube` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `thread` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `case` char(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `x_coordinate` bigint DEFAULT NULL,
  `y_coordinate` bigint DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rune_optics_origin_foreign` (`origin`),
  KEY `rune_optics_status_foreign` (`status`),
  KEY `rune_optics_intervention_status_foreign` (`intervention_status`),
  KEY `rune_optics_montage_type_foreign` (`montage_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `salaries`
--

CREATE TABLE IF NOT EXISTS `salaries` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `salary` decimal(9,2) NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `date_of_entry` date NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `salaries_user_id_foreign` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `servers`
--

CREATE TABLE IF NOT EXISTS `servers` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `server` char(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `servers`
--

INSERT INTO `servers` (`id`, `server`, `created_at`, `updated_at`) VALUES
(1, 'Biz Pronet', NULL, NULL),
(2, 'Geberung', NULL, NULL),
(3, 'Default', NULL, NULL);

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

--
-- Table structure for table `settings`
--

CREATE TABLE IF NOT EXISTS `settings` (
  `id` tinyint UNSIGNED NOT NULL AUTO_INCREMENT,
  `lnb_monter` double(8,2) NOT NULL DEFAULT '0.00',
  `lnb_helper` double(8,2) NOT NULL DEFAULT '0.00',
  `setting_monter` double(8,2) NOT NULL DEFAULT '0.00',
  `setting_helper` double(8,2) NOT NULL DEFAULT '0.00',
  `displacement_monter` double(8,2) NOT NULL DEFAULT '0.00',
  `displacement_helper` double(8,2) NOT NULL DEFAULT '0.00',
  `replacement_monter` double(8,2) NOT NULL DEFAULT '0.00',
  `replacement_helper` double(8,2) NOT NULL DEFAULT '0.00',
  `other_reasons_monter` double(8,2) NOT NULL DEFAULT '0.00',
  `other_reasons_helper` double(8,2) NOT NULL DEFAULT '0.00',
  `stb_monter` double(8,2) NOT NULL DEFAULT '0.00',
  `stb_helper` double(8,2) NOT NULL DEFAULT '0.00',
  `vdsl_monter` double(8,2) NOT NULL DEFAULT '0.00',
  `vdsl_helper` double(8,2) NOT NULL DEFAULT '0.00',
  `ont_monter` double(8,2) NOT NULL DEFAULT '0.00',
  `ont_helper` double(8,2) NOT NULL DEFAULT '0.00',
  `ont_house_monter` double(8,2) NOT NULL DEFAULT '0.00',
  `ont_house_helper` double(8,2) NOT NULL DEFAULT '0.00',
  `ont_flat_monter` double(8,2) NOT NULL DEFAULT '0.00',
  `ont_flat_helper` double(8,2) NOT NULL DEFAULT '0.00',
  `optics_intervention_monter` double(8,2) NOT NULL DEFAULT '0.00',
  `optics_intervention_helper` double(8,2) NOT NULL DEFAULT '0.00',
  `supernova_monter` double(8,2) NOT NULL DEFAULT '0.00',
  `supernova_helper` double(8,2) NOT NULL DEFAULT '0.00',
  `copper_monter` double(8,2) NOT NULL DEFAULT '0.00',
  `copper_helper` double(8,2) NOT NULL DEFAULT '0.00',
  `construction_profit_percent` double(8,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` (`id`, `lnb_monter`, `lnb_helper`, `setting_monter`, `setting_helper`, `displacement_monter`, `displacement_helper`, `replacement_monter`, `replacement_helper`, `other_reasons_monter`, `other_reasons_helper`, `stb_monter`, `stb_helper`, `vdsl_monter`, `vdsl_helper`, `ont_monter`, `ont_helper`, `ont_house_monter`, `ont_house_helper`, `ont_flat_monter`, `ont_flat_helper`, `optics_intervention_monter`, `optics_intervention_helper`, `supernova_monter`, `supernova_helper`, `copper_monter`, `copper_helper`, `construction_profit_percent`, `created_at`, `updated_at`) VALUES
(1, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL);

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

--
-- Table structure for table `site_equipment`
--

CREATE TABLE IF NOT EXISTS `site_equipment` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `id_construction_site` bigint UNSIGNED NOT NULL,
  `id_equipment` bigint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `site_equipment_id_construction_site_foreign` (`id_construction_site`),
  KEY `site_equipment_id_equipment_foreign` (`id_equipment`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `site_work`
--

CREATE TABLE IF NOT EXISTS `site_work` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `id_construction_site` bigint UNSIGNED NOT NULL,
  `access_work_id` bigint UNSIGNED DEFAULT NULL,
  `vertical_work_id` bigint UNSIGNED DEFAULT NULL,
  `doc_work` bigint UNSIGNED DEFAULT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `price` decimal(8,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `site_work_id_construction_site_foreign` (`id_construction_site`),
  KEY `site_work_access_work_id_foreign` (`access_work_id`),
  KEY `site_work_vertical_work_id_foreign` (`vertical_work_id`),
  KEY `site_work_doc_work_foreign` (`doc_work`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `stanje_uredjaja`
--

CREATE TABLE IF NOT EXISTS `stanje_uredjaja` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `stanje` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `stanje_uredjaja`
--

INSERT INTO `stanje_uredjaja` (`id`, `stanje`, `created_at`, `updated_at`) VALUES
(1, 'neispravno', NULL, NULL),
(2, 'oštećeno', NULL, NULL),
(3, 'ispravno', NULL, NULL),
(4, 'neispitano', NULL, '2022-02-19 13:57:04');

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

--
-- Table structure for table `states`
--

CREATE TABLE IF NOT EXISTS `states` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `state` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `state_short` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `states`
--

INSERT INTO `states` (`id`, `state`, `state_short`, `created_at`, `updated_at`) VALUES
(1, 'Srbija', 'SRB', '2020-09-25 19:42:05', '2020-09-25 19:42:05'),
(2, 'Bosna i Hercegovina', 'BIH', '2020-09-25 19:42:05', '2020-09-25 19:42:05');

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

--
-- Table structure for table `statusi`
--

CREATE TABLE IF NOT EXISTS `statusi` (
  `id` tinyint UNSIGNED NOT NULL AUTO_INCREMENT,
  `status` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `default` tinyint(1) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_slovenian_ci;

--
-- Dumping data for table `statusi`
--

INSERT INTO `statusi` (`id`, `status`, `default`, `updated_at`, `created_at`) VALUES
(1, 'zakazan', 1, NULL, NULL),
(2, 'odložen', 1, NULL, NULL),
(3, 'odustao na zakazivanju', 1, NULL, NULL),
(4, 'odustao na montaži', 1, NULL, NULL),
(5, 'montiran', 1, NULL, NULL),
(6, 'napomena', 1, NULL, NULL),
(19, 'demontiran', 0, '2021-07-17 08:08:00', '2019-10-18 09:48:03'),
(20, 'podizvođač', 0, '2021-07-17 08:08:22', '2020-06-28 10:42:08'),
(21, 'nije pušten', 0, '2021-07-17 08:07:51', '2021-07-17 08:07:42'),
(22, 'Završen', 0, '2022-06-02 08:38:05', '2022-06-02 08:38:05'),
(23, 'vraćeno Teledirektu', 0, '2022-07-08 15:36:46', '2022-07-08 15:36:46');

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

--
-- Table structure for table `statusi_intervencije`
--

CREATE TABLE IF NOT EXISTS `statusi_intervencije` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `status` varchar(255) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `statusi_intervencije`
--

INSERT INTO `statusi_intervencije` (`id`, `status`, `updated_at`, `created_at`) VALUES
(1, 'otvoreno', '2019-10-10 21:34:49', '2019-10-10 21:34:52'),
(2, 'zatvoreno', '2019-10-10 21:34:53', '2019-10-10 21:34:57');

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

--
-- Table structure for table `statusi_uredjaja`
--

CREATE TABLE IF NOT EXISTS `statusi_uredjaja` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `status` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `statusi_uredjaja`
--

INSERT INTO `statusi_uredjaja` (`id`, `status`, `created_at`, `updated_at`) VALUES
(1, 'reklamacija', NULL, NULL),
(2, 'adsl-vdsl', NULL, NULL),
(3, 'fabrički neispravno', NULL, '2022-02-08 14:23:51'),
(4, 'demontaža', NULL, NULL),
(5, 'zamena', '2020-12-17 14:47:22', '2020-12-17 14:47:22');

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

--
-- Table structure for table `storage_equipment`
--

CREATE TABLE IF NOT EXISTS `storage_equipment` (
  `mag_id` tinyint UNSIGNED NOT NULL,
  `equipment_id` bigint UNSIGNED DEFAULT NULL,
  `mont_equipment_id` bigint UNSIGNED DEFAULT NULL,
  `quantity` double(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  KEY `storage_equipment_mag_id_foreign` (`mag_id`),
  KEY `storage_equipment_equipment_id_foreign` (`equipment_id`),
  KEY `montage_foreign` (`mont_equipment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `storage_logs`
--

CREATE TABLE IF NOT EXISTS `storage_logs` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `equipment_id` bigint UNSIGNED DEFAULT NULL,
  `mont_equipment_id` bigint UNSIGNED DEFAULT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `fitter_id` bigint UNSIGNED DEFAULT NULL,
  `receive_number` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `from` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `storage_id` tinyint UNSIGNED NOT NULL,
  `quantity` double(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `montage_log_foreign` (`mont_equipment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `storage_materials`
--

CREATE TABLE IF NOT EXISTS `storage_materials` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `material_id` bigint UNSIGNED NOT NULL,
  `storage_id` tinyint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `storage_materials_material_id_foreign` (`material_id`),
  KEY `storage_materials_storage_id_foreign` (`storage_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `storage_tools`
--

CREATE TABLE IF NOT EXISTS `storage_tools` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `tool_id` bigint UNSIGNED NOT NULL,
  `storage_id` tinyint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `storage_tools_tool_id_foreign` (`tool_id`),
  KEY `storage_tools_storage_id_foreign` (`storage_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `storage_types`
--

CREATE TABLE IF NOT EXISTS `storage_types` (
  `id` smallint UNSIGNED NOT NULL AUTO_INCREMENT,
  `type` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `storage_types`
--

INSERT INTO `storage_types` (`id`, `type`, `created_at`, `updated_at`) VALUES
(1, 'montaža', NULL, NULL),
(2, 'izgradnja', NULL, NULL),
(3, 'materijal', NULL, NULL),
(4, 'alat', NULL, NULL),
(5, 'uniforme', NULL, NULL);

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

--
-- Table structure for table `storage_uniforms`
--

CREATE TABLE IF NOT EXISTS `storage_uniforms` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `uniform_id` bigint UNSIGNED NOT NULL,
  `storage_id` tinyint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `storage_uniforms_uniform_id_foreign` (`uniform_id`),
  KEY `storage_uniforms_storage_id_foreign` (`storage_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `storage_vehicle_equipment`
--

CREATE TABLE IF NOT EXISTS `storage_vehicle_equipment` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `equipment_id` bigint UNSIGNED NOT NULL,
  `storage_id` tinyint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `storage_vehicle_equipment_equipment_id_foreign` (`equipment_id`),
  KEY `storage_vehicle_equipment_storage_id_foreign` (`storage_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `supervisor_comments`
--

CREATE TABLE IF NOT EXISTS `supervisor_comments` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `comment` varchar(1500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `id_optical_client` bigint UNSIGNED DEFAULT NULL,
  `id_user` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `teams`
--

CREATE TABLE IF NOT EXISTS `teams` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `naziv` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `id_lider` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `teams`
--

INSERT INTO `teams` (`id`, `naziv`, `id_lider`, `created_at`, `updated_at`) VALUES
(1, 'Tim 1', 77, '2022-09-16 09:34:53', '2022-09-16 09:34:53');

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

--
-- Table structure for table `team_prodavac`
--

CREATE TABLE IF NOT EXISTS `team_prodavac` (
  `id_team` bigint UNSIGNED DEFAULT NULL,
  `id_prodavac` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  KEY `team_prodavac_id_team_foreign` (`id_team`),
  KEY `team_prodavac_id_prodavac_foreign` (`id_prodavac`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `terrain_ammounts`
--

CREATE TABLE IF NOT EXISTS `terrain_ammounts` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `ammount` double(8,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `tickets`
--

CREATE TABLE IF NOT EXISTS `tickets` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `title` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `issue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` tinyint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `resolved` tinyint UNSIGNED NOT NULL DEFAULT '0',
  `resolved_by` bigint UNSIGNED DEFAULT NULL,
  `resolved_at` datetime DEFAULT NULL,
  `assigned_to` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `tickets_created_by_foreign` (`created_by`),
  KEY `tickets_resolved_by_foreign` (`resolved_by`),
  KEY `tickets_assigned_to_foreign` (`assigned_to`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `ticket_comments`
--

CREATE TABLE IF NOT EXISTS `ticket_comments` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `ticket_id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ticket_comments_ticket_id_foreign` (`ticket_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `tip_montaze`
--

CREATE TABLE IF NOT EXISTS `tip_montaze` (
  `id` tinyint UNSIGNED NOT NULL AUTO_INCREMENT,
  `tip` varchar(255) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `tip_montaze`
--

INSERT INTO `tip_montaze` (`id`, `tip`, `updated_at`, `created_at`) VALUES
(1, 'tip 1', NULL, '2020-02-05 22:15:17'),
(2, 'tip 2', NULL, '2020-02-05 22:15:17'),
(3, 'tip 3', NULL, '2020-02-05 22:15:17'),
(4, 'tip 100', NULL, '2020-07-12 09:00:00');

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

--
-- Table structure for table `tip_opreme`
--

CREATE TABLE IF NOT EXISTS `tip_opreme` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `tip` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tip_opreme`
--

INSERT INTO `tip_opreme` (`id`, `tip`, `created_at`, `updated_at`) VALUES
(1, 'DTH', '2020-09-14 16:27:54', '2020-09-14 16:27:56'),
(2, 'OPTIKA', '2020-09-14 16:27:59', '2020-09-16 16:28:02');

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

--
-- Table structure for table `tools`
--

CREATE TABLE IF NOT EXISTS `tools` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `tool` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `type_id` bigint UNSIGNED DEFAULT NULL,
  `provider_id` bigint UNSIGNED DEFAULT NULL,
  `invoice_number` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `origin_id` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `tools_type_id_foreign` (`type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=415 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tools`
--

INSERT INTO `tools` (`id`, `tool`, `type_id`, `provider_id`, `invoice_number`, `origin_id`, `created_at`, `updated_at`) VALUES
(1, 'Multi-Optical Tester DEVISER SN:3000103004', 2, NULL, NULL, NULL, '2021-10-05 16:54:34', '2021-10-05 16:58:43'),
(2, 'Multi-Optical Tester DEVISER SN:3000323004', 2, NULL, NULL, NULL, '2021-10-05 16:58:17', '2021-10-05 16:58:17'),
(3, 'Kutija za alat', 7, NULL, NULL, NULL, '2021-10-06 17:30:38', '2021-10-06 17:30:38'),
(4, 'BOSCH GSR 18V - 50 SN: 122500417', 4, NULL, NULL, NULL, '2021-10-06 17:37:25', '2021-10-06 17:44:22'),
(6, 'BOSCH GSR 18V - 50 SN: 023202149', 4, NULL, NULL, NULL, '2021-10-06 17:45:25', '2021-10-06 17:45:25'),
(7, 'BOSCH GSR 18V - 50 SN:029400570', 4, NULL, NULL, NULL, '2021-10-06 17:46:50', '2021-10-06 17:46:50'),
(8, 'WURTH, SN:907729005190302231', 4, NULL, NULL, NULL, '2021-10-06 17:50:03', '2021-10-06 17:50:03'),
(9, 'BOSCH GWS 180-LI SN:029028604', 5, NULL, NULL, NULL, '2021-10-06 18:11:48', '2021-10-06 18:11:48'),
(10, 'GWS 18V-10 SN:911052505', 5, NULL, NULL, NULL, '2021-10-06 18:16:32', '2021-10-06 18:16:32'),
(11, 'GWS 18V-10 SN:911052460', 5, NULL, NULL, NULL, '2021-10-06 18:18:42', '2021-10-06 18:18:42'),
(12, 'GWS 180-LI, SN:29030659', 5, NULL, NULL, NULL, '2021-10-06 18:21:14', '2021-10-06 18:21:14'),
(13, 'BOSCH:3611J09002', 1, NULL, NULL, NULL, '2021-10-06 18:48:54', '2021-10-06 18:48:54'),
(14, 'Burgije za metal 3-10mm', 10, NULL, NULL, NULL, '2021-10-06 19:02:08', '2022-02-01 11:07:28'),
(15, 'Burgije za drvo 3-10 mm', 10, NULL, NULL, NULL, '2021-10-06 19:02:23', '2022-02-01 11:07:43'),
(16, 'Burgija SDS Ø16x550', 10, NULL, NULL, NULL, '2021-10-06 19:02:59', '2022-02-01 11:04:21'),
(17, 'Burgija SDS Ø 12x650', 10, NULL, NULL, NULL, '2021-10-06 19:03:16', '2022-02-01 11:05:28'),
(18, 'Burgija SDS Ø 10x650', 10, NULL, NULL, NULL, '2021-10-06 19:04:16', '2022-02-01 11:06:03'),
(19, 'Burgija SDS Ø 8x650', 10, NULL, NULL, NULL, '2021-10-06 19:04:31', '2022-02-01 11:06:29'),
(20, 'Burgija SDS Ø 6x60', 10, NULL, NULL, NULL, '2021-10-06 19:04:48', '2022-02-01 11:10:12'),
(21, 'Srafciger +', 11, NULL, NULL, NULL, '2021-10-06 19:09:59', '2021-10-06 19:09:59'),
(22, 'Srafciger -', 11, NULL, NULL, NULL, '2021-10-06 19:10:17', '2021-10-06 19:10:17'),
(23, 'Sečice', 11, NULL, NULL, NULL, '2021-10-06 19:10:57', '2021-10-06 19:10:57'),
(24, 'Skalpel', 11, NULL, NULL, NULL, '2021-10-06 19:11:18', '2021-10-06 19:11:18'),
(25, 'Libela(Vaser vage)', 11, NULL, NULL, NULL, '2021-10-06 19:12:34', '2021-10-06 19:12:34'),
(26, 'Gedora', 11, NULL, NULL, NULL, '2021-10-06 19:12:58', '2023-02-20 09:30:12'),
(27, 'Čekić', 11, NULL, NULL, NULL, '2021-10-06 19:13:48', '2021-10-06 19:13:48'),
(28, 'Krimp klešta', 11, NULL, NULL, NULL, '2021-10-06 19:15:06', '2021-10-06 19:15:06'),
(29, 'Špahla', 11, NULL, NULL, NULL, '2021-10-06 19:15:27', '2022-09-20 08:53:30'),
(30, 'Pištolj za akril', 11, NULL, NULL, NULL, '2021-10-06 19:16:17', '2021-10-06 19:16:17'),
(31, 'sigurnosni pojas manji', 12, NULL, NULL, NULL, '2021-10-06 19:18:38', '2023-07-04 17:13:04'),
(32, 'Ispitivač za struju SN:122001121', 13, NULL, NULL, NULL, '2021-10-06 19:35:29', '2021-10-06 19:37:02'),
(33, 'Pištolj za plastiku', 11, NULL, NULL, NULL, '2021-10-06 19:40:09', '2021-10-06 19:40:09'),
(34, 'Male merdevine', 14, NULL, NULL, NULL, '2021-10-06 19:50:50', '2021-10-06 19:50:50'),
(35, 'Velike Merdevine', 14, NULL, NULL, NULL, '2021-10-06 19:51:03', '2021-10-06 19:51:03'),
(36, 'Polovične Merdevine', 14, NULL, NULL, NULL, '2021-10-06 19:51:45', '2021-10-06 19:51:45'),
(37, 'BOSCH GBH 180-LI SN:122045844', 1, NULL, NULL, NULL, '2021-10-06 20:04:21', '2021-10-06 20:04:21'),
(38, 'BOSCH GMBH SN: 0611316708 štemalica', 1, NULL, NULL, NULL, '2021-10-06 20:07:40', '2021-10-06 20:07:40'),
(39, 'BOSCH BI-Turbo SN:3611J13120', 1, NULL, NULL, NULL, '2021-10-06 20:12:25', '2021-10-06 20:12:25'),
(40, 'Metar 10m', 11, NULL, NULL, NULL, '2021-10-06 20:19:52', '2021-10-06 20:19:52'),
(41, 'Metar 5m', 11, NULL, NULL, NULL, '2021-10-06 20:20:07', '2021-10-06 20:20:07'),
(42, 'Set Kljuceva viljuškasti', 11, NULL, NULL, NULL, '2021-10-06 20:21:12', '2022-02-01 11:12:07'),
(43, 'Led Lampa', 11, NULL, NULL, NULL, '2021-10-06 20:21:34', '2021-10-06 20:21:34'),
(44, 'Testera', 11, NULL, NULL, NULL, '2021-10-06 20:22:18', '2021-10-06 20:22:18'),
(46, 'Papagajke', 11, NULL, NULL, NULL, '2021-10-06 20:23:03', '2021-10-06 20:23:03'),
(47, 'Fiber sajla 100m', 15, NULL, NULL, NULL, '2021-10-06 20:23:50', '2022-02-04 07:56:06'),
(48, 'Burgija SDS MAX Ø 16x400', 10, NULL, NULL, NULL, '2021-10-06 20:33:41', '2022-02-01 11:14:55'),
(49, 'Špic samooštreći SDS+MAX', 10, NULL, NULL, NULL, '2021-10-06 20:34:29', '2022-02-01 11:17:19'),
(50, 'Burgija SDS MAX Ø18x400', 10, NULL, NULL, NULL, '2021-10-06 20:35:25', '2022-02-01 11:15:15'),
(51, 'HILTI   TE 60-A36', 1, NULL, NULL, NULL, '2021-10-06 20:50:03', '2021-10-06 20:50:03'),
(52, 'BOSCH GBH 8-45D SN:3611B65100', 1, NULL, NULL, NULL, '2021-10-06 20:51:22', '2021-10-06 20:51:22'),
(53, 'BOSCH GBH 180-Li SN:9122061973', 1, NULL, NULL, NULL, '2021-10-06 20:53:05', '2021-10-06 20:53:05'),
(54, 'Ispitivač za struju SN:122000927', 13, NULL, NULL, NULL, '2021-10-06 20:55:03', '2021-10-06 20:55:03'),
(55, 'Burgija SDS MAX 28mm', 10, NULL, NULL, NULL, '2021-10-06 21:03:25', '2021-10-06 21:03:25'),
(56, 'Agregat KSB 2800A', 16, NULL, NULL, NULL, '2021-10-07 06:03:12', '2021-10-07 06:03:12'),
(57, 'Kabrol elco SN:30014', 17, NULL, NULL, NULL, '2021-10-07 06:06:03', '2021-10-07 06:06:03'),
(58, 'Kabrol elco SN:30004', 17, NULL, NULL, NULL, '2021-10-07 06:18:33', '2021-10-07 06:18:33'),
(59, 'Zatezač Merdevina', 14, NULL, NULL, NULL, '2021-10-07 06:40:17', '2021-10-07 06:40:17'),
(60, 'Ispitivač za struju Womax MK08', 13, NULL, NULL, NULL, '2021-10-07 06:41:18', '2021-10-07 06:41:18'),
(63, 'GBH 180-LI SN: 905062096', 1, NULL, NULL, NULL, '2022-02-01 08:29:55', '2022-02-01 08:29:55'),
(64, 'GMS 120 SN: 028006546', 13, NULL, NULL, NULL, '2022-02-01 08:30:31', '2022-02-01 08:30:31'),
(65, 'GSH 11E SN: 023000743', 1, NULL, NULL, NULL, '2022-02-01 08:33:05', '2022-02-01 08:33:05'),
(66, 'GBH 18V-26 SN: 121006713', 1, NULL, NULL, NULL, '2022-02-01 08:41:01', '2022-02-01 08:41:01'),
(67, 'GSR 18V-50 SN:126200568', 4, NULL, NULL, NULL, '2022-02-01 08:41:47', '2022-02-01 08:41:47'),
(68, 'Klešta za okna', 11, NULL, NULL, NULL, '2022-02-01 09:01:25', '2022-02-01 09:01:25'),
(69, 'Burgija SDS Ø10x100', 10, NULL, NULL, NULL, '2022-02-01 11:03:48', '2022-02-01 11:03:48'),
(70, 'Stalak za odmotavanje', 18, NULL, NULL, NULL, '2022-02-01 11:39:23', '2022-02-01 11:39:23'),
(71, 'Fiber sajla 150m', 15, NULL, NULL, NULL, '2022-02-04 07:56:24', '2022-02-04 07:56:24'),
(72, 'Model Signal Fire AI-9 SN:V03J19070401', 3, NULL, NULL, NULL, '2022-02-04 10:41:05', '2022-02-04 10:41:05'),
(73, 'Model Signal Fire AI-9 SN:V03L19093162', 3, NULL, NULL, NULL, '2022-02-04 10:43:00', '2022-02-04 10:43:00'),
(74, 'Pistolj za plastiku BEOROL', 11, NULL, NULL, NULL, '2022-02-04 12:46:57', '2022-02-04 12:46:57'),
(75, 'Bosch Professional (KIR 1) GWS 18V-10 P/N 911052460', 5, NULL, NULL, NULL, '2022-02-04 12:55:51', '2022-02-04 12:55:51'),
(76, 'Bosch Professional  GWS 180-LI  P/N 126016201', 5, NULL, NULL, NULL, '2022-02-04 13:21:39', '2022-02-04 13:21:39'),
(77, 'Bosch 18V Li-ion   4.0 Ah', 19, NULL, NULL, NULL, '2022-02-04 13:35:25', '2022-02-04 13:37:52'),
(78, 'Pro CORE 18V   8.0Ah SF01-124168589', 19, NULL, NULL, NULL, '2022-02-04 13:39:23', '2022-02-04 13:39:23'),
(79, 'Bosch 18V Li-ion   4.0 Ah   WM36-127021207', 19, NULL, NULL, NULL, '2022-02-04 13:49:15', '2022-02-04 13:49:15'),
(80, 'Bosch Elektro pneumatski čekić GSH 27 VC  P/N 123000369', 20, NULL, NULL, NULL, '2022-02-08 12:18:55', '2022-02-08 12:18:55'),
(81, 'BOSCH udarna 3 611 J09 002 PN 121066775', 1, NULL, NULL, NULL, '2022-02-14 13:48:52', '2022-02-14 13:49:11'),
(82, 'BOSCH GWS 180-Li 3 601 JH9 022 PN  126023809', 5, NULL, NULL, NULL, '2022-02-14 14:08:35', '2022-02-14 14:08:35'),
(83, 'Burgija SDS plus-5x10  /550/610', 10, NULL, NULL, NULL, '2022-02-22 09:15:47', '2022-03-25 07:43:30'),
(84, 'Burgija SDS plus-5x12  /550/610', 10, NULL, NULL, NULL, '2022-02-22 09:17:40', '2022-03-25 07:43:04'),
(85, 'Burgija metal DIN338 Ø 3.0', 10, NULL, NULL, NULL, '2022-02-22 09:26:17', '2022-02-22 09:26:17'),
(86, 'Burgija metal DIN338 Ø 4.0', 10, NULL, NULL, NULL, '2022-02-22 09:26:45', '2022-02-22 09:26:45'),
(87, 'Burgija metal DIN338 Ø 6.0', 10, NULL, NULL, NULL, '2022-02-25 14:37:04', '2022-02-25 14:37:04'),
(88, 'Burgije SDS plus-5x8  /400/460', 10, NULL, NULL, NULL, '2022-02-25 14:38:31', '2022-03-25 07:45:21'),
(89, 'Burgija SDS plus-5x Ø6 /50/110', 10, NULL, NULL, NULL, '2022-03-04 14:52:39', '2022-04-01 06:57:56'),
(90, 'Brener mini sa piezo upaljačem', 22, NULL, NULL, NULL, '2022-03-04 14:54:44', '2022-03-04 14:54:44'),
(91, 'Plinska boca 190 gr', 22, NULL, NULL, NULL, '2022-03-04 14:57:22', '2022-03-04 14:57:22'),
(92, 'Rukavice kožne', 21, NULL, NULL, NULL, '2022-03-04 15:13:16', '2022-03-04 15:13:16'),
(93, 'Platnene gumirane', 21, NULL, NULL, NULL, '2022-03-04 15:19:36', '2022-03-04 15:19:36'),
(94, 'Perforirana traka 17x08', 23, NULL, NULL, NULL, '2022-03-04 15:26:13', '2022-03-04 15:26:13'),
(95, 'Tipl puž', 23, NULL, NULL, NULL, '2022-03-04 15:26:52', '2022-03-04 15:26:52'),
(96, 'PLASTIČNA SKLOPIVA', 24, NULL, NULL, NULL, '2022-03-04 16:42:51', '2022-03-04 16:42:51'),
(97, 'GMS 120  P/n:127204732', 13, NULL, NULL, NULL, '2022-03-07 14:09:07', '2022-03-07 14:09:07'),
(98, 'FHP12-A   S/N:GZ12A37724', 26, NULL, NULL, NULL, '2022-03-07 14:12:45', '2022-03-07 14:12:45'),
(99, 'VLS-8-15  S/N: GJ15980950', 25, NULL, NULL, NULL, '2022-03-07 14:13:55', '2022-03-07 14:13:55'),
(100, 'nastavak SDS za štemovanje za aku bušulicu', 6, NULL, NULL, NULL, '2022-03-12 09:43:52', '2022-03-12 09:43:52'),
(101, 'nastavak SDS za štemovanje za aku bušulicu', 6, NULL, NULL, NULL, '2022-03-12 09:45:56', '2022-03-12 09:45:56'),
(102, 'STO (76x50x50) TVRDA PLASTIKA', 27, NULL, NULL, NULL, '2022-03-14 14:54:40', '2022-03-14 14:54:40'),
(103, 'Džakovi za šut', 23, NULL, NULL, NULL, '2022-03-15 08:25:27', '2022-03-15 08:25:27'),
(104, 'Čekić  300g', 11, NULL, NULL, NULL, '2022-03-16 07:45:20', '2022-03-16 07:45:20'),
(105, 'Bosch GSR 18V-50 3 601 JH5 000 S/N: 023302654', 4, NULL, NULL, NULL, '2022-03-16 08:47:46', '2022-03-16 08:47:46'),
(106, 'Aku hamer GBH  180-LI  2x4Ah BL', 20, NULL, NULL, NULL, '2022-03-16 08:50:04', '2022-09-18 16:34:26'),
(107, 'SDB set bitova 32 kom', 4, NULL, NULL, NULL, '2022-03-16 08:59:00', '2022-03-16 08:59:00'),
(108, 'Kofer za alat  473x250x223', 7, NULL, NULL, NULL, '2022-03-16 13:14:24', '2022-09-19 11:34:19'),
(109, 'VLS_8-15    S/N: GJ15980972', 25, NULL, NULL, NULL, '2022-03-16 14:55:36', '2022-03-16 14:55:36'),
(110, 'Kliver S/N:137600', 3, NULL, NULL, NULL, '2022-03-16 14:57:22', '2022-03-16 14:57:22'),
(111, 'Rukavice prevent', 21, NULL, NULL, NULL, '2022-03-21 13:19:17', '2022-03-21 13:19:17'),
(112, 'Burgija SDSplus-5X Ø6x200/260', 10, NULL, NULL, NULL, '2022-03-23 07:05:27', '2022-03-23 07:05:27'),
(113, 'Burgija SDSplus-5X Ø10x100/160', 10, NULL, NULL, NULL, '2022-03-25 07:34:33', '2022-03-25 07:35:14'),
(114, 'Burgija SDSplus-5X Ø8x100/160', 10, NULL, NULL, NULL, '2022-03-25 07:39:14', '2022-03-25 07:39:14'),
(115, 'Burgija SDSplus-5X Ø8x550/610', 10, NULL, NULL, NULL, '2022-03-28 21:29:44', '2022-03-28 21:29:44'),
(116, 'Burgija SDSplus-5X Ø8x300/360', 10, NULL, NULL, NULL, '2022-03-28 21:30:15', '2022-03-28 21:30:15'),
(117, 'Bosch GWS 180-Li-125 SOLO', 5, NULL, NULL, NULL, '2022-03-30 07:25:17', '2022-03-30 07:25:17'),
(118, 'Punjač GAL1880 CV 2607  225921/2021', 5, NULL, NULL, NULL, '2022-03-30 07:29:02', '2022-03-30 07:29:02'),
(119, 'Burgija SDSplus-5X Ø10x400/460', 10, NULL, NULL, NULL, '2022-04-01 13:47:00', '2022-04-01 13:47:00'),
(120, 'Glinerica', 13, NULL, NULL, NULL, '2022-04-01 21:16:41', '2022-04-01 21:16:41'),
(121, 'Brusilica SOLO GWS 18V-10 125', 5, NULL, NULL, NULL, '2022-09-16 10:48:50', '2022-09-16 10:48:50'),
(122, 'Punjač GAL1880+baterije 2x5Ah', 28, NULL, NULL, NULL, '2022-09-16 10:53:03', '2022-09-16 10:53:03'),
(123, 'Spic SDS MAX Rtec Speed 400mm', 10, NULL, NULL, NULL, '2022-09-16 11:05:00', '2022-09-16 11:05:00'),
(124, 'Lopatasto dleto SDS max 350x50', 10, NULL, NULL, NULL, '2022-09-16 11:19:05', '2022-09-16 11:19:05'),
(125, 'Lopatasto dleto SDS max 400x50', 10, NULL, NULL, NULL, '2022-09-16 11:19:46', '2022-09-16 11:21:48'),
(126, 'Burgija SDS MAX S4 18x200x340', 10, NULL, NULL, NULL, '2022-09-16 11:26:30', '2022-09-16 11:26:30'),
(127, 'Burgija SDS MAX S4 22x400x520', 10, NULL, NULL, NULL, '2022-09-16 11:28:50', '2022-09-16 11:28:50'),
(128, 'Burgija SDSD MAX S4 28x400x520', 10, NULL, NULL, NULL, '2022-09-16 11:30:47', '2022-09-16 11:30:47'),
(129, 'Dijam.ploča best asphalt 350', 29, NULL, NULL, NULL, '2022-09-16 11:40:15', '2022-09-16 11:40:15'),
(130, 'Kolica Stihl', 30, NULL, NULL, NULL, '2022-09-16 11:43:46', '2022-09-16 11:43:46'),
(131, 'Burgija SDS PLUS 3 12/100/160', 10, NULL, NULL, NULL, '2022-09-16 11:49:18', '2022-09-16 11:49:18'),
(132, 'Burgija SDS MAX S4 18x400x520', 10, NULL, NULL, NULL, '2022-09-16 13:12:37', '2022-09-16 13:12:37'),
(133, 'Burgija SDS MAX-8X 16x400x540', 10, NULL, NULL, NULL, '2022-09-16 13:13:59', '2022-09-16 13:13:59'),
(134, 'Motalica 30m GG/J 3x1,5', 17, NULL, NULL, NULL, '2022-09-16 13:20:35', '2022-09-16 13:20:35'),
(135, 'Aku cekic GBH 180- LI', 1, NULL, NULL, NULL, '2022-09-16 13:32:43', '2022-09-16 13:32:43'),
(136, 'Aku odvijač GSR 18V-50', 22, NULL, NULL, NULL, '2022-09-16 13:36:43', '2022-11-11 10:38:57'),
(137, 'Metar 2m', 11, NULL, NULL, NULL, '2022-09-16 13:42:56', '2022-09-16 13:42:56'),
(138, 'Dijam.ploča 115x1,6 8s', 29, NULL, NULL, NULL, '2022-09-16 13:44:43', '2022-09-16 13:44:43'),
(139, 'Rezna ploča 115x1 Bosch', 29, NULL, NULL, NULL, '2022-09-16 13:46:22', '2022-09-16 13:46:22'),
(140, 'Klešta kombinovana', 11, NULL, NULL, NULL, '2022-09-18 16:36:42', '2022-09-21 08:00:43'),
(141, 'Pištolj za lepljenje  PKP 18E', 11, NULL, NULL, NULL, '2022-09-18 16:37:16', '2022-09-18 16:37:16'),
(142, 'Burgija sds-plus 5X 6/100/160', 10, NULL, NULL, NULL, '2022-09-19 08:15:34', '2022-09-19 08:15:34'),
(143, 'Metar 3m', 11, NULL, NULL, NULL, '2022-09-19 08:20:34', '2022-09-19 08:20:34'),
(144, 'Alu merdevine 3x11', 14, NULL, NULL, NULL, '2022-09-19 08:22:47', '2022-09-19 08:22:47'),
(145, 'Alu merdevine 4x4', 14, NULL, NULL, NULL, '2022-09-19 08:23:06', '2022-09-19 08:23:06'),
(146, 'Lampa sa zglobom', 11, NULL, NULL, NULL, '2022-09-19 08:25:28', '2022-09-19 08:25:28'),
(147, 'Sečice kose', 11, NULL, NULL, NULL, '2022-09-19 08:27:50', '2022-09-19 08:27:50'),
(148, 'Burgija SDS - plus 12x900', 10, NULL, NULL, NULL, '2022-09-19 08:30:22', '2022-09-19 08:30:22'),
(149, 'Burgija 10x600 za drvo', 10, NULL, NULL, NULL, '2022-09-19 08:32:55', '2022-09-19 08:32:55'),
(150, 'Klešta sečice', 11, NULL, NULL, NULL, '2022-09-19 08:35:04', '2022-09-19 08:35:04'),
(151, 'Birgija za drvo 8x230', 10, NULL, NULL, NULL, '2022-09-19 08:53:06', '2022-09-19 08:53:06'),
(152, 'GMS 120 prof detektor Bosch', 13, NULL, NULL, NULL, '2022-09-19 08:57:07', '2022-09-19 08:57:07'),
(153, 'Ključ za filter 76/12P', 11, NULL, NULL, NULL, '2022-09-19 09:03:13', '2022-09-19 09:03:13'),
(154, 'Burgija za drvo 6x230', 10, NULL, NULL, NULL, '2022-09-19 09:09:04', '2022-09-19 09:09:04'),
(155, 'Burgija beton 8x350', 10, NULL, NULL, NULL, '2022-09-19 09:11:01', '2022-09-19 09:11:01'),
(156, 'Makaze za lim desne', 11, NULL, NULL, NULL, '2022-09-19 09:20:39', '2022-09-19 09:20:39'),
(157, 'Burgija SDS plus 16x600', 10, NULL, NULL, NULL, '2022-09-19 09:28:14', '2022-09-19 09:28:14'),
(158, 'Set za peskarenje hobi 792', 18, NULL, NULL, NULL, '2022-09-19 11:42:50', '2022-09-19 11:42:50'),
(159, 'Klešta za papučice', 11, NULL, NULL, NULL, '2022-09-19 11:45:34', '2022-09-19 11:45:34'),
(160, 'Aku hamer GBH 18v-45C SOLO', 20, NULL, NULL, NULL, '2022-09-19 11:52:38', '2022-09-19 11:52:38'),
(161, 'Punjac Baterija GAL1880CV', 28, NULL, NULL, NULL, '2022-09-19 11:54:20', '2022-09-19 11:54:20'),
(162, 'Aku šrafilica GTB 12V-11 solo', 4, NULL, NULL, NULL, '2022-09-19 12:03:29', '2022-09-19 12:03:29'),
(163, 'Starter set  Bosch 18v 5Ah', 28, NULL, NULL, NULL, '2022-09-19 12:22:51', '2022-09-19 12:22:51'),
(164, 'Alu merdevine 3x10', 14, NULL, NULL, NULL, '2022-09-19 12:24:21', '2022-09-19 12:24:21'),
(165, 'Burgija SDS -max955/450/60', 10, NULL, NULL, NULL, '2022-09-19 12:38:11', '2022-09-19 12:38:11'),
(166, 'Aku hamer GBH 18V-26', 20, NULL, NULL, NULL, '2022-09-19 12:46:27', '2022-09-19 12:46:27'),
(167, 'Burgija SDS plus 5X 16/550/610', 10, NULL, NULL, NULL, '2022-09-19 12:48:07', '2022-09-19 12:48:07'),
(168, 'Laserski daljinometar GLM 40', 25, NULL, NULL, NULL, '2022-09-19 12:52:34', '2022-09-19 12:52:34'),
(169, 'Pegla za PVC cevi 650w 20-40', 31, NULL, NULL, NULL, '2022-09-19 12:56:16', '2022-09-19 12:56:31'),
(171, 'Klešta elektroničarska 461/4E', 11, NULL, NULL, NULL, '2022-09-19 13:01:26', '2022-09-19 13:01:26'),
(172, 'Ključ vilasti', 11, NULL, NULL, NULL, '2022-09-19 13:10:16', '2022-09-19 13:10:16'),
(173, 'Nasadni kljuć', 11, NULL, NULL, NULL, '2022-09-19 13:10:37', '2022-09-19 13:10:37'),
(174, 'Testera za gips', 11, NULL, NULL, NULL, '2022-09-19 13:10:51', '2022-09-19 13:10:51'),
(175, 'Klešta papagaj', 11, NULL, NULL, NULL, '2022-09-19 13:11:12', '2022-09-19 13:11:12'),
(176, 'Klešta svedska', 11, NULL, NULL, NULL, '2022-09-19 13:11:35', '2022-09-19 13:11:35'),
(177, 'Kolica transportna sa klapnom', 18, NULL, NULL, NULL, '2022-09-19 13:15:40', '2022-09-19 13:15:40'),
(178, 'Rezna ploča 125x1', 29, NULL, NULL, NULL, '2022-09-19 13:17:12', '2022-09-19 13:17:12'),
(179, 'Brusilica GWS 180Li-125 2x5Ah', 5, NULL, NULL, NULL, '2022-09-19 13:24:52', '2022-09-19 13:24:52'),
(180, 'Punjač GAL 18V-40', 28, NULL, NULL, NULL, '2022-09-19 13:32:38', '2022-09-19 13:32:38'),
(181, 'Aku hamer GBH 18V-26 SOLO', 20, NULL, NULL, NULL, '2022-09-19 13:35:37', '2022-09-19 13:35:37'),
(182, 'Četkica GBH 5-40DCE set', 6, NULL, NULL, NULL, '2022-09-19 13:50:59', '2022-09-19 13:50:59'),
(183, 'El. pneumatski čekić GSH 27VC', 1, NULL, NULL, NULL, '2022-09-20 07:40:29', '2022-09-20 07:40:29'),
(184, 'Špic 28mm GSH16 L400', 10, NULL, NULL, NULL, '2022-09-20 07:43:21', '2022-09-20 07:43:21'),
(185, 'Dleto 28 GSH 16 400x35', 10, NULL, NULL, NULL, '2022-09-20 07:45:04', '2022-09-20 07:45:04'),
(186, 'GBA  4Ah baterija', 28, NULL, NULL, NULL, '2022-09-20 08:05:06', '2022-09-20 08:05:06'),
(187, 'GBA 5Ah baterija', 28, NULL, NULL, NULL, '2022-09-20 08:05:26', '2022-09-20 08:05:26'),
(188, 'Ručna lampa 9 LED dioda', 11, NULL, NULL, NULL, '2022-09-20 08:07:46', '2022-09-20 08:07:46'),
(189, 'Pajser', 11, NULL, NULL, NULL, '2022-09-20 08:09:32', '2022-09-20 08:09:32'),
(190, 'Macola', 11, NULL, NULL, NULL, '2022-09-20 08:10:01', '2022-09-20 08:10:01'),
(191, 'Lopata', 11, NULL, NULL, NULL, '2022-09-20 08:10:24', '2022-09-20 08:10:24'),
(192, 'Ašov', 11, NULL, NULL, NULL, '2022-09-20 08:10:34', '2022-09-20 08:10:34'),
(193, 'Ćekić 500 gr', 11, NULL, NULL, NULL, '2022-09-20 08:11:07', '2022-09-20 08:11:07'),
(194, 'Čekić 1000 gr', 11, NULL, NULL, NULL, '2022-09-20 08:11:22', '2022-09-20 08:11:22'),
(195, 'Kramp', 11, NULL, NULL, NULL, '2022-09-20 08:13:15', '2022-09-20 08:13:15'),
(196, 'Sekac SDS max L400 Rtech', 10, NULL, NULL, NULL, '2022-09-20 08:33:34', '2022-09-20 08:33:34'),
(197, 'Burgija SDS plus 5X 10/150/210', 10, NULL, NULL, NULL, '2022-09-20 08:37:56', '2022-09-20 08:37:56'),
(198, 'Burgija SDS plus 5X 12/150/210', 10, NULL, NULL, NULL, '2022-09-20 08:38:29', '2022-09-20 08:38:29'),
(199, 'Burgija SDS plus 5X 6/200/265', 10, NULL, NULL, NULL, '2022-09-20 08:42:33', '2022-09-20 08:42:33'),
(200, 'Aku bušilica GSB 18V-50 Bosch', 1, NULL, NULL, NULL, '2022-09-20 08:51:03', '2022-09-20 08:51:03'),
(201, 'Aku hamer GBH 18V - 26V + 6Ah + punjač', 20, NULL, NULL, NULL, '2022-09-20 09:18:57', '2022-09-20 09:18:57'),
(202, 'Aku odvijač GSR 18-2li plus', 4, NULL, NULL, NULL, '2022-09-20 10:52:57', '2022-09-20 10:52:57'),
(203, 'El. pneumatski čekić GSH 11E Bosch', 1, NULL, NULL, NULL, '2022-09-20 10:55:23', '2022-09-20 10:55:23'),
(204, 'Aku čekić GBH 180-Li SOLO', 1, NULL, NULL, NULL, '2022-09-20 10:58:04', '2022-09-20 10:58:04'),
(205, 'Merač snage FHP12-A', 26, NULL, NULL, NULL, '2022-09-20 11:04:50', '2022-09-20 11:04:50'),
(206, 'Starter set GAL 18V-40 2x4Ah', 28, NULL, NULL, NULL, '2022-09-20 11:06:57', '2022-09-20 11:06:57'),
(207, 'Aku odvijač GSR 18V-50 xGBA2Ah', 4, NULL, NULL, NULL, '2022-09-20 11:08:51', '2022-09-20 11:08:51'),
(208, 'Aku kružna testera GKS 12V-26', 32, NULL, NULL, NULL, '2022-09-20 11:17:30', '2022-09-20 11:17:30'),
(209, 'Aku usisivač GAS 18V-1 SOLO', 33, NULL, NULL, NULL, '2022-09-20 11:24:17', '2022-09-20 11:24:17'),
(210, 'Baterija ProCORE 18V 12Ah', 28, NULL, NULL, NULL, '2022-09-20 11:26:46', '2022-09-20 11:26:46'),
(211, 'Dijam.ploča DT612AB 400x25.4', 29, NULL, NULL, NULL, '2022-09-20 11:28:08', '2022-09-20 11:28:08'),
(212, 'Fuzioni splajser FST - 83A core to core', 3, NULL, NULL, NULL, '2022-09-20 12:29:02', '2022-09-20 12:29:02'),
(213, 'Optical power meter with wfl', 26, NULL, NULL, NULL, '2022-09-20 12:30:43', '2022-09-20 12:30:43'),
(214, 'Fiber Cleaver GW-800A', 34, NULL, NULL, NULL, '2022-09-20 12:35:17', '2022-09-20 12:35:17'),
(215, 'Klešta za skidanje izolacije', 11, NULL, NULL, NULL, '2022-09-20 12:36:17', '2022-09-20 12:36:17'),
(216, 'Deviser OTDR AE31008', 2, NULL, NULL, NULL, '2022-09-20 12:49:52', '2022-09-20 12:49:52'),
(217, 'Mini visual laser source VLS-8-15', 25, NULL, NULL, NULL, '2022-09-20 12:54:14', '2022-09-20 12:54:14'),
(218, 'Deviser OTDR AE1001', 2, NULL, NULL, NULL, '2022-09-20 12:57:10', '2022-09-20 12:57:10'),
(219, 'Optical Fiber Cleaver FF-FC800', 34, NULL, NULL, NULL, '2022-09-20 12:58:39', '2022-09-20 12:58:39'),
(220, 'Motalica 100-1200mm VETTER', 17, NULL, NULL, NULL, '2022-09-20 13:12:35', '2022-09-20 13:12:35'),
(221, 'Klešta za otvaranje TT okna', 11, NULL, NULL, NULL, '2022-09-20 13:12:54', '2022-09-20 13:12:54'),
(222, 'Klešta za sečenje optičkih vlakana', 11, NULL, NULL, NULL, '2022-09-20 13:20:06', '2022-09-20 13:20:06'),
(223, 'Sekira', 11, NULL, NULL, NULL, '2022-09-20 13:22:17', '2022-09-20 13:22:17'),
(224, 'Pneumatski BUS-CEKIC', 35, NULL, NULL, NULL, '2022-09-20 13:34:00', '2022-09-20 13:34:00'),
(225, 'Manometar PLUMETT', 11, NULL, NULL, NULL, '2022-09-20 13:40:03', '2022-09-20 13:40:03'),
(226, 'Špic SDS plus L250 Makita', 10, NULL, NULL, NULL, '2022-09-21 07:39:15', '2022-09-21 07:39:15'),
(227, 'Aku bušilica BOSCH GSR 18-2-LI Plus', 1, NULL, NULL, NULL, '2022-09-21 07:46:52', '2022-09-21 07:49:09'),
(228, 'Aku hamer BOSCH GBH 180-LI - SOLO', 20, NULL, NULL, NULL, '2022-09-21 07:50:30', '2022-09-21 07:51:51'),
(229, 'Aku šrafilica GSB 18V-21 SOLO BOSCH', 4, NULL, NULL, NULL, '2022-09-21 07:53:51', '2022-09-21 07:53:51'),
(230, 'Klešta motorcangle', 11, NULL, NULL, NULL, '2022-09-21 07:59:00', '2022-09-21 07:59:00'),
(231, 'Alu merdevine 3x9', 14, NULL, NULL, NULL, '2022-09-21 08:13:17', '2022-09-21 08:13:17'),
(232, 'Baterija 18V 5AH BL 1850B Makita', 28, NULL, NULL, NULL, '2022-09-21 08:15:37', '2022-09-21 08:15:37'),
(233, 'Aku hamer BOSCH GBH 180-LI 1X4Ah', 20, NULL, NULL, NULL, '2022-09-21 08:18:37', '2022-09-21 08:18:37'),
(234, 'Kofer makpac 3 Makita', 7, NULL, NULL, NULL, '2022-09-21 08:22:41', '2022-09-21 08:22:41'),
(235, 'Burgija za drvo leptir 16x150 blade', 10, NULL, NULL, NULL, '2022-09-21 08:24:12', '2022-09-21 08:24:12'),
(236, 'Burgija za metal 16mm', 10, NULL, NULL, NULL, '2022-09-21 08:25:14', '2022-09-21 08:25:14'),
(237, 'El.pneumatski čekić GBH 8-45 DV SDS MAX BOSCH', 1, NULL, NULL, NULL, '2022-09-21 08:26:49', '2022-09-21 08:26:49'),
(238, 'El. šlicerica MFE 40 METABO', 36, NULL, NULL, NULL, '2022-09-21 08:29:39', '2022-09-21 08:29:39'),
(239, 'Usisivač ASR 35L ACP METABO', 33, NULL, NULL, NULL, '2022-09-21 08:30:31', '2022-09-21 08:30:31'),
(240, 'Štemalica HM1203C MAKITA', 20, NULL, NULL, NULL, '2022-09-21 08:32:04', '2022-09-21 08:32:04'),
(241, 'Aku brusilica Brushless 18V Makita SOLO', 5, NULL, NULL, NULL, '2022-09-21 08:33:20', '2022-09-21 08:33:20'),
(242, 'Brusilica GA5030 125 mm Makita', 5, NULL, NULL, NULL, '2022-09-21 08:33:44', '2022-09-21 08:33:44'),
(243, 'Burgija SDS MAX 22x400x540', 10, NULL, NULL, NULL, '2022-09-21 08:35:28', '2022-09-21 08:35:28'),
(244, 'Punjač MAKITA DC18RC', 28, NULL, NULL, NULL, '2022-09-21 08:41:02', '2022-09-21 08:41:02'),
(245, 'Probojna kruna SDS MAX 55/600 BOSCH', 10, NULL, NULL, NULL, '2022-09-21 08:42:34', '2022-09-21 08:42:34'),
(246, 'Burgija 10x600 SDS+FESTA', 10, NULL, NULL, NULL, '2022-09-21 08:45:06', '2022-09-21 08:45:06'),
(247, 'Burgija 10x450 SDS+FESTA', 10, NULL, NULL, NULL, '2022-09-21 08:45:26', '2022-09-21 08:45:26'),
(248, 'Burgija 12x600 SDS+FESTA', 10, NULL, NULL, NULL, '2022-09-21 08:46:40', '2022-09-21 08:46:40'),
(249, 'Špic SDS MAX L400 Makita', 10, NULL, NULL, NULL, '2022-09-21 08:47:58', '2022-09-21 08:47:58'),
(250, 'Burgija 18x600 SDS+FESTA', 10, NULL, NULL, NULL, '2022-09-21 08:49:09', '2022-09-21 08:49:09'),
(251, 'Aku el.pneumatski čekić SOLO GBH 18V-45 BOSCH', 1, NULL, NULL, NULL, '2022-09-21 08:53:48', '2022-09-21 08:53:48'),
(252, 'GAL 18V-160C BOSCH', 28, NULL, NULL, NULL, '2022-09-21 08:58:00', '2022-09-21 08:58:00'),
(253, 'Baterija Bosch PROCORE 18V 8,0Ah', 28, NULL, NULL, NULL, '2022-09-21 08:59:55', '2022-09-21 08:59:55'),
(254, 'Kompresor DAAC100C 100L 2,2KW DAEWOO', 37, NULL, NULL, NULL, '2022-09-21 09:02:59', '2022-09-21 09:02:59'),
(255, 'Stepenasta burgija 4-20mm', 10, NULL, NULL, NULL, '2022-09-21 09:06:49', '2022-09-21 09:06:49'),
(256, 'Burgija za metal 12mm', 10, NULL, NULL, NULL, '2022-09-21 09:08:02', '2022-09-21 09:08:02'),
(257, 'Burgija BOSCH SDS + 5X 12X400X460', 10, NULL, NULL, NULL, '2022-09-21 09:11:30', '2022-09-21 09:11:30'),
(258, 'Start kablovi HBTCP6008 600A INGCO', 38, NULL, NULL, NULL, '2022-09-21 09:13:48', '2022-09-21 09:13:48'),
(259, 'Aku odvijač GSR 18V-50 SOLO', 4, NULL, NULL, NULL, '2022-09-21 09:27:54', '2022-09-21 09:27:54'),
(260, 'Baterija GBA 18V-5Ah', 28, NULL, NULL, NULL, '2022-09-21 09:29:56', '2022-09-21 09:29:56'),
(261, 'Brusilica vibraciona 320W FS3208 INGCO', 5, NULL, NULL, NULL, '2022-09-21 09:33:09', '2022-09-21 09:33:09'),
(262, 'Aku bušilica POWERMAXX BS BASIC bez kofera', 1, NULL, NULL, NULL, '2022-09-21 09:34:16', '2022-09-21 09:34:16'),
(263, 'Alu merdevine 2+1 BEOROL', 14, NULL, NULL, NULL, '2022-09-21 09:36:46', '2022-09-21 09:36:46'),
(264, 'F. splicer DVP-740', 3, NULL, NULL, NULL, '2022-09-22 08:30:44', '2022-09-22 08:30:44'),
(265, 'F. splicer AI-9', 3, NULL, NULL, NULL, '2022-09-22 08:31:08', '2022-09-22 08:31:08'),
(266, 'F.splicer FST 18S', 3, NULL, NULL, NULL, '2022-09-22 08:33:07', '2022-09-22 08:33:07'),
(267, 'F. splicer FST-83A', 3, NULL, NULL, NULL, '2022-09-22 08:35:26', '2022-09-22 08:35:26'),
(268, 'F. splicer FST 18S ACTIVE', 3, NULL, NULL, NULL, '2022-09-22 08:37:03', '2022-09-22 08:37:03'),
(269, 'Fusioni Splicer Fujikura 70 S plus', 3, NULL, NULL, NULL, '2022-09-22 08:38:05', '2022-09-22 08:38:05'),
(270, 'Bušilica Hilti TE 60 - A36', 1, NULL, NULL, NULL, '2022-09-22 08:40:01', '2022-09-22 08:40:01'),
(271, 'F. splicer Fijukar 60 S', 3, NULL, NULL, NULL, '2022-09-22 08:40:45', '2022-09-22 08:42:00'),
(272, 'Fijuakar 70 S', 3, NULL, NULL, NULL, '2022-09-22 08:42:35', '2022-09-22 08:42:35'),
(273, 'Bušilica KDh96-1700', 1, NULL, NULL, NULL, '2022-09-22 08:43:07', '2022-09-22 08:43:07'),
(274, 'Agregat HONDA Z5T-040', 16, NULL, NULL, NULL, '2022-09-22 08:43:36', '2022-09-22 08:43:36'),
(275, 'Agregar Honda LSA 36L5', 16, NULL, NULL, NULL, '2022-09-22 08:44:01', '2022-09-22 08:44:01'),
(276, 'Bomang BT 60', 39, NULL, NULL, NULL, '2022-09-22 08:50:16', '2022-09-22 08:50:16'),
(277, 'Sekač benzinski TS420', 40, NULL, NULL, NULL, '2022-09-22 08:51:17', '2022-09-22 08:51:17'),
(278, 'Mašina ULTIMAZ - P2P - PUSHER', 41, NULL, NULL, NULL, '2022-09-22 09:06:51', '2022-09-22 09:06:51'),
(279, 'Liftex 1620 - paletar', 18, NULL, NULL, NULL, '2022-09-22 09:09:33', '2022-09-22 09:09:33'),
(280, 'Generator ITC 230V', 16, NULL, NULL, NULL, '2022-09-22 09:14:47', '2022-09-22 09:14:47'),
(281, 'Agregat Womax', 16, NULL, NULL, NULL, '2022-09-26 09:03:47', '2022-09-26 09:03:47'),
(282, 'vibro zaba Wacker', 39, NULL, NULL, NULL, '2022-09-26 09:05:20', '2022-09-26 09:05:20'),
(283, 'sekačica za beton Wacker', 40, NULL, NULL, NULL, '2022-09-26 09:06:28', '2022-09-26 09:06:28'),
(284, 'Hidraulični horizontalni podbušivač za instalaciju podzemnih kablova i cevi', 42, NULL, NULL, NULL, '2022-09-27 09:00:29', '2022-09-27 09:00:29'),
(285, 'Hidraulični agregat 10KS', 16, NULL, NULL, NULL, '2022-09-27 09:01:13', '2022-09-27 09:01:13'),
(286, 'Štapni laser', 25, NULL, NULL, NULL, '2023-01-31 13:29:28', '2023-01-31 13:29:28'),
(287, 'Koturača', 18, NULL, NULL, NULL, '2023-02-14 08:28:49', '2023-02-14 08:28:49'),
(288, 'Alu merdevine 3x7', 14, NULL, NULL, NULL, '2023-02-20 09:22:49', '2023-02-20 09:22:49'),
(289, 'Kutija za šrafilicu', 7, NULL, NULL, NULL, '2023-02-20 09:24:19', '2023-02-20 09:24:19'),
(290, 'Kutija za Hilti', 7, NULL, NULL, NULL, '2023-02-20 09:24:34', '2023-02-20 09:24:34'),
(291, 'Ključ kombinovani 10', 11, NULL, NULL, NULL, '2023-02-20 09:26:11', '2023-02-20 09:28:53'),
(292, 'Ključ kombinovani 13', 11, NULL, NULL, NULL, '2023-02-20 09:26:24', '2023-02-20 09:26:24'),
(293, 'Ključ kombinovani 12-13', 11, NULL, NULL, NULL, '2023-02-20 09:26:51', '2023-02-20 09:26:51'),
(294, 'Gedora-set ključeva', 11, NULL, NULL, NULL, '2023-02-20 09:27:11', '2023-02-20 09:27:11'),
(295, 'UTP set', 11, NULL, NULL, NULL, '2023-02-20 09:27:30', '2023-02-20 09:27:30'),
(296, 'Ključ 13-12', 11, NULL, NULL, NULL, '2023-02-20 09:27:52', '2023-02-20 09:27:52'),
(297, 'Testere žute Womax', 32, NULL, NULL, NULL, '2023-02-20 09:32:14', '2023-02-20 09:32:21'),
(298, 'Čekić 200 gr', 11, NULL, NULL, NULL, '2023-02-23 12:48:19', '2023-02-23 12:48:19'),
(299, 'Držalja za kramp', 11, NULL, NULL, NULL, '2023-02-23 12:49:41', '2023-02-23 12:49:41'),
(300, 'Držalja za lopatu/ašov', 11, NULL, NULL, NULL, '2023-02-23 12:50:58', '2023-02-23 12:50:58'),
(301, 'Grabulje metalne', 11, NULL, NULL, NULL, '2023-02-23 12:51:56', '2023-02-23 12:51:56'),
(302, 'Metla pajalica', 11, NULL, NULL, NULL, '2023-02-23 12:52:46', '2023-02-23 12:52:46'),
(303, 'Držalje za metlu', 11, NULL, NULL, NULL, '2023-02-23 12:54:35', '2023-02-23 12:54:35'),
(304, 'Ger sa testerom', 32, NULL, NULL, NULL, '2023-02-23 12:56:47', '2023-02-23 12:56:47'),
(305, 'Držalje za budak', 11, NULL, NULL, NULL, '2023-02-23 12:58:20', '2023-02-23 12:58:20'),
(306, 'Teleskopske merdevine', 14, NULL, NULL, NULL, '2023-03-13 12:39:25', '2023-03-13 12:39:25'),
(307, 'GMS 120 prof det Bosch 911006295', 13, NULL, NULL, NULL, '2023-03-14 10:10:11', '2023-03-14 10:10:11'),
(308, 'Fiber sajla 50m', 15, NULL, NULL, NULL, '2023-03-27 10:41:44', '2023-03-27 10:41:44'),
(309, 'Laser F2H GJ158A0627', 25, NULL, NULL, NULL, '2023-03-28 10:50:40', '2023-03-28 10:50:40'),
(310, 'GMS 120 prof det Bosch 028006482', 13, NULL, NULL, NULL, '2023-04-11 07:21:59', '2023-04-11 07:21:59'),
(311, 'GMS 120 prof det Bosch 122001121', 13, NULL, NULL, NULL, '2023-05-02 09:21:42', '2023-05-02 09:21:42'),
(312, 'GMS 120 prof det Bosch 027018240', 13, NULL, NULL, NULL, '2023-05-02 09:22:19', '2023-05-02 09:22:19'),
(313, 'Alu merdevine 4 gazišza125 kg Hrvatska', 14, 10, '256/1/2', 1, '2023-05-09 07:51:30', '2023-05-17 09:50:06'),
(314, 'Macola 1000g fiber drška Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 07:52:13', '2023-05-17 09:50:29'),
(315, 'Čekić zidarski 600 g Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:26:56', '2023-05-17 09:50:57'),
(316, 'Pajser Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:46:03', '2023-05-17 09:51:19'),
(317, 'Poluga za pajser Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:46:42', '2023-05-17 09:51:47'),
(318, 'Čekić bravarski 500g Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:47:16', '2023-05-17 09:52:10'),
(319, 'Čekić bravarski 300g Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:47:44', '2023-05-17 09:52:28'),
(320, 'Testera ručna Hrvatska', 32, 10, '256/1/2', 1, '2023-05-09 08:48:09', '2023-05-17 09:52:47'),
(321, 'Šrafciger ravni Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:48:44', '2023-05-17 09:53:05'),
(322, 'Šrafciger krstasti Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:49:09', '2023-05-17 09:53:23'),
(323, 'Klešta za sečenje žice Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:50:53', '2023-05-17 09:53:41'),
(324, 'Metar 5m Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:51:22', '2023-05-17 09:55:24'),
(325, 'Skalpel profi 18 Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:52:13', '2023-05-17 09:55:43'),
(326, 'Četka pvc 65 Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:54:24', '2023-05-17 09:55:59'),
(327, 'Klešta kombinovana  Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:55:15', '2023-05-17 09:56:15'),
(328, 'Gladilica PVC ZID Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:56:51', '2023-05-17 09:56:33'),
(329, 'Špahla 140mm Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:57:29', '2023-05-17 09:56:49'),
(330, 'Špahla 80mm Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 08:58:44', '2023-05-17 09:57:07'),
(331, 'Zidarska kašika Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 09:06:36', '2023-05-17 09:57:27'),
(332, 'Sekira 0,6 kg Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 09:07:50', '2023-05-17 09:57:44'),
(333, 'Fangla zidarska Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 09:08:35', '2023-05-17 09:58:06'),
(334, 'Libela 60cm Hrvatska', 11, 10, '256/1/2', 1, '2023-05-09 09:12:33', '2023-05-17 09:53:57'),
(335, 'Lopata sa drškom klasik Hrvatska', 11, 10, '217/1/2', 1, '2023-05-17 09:47:03', '2023-05-17 09:47:03'),
(336, 'Lopata sa drškom presovana Hrvatska', 11, 10, '217/1/2', 1, '2023-05-17 09:48:54', '2023-05-17 09:48:54'),
(337, 'Lopata sa drškom šiljata Hrvatska', 11, 10, '217/1/2', 1, '2023-05-17 09:49:38', '2023-05-17 09:49:38'),
(338, 'Ašov s drškom Hrvatska', 11, 10, '217/1/2', 1, '2023-05-17 10:01:32', '2023-05-17 10:01:32'),
(339, 'Budak sa drškom Hrvatska', 11, 10, '217/1/2', 1, '2023-05-17 10:11:08', '2023-05-17 10:11:08'),
(340, 'Kramp kovani 2,5 kg Hrvatska', 11, 10, '217/1/2', 1, '2023-05-17 10:15:26', '2023-05-17 10:15:26'),
(341, 'Kramp kovani 2 kg Hrvatska', 11, 10, '217/1/2', 1, '2023-05-17 10:26:01', '2023-05-17 10:26:01'),
(342, 'Građevinska kolica', 18, 11, '1734/0022/9410', 1, '2023-05-26 12:19:38', '2023-05-26 12:19:38'),
(343, 'Mešalica Hrvatska', 18, 11, '1734/0022/9410', 2, '2023-05-26 12:20:48', '2023-05-26 12:20:48'),
(344, 'Elektro pribor - utikač Hrvatska', 18, 11, '1734/0022/9410', 1, '2023-05-26 12:21:38', '2023-05-26 12:27:31'),
(345, 'Produžni kabal 3m Hrvatska', 18, 11, '1734/0022/9410', 1, '2023-05-26 12:22:31', '2023-05-26 12:27:49'),
(346, 'Motalica 25m Hrvatska', 17, 11, '1734/0022/9410', 1, '2023-05-26 12:24:45', '2023-05-26 12:24:45'),
(347, 'GMS 120 prof det Bosch 9170007826', 13, NULL, NULL, NULL, '2023-06-06 11:23:01', '2023-06-06 11:23:01'),
(348, 'GMS 120 prof det Bosch 027012240', 13, NULL, NULL, NULL, '2023-06-06 11:23:27', '2023-06-06 11:42:37'),
(349, 'Rastegljiva barijera K25-1', 43, NULL, NULL, NULL, '2023-06-08 13:25:54', '2023-06-08 13:25:54'),
(350, 'A15 blizina mesta sa radovima na putu', 43, NULL, NULL, NULL, '2023-06-08 13:27:10', '2023-06-26 10:01:47'),
(351, 'B30.30 zabrana polukružnog okretanja', 43, NULL, NULL, NULL, '2023-06-08 13:28:50', '2023-06-26 09:58:34'),
(352, 'B45 neophodna zimska oprema u zimskim uslovima', 43, NULL, NULL, NULL, '2023-06-08 13:29:24', '2023-06-26 10:04:03'),
(353, 'A08-01 suženje puta s desne strane', 43, NULL, NULL, NULL, '2023-06-08 13:30:22', '2023-06-26 09:59:20'),
(354, 'A08-02 suženje puta s leve strane', 43, NULL, NULL, NULL, '2023-06-08 13:30:36', '2023-06-26 10:00:06'),
(355, 'K22-1 markeri za razdvajanje smerova vožnje', 43, NULL, NULL, NULL, '2023-06-08 13:31:59', '2023-06-26 10:06:26'),
(356, 'Alu merdevine 3x12 Hrvatska', 14, 10, '330/1/2', 1, '2023-06-13 11:35:35', '2023-06-13 12:41:34'),
(357, 'Alu merdevine 4 gazišta Hrvatska', 14, 10, '330/1/2', 1, '2023-06-13 11:36:20', '2023-06-13 12:40:34'),
(358, 'Ašov s drškom Hrvatska', 11, 10, '330/1/2', 1, '2023-06-13 11:36:52', '2023-06-13 11:36:52'),
(359, 'Kramp kovani 2 kg Hrvatska', 11, 10, '330/1/2', 1, '2023-06-13 11:37:42', '2023-06-13 11:37:42'),
(360, 'Lopata s drškom Hrvatska', 11, 10, '330/1/2', 1, '2023-06-13 11:39:11', '2023-06-13 11:39:11'),
(361, 'Ograda rupičasta Hrvatska', 18, 10, '330/1/2', 1, '2023-06-13 11:44:57', '2023-06-13 11:44:57'),
(362, 'Testera ručna Hrvatska', 32, 10, '330/1/2', 1, '2023-06-13 11:45:42', '2023-06-13 11:45:42'),
(363, 'Libela 60cm Hrvatska', 11, 10, '330/1/2', 1, '2023-06-13 11:46:06', '2023-06-13 11:46:06'),
(364, 'Ključ gedora set 10-32 24/1 Hrvatska', 11, 10, '330/1/2', 1, '2023-06-13 11:47:23', '2023-06-13 11:47:44'),
(365, 'Ključ gedora set 4-19 20/1 Hrvatska', 11, 10, '330/1/2', 1, '2023-06-13 11:48:23', '2023-06-13 11:48:23'),
(366, 'Sekira 0,8 kg Hrvatska', 11, 10, '330/1/2', 1, '2023-06-13 11:51:29', '2023-06-13 11:51:29'),
(367, 'Klešta sečice Hrvatska', 11, 10, '330/1/2', 1, '2023-06-13 11:57:55', '2023-06-13 11:57:55'),
(368, 'Šrafcigeri set 7/1 Hrvatska', 11, 10, '330/1/2', 1, '2023-06-13 11:59:58', '2023-06-13 12:40:14'),
(369, 'Šrafciger ravni Hrvatska', 11, 10, '330/1/2', 1, '2023-06-13 12:01:08', '2023-06-13 12:01:08'),
(370, 'Šrafciger krstasti Hrvatska', 11, 10, '330/1/2', 1, '2023-06-13 12:01:28', '2023-06-13 12:40:55'),
(371, 'Metar 5m Hrvatska', 11, 10, '330/1/2', 1, '2023-06-13 12:01:57', '2023-06-13 12:01:57'),
(372, 'Traka za vezivanje španer Hrvatska', 18, 10, '330/1/2', 1, '2023-06-13 12:02:54', '2023-06-13 12:02:54'),
(373, 'Ašov s drškom Hrvatska', 11, 10, '329/1/2', 1, '2023-06-13 12:16:44', '2023-06-13 12:16:44'),
(374, 'Lopata s drškom Hrvatska', 11, 10, '329/1/2', 1, '2023-06-13 12:17:11', '2023-06-13 12:17:11'),
(375, 'Kramp kovani 2 kg Hrvatska', 11, 10, '329/1/2', 1, '2023-06-13 12:17:43', '2023-06-13 12:17:43'),
(376, 'A08-1 suženje puta s desnte strane', 43, 12, 'otp 150-23', 1, '2023-06-26 10:09:04', '2023-06-26 10:09:04'),
(377, 'A08-2 suženje puta s leve strane', 43, 12, 'otp 150-23', 1, '2023-06-26 10:09:46', '2023-06-26 10:09:46'),
(378, 'A15 blizina mesta sa radovima na putu', 43, 12, 'otp 150-23', 1, '2023-06-26 10:10:15', '2023-06-26 10:10:15'),
(379, 'B30.30 zabrana polukružnog okretanja', 43, 12, 'otp 150-23', 1, '2023-06-26 10:10:39', '2023-06-26 10:19:15'),
(380, 'B31 ograničenje brzine', 43, 12, 'otp 150-23', 1, '2023-06-26 10:11:09', '2023-06-26 10:19:35'),
(381, 'B47 obavezno obilaženje', 43, 12, 'otp 150-23', 1, '2023-06-26 10:11:40', '2023-06-26 10:11:40'),
(382, 'B47-1 obavezno obilaženje', 43, 12, 'otp 150-23', 1, '2023-06-26 10:12:16', '2023-06-26 10:12:16'),
(383, 'C01 prvenstvo prolaza', 43, 12, 'otp 150-23', 1, '2023-06-26 10:12:43', '2023-06-26 10:12:43'),
(384, 'C14 prestanak svih zabrana', 43, 12, 'otp 150-23', 1, '2023-06-26 10:13:24', '2023-06-26 10:13:24'),
(385, 'E03 znak evakuacije', 43, 12, 'otp 150-23', 1, '2023-06-26 10:13:49', '2023-06-26 10:13:49'),
(386, 'K14/14-1 branik za označavanje prepreka na putu', 43, 12, 'otp 150-23', 1, '2023-06-26 10:15:23', '2023-06-26 10:15:23'),
(387, 'Sekač optičkog kabla 6-12mm Hrvatska', 11, 13, 'otp 115VP-2023', 1, '2023-06-27 13:30:06', '2023-06-27 13:31:27'),
(388, 'Ključ viljuškasto-okasti 24 Hrvatska', 11, 10, '354/1/2', 1, '2023-06-28 09:20:21', '2023-06-28 09:20:21'),
(389, 'Ključ viljuškasto-okasti 19 Hrvatska', 11, 10, '354/1/2', 1, '2023-06-28 09:21:30', '2023-06-28 09:21:30'),
(390, 'Set odvijača za bušilicu Hrvatska', 11, 10, '354/1/2', 1, '2023-06-28 09:50:11', '2023-06-28 09:50:11'),
(391, 'Motorna testera 25,4 CC BCS25 Hrvatska', 32, 10, '354/1/2', 1, '2023-06-28 09:51:56', '2023-06-28 09:51:56'),
(392, 'Womax MK08', 13, NULL, NULL, NULL, '2023-07-04 16:49:46', '2023-07-04 16:49:46'),
(393, 'Laser VLS 8-15 200610801', 25, NULL, NULL, NULL, '2023-07-04 16:52:29', '2023-07-04 16:52:29'),
(394, 'pm+ laser ZJ29062023', 26, NULL, NULL, NULL, '2023-07-04 16:57:23', '2023-07-04 16:57:23'),
(395, 'Laserski daljinometar GLM 40 121231041 01/2021', 25, NULL, NULL, NULL, '2023-07-04 16:59:59', '2023-07-04 16:59:59'),
(396, 'Drvene merdevine', 14, NULL, NULL, NULL, '2023-07-04 17:06:49', '2023-07-04 17:06:49'),
(397, 'sigurnosni pojas manji bez kanapa', 12, NULL, NULL, NULL, '2023-07-04 17:08:51', '2023-07-04 17:13:29'),
(398, 'sigurnosni pojas veći', 12, NULL, NULL, NULL, '2023-07-04 17:14:00', '2023-07-04 17:14:00'),
(399, 'sigurnosni pojas veči bez kanapa', 12, NULL, NULL, NULL, '2023-07-04 17:14:32', '2023-07-04 17:14:32'),
(400, 'Točak za merenje dužine analogni', 18, NULL, NULL, NULL, '2023-07-04 17:36:48', '2023-07-04 17:36:48'),
(401, 'Točak za merenje dužine digitalni', 18, NULL, NULL, NULL, '2023-07-04 17:37:10', '2023-07-04 17:37:10'),
(402, 'Alu merdevine 3x4', 14, NULL, NULL, NULL, '2023-07-04 17:59:03', '2023-07-04 17:59:03'),
(403, 'Lanci za gume', 18, NULL, NULL, NULL, '2023-07-04 18:00:05', '2023-07-04 18:00:05'),
(404, 'Kramp kovani s drškom 2kg Hrvatska', 11, 10, 'otp br 10555-10', 1, '2023-07-13 11:10:46', '2023-07-13 11:10:46'),
(405, 'Lopata sa drškom presovana Hrvatska', 11, 10, 'otp br 10555-10', 1, '2023-07-13 11:14:30', '2023-07-13 11:14:30'),
(406, 'Optical power meter ZJ0072023', 26, NULL, NULL, NULL, '2023-07-13 12:09:38', '2023-07-13 12:09:38'),
(407, 'Makaze za lim Hrvatska', 11, 10, 'trebovanje od 27.06.2023.', 1, '2023-07-17 08:01:57', '2023-07-17 08:01:57'),
(408, 'Kružni nož', 11, NULL, NULL, 1, '2023-07-19 11:15:52', '2023-07-19 11:15:52'),
(409, 'Suncobran  Hrvatska', 18, 15, 'otp 956-01/4721-2023', 1, '2023-07-21 07:17:06', '2023-07-21 07:17:06'),
(410, 'Stalak za suncobran Hrvatska', 18, 15, 'otp 956-01/4721-2023', 1, '2023-07-21 07:17:39', '2023-07-21 07:17:39'),
(411, 'Lemilica Hrvatska', 11, 15, 'otp 956-01/4721-2023', 1, '2023-07-21 07:18:09', '2023-07-21 07:18:09'),
(412, 'Plinska boca Hrvatska', 18, 15, 'otp 956-01/4721-2023', 1, '2023-07-21 07:18:34', '2023-07-21 07:18:34'),
(413, 'Motorna testera Stihl MS 170 Hrvatska', 32, 10, '423/1/2', 1, '2023-07-26 07:56:23', '2023-07-26 07:56:23'),
(414, 'Striperice Fujikura SS03', 11, 16, 'avgust 2023', 1, '2023-08-14 10:17:52', '2023-08-14 10:17:52');

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

--
-- Table structure for table `tool_comments`
--

CREATE TABLE IF NOT EXISTS `tool_comments` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `id_tool` bigint UNSIGNED NOT NULL,
  `id_user` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `tool_comments_id_tool_foreign` (`id_tool`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `tool_delivered_goods`
--

CREATE TABLE IF NOT EXISTS `tool_delivered_goods` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `serial` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `delivery_note` bigint UNSIGNED NOT NULL,
  `device_id` bigint UNSIGNED NOT NULL,
  `warehouse` tinyint NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `tool_delivered_goods_delivery_note_foreign` (`delivery_note`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `tool_delivery_notes`
--

CREATE TABLE IF NOT EXISTS `tool_delivery_notes` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `fitter_id` bigint UNSIGNED DEFAULT NULL,
  `storekeeper_id` bigint UNSIGNED DEFAULT NULL,
  `taken_by` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `tool_images`
--

CREATE TABLE IF NOT EXISTS `tool_images` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `url` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `id_tool` bigint UNSIGNED NOT NULL,
  `description` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `tool_images_id_tool_foreign` (`id_tool`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `tool_logs`
--

CREATE TABLE IF NOT EXISTS `tool_logs` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `tool_id` bigint UNSIGNED NOT NULL,
  `storekeeper` bigint UNSIGNED NOT NULL,
  `worker` bigint UNSIGNED DEFAULT NULL,
  `storage_id` tinyint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `tool_origins`
--

CREATE TABLE IF NOT EXISTS `tool_origins` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `origin` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tool_origins`
--

INSERT INTO `tool_origins` (`id`, `origin`, `created_at`, `updated_at`) VALUES
(1, 'Geberung', NULL, NULL),
(2, 'Biz-pronet', NULL, NULL),
(3, 'Despotes', NULL, NULL);

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

--
-- Table structure for table `tool_providers`
--

CREATE TABLE IF NOT EXISTS `tool_providers` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `provider` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tool_providers`
--

INSERT INTO `tool_providers` (`id`, `provider`, `created_at`, `updated_at`) VALUES
(1, 'KONČAR ELEKTRO', '2022-12-12 10:04:01', '2022-12-12 10:04:01'),
(2, 'SINFON', '2022-12-12 10:04:23', '2022-12-12 10:04:23'),
(3, 'WOBY HAUS', '2022-12-12 10:04:48', '2022-12-12 10:04:48'),
(4, 'ELPOS', '2022-12-12 10:04:57', '2022-12-12 10:04:57'),
(5, 'MB BAKOVIĆ', '2022-12-12 10:05:10', '2022-12-12 10:05:10'),
(6, 'EGERTON', '2022-12-12 10:05:24', '2022-12-12 10:05:24'),
(7, 'LEA INTERNACIONAL', '2022-12-12 10:06:00', '2022-12-12 10:06:00'),
(8, 'Gajović', '2023-01-27 13:01:46', '2023-01-27 13:01:46'),
(9, 'Kuzmanović', '2023-02-14 08:55:15', '2023-02-14 08:55:15'),
(10, 'IN COLOR Hrvatska', '2023-05-17 09:45:22', '2023-05-17 09:45:22'),
(11, 'Pevex d.d Hrvatska', '2023-05-26 12:18:43', '2023-05-26 12:18:43'),
(12, 'Prvi treptač Hrvatska', '2023-06-26 10:08:09', '2023-06-26 10:08:09'),
(13, 'DVA.RS', '2023-06-27 13:29:05', '2023-06-27 13:29:05'),
(14, 'Mjerne tehnologije doo', '2023-07-19 11:22:16', '2023-07-19 11:22:16'),
(15, 'Bauhaus doo Hrvatska', '2023-07-21 07:16:20', '2023-07-21 07:16:20'),
(16, 'TELECRON DOO Hrvatska', '2023-08-14 10:11:36', '2023-08-14 10:11:36');

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

--
-- Table structure for table `tool_reverse`
--

CREATE TABLE IF NOT EXISTS `tool_reverse` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `text` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `worker_id` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `storekeeper_id` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `storage_id` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `tool_reverse_goods`
--

CREATE TABLE IF NOT EXISTS `tool_reverse_goods` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `serial_number` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `reverse_id` bigint UNSIGNED NOT NULL,
  `device_id` bigint UNSIGNED NOT NULL,
  `storage_id` bigint UNSIGNED NOT NULL,
  `provider_id` bigint UNSIGNED NOT NULL,
  `invoice_number` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `origin` bigint UNSIGNED DEFAULT NULL,
  `obsolete` tinyint NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `tool_reverse_goods_device_id_foreign` (`device_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `tool_types`
--

CREATE TABLE IF NOT EXISTS `tool_types` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `type` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tool_types`
--

INSERT INTO `tool_types` (`id`, `type`, `created_at`, `updated_at`) VALUES
(1, 'Bušilica', '2021-10-05 10:51:24', '2021-10-05 10:51:24'),
(2, 'OTDR', '2021-10-05 16:52:15', '2021-10-05 16:52:15'),
(3, 'Splajser', '2021-10-05 16:52:43', '2021-10-05 16:52:43'),
(4, 'Šrafilica', '2021-10-05 16:52:57', '2022-03-12 10:25:05'),
(5, 'Brusilica', '2021-10-05 16:53:07', '2021-10-05 16:53:07'),
(6, 'Bušilica oprema', '2021-10-06 17:17:47', '2022-03-12 10:23:32'),
(7, 'Kutija za alat', '2021-10-06 17:20:05', '2021-10-06 17:20:05'),
(10, 'Burgije', '2021-10-06 19:01:11', '2021-10-06 19:01:11'),
(11, 'Sitan alat', '2021-10-06 19:09:31', '2021-10-06 19:09:31'),
(12, 'Pojas', '2021-10-06 19:17:21', '2021-10-06 19:17:21'),
(13, 'Ispitivač za struju', '2021-10-06 19:35:13', '2021-10-06 19:35:13'),
(14, 'Merdevine', '2021-10-06 19:50:31', '2021-10-06 19:50:31'),
(15, 'Sajle', '2021-10-06 20:23:34', '2021-10-06 20:23:34'),
(16, 'Agregat', '2021-10-07 05:48:42', '2021-10-07 05:48:42'),
(17, 'Motalica', '2021-10-07 06:04:12', '2021-10-07 06:04:12'),
(18, 'Oprema', '2022-02-01 11:38:48', '2022-02-01 11:38:48'),
(19, 'BOSCH Baterije', '2022-02-04 13:29:10', '2022-02-04 13:29:10'),
(20, 'ŠTEMALICE', '2022-02-08 12:15:19', '2022-02-08 12:15:31'),
(21, 'RUKAVICE', '2022-02-25 08:18:07', '2022-02-25 08:18:07'),
(22, 'BRENER', '2022-03-04 14:53:54', '2022-03-04 14:53:54'),
(23, 'POTROŠNA ROBA', '2022-03-04 15:25:08', '2022-03-04 15:25:08'),
(24, 'STOLICE', '2022-03-04 16:40:33', '2022-03-04 16:40:33'),
(25, 'LASER', '2022-03-07 14:10:34', '2022-03-07 14:10:34'),
(26, 'POWER metar', '2022-03-07 14:11:02', '2022-03-07 14:11:02'),
(27, 'Sto za splajsovanje', '2022-03-14 14:53:11', '2022-03-14 14:53:11'),
(28, 'Punjači i baterije', '2022-09-16 10:50:42', '2022-09-16 11:48:39'),
(29, 'Rezne ploče', '2022-09-16 11:38:50', '2022-09-16 11:38:50'),
(30, 'Kolica za sekač asfalta', '2022-09-16 11:43:00', '2022-09-16 11:43:00'),
(31, 'Pegla za PVC cevi', '2022-09-19 12:55:53', '2022-09-19 12:55:53'),
(32, 'Testere', '2022-09-20 11:16:58', '2022-09-20 11:16:58'),
(33, 'Usisivač', '2022-09-20 11:23:48', '2022-09-20 11:23:48'),
(34, 'Cleaver', '2022-09-20 12:34:57', '2022-09-20 12:34:57'),
(35, 'Bušač', '2022-09-20 13:32:12', '2022-09-20 13:32:12'),
(36, 'Šlicerica', '2022-09-21 08:29:10', '2022-09-21 08:29:10'),
(37, 'Kompresor', '2022-09-21 09:02:26', '2022-09-21 09:02:26'),
(38, 'Kablovi', '2022-09-21 09:13:16', '2022-09-21 09:13:16'),
(39, 'Mašina za sabijanje tla', '2022-09-22 08:49:59', '2022-09-22 08:49:59'),
(40, 'Sekač', '2022-09-22 08:50:56', '2022-09-22 08:50:56'),
(41, 'Alat za uduvavanje kabla', '2022-09-22 09:06:18', '2022-09-22 09:06:18'),
(42, 'Podbušivač', '2022-09-27 08:59:37', '2022-09-27 08:59:37'),
(43, 'Znakovi - signalizacija Hrvatska', '2023-06-08 13:19:01', '2023-06-08 13:20:54');

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

--
-- Table structure for table `ugovori`
--

CREATE TABLE IF NOT EXISTS `ugovori` (
  `id` tinyint UNSIGNED NOT NULL AUTO_INCREMENT,
  `ugovor` varchar(255) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ugovori`
--

INSERT INTO `ugovori` (`id`, `ugovor`, `updated_at`, `created_at`) VALUES
(1, 'Ugovor o radu', '2019-10-28 21:17:20', '2019-10-28 21:17:23'),
(2, 'PP ugovor', '2019-10-28 21:17:26', '2019-10-28 21:17:28'),
(3, 'Ugovor o delu', '2019-10-28 21:17:31', '2019-10-28 21:17:33');

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

--
-- Table structure for table `uniforms`
--

CREATE TABLE IF NOT EXISTS `uniforms` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `uniform` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `size` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `color` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type_id` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `uniforms_type_id_foreign` (`type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=95 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `uniforms`
--

INSERT INTO `uniforms` (`id`, `uniform`, `size`, `color`, `type_id`, `created_at`, `updated_at`) VALUES
(29, 'PW PS33CLR Zaštitne naočare Classic Safety Plus providne anti maglin', '', '', 6, '2022-03-08 12:29:13', '2022-03-08 12:29:13'),
(30, 'BD1015369 NAOČARE A800 BEZBOJNE ANTIFOG', '', '', 6, '2022-03-08 12:30:28', '2022-03-08 12:30:28'),
(31, 'Marker', '', 'Žuti', 9, '2022-03-08 12:49:15', '2022-03-08 12:49:15'),
(32, 'Ribolovački kombinezon sa čizmama WDS1', '44-45', 'kaki', 11, '2022-03-08 13:14:22', '2022-03-08 13:14:22'),
(37, 'Rukavica Bunter', '', '', 12, '2022-04-01 21:03:22', '2022-04-01 21:03:22'),
(42, 'Šlem GEBERUNG', '', '', 18, '2022-09-08 13:29:20', '2022-09-08 13:34:03'),
(43, 'safety glasses  50511', '', 'Bezbojne', 8, '2022-10-06 14:18:52', '2022-10-06 14:18:52'),
(44, 'LACUNA  NITRA', '10', 'Bela', 12, '2022-10-06 14:33:23', '2022-10-06 21:47:37'),
(45, 'Kabanice Geberung', '', 'crna', 20, '2023-01-11 08:21:30', '2023-01-11 08:21:30'),
(46, 'Pantalone GEBERUNG', '48', 'crna', 4, '2023-02-28 10:47:53', '2023-02-28 10:47:53'),
(47, 'Pantalone GEBERUNG', '50', 'crna', 4, '2023-02-28 10:48:13', '2023-02-28 10:48:13'),
(48, 'Pantalone GEBERUNG', '52', 'crna', 4, '2023-02-28 10:48:43', '2023-02-28 10:48:43'),
(49, 'Pantalone GEBERUNG', '54', 'crna', 4, '2023-02-28 10:49:05', '2023-02-28 10:49:05'),
(50, 'Pantalone GEBERUNG', '60', 'crna', 4, '2023-02-28 10:49:30', '2023-02-28 10:50:43'),
(51, 'Pantalone GEBERUNG', '56', 'crna', 4, '2023-02-28 10:49:51', '2023-02-28 10:49:51'),
(52, 'Pantalone GEBERUNG', '58', 'crna', 4, '2023-02-28 10:50:11', '2023-02-28 10:50:11'),
(53, 'Bluza GEBERUNG', '46', 'crna', 19, '2023-02-28 10:53:53', '2023-02-28 10:53:53'),
(54, 'Bluza GEBERUNG', '48', 'crna', 19, '2023-02-28 10:54:18', '2023-02-28 10:54:18'),
(55, 'Bluza GEBERUNG', '50', 'crna', 19, '2023-02-28 10:55:03', '2023-02-28 10:55:03'),
(56, 'Bluza GEBERUNG', '52', 'crna', 19, '2023-02-28 10:55:29', '2023-02-28 10:55:29'),
(57, 'Bluza GEBERUNG', '54', 'crna', 19, '2023-02-28 10:55:51', '2023-02-28 10:55:51'),
(58, 'Bluza GEBERUNG', '56', 'crna', 19, '2023-02-28 10:56:13', '2023-02-28 10:56:13'),
(59, 'Bluza GEBERUNG', '58', 'crna', 19, '2023-02-28 10:58:08', '2023-02-28 10:58:08'),
(60, 'Majice GEBERUNG', 'L', 'zelena', 3, '2023-02-28 10:58:57', '2023-02-28 10:58:57'),
(61, 'Majice GEBERUNG', 'M', 'zelena', 3, '2023-02-28 10:59:18', '2023-02-28 10:59:18'),
(62, 'Majice GEBERUNG', 'XL', 'zelena', 3, '2023-02-28 10:59:40', '2023-02-28 10:59:40'),
(63, 'Majice GEBERUNG', 'XXL', 'zelena', 3, '2023-02-28 11:00:16', '2023-02-28 11:00:16'),
(64, 'Radne cipele', '41', 'crna', 21, '2023-02-28 11:02:44', '2023-02-28 11:02:44'),
(65, 'Radne cipele', '44', 'siva', 21, '2023-02-28 11:03:07', '2023-02-28 11:03:07'),
(66, 'Radne cipele', '45', 'crna', 21, '2023-02-28 11:03:29', '2023-02-28 11:03:29'),
(67, 'Pantalone GEBERUNG', '46', 'crna', 4, '2023-03-03 15:10:33', '2023-03-03 15:10:33'),
(68, 'Kombinezon s čizmama zeleni', '', '', 10, '2023-04-18 13:42:29', '2023-04-18 13:42:29'),
(69, 'Majice Geberung', 'S', 'zelena', 3, '2023-04-21 13:54:55', '2023-04-21 13:54:55'),
(70, 'Zaštitna cipela LEON Hrvatska', '39', 'SR', 5, '2023-05-17 13:30:35', '2023-05-17 13:30:35'),
(71, 'Zaštitna cipela LEON Hrvatska', '41', 'S3', 5, '2023-05-17 13:35:01', '2023-05-17 13:35:01'),
(72, 'Zaštitna cipela LEON Hrvatska', '42', 'S3', 5, '2023-05-17 13:35:29', '2023-05-17 13:35:29'),
(73, 'Zaštitna cipela LEON Hrvatska', '43', 'S3', 5, '2023-05-17 13:35:55', '2023-05-17 13:35:55'),
(74, 'Zaštitna cipela LEON Hrvatska', '44', 'S3', 5, '2023-05-17 13:36:18', '2023-05-17 13:36:18'),
(75, 'Zaštitna cipela LEON Hrvatska', '45', 'S3', 5, '2023-05-17 13:36:40', '2023-05-17 13:36:40'),
(76, 'Šlem žuti APIA 800', '', '', 22, '2023-06-13 11:21:04', '2023-06-13 11:21:04'),
(77, 'Prsluk signal', 'M/L', 'žuta', 23, '2023-06-13 11:21:49', '2023-06-13 11:21:49'),
(78, 'Prsluk signal', 'XL/XXL', 'žuta', 23, '2023-06-13 11:22:20', '2023-06-13 11:22:20'),
(79, 'Radne cipele', '42', 'crne', 21, '2023-06-23 11:12:39', '2023-06-23 11:12:39'),
(80, 'Radne cipele', '43', 'crna', 21, '2023-06-23 11:13:00', '2023-06-23 11:13:00'),
(81, 'Radne cipele', '46', 'crna', 21, '2023-06-23 11:13:31', '2023-06-23 11:13:31'),
(82, 'Zaštitna cipela LEON Hrvatska', '40', 'S3', 5, '2023-06-28 08:53:19', '2023-06-28 08:54:07'),
(83, 'Letnje pantalone Lion Hrvatska/ 3XL', '60', 'siva', 4, '2023-07-18 07:49:30', '2023-07-18 07:52:00'),
(84, 'Letnje pantalone Lion Hrvatska/2XL', '56', 'siva', 4, '2023-07-18 07:50:08', '2023-07-18 07:52:23'),
(85, 'Letnje pantalone Lion Hrvatska/XL', '54', 'siva', 4, '2023-07-18 07:50:40', '2023-07-18 07:52:41'),
(86, 'Letnje pantalone Lion Hrvatska/S', '52', 'siva', 4, '2023-07-18 07:51:00', '2023-07-18 07:53:07'),
(87, 'Letnje pantalone Lion Hrvatska/XLS', '36', 'siva', 4, '2023-07-18 07:51:35', '2023-07-18 07:53:34'),
(88, 'Bermude rimini summer', 'S', 'plava', 24, '2023-08-02 10:55:18', '2023-08-02 10:55:18'),
(89, 'Bermude rimini summer', 'L', 'plava', 24, '2023-08-02 10:55:58', '2023-08-02 10:55:58'),
(90, 'Bermude rimini summer', 'XL', 'plava', 24, '2023-08-02 10:56:46', '2023-08-02 10:56:46'),
(92, 'Bermude rimini summer', 'XXL', 'plava', 24, '2023-08-02 10:59:27', '2023-08-02 10:59:27'),
(94, 'Šešir slameni Hrvatska', '', '', 25, '2023-08-11 13:00:58', '2023-08-11 13:00:58');

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

--
-- Table structure for table `uniform_logs`
--

CREATE TABLE IF NOT EXISTS `uniform_logs` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `uniform_id` bigint UNSIGNED NOT NULL,
  `storekeeper` bigint UNSIGNED NOT NULL,
  `worker` bigint UNSIGNED DEFAULT NULL,
  `storage_id` tinyint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `uniform_types`
--

CREATE TABLE IF NOT EXISTS `uniform_types` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `type` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `uniform_types`
--

INSERT INTO `uniform_types` (`id`, `type`, `created_at`, `updated_at`) VALUES
(1, 'Zimska jakna', '2021-11-11 10:49:48', '2021-11-11 10:49:48'),
(2, 'Dukserice', '2021-11-11 10:50:22', '2021-11-11 10:50:22'),
(3, 'Majice', '2021-11-11 10:50:33', '2021-11-11 10:50:33'),
(4, 'Pantalone', '2021-11-11 10:50:52', '2022-09-08 12:39:56'),
(5, 'Radne cipele', '2021-11-11 10:51:07', '2021-11-11 10:51:07'),
(6, 'ZAŠTITNE NAOČARE', '2022-03-07 14:23:41', '2022-03-07 14:23:41'),
(8, 'Zaštitne naočare', '2022-03-08 12:26:30', '2022-03-08 12:26:30'),
(9, 'MARKER (prsluk)', '2022-03-08 12:48:36', '2022-03-08 12:48:36'),
(10, 'Ribolovački kombinezon s čizmama', '2022-03-08 13:10:12', '2022-03-08 13:10:12'),
(11, 'Čizme', '2022-03-08 13:13:06', '2022-03-08 13:13:06'),
(12, 'RUKAVICE*', '2022-04-01 21:02:01', '2022-04-01 21:02:01'),
(18, 'ŠLEM', '2022-09-08 12:59:42', '2022-09-08 12:59:42'),
(19, 'Bluze', '2022-09-08 13:27:21', '2022-09-08 13:27:21'),
(20, 'Kabanice', '2023-01-11 08:20:52', '2023-01-11 08:20:52'),
(21, 'Cipele', '2023-02-28 11:01:51', '2023-02-28 11:01:51'),
(22, 'Šlem Geberung Hrvatska', '2023-06-13 11:19:58', '2023-06-13 11:19:58'),
(23, 'Prsluk signal žuti Hrvatska', '2023-06-13 11:20:32', '2023-06-13 11:20:32'),
(24, 'Radne bermude', '2023-08-02 10:34:57', '2023-08-02 10:34:57'),
(25, 'Šešir', '2023-08-11 13:00:43', '2023-08-11 13:00:43');

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

--
-- Table structure for table `units`
--

CREATE TABLE IF NOT EXISTS `units` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `unit` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `unit_short` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `units`
--

INSERT INTO `units` (`id`, `unit`, `unit_short`, `created_at`, `updated_at`) VALUES
(1, 'komad', 'kom', '2020-12-21 20:14:08', '2020-12-21 20:14:08'),
(2, 'metar', 'm', '2020-12-21 20:14:21', '2020-12-21 20:14:21'),
(3, 'kvadrat', 'm²', '2020-12-23 19:42:41', '2020-12-23 19:44:37'),
(4, 'kubik', 'm³', '2020-12-23 19:43:03', '2020-12-23 19:45:06'),
(5, 'kilometar', 'km', '2021-01-15 13:32:16', '2021-01-15 13:32:16');

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

--
-- Table structure for table `uredjaji`
--

CREATE TABLE IF NOT EXISTS `uredjaji` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `uredjaj` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `device_type_id` bigint UNSIGNED DEFAULT NULL,
  `category_id` bigint UNSIGNED DEFAULT NULL,
  `origin_id` bigint UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `uredjaji_device_type_id_foreign` (`device_type_id`),
  KEY `uredjaji_origin_id_foreign` (`origin_id`),
  KEY `uredjaji_category_id_foreign` (`category_id`)
) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_slovenian_ci;

--
-- Dumping data for table `uredjaji`
--

INSERT INTO `uredjaji` (`id`, `uredjaj`, `device_type_id`, `category_id`, `origin_id`, `created_at`, `updated_at`) VALUES
(1, 'lnb twin', 1, 1, NULL, NULL, '2021-07-12 09:19:34'),
(2, 'stb dth', 1, 1, NULL, NULL, '2021-07-14 09:41:50'),
(3, 'adsl', 1, 1, NULL, NULL, '2021-07-12 09:20:10'),
(4, 'vdsl', 1, 1, NULL, NULL, '2021-07-12 09:20:31'),
(5, 'mifi imei', 1, 1, NULL, NULL, '2021-07-12 09:21:03'),
(6, 'mifi iccid', 1, 1, NULL, NULL, '2021-07-12 09:21:44'),
(7, 'ont ZTE Teledirekt', 2, 1, 1, '2020-04-30 22:18:21', '2021-07-19 10:47:56'),
(14, 'Switch Telegroup', 2, 1, 2, '2020-12-21 19:46:20', '2021-07-19 10:48:10'),
(15, 'lnb quad', 1, 1, NULL, '2020-12-23 10:48:04', '2021-07-12 09:27:48'),
(16, 'ONT Teledirekt Nokia', 2, 1, 1, NULL, '2021-07-19 10:48:28'),
(17, 'ONT Teledirekt Huawei', 2, 1, 1, NULL, '2021-07-19 10:48:43'),
(18, 'stb optika Telegroup', 2, 1, 2, NULL, '2021-07-19 10:32:03'),
(19, 'extender Telegroup', 2, 1, 2, NULL, '2021-07-19 10:48:56'),
(20, 'PLA adapter Teledirekt', 2, 1, 1, NULL, '2021-07-19 10:49:29'),
(21, 'PLA adapter Telegroup', 2, 1, 2, NULL, '2021-07-19 10:50:51'),
(22, 'Switch Teledirekt', 2, 1, 1, NULL, '2021-07-19 10:51:43'),
(23, 'stb optika Teledirekt', 2, 1, 1, NULL, '2021-07-19 10:53:49'),
(24, 'extender Teledirekt', 2, 1, 1, NULL, '2021-07-19 10:54:02'),
(25, 'ONT Telegroup Nokia', 2, 1, 2, NULL, '2021-07-19 10:54:46'),
(26, 'ONT telegroup Huawei', 2, 1, 2, NULL, '2021-07-19 10:55:04'),
(27, 'ont ZTE TELEGROUP', 2, 1, 2, '2021-10-16 10:11:32', '2021-10-16 10:11:32'),
(29, 'Bušilica', NULL, 2, NULL, '2022-12-12 11:27:17', '2022-12-12 11:27:17'),
(30, 'Agregat', NULL, 2, NULL, '2022-12-13 10:18:15', '2022-12-13 10:18:15'),
(31, 'Brusilica', NULL, 2, NULL, '2022-12-13 10:18:50', '2022-12-13 10:18:50'),
(32, 'Bušač', NULL, 2, NULL, '2022-12-13 10:19:08', '2022-12-13 10:19:08'),
(33, 'Šrafilica', NULL, 2, NULL, '2023-01-26 11:16:25', '2023-01-26 11:16:25'),
(34, 'Punjač', NULL, 2, NULL, '2023-01-26 11:19:20', '2023-02-05 01:27:31'),
(35, 'Baterije', NULL, 2, NULL, '2023-01-26 11:19:33', '2023-01-26 11:19:33'),
(36, 'Splajser', NULL, 2, NULL, '2023-01-26 12:47:10', '2023-02-05 01:27:47'),
(37, 'OTDR', NULL, 2, NULL, '2023-02-04 20:43:46', '2023-02-04 20:43:46'),
(38, 'Cleaver', NULL, 2, NULL, '2023-02-04 20:57:05', '2023-02-05 01:28:42'),
(39, 'Štemalica', NULL, 2, NULL, '2023-02-04 22:56:27', '2023-02-05 01:28:02'),
(40, 'Kompresor', NULL, 2, NULL, '2023-02-04 23:30:03', '2023-02-05 01:28:12'),
(41, 'Duvaljka', NULL, 2, NULL, '2023-02-04 23:35:15', '2023-02-04 23:35:15'),
(42, 'Šlicerica', NULL, 2, NULL, '2023-02-05 01:27:17', '2023-02-05 01:27:17'),
(43, 'ŽABA', NULL, 2, NULL, '2023-02-13 23:20:19', '2023-02-13 23:20:19'),
(44, 'Sekač', NULL, 2, NULL, '2023-02-13 23:22:21', '2023-02-13 23:22:21'),
(45, 'Raketa', NULL, 2, NULL, '2023-02-14 10:43:25', '2023-02-14 10:43:25'),
(46, 'Digitalni tragač DTH', NULL, 2, NULL, '2023-02-15 10:38:20', '2023-02-15 10:38:20'),
(47, 'Pegla za PVC cevi', NULL, 2, NULL, '2023-02-15 10:44:12', '2023-02-15 10:44:12'),
(49, 'Pumpa potapajuća', NULL, 2, NULL, '2023-02-16 14:22:55', '2023-02-16 14:22:55'),
(51, 'Usisivač', NULL, 2, NULL, '2023-03-24 15:54:23', '2023-03-24 15:54:23'),
(52, 'Dodatna oprema za bušač', NULL, 2, NULL, '2023-03-27 12:12:03', '2023-03-27 12:12:03'),
(54, 'ONT RUNE ISKRATEL 203572', 2, 1, 3, '2023-07-11 13:18:23', '2023-07-11 13:18:23'),
(55, 'GEBERUNG ONT ISKRATEL 203552', 2, 1, 3, '2023-08-08 09:38:19', '2023-08-08 09:38:19');

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

--
-- Table structure for table `vehicle_card_links`
--

CREATE TABLE IF NOT EXISTS `vehicle_card_links` (
  `vehicle` bigint UNSIGNED NOT NULL,
  `card` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `vehicle_comments`
--

CREATE TABLE IF NOT EXISTS `vehicle_comments` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `vehicle_user_id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vehicle_comments_vehicle_user_id_foreign` (`vehicle_user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `vehicle_equipment`
--

CREATE TABLE IF NOT EXISTS `vehicle_equipment` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `equipment` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `vehicle_equipment_logs`
--

CREATE TABLE IF NOT EXISTS `vehicle_equipment_logs` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `equipment_id` bigint UNSIGNED NOT NULL,
  `storekeeper` bigint UNSIGNED NOT NULL,
  `worker` bigint UNSIGNED DEFAULT NULL,
  `storage_id` tinyint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `vehicle_images`
--

CREATE TABLE IF NOT EXISTS `vehicle_images` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `image_url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `vehicle_user_id` bigint UNSIGNED NOT NULL,
  `type_id` tinyint DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vehicle_images_vehicle_user_id_foreign` (`vehicle_user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `vehicle_owners`
--

CREATE TABLE IF NOT EXISTS `vehicle_owners` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `name` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `vehicle_types`
--

CREATE TABLE IF NOT EXISTS `vehicle_types` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `type` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vehicle_types`
--

INSERT INTO `vehicle_types` (`id`, `type`, `created_at`, `updated_at`) VALUES
(1, 'Teretno', '2022-09-27 04:22:13', '2022-09-27 04:22:15'),
(2, 'Putničko', '2022-09-27 04:22:17', '2022-09-27 04:22:19'),
(3, 'Gređevinska mašina', '2023-05-08 12:20:23', '2023-05-08 12:20:26');

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

--
-- Table structure for table `vehicle_user`
--

CREATE TABLE IF NOT EXISTS `vehicle_user` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `vehicle_id` tinyint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `updated_by` bigint UNSIGNED DEFAULT NULL,
  `rent_date` datetime DEFAULT NULL,
  `return_date` datetime DEFAULT NULL,
  `color` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vehicle_user_vehicle_id_foreign` (`vehicle_id`),
  KEY `vehicle_user_user_id_foreign` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `videos`
--

CREATE TABLE IF NOT EXISTS `videos` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `video_url` varchar(255) DEFAULT NULL,
  `id_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_opticki_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_bakar_klijent` bigint UNSIGNED DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_klijent` (`id_klijent`),
  KEY `id_opticki_klijent` (`id_opticki_klijent`),
  KEY `videos_id_bakar_klijent_foreign` (`id_bakar_klijent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Table structure for table `vozila`
--

CREATE TABLE IF NOT EXISTS `vozila` (
  `id` tinyint UNSIGNED NOT NULL AUTO_INCREMENT,
  `marka` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `tip` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `reg_br` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `id_user` bigint UNSIGNED DEFAULT NULL,
  `owner_id` bigint UNSIGNED NOT NULL,
  `company_id` bigint UNSIGNED NOT NULL,
  `fuel_type` bigint UNSIGNED DEFAULT NULL,
  `vehicle_type` bigint UNSIGNED DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_user` (`id_user`),
  KEY `vozila_owner_id_foreign` (`owner_id`),
  KEY `vozila_company_id_foreign` (`company_id`),
  KEY `vozila_fuel_type_foreign` (`fuel_type`),
  KEY `vozila_vehicle_type_foreign` (`vehicle_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_slovenian_ci;

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

--
-- Table structure for table `vraceni_uredjaji`
--

CREATE TABLE IF NOT EXISTS `vraceni_uredjaji` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `serijski_broj` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mac1` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mac2` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `id_uredjaj` bigint UNSIGNED DEFAULT NULL,
  `id_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_opticki_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_supernova_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_bakar_klijent` bigint UNSIGNED DEFAULT NULL,
  `id_rune` bigint UNSIGNED DEFAULT NULL,
  `id_monter` bigint UNSIGNED DEFAULT NULL,
  `id_razlog_vracanja` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vraceni_uredjaji_id_uredjaj_foreign` (`id_uredjaj`),
  KEY `vraceni_uredjaji_id_monter_foreign` (`id_monter`),
  KEY `vraceni_uredjaji_id_klijent_foreign` (`id_klijent`),
  KEY `vraceni_uredjaji_id_opticki_klijent_foreign` (`id_opticki_klijent`),
  KEY `vraceni_uredjaji_id_bakar_klijent_foreign` (`id_bakar_klijent`),
  KEY `vraceni_uredjaji_id_razlog_vracanja_foreign` (`id_razlog_vracanja`),
  KEY `vraceni_uredjaji_id_supernova_klijent_foreign` (`id_supernova_klijent`),
  KEY `vraceni_uredjaji_id_rune_foreign` (`id_rune`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `vrste_paketa`
--

CREATE TABLE IF NOT EXISTS `vrste_paketa` (
  `id` tinyint UNSIGNED NOT NULL AUTO_INCREMENT,
  `vrsta` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_slovenian_ci DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_slovenian_ci;

--
-- Dumping data for table `vrste_paketa`
--

INSERT INTO `vrste_paketa` (`id`, `vrsta`, `created_at`, `updated_at`) VALUES
(1, 'GREENFIELD', '2020-01-31 21:06:04', NULL),
(2, 'POTS', '2020-01-31 21:06:04', '2023-03-22 15:48:15'),
(3, 'POSTOJEĆI', '2020-01-31 21:06:04', NULL),
(4, 'PREBACIVANJE', '2020-06-30 10:45:08', '2020-06-30 10:45:08'),
(5, 'CROSS', '2023-03-22 16:26:48', '2023-03-22 16:26:48'),
(6, 'RETENTION', '2023-03-22 16:27:16', '2023-03-22 16:27:16'),
(7, 'UPSELL', '2023-03-22 16:28:18', '2023-03-22 16:28:18');

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

--
-- Table structure for table `wf_projects`
--

CREATE TABLE IF NOT EXISTS `wf_projects` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `project_name` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_date` datetime NOT NULL,
  `end_date` datetime NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `wf_project_task`
--

CREATE TABLE IF NOT EXISTS `wf_project_task` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `project_id` bigint UNSIGNED NOT NULL,
  `task_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED DEFAULT NULL,
  `status_id` bigint UNSIGNED DEFAULT NULL,
  `done` tinyint NOT NULL DEFAULT '0',
  `start_date` datetime DEFAULT NULL,
  `end_date` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `wf_project_task_project_id_foreign` (`project_id`),
  KEY `wf_project_task_task_id_foreign` (`task_id`),
  KEY `wf_project_task_user_id_foreign` (`user_id`),
  KEY `wf_project_task_status_id_foreign` (`status_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `wf_statuses`
--

CREATE TABLE IF NOT EXISTS `wf_statuses` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `status` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `wf_statuses`
--

INSERT INTO `wf_statuses` (`id`, `status`, `created_at`, `updated_at`) VALUES
(1, 'ZAKAZAN', '2022-10-11 12:31:39', '2022-10-11 12:31:39'),
(2, 'ZAVRŠEN', '2022-10-11 12:31:49', '2022-10-11 12:31:49'),
(3, 'ODLOŽEN', '2022-10-11 12:32:00', '2022-10-11 12:32:00');

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

--
-- Table structure for table `wf_tasks`
--

CREATE TABLE IF NOT EXISTS `wf_tasks` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `task` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `street` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `wf_task_equipment`
--

CREATE TABLE IF NOT EXISTS `wf_task_equipment` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `task_id` bigint UNSIGNED NOT NULL,
  `equipment_id` bigint UNSIGNED NOT NULL,
  `quantity` double(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `wf_task_images`
--

CREATE TABLE IF NOT EXISTS `wf_task_images` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `image_url` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `project_task_id` bigint UNSIGNED NOT NULL,
  `task_id` bigint UNSIGNED NOT NULL,
  `work_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `wf_task_images_task_id_foreign` (`task_id`),
  KEY `wf_task_images_project_task_id_foreign` (`project_task_id`),
  KEY `wf_task_images_work_id_foreign` (`work_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `wf_task_work`
--

CREATE TABLE IF NOT EXISTS `wf_task_work` (
  `task_id` bigint UNSIGNED NOT NULL,
  `work_id` bigint UNSIGNED NOT NULL,
  `project_task_id` bigint UNSIGNED NOT NULL,
  `done` tinyint NOT NULL DEFAULT '0',
  `quantity` double(8,2) DEFAULT NULL,
  `start_date` datetime DEFAULT NULL,
  `end_date` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  KEY `wf_task_work_task_id_foreign` (`task_id`),
  KEY `wf_task_work_work_id_foreign` (`work_id`),
  KEY `wf_task_work_project_task_id_foreign` (`project_task_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `wf_works`
--

CREATE TABLE IF NOT EXISTS `wf_works` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `work` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `wf_works`
--

INSERT INTO `wf_works` (`id`, `work`, `created_at`, `updated_at`) VALUES
(1, 'Ručni iskop i zatrpavanje rova sa pripremnim radovima u zemlji IV kategorije dimenzija do 0,4x1,2m po postojećoj trasi (trasiranje/pronalaženje trase postojećih kablova tragačem, iskop rova,', '2022-10-11 12:30:02', '2022-10-31 22:00:08'),
(2, 'Ručni iskop i zatrpavanje rova sa pripremnim radovima u zemlji IV kategorije dimenzija do 0,4x0,8m po postojećoj trasi (trasiranje, iskop rova, postavljanje upozoravajuće PVC trake,  zatrpava', '2022-10-11 12:30:13', '2022-10-31 21:59:34'),
(3, 'Ručni iskop i zatrpavanje rova sa pripremnim radovima u zemlji III kategorije dimenzija do 0,4x0,8m po postojećoj trasi (trasiranje, iskop rova, postavljanje upozoravajuće PVC trake, zatrpava', '2022-10-31 21:59:15', '2022-10-31 21:59:15'),
(4, 'Ručni iskop zemlje IV kategorije postojeća trasa', '2022-10-31 22:00:41', '2022-10-31 22:00:41'),
(5, 'Čišćenje kablovskog okna - vadjenje vode', '2022-10-31 22:01:15', '2022-10-31 22:01:15'),
(6, 'Čišćenje kablovskog okna - vadjenje vode koja stalno dotiče', '2022-10-31 22:01:29', '2022-10-31 22:01:29'),
(7, 'Sklanjanje sa trase šuta, kamena i drugog gradjevinskog materijala', '2022-10-31 22:01:43', '2022-10-31 22:01:43'),
(8, 'Rušenje kamene kocke na betonu', '2022-10-31 22:02:24', '2022-10-31 22:02:24'),
(9, 'Rušenje turske kaldrme ili behaton ploča na pesku', '2022-10-31 22:02:41', '2022-10-31 22:02:41'),
(10, 'Rušenje makadamske podloge', '2022-10-31 22:03:22', '2022-10-31 22:03:22'),
(11, 'Rušenje ivičnjaka', '2022-10-31 22:03:33', '2022-10-31 22:03:33'),
(12, 'Opravka kolovoza od kamene kocke na betonskoj podlozi', '2022-10-31 22:03:45', '2022-10-31 22:03:45'),
(13, 'Opravka kolovoza sa makadamskom podlogom d=25 cm', '2022-10-31 22:03:58', '2022-10-31 22:03:58'),
(14, 'Opravka ivičnjaka', '2022-10-31 22:04:06', '2022-10-31 22:04:06'),
(15, 'Iskop i zatrpavanje proširenja za izradu nastavka na PE cevima u zemlji IV kategorije', '2022-10-31 22:04:16', '2022-10-31 22:04:16'),
(16, 'Ugradnja betonskog stubića za obeležavanje trase optičkog kabla sa bojenjem', '2022-10-31 22:04:29', '2022-10-31 22:04:29'),
(17, 'Izrada okana dimenzija 60x135x120 cm (ŠxDxV) sa odstupanjem zapremine do 10-15% na zahtev narucioca ili ukoliko okolnosti na terenu zahtevaju (sa pripremnim radovima, iskopom, isporukom građe', '2022-10-31 22:04:38', '2022-10-31 22:04:38'),
(18, 'Polaganje 1 PE/PVC cevi ili mikorcevne strukure do f 50 mm u iskopan rov, sa zaptivanjem cevi', '2022-10-31 22:04:52', '2022-10-31 22:04:52'),
(19, 'Polaganje 1 PE/ PVC cevi prečnika preko f50 do f 110 mm u iskopan rov, sa zaptivanjem cevi', '2022-10-31 22:05:01', '2022-10-31 22:05:01'),
(20, 'Uvlačenje 1 PE cevi do f 50 mm u slobodnu / zauzetu cev u kablovskoj kanalizaciji ili na prelazu', '2022-10-31 22:05:09', '2022-10-31 22:05:09'),
(21, 'Izrada prelaza ispod puteva i drugih površina bušenjem i ugradnjom jedne cevi do f 50 mm  sa pripremnim radovima, sa zaptivanjem cevi', '2022-10-31 22:05:25', '2022-10-31 22:05:25'),
(22, 'Izrada prelaza ispod puteva i drugih površina preko 12m bušenjem navođenom glavom sa ili bez isporuke cevi do f 50 mm sa pripremnim radovima, sa zaptivanjem cevi', '2022-10-31 22:05:36', '2022-10-31 22:05:36'),
(23, 'Ugradnja samostojećeg izvodno-razvodnog ormana ili ODO (IRO ili univerzalnog ormana od PE sa isporukom i ugradnjom betonskog postolja).', '2022-10-31 22:06:12', '2022-10-31 22:06:12'),
(24, 'Ugradnja betonskog komplet izvodnog/razvodnog stuba u zemlji III/IV kategorije (sa montažom nastupnih klinova/papuča, nastupne daske, nosača kablovske glave,montaža razvodnog nosača za stub P', '2022-10-31 22:06:22', '2022-10-31 22:06:22'),
(25, 'Izrada uvoda od 1 cevi do f 50 mm u zid od betona debljine do d=25 cm , sa probijanjem i popravkom zida', '2022-10-31 22:06:54', '2022-10-31 22:06:54'),
(26, 'Izrada uvoda od 1 cevi do f 50 mm u zid od betona debljine preko 25 cm do d=50 cm , sa probijanjem i popravkom zida', '2022-10-31 22:07:04', '2022-10-31 22:07:04'),
(27, 'Bušenje rupa u zidu od opeke sa opravkom, debljine preko 25 cm do 50 cm', '2022-10-31 22:07:22', '2022-10-31 22:07:22'),
(28, 'Bušenje rupa u zidu od betona ili probijanje međuspratne ploče sa opravkom, debljine preko 25 cm do 50 cm', '2022-10-31 22:07:39', '2022-10-31 22:07:39'),
(29, 'Polaganje PVC trake sa metalnim elementom za detekciju trase u iskopani rov (sa spajanjem trake)', '2022-10-31 22:07:59', '2022-10-31 22:07:59'),
(30, 'Uvlačenje ili uduvavanje 1 mikrocevi u zauzetu cev položenu u rov ili TTK', '2022-10-31 22:08:07', '2022-10-31 22:08:07'),
(31, 'Montaža spojnica i čepova za zaptivanje mikrocevi', '2022-10-31 22:08:19', '2022-10-31 22:08:19'),
(32, 'Montaža rasklopive spojnice ili rasklopive cevi za PE cev do fi 50mm', '2022-10-31 22:08:38', '2022-10-31 22:08:38'),
(34, 'Utovar i odvoz viška zemlje i ostalog materijala', '2022-10-31 22:09:34', '2022-10-31 22:09:34'),
(35, 'Isporuka i montaža prefabrikovanog betonskog postolja za OD orman (ODO) ili IR orman (IRO).', '2022-10-31 22:09:41', '2022-10-31 22:09:41'),
(36, 'Montaža ormana na zid ili stub', '2022-10-31 22:13:01', '2022-10-31 22:13:01'),
(37, 'Montaža završne optičke kutije ili  optičke spratne kutije na zid ili stub', '2022-10-31 22:13:09', '2022-10-31 22:13:09'),
(38, 'Ugradnja terminalnog ZOK-a kod korisnika na zid', '2022-10-31 22:13:19', '2022-10-31 22:13:19'),
(39, 'Polaganje i učvršćivanje metalnih instalacionih kanala sa obeležavanje linije i probijanjem rupa,', '2022-10-31 22:14:13', '2022-10-31 22:14:13'),
(40, 'Polaganje optičkog kabla, optičkog kabla u rebrastoj cevi ili optičkog kabla u mikrocevi po zidu sa šelnovanjem ili kanalicama', '2022-10-31 22:14:39', '2022-10-31 22:14:39'),
(41, 'Polaganje optičkog kabla, kabla u rebrastoj cevi ili optičkog kabla u mikorcevi po zidu sa šelnovanjem ili sa postavljanjem kanalica, na visini iznad 5m', '2022-10-31 22:14:54', '2022-10-31 22:14:54'),
(42, 'Polaganje optičkog kabla, kabla u rebrastoj cevi ili optičkog kabla u mikorcevi po kablovskom regalu, tehničkom kanalu, tt galeriji, duplom podu i spuštenom plafonu u unutrašnjosti objekta na', '2022-10-31 22:15:05', '2022-10-31 22:15:05'),
(43, 'Uvlačenje/polaganje optičkog kabla ili instalacionog optičkog kabla u postojeće cevi, pripremljene kanale, rebrasto crevo ili mikrocev.', '2022-10-31 22:15:20', '2022-10-31 22:15:20'),
(44, 'Postavljanje samonosivog optičkog kabla sa ugradnjom potrebnog materijala za vešanje i zatezanje', '2022-10-31 22:15:30', '2022-10-31 22:15:30'),
(45, 'Ugradnja nosača spojnice na stubu sa montažom spojnice', '2022-10-31 22:15:39', '2022-10-31 22:15:39'),
(46, 'Ugradnja nosača spojnice na stubu sa montažom spojnice', '2022-10-31 22:16:10', '2022-10-31 22:16:10'),
(47, 'Ugradnja konzole za OK', '2022-10-31 22:16:20', '2022-10-31 22:16:20'),
(48, 'Ugradnja nosača spojnice u TK oknu sa pričvršćenjem spojnice', '2022-10-31 22:16:28', '2022-10-31 22:16:28'),
(49, 'Sanacija  neprohodne cevi (pronalaženje mesta smetnji, priprema nove radne rupe, montaža aparature i materijala ….)', '2022-10-31 22:16:37', '2022-10-31 22:16:37'),
(50, 'Uvlačenje ili uduvavanje optičkog kabla u slobodnu  cev položenu u rov', '2022-10-31 22:16:46', '2022-10-31 22:16:46'),
(51, 'Uvlačenje optičkog kabla u cev položenu u kablovsku kanalizaciju (sa formiranjem rezerve)', '2022-10-31 22:16:56', '2022-10-31 22:16:56'),
(52, 'Uvlačenje ili uduvavanje optičkog kabla u  zauzetu cev položenu u rov', '2022-10-31 22:17:04', '2022-10-31 22:17:04'),
(53, 'Uvlačenje optičkog kabla u zauzetu cev položenu u kablovsku kanalizaciju (sa formiranjem rezerve)', '2022-10-31 22:17:13', '2022-10-31 22:17:13'),
(54, 'Obeležavanje optičkog kabla sa isporukom pločice (kartice)', '2022-10-31 22:17:23', '2022-10-31 22:17:23'),
(55, 'Obrada kraja optičkog kabla kapaciteta do 6 vlakana zbog izrade nastavka ili završavanja kabla na optičkom razdelniku (ZOK-u), obračun po kraju kabla', '2022-10-31 22:17:44', '2022-10-31 22:17:44'),
(56, 'Obrada kraja optičkog kabla kapaciteta preko 6 vlakana zbog izrade nastavka ili završavanja kabla na optičkom razdelniku (ZOK-u), obračun po kraju kabla', '2022-10-31 22:17:52', '2022-10-31 22:17:52'),
(57, 'Izrada spoja na optičkom vlaknu a u nastavku, ZOK-u i na optičkom razdelniku sa proverom slabljenja spoja, obračun po spoju', '2022-10-31 22:18:06', '2022-10-31 22:18:06'),
(58, 'Obrada kraja instalacionog optičkog kabla kapaciteta preko 12 do 48 vlakana zbog izrade nastavka ili završavanja kabla na optičkom razdelniku (ZOK-u), obračun po kraju kabla', '2022-10-31 22:18:17', '2022-10-31 22:18:17'),
(59, 'Ugradnja optičkog splitera u spojnicu, optičku kutiju, ODO orman, kabinet ili razdelnik', '2022-10-31 22:18:24', '2022-10-31 22:18:24'),
(60, 'Uvođenje konektorizovanog izlaza iz splitera na odgovarajući adapter u optičkoj kutiji, ODO ormanu ili razdelniku - obračun po broju uvedenih izlaza iz splitera', '2022-10-31 22:18:33', '2022-10-31 22:18:33'),
(61, 'Montaža \"PIGTAIL\"-a od 1,5 m i adaptera za konektor u kutiji ili razdelniku', '2022-10-31 22:18:40', '2022-10-31 22:18:40'),
(62, 'Električna merenja optičkog kabla na dobošu pre polaganja sa evidentiranjem izmerenih vrednosti po vlaknu', '2022-10-31 22:18:48', '2022-10-31 22:18:48'),
(63, 'Električna merenja optičkog kabla na položenoj kablovskoj dužini sa evidentiranjem izmerenih vrednosti po vlaknu', '2022-10-31 22:18:58', '2022-10-31 22:18:58'),
(64, 'Završna električna merenja na optičkom kablu na mernoj deonici po vlaknu', '2022-10-31 22:19:27', '2022-10-31 22:19:27'),
(65, 'Izrada protokola završnih opto-električnih merenja na optičkom kablu na mernoj deonici bez nastavaka, obračun po vlaknu', '2022-10-31 22:19:37', '2022-10-31 22:19:37'),
(66, 'Izrada protokola završnih opto-električnih merenja na optičkom kablu na mernoj deonici sa nastavcima, obračun po spoju na optičkom vlaknu u nastavku', '2022-10-31 22:19:44', '2022-10-31 22:19:44'),
(67, 'Pobijanje sonde u zemlju III/IV kategorije sa povezivanjem na uzemljivačku FeZn traku', '2023-01-19 08:25:00', '2023-01-19 08:25:00'),
(68, 'Polaganje uzemljivačke FeZn trake u rov sa povezivanjem na sabirnicu (bez iskopa)', '2023-01-19 08:26:18', '2023-01-19 08:26:18');

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

--
-- Table structure for table `worker_equipment`
--

CREATE TABLE IF NOT EXISTS `worker_equipment` (
  `user_id` bigint UNSIGNED NOT NULL,
  `equipment_id` bigint UNSIGNED DEFAULT NULL,
  `mont_equipment_id` bigint UNSIGNED DEFAULT NULL,
  `storage_id` tinyint UNSIGNED DEFAULT NULL,
  `quantity` double NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  KEY `worker_equipment_user_id_foreign` (`user_id`),
  KEY `worker_equipment_equipment_id_foreign` (`equipment_id`),
  KEY `worker_equipment_mont_equipment_id_foreign` (`mont_equipment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `worker_materials`
--

CREATE TABLE IF NOT EXISTS `worker_materials` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint UNSIGNED NOT NULL,
  `material_id` bigint UNSIGNED NOT NULL,
  `storage_id` tinyint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `worker_materials_storage_id_foreign` (`storage_id`),
  KEY `worker_materials_material_id_foreign` (`material_id`),
  KEY `worker_materials_user_id_foreign` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `worker_storage_logs`
--

CREATE TABLE IF NOT EXISTS `worker_storage_logs` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `equipment_id` bigint UNSIGNED DEFAULT NULL,
  `mont_equipment_id` bigint UNSIGNED DEFAULT NULL,
  `worker_id` bigint UNSIGNED DEFAULT NULL,
  `storage_id` bigint UNSIGNED DEFAULT NULL,
  `client_type` bigint UNSIGNED DEFAULT NULL,
  `client_id` bigint UNSIGNED DEFAULT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `worker_tools`
--

CREATE TABLE IF NOT EXISTS `worker_tools` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint UNSIGNED NOT NULL,
  `tool_id` bigint UNSIGNED NOT NULL,
  `storage_id` tinyint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `worker_tools_user_id_foreign` (`user_id`),
  KEY `worker_tools_tool_id_foreign` (`tool_id`),
  KEY `worker_tools_storage_id_foreign` (`storage_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `worker_uniforms`
--

CREATE TABLE IF NOT EXISTS `worker_uniforms` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint UNSIGNED NOT NULL,
  `uniform_id` bigint UNSIGNED NOT NULL,
  `storage_id` tinyint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `worker_uniforms_user_id_foreign` (`user_id`),
  KEY `worker_uniforms_uniform_id_foreign` (`uniform_id`),
  KEY `worker_uniforms_storage_id_foreign` (`storage_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `worker_vehicle_equipment`
--

CREATE TABLE IF NOT EXISTS `worker_vehicle_equipment` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint UNSIGNED NOT NULL,
  `equipment_id` bigint UNSIGNED NOT NULL,
  `storage_id` tinyint UNSIGNED NOT NULL,
  `quantity` decimal(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `worker_vehicle_equipment_user_id_foreign` (`user_id`),
  KEY `worker_vehicle_equipment_equipment_id_foreign` (`equipment_id`),
  KEY `worker_vehicle_equipment_storage_id_foreign` (`storage_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `work_categories`
--

CREATE TABLE IF NOT EXISTS `work_categories` (
  `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
  `category` char(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `work_categories`
--

INSERT INTO `work_categories` (`id`, `category`, `created_at`, `updated_at`) VALUES
(1, 'PRIPREMNI RADOVI', '2020-11-29 13:23:56', '2020-11-29 13:23:56'),
(2, 'ISKOP ROVA U TROTOARU (IV kategorija zemljišta)', '2020-11-29 13:24:12', '2020-11-29 13:24:12'),
(3, 'ISKOP ROVA U KOLOVOZU (IV kategorija zemljišta)', '2020-11-29 13:24:33', '2020-11-29 13:24:33'),
(4, 'ISKOP ROVA U ZEMLJANOJ POVRŠINI', '2020-11-29 13:24:51', '2020-11-29 13:24:51'),
(5, 'OSTALA RUŠENJA', '2020-11-29 13:25:11', '2020-11-29 13:25:11'),
(6, 'OPRAVKA RUŠENIH POVRŠINA', '2020-11-29 13:25:24', '2020-11-29 13:25:24'),
(7, 'POSEBNI GRADJEVINSKI RADOVI', '2020-11-29 13:25:43', '2020-11-29 13:25:43'),
(8, 'MINI ROV', '2020-11-29 13:28:01', '2020-11-29 13:28:01'),
(10, 'IZRADA OKANA', '2020-11-29 13:29:02', '2020-11-29 13:29:02'),
(11, 'POLAGANJE CEVI I IZRADA PRELAZA', '2020-11-29 13:29:16', '2020-11-29 13:29:16'),
(12, 'POLAGANJE BAKARNIH KABLOVA', '2020-11-29 13:29:30', '2020-11-29 13:29:30'),
(13, 'IZRADA NASTAVAKA NA BAKARNIM KABLOVIMA', '2020-11-29 13:29:42', '2020-11-29 13:29:42'),
(14, 'MONTAŽNI RADOVI NA BAKARNOJ PRISTUPNOJ MREŽI', '2020-11-29 13:29:53', '2020-11-29 13:29:53'),
(15, 'IZRADA IZVODA/PODIZVODA/UGRADNJA STUBOVA', '2020-11-29 13:30:04', '2020-11-29 13:30:04'),
(16, 'JTG', '2020-11-29 13:30:19', '2020-11-29 13:30:19'),
(17, 'IZRADA UZEMLJENJA', '2020-11-29 13:30:36', '2020-11-29 13:30:36'),
(18, 'MERENJA NA BAKARNOJ MREŽI', '2020-11-29 13:30:52', '2020-11-29 13:30:52'),
(19, 'POLAGANJE OPTIČKIH KABLOVA I PE CEVI I MIKROCEVI', '2020-11-29 13:31:05', '2020-11-29 13:31:05'),
(20, 'MONTAŽNI RADOVI NA OPTIČKIM KABLOVIMA', '2020-11-29 13:31:17', '2020-11-29 13:31:17'),
(21, 'OPTO ELEKTRIČNA MERENJA', '2020-11-29 13:31:29', '2020-11-29 13:31:29'),
(22, 'IZRADA INSTALACIJA', '2020-11-29 13:31:41', '2020-11-29 13:31:41'),
(23, 'STRUKTURNO KABLIRANJE', '2020-11-29 13:31:52', '2020-11-29 13:31:52'),
(24, 'OSTALI TROŠKOVI', '2020-11-29 13:32:18', '2020-11-29 13:32:18'),
(25, 'USLUGE DRUGIH', '2020-11-29 13:32:39', '2020-11-29 13:32:39'),
(26, 'MATERIJAL KOJI ISPORUČUJE IZVOĐAČ', '2020-12-14 08:50:09', '2020-12-14 08:50:09');

--
-- Constraints for dumped tables
--

--
-- Constraints for table `change_history`
--
ALTER TABLE `change_history`
  ADD CONSTRAINT `change_history_id_bakar_klijent_foreign` FOREIGN KEY (`id_bakar_klijent`) REFERENCES `klijenti_bakar` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `change_history_id_construction_site_foreign` FOREIGN KEY (`id_construction_site`) REFERENCES `kir` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `change_history_id_huawei_foreign` FOREIGN KEY (`id_huawei`) REFERENCES `huawei` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `change_history_id_klijent_foreign` FOREIGN KEY (`id_klijent`) REFERENCES `klijent` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `change_history_id_opticki_klijent_foreign` FOREIGN KEY (`id_opticki_klijent`) REFERENCES `klijenti_optika` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `change_history_id_supernova_klijent_foreign` FOREIGN KEY (`id_supernova_klijent`) REFERENCES `klijenti_supernova` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `change_history_id_user_foreign` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `cities`
--
ALTER TABLE `cities`
  ADD CONSTRAINT `cities_id_state_foreign` FOREIGN KEY (`id_state`) REFERENCES `states` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `construction_comments`
--
ALTER TABLE `construction_comments`
  ADD CONSTRAINT `construction_comments_id_construction_site_foreign` FOREIGN KEY (`id_construction_site`) REFERENCES `kir` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `construction_comments_id_user_foreign` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `construction_images`
--
ALTER TABLE `construction_images`
  ADD CONSTRAINT `construction_images_id_construction_site_foreign` FOREIGN KEY (`id_construction_site`) REFERENCES `kir` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `construction_images_image_type_foreign` FOREIGN KEY (`image_type`) REFERENCES `image_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `construction_prices`
--
ALTER TABLE `construction_prices`
  ADD CONSTRAINT `construction_prices_id_area_foreign` FOREIGN KEY (`id_area`) REFERENCES `areas` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `construction_prices_id_construction_work_foreign` FOREIGN KEY (`id_construction_work`) REFERENCES `construction_works` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `construction_prices_id_currency_foreign` FOREIGN KEY (`id_currency`) REFERENCES `currency` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `construction_prices_id_equipment_foreign` FOREIGN KEY (`id_equipment`) REFERENCES `equipment` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `construction_sites`
--
ALTER TABLE `construction_sites`
  ADD CONSTRAINT `construction_sites_construction_manager_foreign` FOREIGN KEY (`construction_manager`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `construction_sites_id_area_foreign` FOREIGN KEY (`id_area`) REFERENCES `areas` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `construction_sites_id_city_foreign` FOREIGN KEY (`id_city`) REFERENCES `cities` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `construction_sites_id_contractor_foreign` FOREIGN KEY (`id_contractor`) REFERENCES `contractors` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `construction_sites_id_currency_foreign` FOREIGN KEY (`id_currency`) REFERENCES `currency` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `construction_sites_id_state_foreign` FOREIGN KEY (`id_state`) REFERENCES `states` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `construction_sites_id_status_foreign` FOREIGN KEY (`id_status`) REFERENCES `construction_status` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `construction_sites_id_user_foreign` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `construction_works`
--
ALTER TABLE `construction_works`
  ADD CONSTRAINT `construction_works_id_category_foreign` FOREIGN KEY (`id_category`) REFERENCES `work_categories` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `construction_works_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `const_equipment_delivery`
--
ALTER TABLE `const_equipment_delivery`
  ADD CONSTRAINT `const_equipment_delivery_delivery_id_foreign` FOREIGN KEY (`delivery_id`) REFERENCES `const_delivery_notes` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `const_equipment_delivery_equipment_id_foreign` FOREIGN KEY (`equipment_id`) REFERENCES `equipment` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `demands`
--
ALTER TABLE `demands`
  ADD CONSTRAINT `demands_status_foreign` FOREIGN KEY (`status`) REFERENCES `demand_statuses` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `demand_comments`
--
ALTER TABLE `demand_comments`
  ADD CONSTRAINT `demand_comments_demand_id_foreign` FOREIGN KEY (`demand_id`) REFERENCES `demands` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `demand_devices`
--
ALTER TABLE `demand_devices`
  ADD CONSTRAINT `demand_devices_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `demand_devices_demand_id_foreign` FOREIGN KEY (`demand_id`) REFERENCES `demands` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `demand_devices_device_id_foreign` FOREIGN KEY (`device_id`) REFERENCES `uredjaji` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `demand_equipment`
--
ALTER TABLE `demand_equipment`
  ADD CONSTRAINT `demand_equipment_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `demand_equipment_demand_id_foreign` FOREIGN KEY (`demand_id`) REFERENCES `demands` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `demand_equipment_equipment_id_foreign` FOREIGN KEY (`equipment_id`) REFERENCES `oprema` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `de_change_history`
--
ALTER TABLE `de_change_history`
  ADD CONSTRAINT `de_change_history_id_site_foreign` FOREIGN KEY (`id_site`) REFERENCES `de_construction_sites` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `de_comments`
--
ALTER TABLE `de_comments`
  ADD CONSTRAINT `de_comments_id_site_foreign` FOREIGN KEY (`id_site`) REFERENCES `de_construction_sites` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `de_comments_id_user_foreign` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `de_images`
--
ALTER TABLE `de_images`
  ADD CONSTRAINT `de_images_id_site_foreign` FOREIGN KEY (`id_site`) REFERENCES `de_construction_sites` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `de_site_work`
--
ALTER TABLE `de_site_work`
  ADD CONSTRAINT `de_site_work_site_id_foreign` FOREIGN KEY (`site_id`) REFERENCES `de_construction_sites` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `de_site_work_work_id_foreign` FOREIGN KEY (`work_id`) REFERENCES `de_works` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `de_works`
--
ALTER TABLE `de_works`
  ADD CONSTRAINT `de_works_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`);

--
-- Constraints for table `doc_works`
--
ALTER TABLE `doc_works`
  ADD CONSTRAINT `doc_works_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `equipment`
--
ALTER TABLE `equipment`
  ADD CONSTRAINT `equipment_id_category_foreign` FOREIGN KEY (`id_category`) REFERENCES `equipment_categories` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `equipment_type_foreign` FOREIGN KEY (`type`) REFERENCES `equipment_types` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `files`
--
ALTER TABLE `files`
  ADD CONSTRAINT `files_copper_client_id_foreign` FOREIGN KEY (`copper_client_id`) REFERENCES `klijenti_bakar` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `files_id_construction_site_foreign` FOREIGN KEY (`id_construction_site`) REFERENCES `kir` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `files_id_huawei_foreign` FOREIGN KEY (`id_huawei`) REFERENCES `huawei` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `files_msat_client_id_foreign` FOREIGN KEY (`msat_client_id`) REFERENCES `klijent` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `files_optic_client_id_foreign` FOREIGN KEY (`optic_client_id`) REFERENCES `klijenti_optika` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `files_supernova_client_id_foreign` FOREIGN KEY (`supernova_client_id`) REFERENCES `klijenti_supernova` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `fobos`
--
ALTER TABLE `fobos`
  ADD CONSTRAINT `fobos_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `fobos_statuses` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `fobos_comments`
--
ALTER TABLE `fobos_comments`
  ADD CONSTRAINT `fobos_comments_fobos_copper_id_foreign` FOREIGN KEY (`fobos_copper_id`) REFERENCES `fobos_copper` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `fobos_comments_fobos_id_foreign` FOREIGN KEY (`fobos_id`) REFERENCES `fobos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `fobos_comments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `fobos_copper`
--
ALTER TABLE `fobos_copper`
  ADD CONSTRAINT `fobos_copper_campain_box_foreign` FOREIGN KEY (`campain_box`) REFERENCES `campains` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `fobos_copper_postpaid_tariff_box_foreign` FOREIGN KEY (`postpaid_tariff_box`) REFERENCES `postpaid_tariffs` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `fobos_copper_seller_id_foreign` FOREIGN KEY (`seller_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `fobos_copper_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `fobos_statuses` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `fobos_rune`
--
ALTER TABLE `fobos_rune`
  ADD CONSTRAINT `fobos_rune_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `fobos_statuses` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `fobos_rune_comments`
--
ALTER TABLE `fobos_rune_comments`
  ADD CONSTRAINT `fobos_rune_comments_fobos_id_foreign` FOREIGN KEY (`fobos_id`) REFERENCES `fobos_rune` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `huawei`
--
ALTER TABLE `huawei`
  ADD CONSTRAINT `huawei_construction_manager_foreign` FOREIGN KEY (`construction_manager`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `huawei_id_area_foreign` FOREIGN KEY (`id_area`) REFERENCES `areas` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `huawei_id_city_foreign` FOREIGN KEY (`id_city`) REFERENCES `cities` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `huawei_id_state_foreign` FOREIGN KEY (`id_state`) REFERENCES `states` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `huawei_id_status_access_foreign` FOREIGN KEY (`id_status_access`) REFERENCES `huawei_access_statuses` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `huawei_id_status_final_foreign` FOREIGN KEY (`id_status_final`) REFERENCES `hw_final_statuses` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `huawei_id_status_splicing_foreign` FOREIGN KEY (`id_status_splicing`) REFERENCES `huawei_access_statuses` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `huawei_id_status_vertical_foreign` FOREIGN KEY (`id_status_vertical`) REFERENCES `huawei_vertical_statuses` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `huawei_id_user_access_foreign` FOREIGN KEY (`id_user_access`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `huawei_id_user_splicing_foreign` FOREIGN KEY (`id_user_splicing`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `huawei_id_user_vertical_foreign` FOREIGN KEY (`id_user_vertical`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `huawei_project_manager_foreign` FOREIGN KEY (`project_manager`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `huawei_comments`
--
ALTER TABLE `huawei_comments`
  ADD CONSTRAINT `huawei_comments_id_site_foreign` FOREIGN KEY (`id_site`) REFERENCES `huawei` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `huawei_comments_id_user_foreign` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `huawei_equipment`
--
ALTER TABLE `huawei_equipment`
  ADD CONSTRAINT `huawei_equipment_id_equipment_foreign` FOREIGN KEY (`id_equipment`) REFERENCES `equipment` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `huawei_equipment_id_site_foreign` FOREIGN KEY (`id_site`) REFERENCES `huawei` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `hw_access_works`
--
ALTER TABLE `hw_access_works`
  ADD CONSTRAINT `hw_access_works_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `hw_work_categories` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `hw_access_works_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `hw_images`
--
ALTER TABLE `hw_images`
  ADD CONSTRAINT `hw_images_id_site_foreign` FOREIGN KEY (`id_site`) REFERENCES `huawei` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `hw_images_image_type_foreign` FOREIGN KEY (`image_type`) REFERENCES `image_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `hw_predicted_works`
--
ALTER TABLE `hw_predicted_works`
  ADD CONSTRAINT `hw_predicted_works_access_work_id_foreign` FOREIGN KEY (`access_work_id`) REFERENCES `hw_access_works` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `hw_predicted_works_doc_work_foreign` FOREIGN KEY (`doc_work`) REFERENCES `doc_works` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `hw_predicted_works_site_id_foreign` FOREIGN KEY (`site_id`) REFERENCES `huawei` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `hw_predicted_works_vertical_work_id_foreign` FOREIGN KEY (`vertical_work_id`) REFERENCES `hw_vertical_works` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `hw_site_equipment`
--
ALTER TABLE `hw_site_equipment`
  ADD CONSTRAINT `hw_site_equipment_id_equipment_foreign` FOREIGN KEY (`id_equipment`) REFERENCES `equipment` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `hw_site_equipment_id_site_foreign` FOREIGN KEY (`id_site`) REFERENCES `huawei` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `hw_site_work`
--
ALTER TABLE `hw_site_work`
  ADD CONSTRAINT `hw_site_work_access_work_id_foreign` FOREIGN KEY (`access_work_id`) REFERENCES `hw_access_works` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `hw_site_work_doc_work_foreign` FOREIGN KEY (`doc_work`) REFERENCES `doc_works` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `hw_site_work_site_id_foreign` FOREIGN KEY (`site_id`) REFERENCES `huawei` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `hw_site_work_vertical_work_id_foreign` FOREIGN KEY (`vertical_work_id`) REFERENCES `hw_vertical_works` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `hw_vertical_works`
--
ALTER TABLE `hw_vertical_works`
  ADD CONSTRAINT `hw_vertical_works_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `images`
--
ALTER TABLE `images`
  ADD CONSTRAINT `images_ibfk_1` FOREIGN KEY (`id_klijent`) REFERENCES `klijent` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `images_ibfk_2` FOREIGN KEY (`id_opticki_klijent`) REFERENCES `klijenti_optika` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `images_id_bakar_klijent_foreign` FOREIGN KEY (`id_bakar_klijent`) REFERENCES `klijenti_bakar` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `images_documents`
--
ALTER TABLE `images_documents`
  ADD CONSTRAINT `images_documents_ibfk_1` FOREIGN KEY (`id_klijent`) REFERENCES `klijent` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `images_documents_ibfk_2` FOREIGN KEY (`id_opticki_klijent`) REFERENCES `klijenti_optika` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `images_documents_id_bakar_klijent_foreign` FOREIGN KEY (`id_bakar_klijent`) REFERENCES `klijenti_bakar` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `images_documents_id_supernova_klijent_foreign` FOREIGN KEY (`id_supernova_klijent`) REFERENCES `klijenti_supernova` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `kir`
--
ALTER TABLE `kir`
  ADD CONSTRAINT `kir_construction_manager_foreign` FOREIGN KEY (`construction_manager`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_id_area_foreign` FOREIGN KEY (`id_area`) REFERENCES `areas` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_id_city_foreign` FOREIGN KEY (`id_city`) REFERENCES `cities` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_id_state_foreign` FOREIGN KEY (`id_state`) REFERENCES `states` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_id_status_access_foreign` FOREIGN KEY (`id_status_access`) REFERENCES `huawei_access_statuses` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_id_status_final_foreign` FOREIGN KEY (`id_status_final`) REFERENCES `hw_final_statuses` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_id_status_splicing_foreign` FOREIGN KEY (`id_status_splicing`) REFERENCES `huawei_access_statuses` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_id_status_vertical_foreign` FOREIGN KEY (`id_status_vertical`) REFERENCES `huawei_vertical_statuses` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_id_user_access_foreign` FOREIGN KEY (`id_user_access`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_id_user_splicing_foreign` FOREIGN KEY (`id_user_splicing`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_id_user_vertical_foreign` FOREIGN KEY (`id_user_vertical`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_project_manager_foreign` FOREIGN KEY (`project_manager`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `kir_access_works`
--
ALTER TABLE `kir_access_works`
  ADD CONSTRAINT `kir_access_works_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `hw_work_categories` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_access_works_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `kir_required_equipment`
--
ALTER TABLE `kir_required_equipment`
  ADD CONSTRAINT `kir_required_equipment_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_required_equipment_equipment_id_foreign` FOREIGN KEY (`equipment_id`) REFERENCES `equipment` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kir_required_equipment_site_id_foreign` FOREIGN KEY (`site_id`) REFERENCES `kir` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `kir_vertical_works`
--
ALTER TABLE `kir_vertical_works`
  ADD CONSTRAINT `kir_vertical_works_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `klijent`
--
ALTER TABLE `klijent`
  ADD CONSTRAINT `klijent_helper_foreign` FOREIGN KEY (`helper`) REFERENCES `pomocnici` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijent_ibfk_5` FOREIGN KEY (`id_status`) REFERENCES `statusi` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijent_ibfk_6` FOREIGN KEY (`id_status_intervencije`) REFERENCES `statusi_intervencije` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijent_ibfk_7` FOREIGN KEY (`id_razlog_reklamacije`) REFERENCES `razlozi_intervencije` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijent_ibfk_8` FOREIGN KEY (`id_klijent_prodaja`) REFERENCES `klijenti_prodaja` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijent_ibfk_9` FOREIGN KEY (`id_tip_montaze`) REFERENCES `tip_montaze` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `klijenti_bakar`
--
ALTER TABLE `klijenti_bakar`
  ADD CONSTRAINT `klijenti_bakar_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_bakar_helper_foreign` FOREIGN KEY (`helper`) REFERENCES `pomocnici` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_bakar_id_klijent_prodaja_foreign` FOREIGN KEY (`id_klijent_prodaja`) REFERENCES `klijenti_prodaja` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_bakar_id_status_foreign` FOREIGN KEY (`id_status`) REFERENCES `statusi` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_bakar_id_status_intervencije_foreign` FOREIGN KEY (`id_status_intervencije`) REFERENCES `statusi_intervencije` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_bakar_id_tip_montaze_foreign` FOREIGN KEY (`id_tip_montaze`) REFERENCES `tip_montaze` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_bakar_id_user_foreign` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_bakar_id_user_reklamacije_foreign` FOREIGN KEY (`id_user_reklamacije`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_bakar_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `klijenti_optika`
--
ALTER TABLE `klijenti_optika`
  ADD CONSTRAINT `klijenti_optika_helper_foreign` FOREIGN KEY (`helper`) REFERENCES `pomocnici` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_optika_ibfk_1` FOREIGN KEY (`id_status`) REFERENCES `statusi` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_optika_ibfk_2` FOREIGN KEY (`id_status_intervencije`) REFERENCES `statusi_intervencije` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_optika_ibfk_3` FOREIGN KEY (`id_tip_montaze`) REFERENCES `tip_montaze` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_optika_ibfk_4` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_optika_ibfk_5` FOREIGN KEY (`id_user_reklamacije`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_optika_id_klijent_prodaja_foreign` FOREIGN KEY (`id_klijent_prodaja`) REFERENCES `klijenti_prodaja` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_optika_origin_id_foreign` FOREIGN KEY (`origin_id`) REFERENCES `origin` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_optika_report_id_foreign` FOREIGN KEY (`report_id`) REFERENCES `report_marks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `klijenti_prodaja`
--
ALTER TABLE `klijenti_prodaja`
  ADD CONSTRAINT `klijenti_prodaja_fobos_copper_id_foreign` FOREIGN KEY (`fobos_copper_id`) REFERENCES `fobos_copper` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_prodaja_fobos_id_foreign` FOREIGN KEY (`fobos_id`) REFERENCES `fobos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_prodaja_ibfk_1` FOREIGN KEY (`id_paket`) REFERENCES `paketi` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_prodaja_ibfk_2` FOREIGN KEY (`id_vrsta_paketa`) REFERENCES `vrste_paketa` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_prodaja_ibfk_3` FOREIGN KEY (`id_nov_servis`) REFERENCES `nov_servis` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_prodaja_ibfk_4` FOREIGN KEY (`id_prodavac`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_prodaja_ibfk_5` FOREIGN KEY (`id_tip_montaze`) REFERENCES `tip_montaze` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `klijenti_supernova`
--
ALTER TABLE `klijenti_supernova`
  ADD CONSTRAINT `klijenti_supernova_helper_foreign` FOREIGN KEY (`helper`) REFERENCES `pomocnici` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_supernova_ibfk_1` FOREIGN KEY (`id_klijent_prodaja`) REFERENCES `klijenti_prodaja` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_supernova_id_status_foreign` FOREIGN KEY (`id_status`) REFERENCES `statusi` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_supernova_id_user_foreign` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `klijenti_supernova_id_user_reklamacije_foreign` FOREIGN KEY (`id_user_reklamacije`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `magacin`
--
ALTER TABLE `magacin`
  ADD CONSTRAINT `magacin_ibfk_1` FOREIGN KEY (`id_uredjaj`) REFERENCES `uredjaji` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `magacin_ibfk_2` FOREIGN KEY (`id_mag`) REFERENCES `magz` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `magacin_ibfk_3` FOREIGN KEY (`id_magacioner`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `magacin_id_razlog_vracanja_foreign` FOREIGN KEY (`id_razlog_vracanja`) REFERENCES `razlozi_vracanja` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `magz`
--
ALTER TABLE `magz`
  ADD CONSTRAINT `type_foreign` FOREIGN KEY (`type_id`) REFERENCES `storage_types` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `material_dispatch_note`
--
ALTER TABLE `material_dispatch_note`
  ADD CONSTRAINT `material_dispatch_note_dispatch_note_id_foreign` FOREIGN KEY (`dispatch_note_id`) REFERENCES `mat_dispatch_notes` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `material_dispatch_note_material_id_foreign` FOREIGN KEY (`material_id`) REFERENCES `materials` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `montirani_uredjaji`
--
ALTER TABLE `montirani_uredjaji`
  ADD CONSTRAINT `montirani_uredjaji_ibfk_1` FOREIGN KEY (`id_uredjaj`) REFERENCES `uredjaji` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `montirani_uredjaji_ibfk_2` FOREIGN KEY (`id_klijent`) REFERENCES `klijent` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `montirani_uredjaji_ibfk_3` FOREIGN KEY (`id_monter`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `montirani_uredjaji_id_bakar_klijent_foreign` FOREIGN KEY (`id_bakar_klijent`) REFERENCES `klijenti_bakar` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `montirani_uredjaji_id_opticki_klijent_foreign` FOREIGN KEY (`id_opticki_klijent`) REFERENCES `klijenti_optika` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `montirani_uredjaji_id_rune_foreign` FOREIGN KEY (`id_rune`) REFERENCES `rune_optics` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `montirani_uredjaji_id_supernova_klijent_foreign` FOREIGN KEY (`id_supernova_klijent`) REFERENCES `klijenti_supernova` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `napomene`
--
ALTER TABLE `napomene`
  ADD CONSTRAINT `napomene_ibfk_1` FOREIGN KEY (`id_klijent`) REFERENCES `klijent` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `napomene_ibfk_2` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `napomene_ibfk_3` FOREIGN KEY (`id_opticki_klijent`) REFERENCES `klijenti_optika` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `napomene_id_bakar_klijent_foreign` FOREIGN KEY (`id_bakar_klijent`) REFERENCES `klijenti_bakar` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `napomene_id_supernova_klijent_foreign` FOREIGN KEY (`id_supernova_klijent`) REFERENCES `klijenti_supernova` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `oprema`
--
ALTER TABLE `oprema`
  ADD CONSTRAINT `oprema_id_tip_opreme_foreign` FOREIGN KEY (`id_tip_opreme`) REFERENCES `tip_opreme` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `oprema_klijent`
--
ALTER TABLE `oprema_klijent`
  ADD CONSTRAINT `oprema_klijent_id_bakar_klijent_foreign` FOREIGN KEY (`id_bakar_klijent`) REFERENCES `klijenti_bakar` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `oprema_klijent_id_klijent_foreign` FOREIGN KEY (`id_klijent`) REFERENCES `klijent` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `oprema_klijent_id_monter_foreign` FOREIGN KEY (`id_monter`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `oprema_klijent_id_oprema_foreign` FOREIGN KEY (`id_oprema`) REFERENCES `oprema` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `oprema_klijent_id_opticki_klijent_foreign` FOREIGN KEY (`id_opticki_klijent`) REFERENCES `klijenti_optika` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `oprema_klijent_id_rune_foreign` FOREIGN KEY (`id_rune`) REFERENCES `rune_optics` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `oprema_klijent_id_supernova_klijent_foreign` FOREIGN KEY (`id_supernova_klijent`) REFERENCES `klijenti_supernova` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `oprema_otpremnica`
--
ALTER TABLE `oprema_otpremnica`
  ADD CONSTRAINT `oprema_otpremnica_id_oprema_foreign` FOREIGN KEY (`id_oprema`) REFERENCES `oprema` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `oprema_otpremnica_id_otpremnica_foreign` FOREIGN KEY (`id_otpremnica`) REFERENCES `otpremnice` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `oprema_povratnica`
--
ALTER TABLE `oprema_povratnica`
  ADD CONSTRAINT `oprema_povratnica_id_oprema_foreign` FOREIGN KEY (`id_oprema`) REFERENCES `oprema` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `oprema_povratnica_id_povratnica_foreign` FOREIGN KEY (`id_povratnica`) REFERENCES `povratnice` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `oprema_povratnica_id_stanje_opreme_foreign` FOREIGN KEY (`id_stanje_opreme`) REFERENCES `stanje_uredjaja` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `oprema_revers`
--
ALTER TABLE `oprema_revers`
  ADD CONSTRAINT `oprema_revers_id_oprema_foreign` FOREIGN KEY (`id_oprema`) REFERENCES `oprema` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `oprema_revers_id_revers_foreign` FOREIGN KEY (`id_revers`) REFERENCES `revers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `otpremljena_roba`
--
ALTER TABLE `otpremljena_roba`
  ADD CONSTRAINT `otpremljena_roba_ibfk_1` FOREIGN KEY (`id_uredjaj`) REFERENCES `uredjaji` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `otpremljena_roba_ibfk_2` FOREIGN KEY (`id_otpremnice`) REFERENCES `otpremnice` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `otpremljena_roba_ibfk_3` FOREIGN KEY (`id_mag`) REFERENCES `magz` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `otpremnice`
--
ALTER TABLE `otpremnice`
  ADD CONSTRAINT `otpremnice_ibfk_1` FOREIGN KEY (`id_monter`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `otpremnice_ibfk_2` FOREIGN KEY (`id_magacioner`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `payments`
--
ALTER TABLE `payments`
  ADD CONSTRAINT `payments_id_construction_site_foreign` FOREIGN KEY (`id_construction_site`) REFERENCES `construction_sites` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `payments_id_currency_foreign` FOREIGN KEY (`id_currency`) REFERENCES `currency` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `pomocnici`
--
ALTER TABLE `pomocnici`
  ADD CONSTRAINT `pomocnici_ibfk_1` FOREIGN KEY (`id_ugovor`) REFERENCES `ugovori` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `pomocnici_ibfk_2` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `povratna_roba`
--
ALTER TABLE `povratna_roba`
  ADD CONSTRAINT `povratna_roba_id_povratnica_foreign` FOREIGN KEY (`id_povratnica`) REFERENCES `povratnice` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `povratna_roba_id_stanje_uredjaja_foreign` FOREIGN KEY (`id_stanje_uredjaja`) REFERENCES `statusi_uredjaja` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `povratna_roba_id_status_uredjaja_foreign` FOREIGN KEY (`id_status_uredjaja`) REFERENCES `statusi_uredjaja` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `povratna_roba_id_uredjaj_foreign` FOREIGN KEY (`id_uredjaj`) REFERENCES `uredjaji` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `prodavac`
--
ALTER TABLE `prodavac`
  ADD CONSTRAINT `prodavac_ibfk_1` FOREIGN KEY (`id_izvodjac_prodavac`) REFERENCES `izvodjac_prodavac` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `report_marks`
--
ALTER TABLE `report_marks`
  ADD CONSTRAINT `report_marks_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `report_marks_edited_by_foreign` FOREIGN KEY (`edited_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `required_equipment`
--
ALTER TABLE `required_equipment`
  ADD CONSTRAINT `required_equipment_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `required_equipment_equipment_id_foreign` FOREIGN KEY (`equipment_id`) REFERENCES `equipment` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `required_equipment_site_id_foreign` FOREIGN KEY (`site_id`) REFERENCES `huawei` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `revers`
--
ALTER TABLE `revers`
  ADD CONSTRAINT `revers_ibfk_1` FOREIGN KEY (`id_monter`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `revers_ibfk_2` FOREIGN KEY (`id_magacioner`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `revers_roba`
--
ALTER TABLE `revers_roba`
  ADD CONSTRAINT `revers_roba_ibfk_1` FOREIGN KEY (`id_uredjaj`) REFERENCES `uredjaji` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `revers_roba_ibfk_2` FOREIGN KEY (`id_revers`) REFERENCES `revers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `rune_comments`
--
ALTER TABLE `rune_comments`
  ADD CONSTRAINT `rune_comments_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `rune_optics` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `rune_comments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `rune_images`
--
ALTER TABLE `rune_images`
  ADD CONSTRAINT `rune_images_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `rune_optics` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `rune_optics`
--
ALTER TABLE `rune_optics`
  ADD CONSTRAINT `rune_optics_intervention_status_foreign` FOREIGN KEY (`intervention_status`) REFERENCES `statusi_intervencije` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `rune_optics_montage_type_foreign` FOREIGN KEY (`montage_type`) REFERENCES `tip_montaze` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `rune_optics_origin_foreign` FOREIGN KEY (`origin`) REFERENCES `origin` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `rune_optics_status_foreign` FOREIGN KEY (`status`) REFERENCES `statusi` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `salaries`
--
ALTER TABLE `salaries`
  ADD CONSTRAINT `salaries_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `site_equipment`
--
ALTER TABLE `site_equipment`
  ADD CONSTRAINT `site_equipment_id_construction_site_foreign` FOREIGN KEY (`id_construction_site`) REFERENCES `kir` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `site_equipment_id_equipment_foreign` FOREIGN KEY (`id_equipment`) REFERENCES `equipment` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `site_work`
--
ALTER TABLE `site_work`
  ADD CONSTRAINT `site_work_access_work_id_foreign` FOREIGN KEY (`access_work_id`) REFERENCES `kir_access_works` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `site_work_doc_work_foreign` FOREIGN KEY (`doc_work`) REFERENCES `doc_works` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `site_work_id_construction_site_foreign` FOREIGN KEY (`id_construction_site`) REFERENCES `kir` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `site_work_vertical_work_id_foreign` FOREIGN KEY (`vertical_work_id`) REFERENCES `kir_vertical_works` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `storage_equipment`
--
ALTER TABLE `storage_equipment`
  ADD CONSTRAINT `montage_foreign` FOREIGN KEY (`mont_equipment_id`) REFERENCES `oprema` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `storage_equipment_equipment_id_foreign` FOREIGN KEY (`equipment_id`) REFERENCES `equipment` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `storage_equipment_mag_id_foreign` FOREIGN KEY (`mag_id`) REFERENCES `magz` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `storage_logs`
--
ALTER TABLE `storage_logs`
  ADD CONSTRAINT `montage_log_foreign` FOREIGN KEY (`mont_equipment_id`) REFERENCES `oprema` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `storage_materials`
--
ALTER TABLE `storage_materials`
  ADD CONSTRAINT `storage_materials_material_id_foreign` FOREIGN KEY (`material_id`) REFERENCES `materials` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `storage_materials_storage_id_foreign` FOREIGN KEY (`storage_id`) REFERENCES `magz` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `storage_tools`
--
ALTER TABLE `storage_tools`
  ADD CONSTRAINT `storage_tools_storage_id_foreign` FOREIGN KEY (`storage_id`) REFERENCES `magz` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `storage_tools_tool_id_foreign` FOREIGN KEY (`tool_id`) REFERENCES `tools` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `storage_uniforms`
--
ALTER TABLE `storage_uniforms`
  ADD CONSTRAINT `storage_uniforms_storage_id_foreign` FOREIGN KEY (`storage_id`) REFERENCES `magz` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `storage_uniforms_uniform_id_foreign` FOREIGN KEY (`uniform_id`) REFERENCES `uniforms` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `storage_vehicle_equipment`
--
ALTER TABLE `storage_vehicle_equipment`
  ADD CONSTRAINT `storage_vehicle_equipment_equipment_id_foreign` FOREIGN KEY (`equipment_id`) REFERENCES `vehicle_equipment` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `storage_vehicle_equipment_storage_id_foreign` FOREIGN KEY (`storage_id`) REFERENCES `magz` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `team_prodavac`
--
ALTER TABLE `team_prodavac`
  ADD CONSTRAINT `team_prodavac_id_prodavac_foreign` FOREIGN KEY (`id_prodavac`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `team_prodavac_id_team_foreign` FOREIGN KEY (`id_team`) REFERENCES `teams` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `tickets`
--
ALTER TABLE `tickets`
  ADD CONSTRAINT `tickets_assigned_to_foreign` FOREIGN KEY (`assigned_to`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `tickets_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `tickets_resolved_by_foreign` FOREIGN KEY (`resolved_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `ticket_comments`
--
ALTER TABLE `ticket_comments`
  ADD CONSTRAINT `ticket_comments_ticket_id_foreign` FOREIGN KEY (`ticket_id`) REFERENCES `tickets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `tools`
--
ALTER TABLE `tools`
  ADD CONSTRAINT `tools_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `tool_types` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `tool_comments`
--
ALTER TABLE `tool_comments`
  ADD CONSTRAINT `tool_comments_id_tool_foreign` FOREIGN KEY (`id_tool`) REFERENCES `tools` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `tool_delivered_goods`
--
ALTER TABLE `tool_delivered_goods`
  ADD CONSTRAINT `tool_delivered_goods_delivery_note_foreign` FOREIGN KEY (`delivery_note`) REFERENCES `tool_delivery_notes` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `tool_images`
--
ALTER TABLE `tool_images`
  ADD CONSTRAINT `tool_images_id_tool_foreign` FOREIGN KEY (`id_tool`) REFERENCES `tools` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `tool_reverse_goods`
--
ALTER TABLE `tool_reverse_goods`
  ADD CONSTRAINT `tool_reverse_goods_device_id_foreign` FOREIGN KEY (`device_id`) REFERENCES `uredjaji` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `uniforms`
--
ALTER TABLE `uniforms`
  ADD CONSTRAINT `uniforms_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `uniform_types` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `uredjaji`
--
ALTER TABLE `uredjaji`
  ADD CONSTRAINT `uredjaji_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `device_categories` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `uredjaji_device_type_id_foreign` FOREIGN KEY (`device_type_id`) REFERENCES `device_types` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `uredjaji_origin_id_foreign` FOREIGN KEY (`origin_id`) REFERENCES `origin` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `vehicle_comments`
--
ALTER TABLE `vehicle_comments`
  ADD CONSTRAINT `vehicle_comments_vehicle_user_id_foreign` FOREIGN KEY (`vehicle_user_id`) REFERENCES `vehicle_user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `vehicle_images`
--
ALTER TABLE `vehicle_images`
  ADD CONSTRAINT `vehicle_images_vehicle_user_id_foreign` FOREIGN KEY (`vehicle_user_id`) REFERENCES `vehicle_user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `vehicle_user`
--
ALTER TABLE `vehicle_user`
  ADD CONSTRAINT `vehicle_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `vehicle_user_vehicle_id_foreign` FOREIGN KEY (`vehicle_id`) REFERENCES `vozila` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `videos`
--
ALTER TABLE `videos`
  ADD CONSTRAINT `videos_ibfk_1` FOREIGN KEY (`id_klijent`) REFERENCES `klijent` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `videos_ibfk_2` FOREIGN KEY (`id_opticki_klijent`) REFERENCES `klijenti_optika` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `videos_id_bakar_klijent_foreign` FOREIGN KEY (`id_bakar_klijent`) REFERENCES `klijenti_bakar` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `vozila`
--
ALTER TABLE `vozila`
  ADD CONSTRAINT `vozila_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `vozila_fuel_type_foreign` FOREIGN KEY (`fuel_type`) REFERENCES `fuel_types` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `vozila_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `vozila_owner_id_foreign` FOREIGN KEY (`owner_id`) REFERENCES `vehicle_owners` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `vozila_vehicle_type_foreign` FOREIGN KEY (`vehicle_type`) REFERENCES `vehicle_types` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `vraceni_uredjaji`
--
ALTER TABLE `vraceni_uredjaji`
  ADD CONSTRAINT `vraceni_uredjaji_id_bakar_klijent_foreign` FOREIGN KEY (`id_bakar_klijent`) REFERENCES `klijenti_bakar` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `vraceni_uredjaji_id_klijent_foreign` FOREIGN KEY (`id_klijent`) REFERENCES `klijent` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `vraceni_uredjaji_id_monter_foreign` FOREIGN KEY (`id_monter`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `vraceni_uredjaji_id_opticki_klijent_foreign` FOREIGN KEY (`id_opticki_klijent`) REFERENCES `klijenti_optika` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `vraceni_uredjaji_id_razlog_vracanja_foreign` FOREIGN KEY (`id_razlog_vracanja`) REFERENCES `razlozi_vracanja` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `vraceni_uredjaji_id_rune_foreign` FOREIGN KEY (`id_rune`) REFERENCES `rune_optics` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `vraceni_uredjaji_id_supernova_klijent_foreign` FOREIGN KEY (`id_supernova_klijent`) REFERENCES `klijenti_supernova` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `vraceni_uredjaji_id_uredjaj_foreign` FOREIGN KEY (`id_uredjaj`) REFERENCES `uredjaji` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `wf_project_task`
--
ALTER TABLE `wf_project_task`
  ADD CONSTRAINT `wf_project_task_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `wf_projects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `wf_project_task_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `wf_statuses` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `wf_project_task_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `wf_tasks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `wf_project_task_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `wf_task_images`
--
ALTER TABLE `wf_task_images`
  ADD CONSTRAINT `wf_task_images_project_task_id_foreign` FOREIGN KEY (`project_task_id`) REFERENCES `wf_task_work` (`project_task_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `wf_task_images_work_id_foreign` FOREIGN KEY (`work_id`) REFERENCES `wf_task_work` (`work_id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `wf_task_work`
--
ALTER TABLE `wf_task_work`
  ADD CONSTRAINT `wf_task_work_project_task_id_foreign` FOREIGN KEY (`project_task_id`) REFERENCES `wf_project_task` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `wf_task_work_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `wf_tasks` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `wf_task_work_work_id_foreign` FOREIGN KEY (`work_id`) REFERENCES `wf_works` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `worker_equipment`
--
ALTER TABLE `worker_equipment`
  ADD CONSTRAINT `worker_equipment_equipment_id_foreign` FOREIGN KEY (`equipment_id`) REFERENCES `equipment` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `worker_equipment_mont_equipment_id_foreign` FOREIGN KEY (`mont_equipment_id`) REFERENCES `oprema` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `worker_equipment_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `worker_materials`
--
ALTER TABLE `worker_materials`
  ADD CONSTRAINT `worker_materials_material_id_foreign` FOREIGN KEY (`material_id`) REFERENCES `materials` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `worker_materials_storage_id_foreign` FOREIGN KEY (`storage_id`) REFERENCES `magz` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `worker_materials_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `worker_tools`
--
ALTER TABLE `worker_tools`
  ADD CONSTRAINT `worker_tools_storage_id_foreign` FOREIGN KEY (`storage_id`) REFERENCES `magz` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `worker_tools_tool_id_foreign` FOREIGN KEY (`tool_id`) REFERENCES `tools` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `worker_tools_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `worker_uniforms`
--
ALTER TABLE `worker_uniforms`
  ADD CONSTRAINT `worker_uniforms_storage_id_foreign` FOREIGN KEY (`storage_id`) REFERENCES `magz` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `worker_uniforms_uniform_id_foreign` FOREIGN KEY (`uniform_id`) REFERENCES `uniforms` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `worker_uniforms_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `worker_vehicle_equipment`
--
ALTER TABLE `worker_vehicle_equipment`
  ADD CONSTRAINT `worker_vehicle_equipment_equipment_id_foreign` FOREIGN KEY (`equipment_id`) REFERENCES `vehicle_equipment` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `worker_vehicle_equipment_storage_id_foreign` FOREIGN KEY (`storage_id`) REFERENCES `magz` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `worker_vehicle_equipment_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE;
COMMIT;

