update backupdb local

This commit is contained in:
2025-06-05 19:07:20 +07:00
parent d294bb7876
commit 1a2ddb59d4

25
ckb.sql
View File

@@ -128,7 +128,7 @@ CREATE TABLE `menus` (
LOCK TABLES `menus` WRITE; LOCK TABLES `menus` WRITE;
/*!40000 ALTER TABLE `menus` DISABLE KEYS */; /*!40000 ALTER TABLE `menus` DISABLE KEYS */;
INSERT INTO `menus` VALUES (10,'Admin Area','adminarea','2023-08-13 11:21:38',NULL),(11,'Mekanik Area','mechanicarea','2023-08-13 11:21:38',NULL),(12,'Dashboard','dashboard','2023-08-13 11:21:38',NULL),(13,'Dealer','dealer.index','2023-08-13 11:21:38',NULL),(14,'Kategori','category.index','2023-08-13 11:21:38',NULL),(15,'Pekerjaan','work.index','2023-08-13 11:21:38',NULL),(16,'User','user.index','2023-08-13 11:21:38',NULL),(17,'Role & Privileges','roleprivileges.index','2023-08-13 11:21:38',NULL),(18,'Laporan Pekerjaan','report.transaction','2023-08-13 11:21:38',NULL),(19,'Laporan Performa SA','report.transaction_sa','2023-08-13 11:21:38',NULL),(20,'Laporan Performa Dealer','report.transaction_dealer','2023-08-13 11:21:38',NULL),(21,'Produk','products.index','2025-06-04 06:42:12','2025-06-04 06:42:12'),(22,'Kategori Produk','product_categories.index','2025-06-04 06:42:12','2025-06-04 06:42:12'),(23,'Kategori Produk','product-categories.index','2025-05-28 06:59:15','2025-05-28 06:59:15'),(24,'Mutasi Produk','mutations.index','2025-06-04 06:42:12','2025-06-04 06:42:12'),(25,'Stock Opname','opnames.index','2025-06-04 06:42:12','2025-06-04 06:42:12'); INSERT INTO `menus` VALUES (10,'Admin Area','adminarea','2023-08-13 11:21:38',NULL),(11,'Mekanik Area','mechanicarea','2023-08-13 11:21:38',NULL),(12,'Dashboard','dashboard','2023-08-13 11:21:38',NULL),(13,'Dealer','dealer.index','2023-08-13 11:21:38',NULL),(14,'Kategori','category.index','2023-08-13 11:21:38',NULL),(15,'Pekerjaan','work.index','2023-08-13 11:21:38',NULL),(16,'User','user.index','2023-08-13 11:21:38',NULL),(17,'Role & Privileges','roleprivileges.index','2023-08-13 11:21:38',NULL),(18,'Laporan Pekerjaan','report.transaction','2023-08-13 11:21:38',NULL),(19,'Laporan Performa SA','report.transaction_sa','2023-08-13 11:21:38',NULL),(20,'Laporan Performa Dealer','report.transaction_dealer','2023-08-13 11:21:38',NULL),(21,'Produk','products.index','2025-06-05 04:01:54','2025-06-05 04:01:54'),(22,'Kategori Produk','product_categories.index','2025-06-05 04:01:54','2025-06-05 04:01:54'),(23,'Kategori Produk','product-categories.index','2025-05-28 06:59:15','2025-05-28 06:59:15'),(24,'Mutasi Produk','mutations.index','2025-06-05 04:01:54','2025-06-05 04:01:54'),(25,'Stock Opname','opnames.index','2025-06-05 04:01:54','2025-06-05 04:01:54');
/*!40000 ALTER TABLE `menus` ENABLE KEYS */; /*!40000 ALTER TABLE `menus` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@@ -144,7 +144,7 @@ CREATE TABLE `migrations` (
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int NOT NULL, `batch` int NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
-- --
@@ -153,7 +153,7 @@ CREATE TABLE `migrations` (
LOCK TABLES `migrations` WRITE; LOCK TABLES `migrations` WRITE;
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */; /*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
INSERT INTO `migrations` VALUES (1,'2014_10_12_100000_create_password_resets_table',1),(2,'2019_08_19_000000_create_failed_jobs_table',1),(3,'2019_12_14_000001_create_personal_access_tokens_table',1),(4,'2022_05_20_100209_create_dealers_table',1),(5,'2022_05_20_100326_create_categories_table',1),(6,'2022_05_20_100335_create_works_table',1),(7,'2022_05_20_100340_create_users_table',1),(8,'2022_05_20_100410_create_transactions_table',1),(9,'2022_05_25_024641_update_works_table',2),(10,'2022_05_25_103839_update_categories_table',3),(13,'2022_05_25_144502_update_transaction_table',4),(18,'2022_05_29_211410_update_table_works_add_shortname_field',5),(20,'2022_05_29_211531_update_dealers_table_add_pic_field',6),(21,'2022_05_29_220642_update_transactions_table_add_status_column',7),(22,'2022_05_31_003725_update_transaction_table_add_dealer_id',8),(23,'2022_06_23_215115_add_deleted_at_at_users_table',9),(24,'2022_06_23_215243_add_deleted_at_at_dealers_table',9),(25,'2022_06_23_215321_add_deleted_at_at_categories_table',9),(26,'2022_06_23_215341_add_deleted_at_at_works_table',9),(27,'2022_06_23_215404_add_deleted_at_at_transactions_table',9),(28,'2023_08_11_140743_create_roles_table',10),(29,'2023_08_11_140957_create_privileges_table',10),(30,'2023_08_11_141029_add_role_id_into_users_table',10),(31,'2023_08_11_144823_create_menus_table',10),(32,'2023_08_11_144857_add_menu_id_in_privileges_table',10),(33,'2023_08_11_145537_remove_name_in_privileges_table',10),(55,'2025_05_28_113228_create_product_categories_table',11),(56,'2025_05_28_113324_create_products_table',11),(57,'2025_06_04_101915_create_opnames_table',12),(58,'2025_06_04_103359_create_opname_details_table',12); INSERT INTO `migrations` VALUES (1,'2014_10_12_100000_create_password_resets_table',1),(2,'2019_08_19_000000_create_failed_jobs_table',1),(3,'2019_12_14_000001_create_personal_access_tokens_table',1),(4,'2022_05_20_100209_create_dealers_table',1),(5,'2022_05_20_100326_create_categories_table',1),(6,'2022_05_20_100335_create_works_table',1),(7,'2022_05_20_100340_create_users_table',1),(8,'2022_05_20_100410_create_transactions_table',1),(9,'2022_05_25_024641_update_works_table',2),(10,'2022_05_25_103839_update_categories_table',3),(13,'2022_05_25_144502_update_transaction_table',4),(18,'2022_05_29_211410_update_table_works_add_shortname_field',5),(20,'2022_05_29_211531_update_dealers_table_add_pic_field',6),(21,'2022_05_29_220642_update_transactions_table_add_status_column',7),(22,'2022_05_31_003725_update_transaction_table_add_dealer_id',8),(23,'2022_06_23_215115_add_deleted_at_at_users_table',9),(24,'2022_06_23_215243_add_deleted_at_at_dealers_table',9),(25,'2022_06_23_215321_add_deleted_at_at_categories_table',9),(26,'2022_06_23_215341_add_deleted_at_at_works_table',9),(27,'2022_06_23_215404_add_deleted_at_at_transactions_table',9),(28,'2023_08_11_140743_create_roles_table',10),(29,'2023_08_11_140957_create_privileges_table',10),(30,'2023_08_11_141029_add_role_id_into_users_table',10),(31,'2023_08_11_144823_create_menus_table',10),(32,'2023_08_11_144857_add_menu_id_in_privileges_table',10),(33,'2023_08_11_145537_remove_name_in_privileges_table',10),(55,'2025_05_28_113228_create_product_categories_table',11),(56,'2025_05_28_113324_create_products_table',11),(59,'2025_06_04_101915_create_opnames_table',12),(60,'2025_06_04_103359_create_opname_details_table',12);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */; /*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@@ -180,7 +180,7 @@ CREATE TABLE `opname_details` (
KEY `opname_details_product_id_foreign` (`product_id`), KEY `opname_details_product_id_foreign` (`product_id`),
CONSTRAINT `opname_details_opname_id_foreign` FOREIGN KEY (`opname_id`) REFERENCES `opnames` (`id`) ON DELETE CASCADE, CONSTRAINT `opname_details_opname_id_foreign` FOREIGN KEY (`opname_id`) REFERENCES `opnames` (`id`) ON DELETE CASCADE,
CONSTRAINT `opname_details_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE CONSTRAINT `opname_details_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
-- --
@@ -189,6 +189,7 @@ CREATE TABLE `opname_details` (
LOCK TABLES `opname_details` WRITE; LOCK TABLES `opname_details` WRITE;
/*!40000 ALTER TABLE `opname_details` DISABLE KEYS */; /*!40000 ALTER TABLE `opname_details` DISABLE KEYS */;
INSERT INTO `opname_details` VALUES (1,1,1,66,88,22,NULL,NULL,'2025-06-05 04:27:30','2025-06-05 04:27:30'),(2,1,3,77,88,11,NULL,NULL,'2025-06-05 04:27:30','2025-06-05 04:27:30');
/*!40000 ALTER TABLE `opname_details` ENABLE KEYS */; /*!40000 ALTER TABLE `opname_details` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@@ -203,14 +204,17 @@ CREATE TABLE `opnames` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT, `id` bigint unsigned NOT NULL AUTO_INCREMENT,
`dealer_id` bigint unsigned NOT NULL, `dealer_id` bigint unsigned NOT NULL,
`opname_date` date NOT NULL, `opname_date` date NOT NULL,
`user_id` bigint unsigned NOT NULL,
`note` text COLLATE utf8mb4_unicode_ci, `note` text COLLATE utf8mb4_unicode_ci,
`deleted_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `opnames_dealer_id_foreign` (`dealer_id`), KEY `opnames_dealer_id_foreign` (`dealer_id`),
CONSTRAINT `opnames_dealer_id_foreign` FOREIGN KEY (`dealer_id`) REFERENCES `dealers` (`id`) ON DELETE CASCADE KEY `opnames_user_id_foreign` (`user_id`),
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; CONSTRAINT `opnames_dealer_id_foreign` FOREIGN KEY (`dealer_id`) REFERENCES `dealers` (`id`) ON DELETE CASCADE,
CONSTRAINT `opnames_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
-- --
@@ -219,6 +223,7 @@ CREATE TABLE `opnames` (
LOCK TABLES `opnames` WRITE; LOCK TABLES `opnames` WRITE;
/*!40000 ALTER TABLE `opnames` DISABLE KEYS */; /*!40000 ALTER TABLE `opnames` DISABLE KEYS */;
INSERT INTO `opnames` VALUES (1,20,'2025-06-05',8,NULL,NULL,'2025-06-05 04:27:30','2025-06-05 04:27:30');
/*!40000 ALTER TABLE `opnames` ENABLE KEYS */; /*!40000 ALTER TABLE `opnames` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@@ -332,7 +337,7 @@ CREATE TABLE `product_categories` (
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `product_categories_parent_id_foreign` (`parent_id`), KEY `product_categories_parent_id_foreign` (`parent_id`),
CONSTRAINT `product_categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `product_categories` (`id`) ON DELETE SET NULL CONSTRAINT `product_categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `product_categories` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
-- --
@@ -341,6 +346,7 @@ CREATE TABLE `product_categories` (
LOCK TABLES `product_categories` WRITE; LOCK TABLES `product_categories` WRITE;
/*!40000 ALTER TABLE `product_categories` DISABLE KEYS */; /*!40000 ALTER TABLE `product_categories` DISABLE KEYS */;
INSERT INTO `product_categories` VALUES (1,'Oli & Pelumas',NULL,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05'),(2,'Oli Mesin',1,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05'),(3,'Oli Gardan',1,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05'),(4,'Aki & Kelistrikan',NULL,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05'),(5,'Aki',4,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05'),(6,'Kelistrikan',4,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05'),(7,'Rem',NULL,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05'),(8,'Kampas Rem',7,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05'),(9,'Cakram',7,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05');
/*!40000 ALTER TABLE `product_categories` ENABLE KEYS */; /*!40000 ALTER TABLE `product_categories` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@@ -366,7 +372,7 @@ CREATE TABLE `products` (
UNIQUE KEY `products_code_unique` (`code`), UNIQUE KEY `products_code_unique` (`code`),
KEY `products_product_category_id_foreign` (`product_category_id`), KEY `products_product_category_id_foreign` (`product_category_id`),
CONSTRAINT `products_product_category_id_foreign` FOREIGN KEY (`product_category_id`) REFERENCES `product_categories` (`id`) ON DELETE CASCADE CONSTRAINT `products_product_category_id_foreign` FOREIGN KEY (`product_category_id`) REFERENCES `product_categories` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
-- --
@@ -375,6 +381,7 @@ CREATE TABLE `products` (
LOCK TABLES `products` WRITE; LOCK TABLES `products` WRITE;
/*!40000 ALTER TABLE `products` DISABLE KEYS */; /*!40000 ALTER TABLE `products` DISABLE KEYS */;
INSERT INTO `products` VALUES (1,'OLI001','Oli Mesin 10W-40',1,NULL,'Oli Mesin 10W-40',2,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05'),(2,'OLI002','Oli Gardan',1,NULL,'Oli Gardan',3,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05'),(3,'AKI001','Aki Kering 12V',1,NULL,'Aki Kering 12V',5,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05'),(4,'AKI002','Regulator Rectifier',1,NULL,'Regulator Rectifier',6,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05'),(5,'REM001','Kampas Rem Belakang',1,NULL,'Kampas Rem Belakang',8,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05'),(6,'REM002','Cakram Depan',1,NULL,'Cakram Depan',9,NULL,'2025-06-05 03:46:05','2025-06-05 03:46:05');
/*!40000 ALTER TABLE `products` ENABLE KEYS */; /*!40000 ALTER TABLE `products` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@@ -562,4 +569,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-06-04 17:54:10 -- Dump completed on 2025-06-05 19:06:52