-- MariaDB dump 10.19  Distrib 10.4.28-MariaDB, for osx10.10 (x86_64)
--
-- Host: localhost    Database: apotequ_db
-- ------------------------------------------------------
-- Server version	9.3.0

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `cache`
--

DROP TABLE IF EXISTS `cache`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cache` (
  `key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `expiration` int NOT NULL,
  PRIMARY KEY (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `cache`
--

LOCK TABLES `cache` WRITE;
/*!40000 ALTER TABLE `cache` DISABLE KEYS */;
/*!40000 ALTER TABLE `cache` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `cache_locks`
--

DROP TABLE IF EXISTS `cache_locks`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cache_locks` (
  `key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `owner` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `expiration` int NOT NULL,
  PRIMARY KEY (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `cache_locks`
--

LOCK TABLES `cache_locks` WRITE;
/*!40000 ALTER TABLE `cache_locks` DISABLE KEYS */;
/*!40000 ALTER TABLE `cache_locks` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `categories`
--

DROP TABLE IF EXISTS `categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `categories` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `categories`
--

LOCK TABLES `categories` WRITE;
/*!40000 ALTER TABLE `categories` DISABLE KEYS */;
INSERT INTO `categories` VALUES (1,'Obat Bebas','Obat yang dapat dibeli tanpa resep dokter',1,'2026-01-17 03:31:50','2026-01-17 03:31:50'),(2,'Obat Keras','Obat yang memerlukan resep dokter',1,'2026-01-17 03:31:50','2026-01-17 03:31:50'),(3,'Vitamin & Suplemen','Produk kesehatan dan suplemen',1,'2026-01-17 03:31:50','2026-01-17 03:31:50'),(4,'Obat Herbal','Obat-obatan tradisional dan herbal',1,'2026-01-17 03:31:50','2026-01-17 03:31:50'),(5,'Alat Kesehatan','Peralatan medis dan kesehatan',1,'2026-01-17 03:31:50','2026-01-17 03:31:50'),(6,'Perawatan Bayi','Produk perawatan untuk bayi',1,'2026-01-17 03:31:50','2026-01-17 09:40:59'),(7,'Skincare','Produk perawatan kulit',1,'2026-01-17 03:31:50','2026-01-17 09:41:10'),(8,'Sanitasi','Produk kebersihan dan sanitasi',1,'2026-01-17 03:31:50','2026-01-17 03:31:50');
/*!40000 ALTER TABLE `categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `failed_jobs`
--

DROP TABLE IF EXISTS `failed_jobs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `failed_jobs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `failed_jobs`
--

LOCK TABLES `failed_jobs` WRITE;
/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `job_batches`
--

DROP TABLE IF EXISTS `job_batches`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `job_batches` (
  `id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `total_jobs` int NOT NULL,
  `pending_jobs` int NOT NULL,
  `failed_jobs` int NOT NULL,
  `failed_job_ids` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `options` mediumtext COLLATE utf8mb4_unicode_ci,
  `cancelled_at` int DEFAULT NULL,
  `created_at` int NOT NULL,
  `finished_at` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `job_batches`
--

LOCK TABLES `job_batches` WRITE;
/*!40000 ALTER TABLE `job_batches` DISABLE KEYS */;
/*!40000 ALTER TABLE `job_batches` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `jobs`
--

DROP TABLE IF EXISTS `jobs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `jobs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `queue` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `attempts` tinyint unsigned NOT NULL,
  `reserved_at` int unsigned DEFAULT NULL,
  `available_at` int unsigned NOT NULL,
  `created_at` int unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `jobs_queue_index` (`queue`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `jobs`
--

LOCK TABLES `jobs` WRITE;
/*!40000 ALTER TABLE `jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `jobs` ENABLE KEYS */;
UNLOCK TABLES;

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

DROP TABLE IF EXISTS `migrations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `migrations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `migrations` WRITE;
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
INSERT INTO `migrations` VALUES (1,'0001_01_01_000000_create_users_table',1),(2,'0001_01_01_000001_create_cache_table',1),(3,'0001_01_01_000002_create_jobs_table',1),(4,'2026_01_17_101325_create_personal_access_tokens_table',1),(5,'2026_01_17_101558_add_role_to_users_table',1),(6,'2026_01_17_101558_create_categories_table',1),(7,'2026_01_17_101559_create_suppliers_table',1),(8,'2026_01_17_101559_create_transactions_table',1),(9,'2026_01_17_101560_create_products_table',1),(10,'2026_01_17_101600_create_transaction_details_table',1);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `password_reset_tokens`
--

DROP TABLE IF EXISTS `password_reset_tokens`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `password_reset_tokens` (
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `password_reset_tokens`
--

LOCK TABLES `password_reset_tokens` WRITE;
/*!40000 ALTER TABLE `password_reset_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_reset_tokens` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `personal_access_tokens`
--

DROP TABLE IF EXISTS `personal_access_tokens`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `personal_access_tokens` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tokenable_id` bigint unsigned NOT NULL,
  `name` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `abilities` text COLLATE utf8mb4_unicode_ci,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `expires_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`),
  KEY `personal_access_tokens_expires_at_index` (`expires_at`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `personal_access_tokens`
--

LOCK TABLES `personal_access_tokens` WRITE;
/*!40000 ALTER TABLE `personal_access_tokens` DISABLE KEYS */;
INSERT INTO `personal_access_tokens` VALUES (13,'App\\Models\\User',1,'auth_token','a7cfd223868c3a64261b6e0c920286d0eca5740d541ba413957abda9b1241815','[\"*\"]','2026-01-17 05:46:25',NULL,'2026-01-17 05:17:46','2026-01-17 05:46:25'),(14,'App\\Models\\User',2,'auth_token','28110e49e692e16636a66d2592c9d051332755e0e7e6f73d53216de3855341dc','[\"*\"]','2026-01-17 05:54:02',NULL,'2026-01-17 05:48:06','2026-01-17 05:54:02'),(17,'App\\Models\\User',1,'auth_token','6666d5aeef8355abf6d4c21e36b9902ccbfe69158be5a6ff08edc6d87aedb3fa','[\"*\"]','2026-01-17 09:48:30',NULL,'2026-01-17 08:33:50','2026-01-17 09:48:30'),(19,'App\\Models\\User',2,'auth_token','84d167f46f67c863b3050dbe9d644ff9933b232bb443665baff4cb760e8c2dd2','[\"*\"]','2026-01-17 09:28:27',NULL,'2026-01-17 09:28:05','2026-01-17 09:28:27'),(20,'App\\Models\\User',1,'auth_token','77ebaed8ae3bda63cdce945a996ce92ad8014fcbc7f37b909773af5d7b7d10f2','[\"*\"]','2026-01-17 10:05:05',NULL,'2026-01-17 10:03:17','2026-01-17 10:05:05');
/*!40000 ALTER TABLE `personal_access_tokens` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products`
--

DROP TABLE IF EXISTS `products`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `category_id` bigint unsigned NOT NULL,
  `supplier_id` bigint unsigned NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `purchase_price` decimal(12,2) NOT NULL,
  `selling_price` decimal(12,2) NOT NULL,
  `stock` int NOT NULL DEFAULT '0',
  `minimum_stock` int NOT NULL DEFAULT '10',
  `unit` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pcs',
  `expired_date` date DEFAULT NULL,
  `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `products_code_unique` (`code`),
  KEY `products_category_id_foreign` (`category_id`),
  KEY `products_supplier_id_foreign` (`supplier_id`),
  CONSTRAINT `products_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE,
  CONSTRAINT `products_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `suppliers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products`
--

LOCK TABLES `products` WRITE;
/*!40000 ALTER TABLE `products` DISABLE KEYS */;
INSERT INTO `products` VALUES (1,'OB001','Paracetamol 500mg',1,1,'Obat penurun panas dan pereda nyeri',5000.00,8000.00,148,50,'strip','2026-12-31',NULL,1,'2026-01-17 03:31:50','2026-01-17 03:31:51'),(2,'OB002','Bodrex Tablet',1,4,'Obat sakit kepala',3000.00,5000.00,198,60,'strip','2026-10-15',NULL,1,'2026-01-17 03:31:50','2026-01-17 03:31:51'),(3,'OB003','Antangin Syrup',1,7,'Obat masuk angin',2500.00,4000.00,99,40,'botol','2026-08-20',NULL,1,'2026-01-17 03:31:50','2026-01-17 03:31:51'),(4,'OK001','Amoxicillin 500mg',2,2,'Antibiotik untuk infeksi bakteri',15000.00,22000.00,79,30,'strip','2027-01-15',NULL,1,'2026-01-17 03:31:50','2026-01-17 03:31:51'),(5,'OK002','Ciprofloxacin 500mg',2,3,'Antibiotik untuk berbagai infeksi',20000.00,30000.00,60,25,'strip','2026-11-30',NULL,1,'2026-01-17 03:31:50','2026-01-17 03:31:50'),(6,'VS001','Vitamin C 500mg',3,2,'Suplemen vitamin C untuk daya tahan tubuh',12000.00,18000.00,119,40,'botol','2027-03-25',NULL,1,'2026-01-17 03:31:50','2026-01-17 03:31:51'),(7,'VS002','Vitamin B Complex',3,2,'Suplemen vitamin B kompleks',15000.00,23000.00,89,35,'botol','2027-02-10',NULL,1,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(8,'VS003','Omega 3 Fish Oil',3,5,'Suplemen minyak ikan omega 3',35000.00,50000.00,67,20,'botol','2027-05-15',NULL,1,'2026-01-17 03:31:51','2026-01-17 05:16:15'),(9,'OH001','Tolak Angin Cair',4,6,'Obat herbal masuk angin',2000.00,3500.00,249,80,'sachet','2026-09-30',NULL,1,'2026-01-17 03:31:51','2026-01-17 05:13:29'),(10,'OH002','Habbatussauda Oil',4,6,'Minyak habbatussauda untuk kesehatan',25000.00,38000.00,45,20,'botol','2027-01-20',NULL,1,'2026-01-17 03:31:51','2026-01-17 05:16:16'),(11,'AK001','Masker Medis 3 Ply',5,1,'Masker kesehatan 3 lapis',25000.00,35000.00,295,100,'box','2026-01-30','products/160x7OqDlMz6s4HA6PZxiYc3fouhcaVn5h54CemU.jpg',1,'2026-01-17 03:31:51','2026-01-17 05:46:25'),(12,'AK002','Thermometer Digital',5,4,'Termometer digital untuk mengukur suhu tubuh',35000.00,55000.00,43,15,'pcs',NULL,NULL,1,'2026-01-17 03:31:51','2026-01-17 05:16:16'),(13,'AK003','Tensimeter Digital',5,4,'Alat pengukur tekanan darah digital',200000.00,300000.00,19,5,'pcs',NULL,NULL,1,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(14,'PB001','Baby Oil 200ml',6,5,'Minyak bayi untuk perawatan kulit',15000.00,25000.00,85,30,'botol','2027-04-15',NULL,1,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(15,'PB002','Baby Powder 100gr',6,5,'Bedak bayi',12000.00,20000.00,94,35,'botol','2027-06-20',NULL,1,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(16,'SK001','Sunscreen SPF 50',7,7,'Tabir surya SPF 50',45000.00,70000.00,65,25,'tube','2027-08-10',NULL,1,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(17,'SK002','Facial Wash Anti Acne',7,7,'Sabun cuci muka anti jerawat',20000.00,35000.00,109,40,'tube','2027-07-05',NULL,1,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(18,'SN001','Hand Sanitizer 100ml',8,1,'Pembersih tangan antiseptik',8000.00,15000.00,180,60,'botol','2027-12-31',NULL,1,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(19,'SN002','Dettol Antiseptic 500ml',8,1,'Cairan antiseptik',25000.00,40000.00,74,30,'botol','2027-10-20',NULL,1,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(20,'LS001','Obat Batuk Hitam',1,3,'Obat batuk tradisional',8000.00,12000.00,8,20,'botol','2026-05-15',NULL,1,'2026-01-17 03:31:51','2026-01-17 03:31:51');
/*!40000 ALTER TABLE `products` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sessions`
--

DROP TABLE IF EXISTS `sessions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sessions` (
  `id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_agent` text COLLATE utf8mb4_unicode_ci,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_activity` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sessions_user_id_index` (`user_id`),
  KEY `sessions_last_activity_index` (`last_activity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sessions`
--

LOCK TABLES `sessions` WRITE;
/*!40000 ALTER TABLE `sessions` DISABLE KEYS */;
INSERT INTO `sessions` VALUES ('9Hz9isXfN3mr63LaDHFiAUKOcYI6BDqRv38d0UIM',NULL,'127.0.0.1','Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36','YTozOntzOjY6Il90b2tlbiI7czo0MDoiNWkyc2wzc1NxMGFSaUUwYXpxdzhieDE0TzYxdXA2UjBjSEx4ekVQeSI7czo5OiJfcHJldmlvdXMiO2E6Mjp7czozOiJ1cmwiO3M6NzA6Imh0dHA6Ly8xMjcuMC4wLjE6ODAwMC8ud2VsbC1rbm93bi9hcHBzcGVjaWZpYy9jb20uY2hyb21lLmRldnRvb2xzLmpzb24iO3M6NToicm91dGUiO047fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1768667305),('hkX2R7QAnvdGM8tyuFHJDIcZbDB3zClSqqi8J39N',NULL,'127.0.0.1','Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36','YTozOntzOjY6Il90b2tlbiI7czo0MDoiczFLWDVEdUwzTDlnWW1QR2tpcXBYcm5XTUlydWJsbTR6akNrc3J5MyI7czo5OiJfcHJldmlvdXMiO2E6Mjp7czozOiJ1cmwiO3M6NzA6Imh0dHA6Ly8xMjcuMC4wLjE6ODAwMC8ud2VsbC1rbm93bi9hcHBzcGVjaWZpYy9jb20uY2hyb21lLmRldnRvb2xzLmpzb24iO3M6NToicm91dGUiO047fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1768669518),('M7J8gP2NvDzlTbmZ3s371cH0KcmYyop1s7W7DMBd',NULL,'127.0.0.1','Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36','YTozOntzOjY6Il90b2tlbiI7czo0MDoicWhUWUIzeEdtc0tWNmxGbnNBR3AzNWdUWll3eGtMMFhwM205dWlsayI7czo5OiJfcHJldmlvdXMiO2E6Mjp7czozOiJ1cmwiO3M6MjE6Imh0dHA6Ly9sb2NhbGhvc3Q6ODAwMCI7czo1OiJyb3V0ZSI7Tjt9czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==',1768667793);
/*!40000 ALTER TABLE `sessions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `suppliers`
--

DROP TABLE IF EXISTS `suppliers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `suppliers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` text COLLATE utf8mb4_unicode_ci,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `suppliers`
--

LOCK TABLES `suppliers` WRITE;
/*!40000 ALTER TABLE `suppliers` DISABLE KEYS */;
INSERT INTO `suppliers` VALUES (1,'PT Kimia Farma','Kimia Farma Tbk','021-4250451','info@kimiafarma.co.id','Jl. Veteran No. 9, Jakarta Pusat',1,'2026-01-17 03:31:50','2026-01-17 03:31:50'),(2,'PT Kalbe Farma','Kalbe Farma Tbk','021-4605555','corporate@kalbe.co.id','Gedung Kalbe, Jl. Let. Jend. Suprapto, Jakarta',1,'2026-01-17 03:31:50','2026-01-17 03:31:50'),(3,'PT Indofarma','Indofarma Tbk','021-8191808','info@indofarma.id','Jl. Indofarma No. 1, Bekasi',1,'2026-01-17 03:31:50','2026-01-17 03:31:50'),(4,'PT Tempo Scan Pacific','Tempo Scan Pacific Tbk','021-4682608','info@temposcanpacific.com','Tempo Building, Jakarta',1,'2026-01-17 03:31:50','2026-01-17 03:31:50'),(5,'PT Combiphar','Combiphar','0341-396500','info@combiphar.com','Jl. Raya Kedung Kandang, Malang',1,'2026-01-17 03:31:50','2026-01-17 03:31:50'),(6,'PT Sanbe Farma','Sanbe Farma','022-5400071','info@sanbe.co.id','Jl. Tamansari No. 80, Bandung',1,'2026-01-17 03:31:50','2026-01-17 03:31:50'),(7,'PT Dexa Medica','Dexa Medica','021-2963000','info@dexa-medica.com','Jl. Bambang Utoyo No. 138, Tangerang',1,'2026-01-17 03:31:50','2026-01-17 03:31:50');
/*!40000 ALTER TABLE `suppliers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `transaction_details`
--

DROP TABLE IF EXISTS `transaction_details`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `transaction_details` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `transaction_id` bigint unsigned NOT NULL,
  `product_id` bigint unsigned NOT NULL,
  `product_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `price` decimal(12,2) NOT NULL,
  `quantity` int NOT NULL,
  `subtotal` decimal(12,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `transaction_details_transaction_id_foreign` (`transaction_id`),
  KEY `transaction_details_product_id_foreign` (`product_id`),
  CONSTRAINT `transaction_details_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
  CONSTRAINT `transaction_details_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `transaction_details`
--

LOCK TABLES `transaction_details` WRITE;
/*!40000 ALTER TABLE `transaction_details` DISABLE KEYS */;
INSERT INTO `transaction_details` VALUES (1,1,1,'Paracetamol 500mg',8000.00,2,16000.00,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(2,1,6,'Vitamin C 500mg',18000.00,1,18000.00,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(3,1,15,'Baby Oil 200ml',25000.00,1,25000.00,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(4,2,11,'Masker Medis 3 Ply',35000.00,2,70000.00,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(5,2,19,'Hand Sanitizer 100ml',15000.00,1,15000.00,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(6,2,2,'Bodrex Tablet',5000.00,2,10000.00,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(7,3,13,'Tensimeter Digital',300000.00,1,300000.00,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(8,4,4,'Amoxicillin 500mg',22000.00,1,22000.00,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(9,4,7,'Vitamin B Complex',23000.00,1,23000.00,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(10,4,17,'Sunscreen SPF 50',70000.00,1,70000.00,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(11,5,8,'Omega 3 Fish Oil',50000.00,2,100000.00,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(12,5,10,'Habbatussauda Oil',38000.00,1,38000.00,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(13,5,3,'Antangin Syrup',4000.00,1,4000.00,'2026-01-17 03:31:51','2026-01-17 03:31:51'),(14,8,12,'Thermometer Digital',55000.00,1,55000.00,'2026-01-17 04:46:21','2026-01-17 04:46:21'),(15,8,11,'Masker Medis 3 Ply',35000.00,1,35000.00,'2026-01-17 04:46:21','2026-01-17 04:46:21'),(16,8,10,'Habbatussauda Oil',38000.00,1,38000.00,'2026-01-17 04:46:21','2026-01-17 04:46:21'),(17,9,11,'Masker Medis 3 Ply',35000.00,1,35000.00,'2026-01-17 05:09:05','2026-01-17 05:09:05'),(18,9,10,'Habbatussauda Oil',38000.00,1,38000.00,'2026-01-17 05:09:05','2026-01-17 05:09:05'),(19,10,11,'Masker Medis 3 Ply',35000.00,1,35000.00,'2026-01-17 05:13:29','2026-01-17 05:13:29'),(20,10,10,'Habbatussauda Oil',38000.00,1,38000.00,'2026-01-17 05:13:29','2026-01-17 05:13:29'),(21,10,9,'Tolak Angin Cair',3500.00,1,3500.00,'2026-01-17 05:13:29','2026-01-17 05:13:29'),(22,11,8,'Omega 3 Fish Oil',50000.00,1,50000.00,'2026-01-17 05:16:15','2026-01-17 05:16:15'),(23,11,10,'Habbatussauda Oil',38000.00,1,38000.00,'2026-01-17 05:16:16','2026-01-17 05:16:16'),(24,11,12,'Thermometer Digital',55000.00,1,55000.00,'2026-01-17 05:16:16','2026-01-17 05:16:16');
/*!40000 ALTER TABLE `transaction_details` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `transactions`
--

DROP TABLE IF EXISTS `transactions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `transactions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `invoice_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `customer_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `subtotal` decimal(12,2) NOT NULL,
  `discount` decimal(12,2) NOT NULL DEFAULT '0.00',
  `tax` decimal(12,2) NOT NULL DEFAULT '0.00',
  `total` decimal(12,2) NOT NULL,
  `paid` decimal(12,2) NOT NULL,
  `change` decimal(12,2) NOT NULL DEFAULT '0.00',
  `payment_method` enum('cash','debit','credit','qris') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'cash',
  `notes` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `transactions_invoice_number_unique` (`invoice_number`),
  KEY `transactions_user_id_foreign` (`user_id`),
  CONSTRAINT `transactions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `transactions`
--

LOCK TABLES `transactions` WRITE;
/*!40000 ALTER TABLE `transactions` DISABLE KEYS */;
INSERT INTO `transactions` VALUES (1,'INV-20260117-0001',2,'Ibu Sari',46000.00,0.00,0.00,46000.00,50000.00,4000.00,'cash','Pelanggan langganan','2026-01-17 03:31:51','2026-01-17 03:31:51'),(2,'INV-20260117-0002',3,'Pak Ahmad',95000.00,5000.00,0.00,90000.00,100000.00,10000.00,'cash',NULL,'2026-01-17 01:31:51','2026-01-17 03:31:51'),(3,'INV-20260116-0001',2,'Ibu Ratna',300000.00,0.00,0.00,300000.00,300000.00,0.00,'debit','Pembayaran kartu debit BCA','2026-01-16 03:31:51','2026-01-17 03:31:51'),(4,'INV-20260114-0001',4,NULL,78000.00,3000.00,0.00,75000.00,75000.00,0.00,'qris','Bayar via QRIS','2026-01-14 03:31:51','2026-01-17 03:31:51'),(5,'INV-20260112-0001',3,'Pak Budi',148000.00,8000.00,0.00,140000.00,150000.00,10000.00,'cash',NULL,'2026-01-12 03:31:51','2026-01-17 03:31:51'),(8,'INV-20260117-0003',2,NULL,128000.00,0.00,0.00,128000.00,130000.00,2000.00,'cash',NULL,'2026-01-17 04:46:21','2026-01-17 04:46:21'),(9,'INV-20260117-0004',2,NULL,73000.00,0.00,0.00,73000.00,74000.00,1000.00,'cash',NULL,'2026-01-17 05:09:05','2026-01-17 05:09:05'),(10,'INV-20260117-0005',2,NULL,76500.00,0.00,0.00,76500.00,78000.00,1500.00,'cash',NULL,'2026-01-17 05:13:29','2026-01-17 05:13:29'),(11,'INV-20260117-0006',2,NULL,143000.00,0.00,0.00,143000.00,150000.00,7000.00,'cash',NULL,'2026-01-17 05:16:15','2026-01-17 05:16:15');
/*!40000 ALTER TABLE `transactions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `role` enum('admin','cashier') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'cashier',
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users`
--

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'Admin ApoteQu','admin@apotequ.com','admin','081234567890',1,NULL,'$2y$12$zXzCK5bFagn7kxyXe9yGNex1wRlISU1rnJ9Dwg2t2EZXXZN2vGhLC',NULL,'2026-01-17 03:31:48','2026-01-17 03:31:48'),(2,'Budi Santoso','budi@apotequ.com','cashier','081234567891',1,NULL,'$2y$12$quhksPQPNDh3/mDf5P9ry.DtbSfBJsusmLRsHSXTcntNqioy4vLjS',NULL,'2026-01-17 03:31:49','2026-01-17 03:31:49'),(3,'Siti Nurhaliza','siti@apotequ.com','cashier','081234567892',1,NULL,'$2y$12$BPl5Y6Ty0cUVkKh19EmUOO1MAZHAt4IFAtsctpLW6brJgk6WZKLsK',NULL,'2026-01-17 03:31:49','2026-01-17 03:31:49'),(4,'Andi Wijaya','andi@apotequ.com','cashier','081234567893',1,NULL,'$2y$12$cl60KPbrBGrzm6zyIb1OTOyqsq1QdMEDHw98F8/M/xlFNPPNLtJhK',NULL,'2026-01-17 03:31:50','2026-01-17 03:31:50'),(5,'Dewi Lestari','dewi@apotequ.com','cashier','081234567894',0,NULL,'$2y$12$kDCWJMaGjv1GhFGvt5q7XejDh.ziHAfyyylK.NUb0YltrOKP4Kqk6',NULL,'2026-01-17 03:31:50','2026-01-17 03:31:50');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2026-01-18  0:18:04
