Files
kulakpos_web/db/u376084733_kulakpos.sql

2273 lines
254 KiB
MySQL
Raw Normal View History

2026-04-13 09:24:39 +07:00
/*
Navicat Premium Dump SQL
Source Server : kulapos.id mysql
Source Server Type : MariaDB
Source Server Version : 110806 (11.8.6-MariaDB-log)
Source Host : srv2094.hstgr.io:3306
Source Schema : u376084733_kulakpos
Target Server Type : MariaDB
Target Server Version : 110806 (11.8.6-MariaDB-log)
File Encoding : 65001
2026-04-15 22:26:07 +07:00
Date: 15/04/2026 20:41:27
2026-04-13 09:24:39 +07:00
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for banners
-- ----------------------------
DROP TABLE IF EXISTS `banners`;
CREATE TABLE `banners` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`imageUrl` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of banners
-- ----------------------------
INSERT INTO `banners` VALUES (1, 'uploads/26/02/1772088948-284.png', 1, '2024-06-11 22:29:48', '2026-02-26 13:55:48');
INSERT INTO `banners` VALUES (2, 'uploads/26/03/1772603626-345.png', 1, '2024-06-11 22:29:59', '2026-03-04 12:53:46');
INSERT INTO `banners` VALUES (3, 'uploads/26/02/1772082043-163.png', 1, '2024-06-11 22:30:07', '2026-02-26 12:00:43');
-- ----------------------------
-- Table structure for blogs
-- ----------------------------
DROP TABLE IF EXISTS `blogs`;
CREATE TABLE `blogs` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`descriptions` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`tags` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`meta` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `blogs_title_unique`(`title` ASC) USING BTREE,
UNIQUE INDEX `blogs_slug_unique`(`slug` ASC) USING BTREE,
INDEX `blogs_user_id_foreign`(`user_id` ASC) USING BTREE,
CONSTRAINT `blogs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of blogs
-- ----------------------------
INSERT INTO `blogs` VALUES (1, 1, 'What is a Custom Point of Sale System? Pros & Cons', 'what-is-a-custom-point-of-sale-system-pros-cons', 'uploads/24/06/1717396156-451.png', 0, 'Blessing welcomed ladyship she met humo ured sir breeding her. Six curiosity day assurance bed necessary', '[\"Point of Sale\",\"assurance bed necessary\"]', '{\"title\":\"What is a Custom Point of Sale System? Pros & Cons\",\"description\":\"Blessing welcomed ladyship she met humo ured sir breeding her. Six curiosity day assurance bed necessary\"}', '2024-04-16 23:06:02', '2026-03-02 09:10:18');
INSERT INTO `blogs` VALUES (2, 1, 'What is the Store of the Future? 8 Trends to Watch Out For', 'what-is-the-store-of-the-future-8-trends-to-watch-out-for', 'uploads/24/06/1717396180-13.png', 0, 'Blessing welcomed ladyship she met humo ured sir breeding her. Six curiosity day assurance bed necessary', '[\"Trends to Watch\",null]', '{\"title\":\"What is the Store of the Future? 8 Trends to Watch Out For\",\"description\":\"Blessing welcomed ladyship she met humo ured sir breeding her. Six curiosity day assurance bed necessary\"}', '2024-04-16 23:07:13', '2026-03-02 09:10:17');
INSERT INTO `blogs` VALUES (3, 1, 'How Much Are Point of Sale Transaction Fees?', 'how-much-are-point-of-sale-transaction-fees', 'uploads/24/06/1717396207-62.png', 0, 'Blessing welcomed ladyship she met humo ured sir breeding her. Six curiosity day assurance bed necessary', '[\"breeding\",\"Point of Sale\",\"Transaction\"]', '{\"title\":\"How Much Are Point of Sale Transaction Fees?\",\"description\":\"Blessing welcomed ladyship she met humo ured sir breeding her. Six curiosity day assurance bed necessary\"}', '2024-04-16 23:08:34', '2026-03-02 09:10:15');
INSERT INTO `blogs` VALUES (4, 1, 'Good Customer Service in Retail: 9 Characteristics', 'good-customer-service-in-retail-9-characteristics', 'uploads/24/06/1717396233-816.png', 0, 'Blessing welcomed ladyship she met humo ured sir breeding her. Six curiosity day assurance bed necessary', '[\"Six curiosity\",\"Customer Service in Retail\"]', '{\"title\":\"Good Customer Service in Retail: 9 Characteristics\",\"description\":\"Blessing welcomed ladyship she met humo ured sir breeding her. Six curiosity day assurance bed necessary\"}', '2024-04-16 23:11:24', '2026-03-02 09:10:13');
INSERT INTO `blogs` VALUES (5, 1, 'What Are the 10 Risks of Inventory Transfer?', 'what-are-the-10-risks-of-inventory-transfer', 'uploads/24/06/1717396254-420.png', 0, 'Blessing welcomed ladyship she met humo ured sir breeding her. Six curiosity day assurance bed necessary', '[\"Risks of Inventory\",\"assurance bed necessary\"]', '{\"title\":\"What Are the 10 Risks of Inventory Transfer?\",\"description\":\"Blessing welcomed ladyship she met humo ured sir breeding her. Six curiosity day assurance bed necessary\"}', '2024-04-16 23:12:53', '2026-03-02 09:10:12');
INSERT INTO `blogs` VALUES (6, 1, 'Transformasi Digital: Mengapa UMKM Tak Lagi Bisa Andalkan Catatan Manual?', 'what-is-the-store-of-the-future-12-trends-to-watch-out-for', 'uploads/26/03/1772376132-2.png', 1, '<p data-path-to-node=\"3\" align=\"justify\">Banyak pelaku UMKM memulai bisnis dengan semangat \"yang penting jalan dulu.\" Modal nekat, produk oke, dan pembukuan seadanya di buku tulis. Namun, seiring berkembangnya usaha, pengelolaan yang manual seringkali menjadi batu sandungan yang menghambat pertumbuhan. Di era yang serba cepat ini, efisiensi adalah kunci. Memiliki sistem operasional yang terintegrasi bukan lagi sebuah kemewahan, melainkan kebutuhan mendasar untuk naik kelas. Berikut adalah tiga pilar sistem operasional yang wajib dimiliki UMKM untuk menjaga keberlangsungan bisnis:</p><hr data-path-to-node=\"6\" align=\"justify\"><h3 data-path-to-node=\"7\" align=\"justify\">1. Sistem POS (Point of Sales): Lebih dari Sekadar Kasir</h3><p data-path-to-node=\"8\" align=\"justify\">Banyak yang mengira POS hanya alat untuk mencetak struk. Padahal, POS adalah \"jantung\" dari pusat informasi transaksi Anda.</p><div align=\"justify\"><ul data-path-to-node=\"9\"><li><p data-path-to-node=\"9,0,0\"><b data-path-to-node=\"9,0,0\" data-index-in-node=\"0\">Transparansi Transaksi:</b> Menghindari risiko manipulasi atau kesalahan hitung oleh karyawan.</p></li><li><p data-path-to-node=\"9,1,0\"><b data-path-to-node=\"9,1,0\" data-index-in-node=\"0\">Kecepatan Pelayanan:</b> Memperpendek antrean pelanggan dengan proses checkout yang ringkas.</p></li><li><p data-path-to-node=\"9,2,0\"><b data-path-to-node=\"9,2,0\" data-index-in-node=\"0\">Analisis Produk Laris:</b> Anda bisa tahu produk mana yang paling banyak menyumbang keuntungan dan mana yang hanya \"numpuk\" di rak.</p></li></ul><h3 data-path-to-node=\"10\">2. Manajemen Persediaan (Inventory Management)</h3><p data-path-to-node=\"11\">Pernahkah Anda kehilangan pelanggan karena stok barang ternyata habis saat ingin dibeli? Atau justru rugi karena stok terlalu banyak hingga kedaluwarsa?</p><ul data-path-to-node=\"12\"><li><p data-path-to-node=\"12,0,0\"><b data-path-to-node=\"12,0,0\" data-index-in-node=\"0\">Kontrol Stok Real-Time:</b> Mengetahui jumlah barang secara akurat tanpa harus bongkar gudang setiap hari.</p></li><li><p data-path-to-node=\"12,1,0\"><b data-path-to-node=\"12,1,0\" data-index-in-node=\"0\">Peringatan Stok Rendah:</b> Sistem akan memberi tahu kapan Anda harus belanja lagi ke supplier (<i data-path-to-node=\"12,1,0\" data-index-in-node=\"92\">restock</i>).</p></li><li><p data-path-to-node=\"12,2,0\"><b data-path-to-node=\"12,2,0\" data-index-in-node=\"0\">Meminimalisir Kerugian:</b> Melacak barang yang rusak atau hilang dengan lebih ketat.</p></li></ul><h3 data-path-to-node=\"13\">3. Pencatatan Keuangan Otomatis</h3><p data-path-to-node=\"14\">Masalah klasik UMKM adalah <b data-path-to-node=\"14\" data-index-in-node=\"27\">\"uangnya ada, tapi tidak tahu lari ke mana.\"</b> Tanpa pencatatan yang rapi, Anda tidak akan pernah tahu apakah bisnis Anda benar-benar untung atau sekadar \"putar uang.\"</p><ul data-path-to-node=\"15\"><li><p data-path-to-node=\"15,0,0\"><b data-path-to-node=\"15,0,0\" data-index-in-node=\"0\">Pemisahan Kas Pribadi &amp; Bisnis:</b> Membantu Anda tetap disiplin dalam mengelola modal.</p></li><li><p data-path-to-node=\"15,1,0\"><b data-path-to-node=\"15,1,0\" data-index-in-node=\"0\">Laporan Laba Rugi Instan:</b> Tidak perlu menunggu akhir bulan untuk tahu performa bisnis. Cukup satu klik, semua data tersaji.</p></li><li><p data-path-to-node=\"15,2,0\"><b data-path-to-node=\"15,2,0\" data-index-in-node=\"0\">Mempermudah Akses Modal:</b> Jika ingin meminjam modal ke bank, catatan keuangan yang rapi adalah syarat mutlak yang mereka lihat.</p></li></ul><hr data-path-to-node=\"16\"><blockquote data-path-to-node=\"17\"><p data-path-to-node=\"17,0\"><b data-path-to-node=\"17,0\" data-index-in-node=\"0\">\"Kunci sukses UMKM naik kelas bukan hanya tentang seberapa besar omzetnya, tapi seberapa rapi sistem yang menopangnya.\"</b></p></blo
-- ----------------------------
-- Table structure for branches
-- ----------------------------
DROP TABLE IF EXISTS `branches`;
CREATE TABLE `branches` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`business_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`address` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`is_main` tinyint(1) NOT NULL DEFAULT 0,
`branchOpeningBalance` double NOT NULL DEFAULT 0,
`branchRemainingBalance` double NOT NULL DEFAULT 0,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `branches_business_id_foreign`(`business_id` ASC) USING BTREE,
CONSTRAINT `branches_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of branches
-- ----------------------------
INSERT INTO `branches` VALUES (1, 10, '5 Roti 2 Ikan', '081310195804', 'onedirac@gmail.com', 'BSD', NULL, 1, 1, 0, 0, NULL, '2026-02-26 09:27:32', '2026-02-26 09:27:32');
INSERT INTO `branches` VALUES (2, 10, 'Toko 5 Roti & 2 Ikan', '081310195804', 'onedirac@gmail.com', 'BSD', 'Toko 1', 1, 0, 1000000, 1426548, NULL, '2026-02-26 09:27:32', '2026-03-20 09:22:00');
-- ----------------------------
-- Table structure for brands
-- ----------------------------
DROP TABLE IF EXISTS `brands`;
CREATE TABLE `brands` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`business_id` bigint(20) UNSIGNED NOT NULL,
`brandName` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`icon` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `brands_business_id_foreign`(`business_id` ASC) USING BTREE,
CONSTRAINT `brands_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of brands
-- ----------------------------
INSERT INTO `brands` VALUES (23, 10, 'Sari Roti', NULL, NULL, 1, '2026-02-26 14:24:51', '2026-02-26 14:24:51');
-- ----------------------------
-- Table structure for business_categories
-- ----------------------------
DROP TABLE IF EXISTS `business_categories`;
CREATE TABLE `business_categories` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `business_categories_name_unique`(`name` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 125 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of business_categories
-- ----------------------------
INSERT INTO `business_categories` VALUES (101, 'Warung Sembako', 'Toko Klontong', 1, '2026-02-08 10:14:13', '2026-03-16 13:20:24');
INSERT INTO `business_categories` VALUES (102, 'Toko Roti', 'Menjual Roti', 1, '2026-02-19 15:20:55', '2026-02-19 15:20:55');
INSERT INTO `business_categories` VALUES (103, 'Toko Kue', 'Menjual Jajanan dan Kue', 1, '2026-02-19 15:21:08', '2026-02-19 15:21:08');
INSERT INTO `business_categories` VALUES (104, 'Coffee Shop', 'Cafeteria & Coffee Shop', 1, '2026-02-19 15:21:43', '2026-02-19 15:21:43');
INSERT INTO `business_categories` VALUES (105, 'Minuman', 'Minuman Teh/Kopi', 1, '2026-02-19 15:25:27', '2026-02-19 15:25:27');
INSERT INTO `business_categories` VALUES (106, 'Fashion Outlet', 'Garment Shop', 1, '2026-03-05 22:48:30', '2026-03-05 22:48:30');
INSERT INTO `business_categories` VALUES (107, 'General Store', 'General Store', 1, '2026-03-05 23:09:31', '2026-03-05 23:09:31');
INSERT INTO `business_categories` VALUES (108, 'Laundry', 'Jasa Laundry', 1, '2026-03-16 13:19:04', '2026-03-16 13:19:04');
INSERT INTO `business_categories` VALUES (109, 'Babershop', 'Jasa Cukur Rambut dll', 1, '2026-03-16 13:19:52', '2026-03-16 13:19:52');
INSERT INTO `business_categories` VALUES (110, 'Warung Makan', 'Warung Makan', 1, '2026-03-16 13:20:53', '2026-03-16 13:20:53');
INSERT INTO `business_categories` VALUES (111, 'Makanan', 'Makanan', 1, '2026-03-16 13:21:23', '2026-03-16 13:21:23');
INSERT INTO `business_categories` VALUES (112, 'Toko Hobby', 'Toko Retail', 1, '2026-03-17 08:53:14', '2026-03-17 08:53:14');
INSERT INTO `business_categories` VALUES (113, 'Design & Percetakan', 'Toko Retail', 1, '2026-03-17 08:54:09', '2026-03-17 08:54:09');
INSERT INTO `business_categories` VALUES (114, 'Toko Buah', 'Toko Retail', 1, '2026-03-17 08:54:28', '2026-03-17 08:54:28');
INSERT INTO `business_categories` VALUES (115, 'Popup Store', 'Toko Retail', 1, '2026-03-17 08:54:45', '2026-03-17 08:54:45');
INSERT INTO `business_categories` VALUES (116, 'Distributor', 'Toko Retail', 1, '2026-03-17 08:55:01', '2026-03-17 08:55:01');
INSERT INTO `business_categories` VALUES (117, 'Apotek & Toko Obat', 'Toko Retail', 1, '2026-03-17 08:55:22', '2026-03-17 08:55:22');
INSERT INTO `business_categories` VALUES (118, 'Furniture & Rumah Tangga', 'Toko Retail', 1, '2026-03-17 08:55:42', '2026-03-17 08:55:42');
INSERT INTO `business_categories` VALUES (119, 'Toko Bangunan', 'Toko Retail', 1, '2026-03-17 08:56:05', '2026-03-17 08:56:05');
INSERT INTO `business_categories` VALUES (120, 'Gadget & Accessories', 'Toko Retail', 1, '2026-03-17 08:56:36', '2026-03-17 08:56:36');
INSERT INTO `business_categories` VALUES (121, 'Toko Online', 'Toko Retail', 1, '2026-03-17 08:57:03', '2026-03-17 08:57:03');
INSERT INTO `business_categories` VALUES (122, 'Grosir & Minimarket', 'Toko Retail', 1, '2026-03-17 08:57:20', '2026-03-17 08:57:20');
INSERT INTO `business_categories` VALUES (123, 'Toko Elektronik', 'Toko Retail', 1, '2026-03-17 08:57:40', '2026-03-17 08:57:40');
INSERT INTO `business_categories` VALUES (124, 'Clothing & Accessories', 'Toko Retail', 1, '2026-03-17 08:58:00', '2026-03-17 08:58:00');
-- ----------------------------
-- Table structure for businesses
-- ----------------------------
DROP TABLE IF EXISTS `businesses`;
CREATE TABLE `businesses` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`plan_subscribe_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`business_category_id` bigint(20) UNSIGNED NOT NULL,
`companyName` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`will_expire` date NULL DEFAULT NULL,
`address` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`phoneNumber` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`pictureUrl` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`subscriptionDate` timestamp NULL DEFAULT NULL,
`remainingShopBalance` double(10, 2) NOT NULL DEFAULT 0.00,
`shopOpeningBalance` double(10, 2) NOT NULL DEFAULT 0.00,
`vat_no` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`vat_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`meta` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `businesses_business_category_id_foreign`(`business_category_id` ASC) USING BTREE,
CONSTRAINT `businesses_business_category_id_foreign` FOREIGN KEY (`business_category_id`) REFERENCES `business_categories` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 29 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of businesses
-- ----------------------------
INSERT INTO `businesses` VALUES (2, 17, 101, 'Dapur Honey', '2026-04-09', 'tgr', 'dapurhoney@honey.com', '08', NULL, '2026-03-09 22:52:09', 1777100.00, 1000.00, NULL, NULL, '{\"show_company_name\":1,\"show_phone_number\":1,\"show_address\":1,\"show_email\":1,\"show_vat\":1}', 1, '2026-02-07 14:12:59', '2026-03-09 22:52:09');
INSERT INTO `businesses` VALUES (6, 6, 101, 'Warung', '2026-02-26', 'Legok', NULL, '089627921934', NULL, '2026-02-19 14:05:44', 0.00, 10000.00, NULL, NULL, NULL, 1, '2026-02-19 14:05:44', '2026-02-19 14:05:44');
INSERT INTO `businesses` VALUES (7, 7, 101, 'Warung mad', '2026-02-27', NULL, NULL, '08', NULL, '2026-02-20 06:56:47', 0.00, 1000.00, NULL, NULL, NULL, 1, '2026-02-20 06:56:47', '2026-02-20 06:56:47');
INSERT INTO `businesses` VALUES (8, 8, 104, 'Alika Coffee', '2026-03-23', 'Legok, Tangerang', NULL, '081310195804', NULL, '2026-02-21 10:48:03', 1296362.40, 500000.00, NULL, NULL, '{\"show_company_name\":0,\"show_phone_number\":0,\"show_address\":0,\"show_email\":0,\"show_vat\":0}', 1, '2026-02-21 10:48:03', '2026-03-19 22:53:52');
INSERT INTO `businesses` VALUES (9, 32, 101, 'Warung yanto', '2026-04-28', 'tangerang', NULL, '089627921934', NULL, '2026-03-28 08:51:22', -397500.00, 10000000.00, NULL, NULL, '{\"show_company_name\":0,\"show_phone_number\":0,\"show_address\":0,\"show_email\":0,\"show_vat\":0}', 1, '2026-02-25 23:50:10', '2026-04-12 20:14:55');
INSERT INTO `businesses` VALUES (10, 34, 102, '5 Roti 2 Ikan', '2026-05-05', 'BSD', 'onedirac@gmail.com', '081310195804', NULL, '2026-04-04 21:55:54', 0.00, 1000000.00, NULL, NULL, '{\"show_company_name\":0,\"show_phone_number\":0,\"show_address\":0,\"show_email\":0,\"show_vat\":0}', 1, '2026-02-26 09:24:40', '2026-04-04 21:55:54');
INSERT INTO `businesses` VALUES (11, 14, 106, 'ReleeClothing', '2026-04-04', 'Tangerang', NULL, '083871304897', NULL, '2026-03-05 22:57:49', 0.00, 100000.00, NULL, NULL, NULL, 1, '2026-03-05 22:57:49', '2026-03-05 22:57:49');
INSERT INTO `businesses` VALUES (12, 15, 103, 'Sari', '2026-04-08', 'sari', NULL, '089627921934', NULL, '2026-03-09 22:12:47', 0.00, 1000000.00, NULL, NULL, NULL, 1, '2026-03-09 22:12:47', '2026-03-09 22:12:47');
INSERT INTO `businesses` VALUES (13, 16, 103, 'Sari', '2026-04-08', 'sari', NULL, '089627921934', NULL, '2026-03-09 22:45:03', 0.00, 1000000.00, NULL, NULL, NULL, 1, '2026-03-09 22:45:03', '2026-03-09 22:45:03');
INSERT INTO `businesses` VALUES (14, 18, 106, 'Mteam', '2026-04-10', 'malini240397@gmail', NULL, '082377355343', NULL, '2026-03-11 15:29:08', 2.00, 0.00, NULL, NULL, NULL, 1, '2026-03-11 15:29:08', '2026-03-11 18:53:02');
INSERT INTO `businesses` VALUES (15, 19, 107, 'Wesly Shop', '2026-04-11', 'Cipondoh Makmur Blok K8 No 28', NULL, '085216180086', NULL, '2026-03-12 13:03:15', 0.00, 1000000.00, NULL, NULL, NULL, 1, '2026-03-12 13:03:15', '2026-03-12 13:03:15');
INSERT INTO `businesses` VALUES (16, 20, 107, 'EZC', '2026-04-11', 'jl. pahlawan seribu K2 bsd', NULL, '081319464797', NULL, '2026-03-12 13:18:47', 0.00, 10000000.00, NULL, NULL, NULL, 1, '2026-03-12 13:18:47', '2026-03-12 13:18:47');
INSERT INTO `businesses` VALUES (17, 21, 106, 'Ojodumeh', '2026-04-11', 'PT Ojo dimeja', NULL, '085810393314', NULL, '2026-03-12 19:27:22', 0.00, 0.00, NULL, NULL, NULL, 1, '2026-03-12 19:27:22', '2026-03-12 19:27:22');
INSERT INTO `businesses` VALUES (18, 22, 107, 'Wayne Shop', '2026-04-11', 'cipondoh makmur k8/28', NULL, '081319464797', NULL, '2026-03-12 20:46:35', 0.00, 1000000.00, NULL, NULL, NULL, 1, '2026-03-12 20:46:35', '2026-03-12 20:46:35');
INSERT INTO `businesses` VALUES (19, 23, 106, 'RÉLEE CLOTHING', '2026-04-11', 'The Green Residence', NULL, '083871304897', NULL, '2026-03-12 20:53:59', 335000.00, 200000.00, NULL, NULL, '{\"show_company_name\":1,\"show_phone_number\":1,\"show_address\":1,\"show_email\":1,\"show_vat\":1}', 1, '2026-03-12 20:53:59', '2026-03-30 21:17:12');
INSERT INTO `businesses` VALUES (20, 24, 106, 'Dear Cha', '2026-04-11', 'Griya Aster', NULL, '088210366494', NULL, '2026-03-12 21:00:03', 0.00, 1000000.00, NULL, NULL, NULL, 1, '2026-03-12 21:00:03', '2026-03-12 21:00:03');
INSERT INTO `businesses` VALUES (21, 25, 104, 'Warung Sri', '2026-04-11', 'legok', NULL, '089627921934', NULL, '2026-03-12 22:08:13', 0.00, 500000.00, NULL, NULL, NULL, 1, '2026-03-12 22:08:13', '2026-03-12 22:08:13');
INSERT INTO `businesses` VALUES (22, 26, 107, 'Kenartoys', '2026-04-12', 'Cakung Jakarta Timur', NULL, '6285289372939', NULL, '2026-03-13 07:09:12', 0.00, 500000.00, NULL, NULL, NULL, 1, '2026-03-13 07:09:12', '2026-03-13 07:09:12');
INSERT INTO `businesses` VALUES (23, 27, 104, 'Nusa Coffee', '2026-04-12', 'tri.agung.biantoro@gmail.com', NULL, '085279002200', NULL, '2026-03-13 10:24:29', -1139999.00, 100000.00, NULL, NULL, NULL, 1, '2026-03-13 10:24:29', '2026-03-21 08:14:17');
INSERT INTO `businesses` VALUES (24, 28, 107, 'Chris', '2026-04-12', 'Christian foundation', NULL, '082112825462', NULL, '2026-03-13 23:46:50', 0.00, 10000000.00, NULL, NULL, NULL, 1, '2026-03-13 23:46:50', '2026-03-13 23:46:50');
INSERT INTO `businesses` VALUES (25, 29, 101, 'Toko', '2026-04-13', NULL, NULL, '089627921934', NULL, '2026-03-14 11:03:24', 0.00, 1.00, NULL, NULL, NULL, 1, '2026-03-14 11:03:24', '2026-03-14 11:03:24');
INSERT INTO `businesses` VALUES (26, 30, 105, 'Tea Leaf', '2026-04-15', 'pamulang', NULL, '081298103685', NULL, '2026-03-16 11:12:33', 0.00, 1000000.00, NULL, NULL, NULL, 1, '2026-03-16 11:12:33', '2026-03-16 11:12:33');
INSERT INTO `businesses` VALUES (27, 31, 120, 'One Shop', '2026-04-17', 'Jakarta', NULL, '081310195804', NULL, '2026-03-18 13:39:00', 0.00, 500000.00, NULL, NULL, NULL, 1, '2026-03-18 13:39:00', '2026-03-18 13:39:00');
INSERT INTO `businesses` VALUES (28, 33, 102, 'Bakery One', '2026-04-28', 'Gading Serpong', NULL, '081310195804', NULL, '2026-03-29 20:33:13', -45000.00, 1000000.00, NULL, NULL, NULL, 1, '2026-03-29 20:33:13', '2026-03-29 20:57:12');
-- ----------------------------
-- Table structure for categories
-- ----------------------------
DROP TABLE IF EXISTS `categories`;
CREATE TABLE `categories` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`categoryName` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`business_id` bigint(20) UNSIGNED NOT NULL,
`icon` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`variationCapacity` tinyint(1) NOT NULL DEFAULT 0,
`variationColor` tinyint(1) NOT NULL DEFAULT 0,
`variationSize` tinyint(1) NOT NULL DEFAULT 0,
`variationType` tinyint(1) NOT NULL DEFAULT 0,
`variationWeight` tinyint(1) NOT NULL DEFAULT 0,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `categories_business_id_foreign`(`business_id` ASC) USING BTREE,
CONSTRAINT `categories_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 47 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of categories
-- ----------------------------
INSERT INTO `categories` VALUES (22, 'Jajanan Pasar', 2, NULL, 0, 0, 0, 0, 0, 1, '2026-02-08 09:06:04', '2026-02-08 09:06:04');
INSERT INTO `categories` VALUES (23, 'Minuman Jadoel', 2, NULL, 0, 0, 0, 0, 0, 1, '2026-02-08 09:06:28', '2026-02-08 09:06:28');
INSERT INTO `categories` VALUES (24, 'Rokokan', 2, NULL, 0, 0, 0, 0, 0, 1, '2026-02-08 12:34:00', '2026-02-08 12:34:00');
INSERT INTO `categories` VALUES (25, 'Mineral Water', 8, NULL, 0, 0, 0, 0, 0, 1, '2026-02-21 11:03:00', '2026-02-21 11:03:14');
INSERT INTO `categories` VALUES (26, 'Main Coffee', 8, 'uploads/26/02/1771646772-440.jpg', 0, 0, 0, 0, 0, 1, '2026-02-21 11:06:12', '2026-02-21 11:06:12');
INSERT INTO `categories` VALUES (27, 'Kopi Bubuk', 8, 'uploads/26/02/1771993254-615.jpg', 0, 0, 0, 0, 0, 1, '2026-02-25 11:20:54', '2026-02-25 11:20:54');
INSERT INTO `categories` VALUES (28, 'Roti Tawar', 10, NULL, 0, 0, 0, 0, 0, 1, '2026-02-26 14:24:32', '2026-02-26 14:24:32');
INSERT INTO `categories` VALUES (29, 'Roti Sobek', 10, NULL, 0, 0, 0, 0, 0, 1, '2026-02-26 15:19:31', '2026-02-26 15:19:31');
INSERT INTO `categories` VALUES (30, 'Roti Coklat', 10, NULL, 0, 0, 0, 0, 0, 1, '2026-02-26 15:19:40', '2026-02-26 15:19:40');
INSERT INTO `categories` VALUES (31, 'Kopi', 10, 'uploads/26/03/1772443137-466.jpg', 0, 0, 0, 0, 0, 1, '2026-03-02 16:18:57', '2026-03-02 16:18:57');
INSERT INTO `categories` VALUES (32, 'Baju', 11, NULL, 0, 0, 0, 0, 0, 1, '2026-03-05 22:59:32', '2026-03-05 22:59:32');
INSERT INTO `categories` VALUES (33, 'lariz', 14, NULL, 0, 0, 0, 0, 0, 1, '2026-03-11 18:47:27', '2026-03-11 18:47:27');
INSERT INTO `categories` VALUES (34, 'Premium', 23, NULL, 0, 0, 0, 0, 0, 1, '2026-03-13 15:50:12', '2026-03-13 15:50:12');
INSERT INTO `categories` VALUES (36, 'PAKAIAN', 24, NULL, 0, 0, 0, 0, 0, 1, '2026-03-14 00:47:47', '2026-03-14 00:47:47');
INSERT INTO `categories` VALUES (37, 'produk live', 19, NULL, 0, 0, 0, 0, 0, 1, '2026-03-18 09:08:02', '2026-03-18 09:08:02');
INSERT INTO `categories` VALUES (38, 'susu', 26, NULL, 0, 0, 0, 0, 0, 1, '2026-03-18 09:14:49', '2026-03-18 09:14:49');
INSERT INTO `categories` VALUES (39, 'Category Test', 27, NULL, 0, 0, 0, 0, 0, 1, '2026-03-20 08:36:45', '2026-03-20 08:36:45');
INSERT INTO `categories` VALUES (40, 'minuman', 9, NULL, 0, 0, 0, 0, 0, 1, '2026-03-20 09:21:18', '2026-03-20 09:21:18');
INSERT INTO `categories` VALUES (41, 'gorengan', 9, NULL, 0, 0, 0, 0, 0, 1, '2026-03-20 09:21:25', '2026-03-20 09:21:25');
INSERT INTO `categories` VALUES (42, 'kue basah', 9, NULL, 0, 0, 0, 0, 0, 1, '2026-03-20 09:21:31', '2026-03-20 09:21:31');
INSERT INTO `categories` VALUES (43, 'kue kering', 9, NULL, 0, 0, 0, 0, 0, 1, '2026-03-20 09:21:40', '2026-03-20 09:21:40');
INSERT INTO `categories` VALUES (44, 'Reguler', 23, NULL, 0, 0, 0, 0, 0, 1, '2026-03-21 08:19:08', '2026-03-21 08:19:08');
INSERT INTO `categories` VALUES (45, 'es batu', 9, NULL, 0, 0, 0, 0, 0, 1, '2026-03-28 09:44:17', '2026-03-28 09:44:17');
INSERT INTO `categories` VALUES (46, 'Roti', 28, NULL, 0, 0, 0, 0, 0, 1, '2026-03-29 20:36:24', '2026-03-29 20:36:24');
-- ----------------------------
-- Table structure for combo_products
-- ----------------------------
DROP TABLE IF EXISTS `combo_products`;
CREATE TABLE `combo_products` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) UNSIGNED NOT NULL,
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`stock_id` bigint(20) UNSIGNED NOT NULL,
`purchase_price` double(15, 3) NOT NULL DEFAULT 0.000,
`quantity` double(15, 3) NOT NULL DEFAULT 0.000,
PRIMARY KEY (`id`) USING BTREE,
INDEX `combo_products_product_id_foreign`(`product_id` ASC) USING BTREE,
INDEX `combo_products_branch_id_foreign`(`branch_id` ASC) USING BTREE,
INDEX `combo_products_stock_id_foreign`(`stock_id` ASC) USING BTREE,
CONSTRAINT `combo_products_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `combo_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `combo_products_stock_id_foreign` FOREIGN KEY (`stock_id`) REFERENCES `stocks` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of combo_products
-- ----------------------------
INSERT INTO `combo_products` VALUES (7, 39, NULL, 35, 50.000, 15.000);
-- ----------------------------
-- Table structure for comments
-- ----------------------------
DROP TABLE IF EXISTS `comments`;
CREATE TABLE `comments` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`blog_id` bigint(20) UNSIGNED NOT NULL,
`comment_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`comment` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `comments_blog_id_foreign`(`blog_id` ASC) USING BTREE,
INDEX `comments_comment_id_foreign`(`comment_id` ASC) USING BTREE,
CONSTRAINT `comments_blog_id_foreign` FOREIGN KEY (`blog_id`) REFERENCES `blogs` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `comments_comment_id_foreign` FOREIGN KEY (`comment_id`) REFERENCES `comments` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of comments
-- ----------------------------
-- ----------------------------
-- Table structure for currencies
-- ----------------------------
DROP TABLE IF EXISTS `currencies`;
CREATE TABLE `currencies` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`country_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`rate` double(10, 2) NULL DEFAULT NULL,
`symbol` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`position` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`is_default` tinyint(1) NOT NULL DEFAULT 0,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `currencies_name_unique`(`name` ASC) USING BTREE,
UNIQUE INDEX `currencies_code_unique`(`code` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 152 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of currencies
-- ----------------------------
INSERT INTO `currencies` VALUES (1, 'Afghanistan Afghani', 'Afghanistan', 'AFN', 67.27, '؋', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (2, 'Albania Lek', 'Albania', 'ALL', 91.47, 'L', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (3, 'Algerian Dinar', 'Algeria', 'DZD', 133.08, 'دج', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (4, 'US Dollar', 'United States of America', 'USD', 1.00, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (5, 'Angolan Kwanza', 'Angola', 'AOA', 910.98, 'Kz', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (6, 'Argentine Peso', 'Argentina', 'ARS', 1007.68, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (7, 'Armenian Dram', 'Armenia', 'AMD', 389.25, '֏', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (8, 'Aruban Guilder', 'Aruba', 'AWG', 1.79, 'ƒ', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (9, 'Australian Dollar', 'Australia', 'AUD', 1.54, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (10, 'Euro', 'Austria', 'EUR', 0.95, '', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (11, 'Azerbaijan Manat', 'Azerbaijan', 'AZN', 1.70, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (12, 'Bahamian Dollar', 'Bahamas', 'BSD', 1.00, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (13, 'Bahraini Dinar', 'Bahrain', 'BHD', 0.38, '.د.ب', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (14, 'Bangladesh Taka', 'Bangladesh', 'BDT', 119.00, '', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (15, 'Barbados Dollar', 'Barbados', 'BBD', 2.00, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (16, 'Belarusian Ruble', 'Belarus', 'BYN', 3.43, 'Br', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (17, 'Belize Dollar', 'Belize', 'BZD', 2.00, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (18, 'Bermuda Dollar', 'Bermuda', 'BMD', 1.00, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (19, 'Bhutan Ngultrum', 'Bhutan', 'BTN', 84.45, 'Nu.', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (20, 'Bolivia Boliviano', 'Bolivia', 'BOB', 6.86, 'Bs.', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (21, 'Bosnia and Herzegovina Convertible Mark', 'Bosnia and Herzegovina', 'BAM', 1.85, 'KM', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (22, 'Botswana Pula', 'Botswana', 'BWP', 13.55, 'P', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (23, 'Brazilian Real', 'Brazil', 'BRL', 5.82, 'R$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (24, 'Brunei Dollar', 'Brunei', 'BND', 1.34, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (25, 'Bulgarian Lev', 'Bulgaria', 'BGN', 1.85, 'лв', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (26, 'Burundi Franc', 'Burundi', 'BIF', 2885.73, 'FBu', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (27, 'Cambodian Riel', 'Cambodia', 'KHR', 4017.00, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (28, 'Canadian Dollar', 'Canada', 'CAD', 1.40, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (29, 'Cape Verde Escudo', 'Cape Verde', 'CVE', 104.50, '$', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (30, 'Cayman Is. Dollar', 'Cayman Islands', 'KYD', 0.82, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (31, 'Chilean Peso', 'Chile', 'CLP', 973.00, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (32, 'Chinese Renminbi', 'China', 'CNY', 7.25, '¥', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (33, 'Colombian Peso', 'Colombia', 'COP', 4413.00, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (34, 'Comoros Franc', 'Comoros', 'KMF', 466.23, 'CF', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (35, 'Congo Franc, Dem. Rep.of', 'Congo, Dem. Rep.', 'CDF', 2843.07, 'FC', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (36, 'Costa Rica Colon', 'Costa Rica', 'CRC', 509.02, '', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (37, 'Cuban Peso', 'Cuba', 'CUP', 24.00, '', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (38, 'Czech Koruna', 'Czech Republic', 'CZK', 23.97, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (39, 'Danish Krone', 'Denmark', 'DKK', 7.07, 'kr', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (40, 'Djibouti Francs', 'Djibouti', 'DJF', 177.00, 'Fdj', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (41, 'E.C. Dollar', 'Anguilla', 'XCD', 2.70, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (42, 'Dominican Peso', 'Dominican Republic', 'DOP', 60.17, 'RD$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (43, 'Egyptian Pound', 'Egypt', 'EGP', 49.61, '£', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (44, 'Eritrea Nakfa', 'Eritrea', 'ERN', 15.00, 'Nfk', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (45, 'Lilangeni', 'Eswatini, Kingdom of', 'SZL', 18.16, 'E', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (46, 'Ethiopian Birr', 'Ethiopia', 'ETB', 121.81, 'Br', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (47, 'Fiji Dollar', 'Fiji', 'FJD', 2.25, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (48, 'Gambian Dalasi', 'Gambia', 'GMD', 70.41, 'D', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (49, 'Georgian Lari', 'Georgia', 'GEL', 2.74, '', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (50, 'Ghana Cedi', 'Ghana', 'GHS', 15.50, '', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (51, 'Gibraltar Pound', 'Gibraltar', 'GIP', 0.79, '£', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (52, 'Guatemala Quetzal(es)', 'Guatemala', 'GTQ', 7.71, 'Q', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (53, 'Guinean Franc', 'Guinea', 'GNF', 8552.17, 'FG', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (54, 'Guyana Dollar', 'Guyana', 'GYD', 207.90, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (55, 'Haiti Gourde', 'Haiti', 'HTG', 130.93, 'G', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (56, 'Honduras Lempira', 'Honduras', 'HNL', 24.96, 'L', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (57, 'HongKong Dollar', 'Hong Kong', 'HKD', 7.78, 'HK$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (58, 'Hungary Forint', 'Hungary', 'HUF', 391.50, 'Ft', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (59, 'Iceland Krona', 'Iceland', 'ISK', 137.04, 'kr', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (60, 'Indian Rupee', 'India', 'INR', 84.45, '', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930.00, 'Rp', 'left', 1, 1, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (62, 'Iranian Rial', 'Iran', 'IRR', 512897.00, '', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (63, 'Iraqi Dinar', 'Iraq', 'IQD', 1310.00, 'ع.د', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (64, 'Israel Shekel', 'Israel', 'ILS', 3.65, '', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (65, 'Jamaican Dollar', 'Jamaica', 'JMD', 157.35, 'J$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (66, 'Japanese Yen', 'Japan', 'JPY', 151.42, '¥', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (67, 'Jordanian Dinar', 'Jordan', 'JOD', 0.71, 'د.ا', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (68, 'Kazakhstan Tenge', 'Kazakhstan', 'KZT', 502.23, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (69, 'Kenyan Shilling', 'Kenya', 'KES', 129.00, 'KSh', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (70, 'Korean Won, North Korea', 'Korea, D.P.R. of', 'KPW', 110.00, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (71, 'Korean Won, South Korea', 'Korea, Republic of', 'KRW', 1392.51, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (72, 'Kuwaiti Dinar', 'Kuwait', 'KWD', 0.31, 'د.ك', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (73, 'Kyrgyzstan Som', 'Kyrgyzstan', 'KGS', 86.25, 'с', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (74, 'Laos Kip', 'Lao, People\'s Dem. Rep.', 'LAK', 22020.00, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (75, 'Lebanese Pound', 'Lebanon', 'LBP', 89500.00, 'ل.ل', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (76, 'Lesotho Loti', 'Lesotho', 'LSL', 18.16, 'M', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (77, 'Liberian Dollar', 'Liberia', 'LRD', 179.39, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (78, 'Libyan Dinar', 'Libyan Arab Jamahiriya', 'LYD', 4.89, 'د.ل', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (79, 'Macao Pataca', 'Macao', 'MOP', 8.02, 'P', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (80, 'Malagasy Ariary', 'Madagascar', 'MGA', 4667.74, 'Ar', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (81, 'Malawi Kwacha', 'Malawi', 'MWK', 1751.00, 'MK', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (82, 'Malaysia Ringgit', 'Malaysia', 'MYR', 4.44, 'RM', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (83, 'Maldives Rufiyaa', 'Maldives', 'MVR', 15.00, 'Rf', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (84, 'Mauritania Ouguiya', 'Mauritania', 'MRU', 39.77, 'UM', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (85, 'Mauritius Rupee', 'Mauritius', 'MUR', 46.64, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (86, 'Mexican Peso', 'Mexico', 'MXN', 20.68, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (87, 'Moldovan Leu', 'Moldova, Republic of', 'MDL', 18.23, 'L', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (88, 'Mongolia Tugrik', 'Mongolia', 'MNT', 3406.00, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (89, 'Morocco Dirham', 'Morocco', 'MAD', 10.00, 'د.م.', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (90, 'Mozambique Metical', 'Mozambique', 'MZN', 63.25, 'MT', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (91, 'Myanmar Kyat', 'Myanmar', 'MMK', 4100.00, 'K', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (92, 'Namibia Dollar', 'Namibia', 'NAD', 18.16, 'N$', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (93, 'Nepalese Rupee', 'Nepal', 'NPR', 135.11, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (94, 'Netherlands Antilles Guilder', 'Netherlands Antilles', 'ANG', 1.79, 'ƒ', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (95, 'CFP Franc', 'New Caledonia', 'XPF', 113.09, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (96, 'New Zealand Dollar', 'New Zealand', 'NZD', 1.69, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (97, 'Nicaragua Cordoba Oro', 'Nicaragua', 'NIO', 36.55, 'C$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (98, 'Nigeria Naira', 'Nigeria', 'NGN', 1680.29, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (99, 'Denar', 'North Macedonia, Rep. of', 'MKD', 58.11, 'ден', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (100, 'Norwegian Krone', 'Norway', 'NOK', 11.07, 'kr', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (101, 'Oman Rial', 'Oman', 'OMR', 0.38, 'ر.ع.', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (102, 'Pakistani Rupee', 'Pakistan', 'PKR', 277.77, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (103, 'Panama Balboa', 'Panama', 'PAB', 1.00, 'B/.', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (104, 'Kina', 'Papua New Guinea', 'PGK', 3.95, 'K', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (105, 'Paraguay Guarani', 'Paraguay', 'PYG', 7804.00, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (106, 'Sol', 'Peru', 'PEN', 3.76, 'S/', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (107, 'Philippine Peso', 'Philippines', 'PHP', 58.70, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (108, 'Poland Zloty', 'Poland', 'PLN', 4.08, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (109, 'Qatari Rial', 'Qatar', 'QAR', 3.65, 'ر.ق.', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (110, 'Romanian Leu', 'Romania', 'RON', 4.71, 'lei', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (111, 'Russian Rouble', 'Russian Federation', 'RUB', 111.60, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (112, 'Rwanda Franc', 'Rwanda', 'RWF', 1360.48, 'FRw', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (113, 'St. Helena Pound', 'Saint Helena', 'SHP', 0.79, '£', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (114, 'Samoa Tala', 'Samoa', 'WST', 2.75, 'T', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (115, 'Sao Tome Principe Dobra', 'Sao Tome and Principe', 'STN', 23.28, 'Db', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (116, 'Saudi Riyal', 'Saudi Arabia', 'SAR', 3.76, 'ر.س.', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (117, 'CFA Franc', 'Senegal', 'XOF', 621.64, 'Fr', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (118, 'Serbian Dinar', 'Serbia', 'RSD', 110.80, 'дин.', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (119, 'Seychelles Rupee', 'Seychelles', 'SCR', 13.65, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (120, 'Sierra Leone Leone', 'Sierra Leone', 'SLE', 23.39, 'Le', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (121, 'Singapore Dollar', 'Singapore', 'SGD', 1.34, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (122, 'Solomon Is. Dollar', 'Solomon Islands', 'SBD', 8.29, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (123, 'Somali Shilling', 'Somalia', 'SOS', 24300.00, 'S', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (124, 'South Africa Rand', 'South Africa', 'ZAR', 18.16, 'R', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (125, 'South Sudanese Pound', 'South Sudan', 'SSP', 3613.14, 'SSP', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (126, 'Sri Lanka Rupee', 'Sri Lanka', 'LKR', 290.57, 'Rs', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (127, 'Sudanese Pound', 'Sudan', 'SDG', 1987.00, 'ج.س.', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (128, 'Surinamese Dollar', 'Suriname', 'SRD', 35.52, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (129, 'Swedish Krona', 'Sweden', 'SEK', 10.92, 'kr', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (130, 'Swiss Franc', 'Switzerland', 'CHF', 0.88, 'CHF', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (131, 'Syrian Pound', 'Syrian Arab Republic', 'SYP', 13600.00, '£S', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (132, 'Tajikistan Somoni', 'Tajikistan', 'TJS', 10.67, 'SM', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (133, 'Tanzania Shilling', 'Tanzania, United Rep. of', 'TZS', 2640.00, 'TSh', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (134, 'Thai Baht', 'Thailand', 'THB', 34.43, '฿', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (135, 'Tonga Pa\'anga', 'Tonga', 'TOP', 2.35, 'T$', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (136, 'Trinidad and Tobago Dollar', 'Trinidad and Tobago', 'TTD', 6.75, 'TT$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (137, 'Tunisian Dinar', 'Tunisia', 'TND', 3.15, 'د.ت', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (138, 'Turkish Lira', 'Turkey', 'TRY', 34.66, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (139, 'Turkmenistan Manat', 'Turkmenistan', 'TMT', 3.50, 'm', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (140, 'Uganda Shilling', 'Uganda', 'UGX', 3682.00, 'Sh', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (141, 'Ukraine Hryvnia', 'Ukraine', 'UAH', 41.50, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (142, 'United Arab Emirates Dirham', 'United Arab Emirates', 'AED', 3.67, 'د.إ', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (143, 'U.K. Pound', 'United Kingdom', 'GBP', 0.79, '£', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (144, 'Uruguay Peso', 'Uruguay', 'UYU', 42.87, '$', 'left', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (145, 'Uzbekistan Sum', 'Uzbekistan', 'UZS', 12830.00, 'сўм', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (146, 'Vanuatu Vatu', 'Vanuatu', 'VUV', 117.74, 'Vt', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (147, 'Bolivar Digital', 'Venezuela', 'VES', 46.33, 'Bs.S', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (148, 'Viet Nam Dong', 'Viet Nam', 'VND', 25384.00, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (149, 'Yemeni Rial', 'Yemen, Republic of', 'YER', 528.74, '', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (150, 'Zambia Kwacha', 'Zambia', 'ZMW', 27.32, 'ZK', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
INSERT INTO `currencies` VALUES (151, 'Zimbabwe Gold', 'Zimbabwe', 'ZWG', 25.33, 'ZWL', 'right', 1, 0, NULL, '2026-02-19 15:26:08');
-- ----------------------------
-- Table structure for due_collects
-- ----------------------------
DROP TABLE IF EXISTS `due_collects`;
CREATE TABLE `due_collects` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`business_id` bigint(20) UNSIGNED NOT NULL,
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`party_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`user_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`sale_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`purchase_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`invoiceNumber` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`totalDue` double(10, 2) NOT NULL DEFAULT 0.00,
`dueAmountAfterPay` double(10, 2) NOT NULL DEFAULT 0.00,
`payDueAmount` double(10, 2) NOT NULL DEFAULT 0.00,
`paymentType` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`payment_type_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`paymentDate` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `due_collects_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `due_collects_party_id_foreign`(`party_id` ASC) USING BTREE,
INDEX `due_collects_user_id_foreign`(`user_id` ASC) USING BTREE,
INDEX `due_collects_sale_id_foreign`(`sale_id` ASC) USING BTREE,
INDEX `due_collects_purchase_id_foreign`(`purchase_id` ASC) USING BTREE,
INDEX `due_collects_branch_id_foreign`(`branch_id` ASC) USING BTREE,
CONSTRAINT `due_collects_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `due_collects_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `due_collects_party_id_foreign` FOREIGN KEY (`party_id`) REFERENCES `parties` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `due_collects_purchase_id_foreign` FOREIGN KEY (`purchase_id`) REFERENCES `purchases` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `due_collects_sale_id_foreign` FOREIGN KEY (`sale_id`) REFERENCES `sales` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `due_collects_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of due_collects
-- ----------------------------
INSERT INTO `due_collects` VALUES (1, 10, 2, 19, 7, NULL, NULL, 'D01', 16650.00, 0.00, 16650.00, NULL, NULL, '2026-02-26 16:22:43', '2026-02-26 16:22:43', '2026-02-26 16:22:43');
-- ----------------------------
-- Table structure for expense_categories
-- ----------------------------
DROP TABLE IF EXISTS `expense_categories`;
CREATE TABLE `expense_categories` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`categoryName` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`business_id` bigint(20) UNSIGNED NOT NULL,
`categoryDescription` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `expense_categories_business_id_foreign`(`business_id` ASC) USING BTREE,
CONSTRAINT `expense_categories_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of expense_categories
-- ----------------------------
INSERT INTO `expense_categories` VALUES (6, 'Office Expenses', 8, 'Office Operational Expenses', 1, '2026-02-23 16:10:18', '2026-02-23 16:11:03');
INSERT INTO `expense_categories` VALUES (7, 'alat', 23, NULL, 0, '2026-03-16 18:21:46', '2026-03-16 18:21:46');
INSERT INTO `expense_categories` VALUES (8, 'Office Expenses', 10, NULL, 0, '2026-03-20 09:21:49', '2026-03-20 09:21:49');
INSERT INTO `expense_categories` VALUES (9, 'bahan', 23, NULL, 0, '2026-03-21 08:13:27', '2026-03-21 08:13:27');
INSERT INTO `expense_categories` VALUES (10, 'BBG', 9, NULL, 0, '2026-04-12 20:06:15', '2026-04-12 20:06:15');
-- ----------------------------
-- Table structure for expenses
-- ----------------------------
DROP TABLE IF EXISTS `expenses`;
CREATE TABLE `expenses` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`amount` double(10, 2) NOT NULL,
`expense_category_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`user_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`business_id` bigint(20) UNSIGNED NOT NULL,
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`expanseFor` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`paymentType` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`payment_type_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`referenceNo` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`expenseDate` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `expenses_expense_category_id_foreign`(`expense_category_id` ASC) USING BTREE,
INDEX `expenses_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `expenses_user_id_foreign`(`user_id` ASC) USING BTREE,
INDEX `expenses_branch_id_foreign`(`branch_id` ASC) USING BTREE,
CONSTRAINT `expenses_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `expenses_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `expenses_expense_category_id_foreign` FOREIGN KEY (`expense_category_id`) REFERENCES `expense_categories` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `expenses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of expenses
-- ----------------------------
INSERT INTO `expenses` VALUES (9, 5000000.00, 7, 27, 23, NULL, 'Mesin penggiling', NULL, NULL, '2', '2', '2026-03-16 18:21:32', '2026-03-16 18:22:12', '2026-03-16 18:22:12');
INSERT INTO `expenses` VALUES (10, 10000.00, 6, 9, 8, NULL, 'Print', NULL, NULL, NULL, NULL, '2026-03-18 08:40:39', '2026-03-18 08:41:13', '2026-03-18 08:41:13');
INSERT INTO `expenses` VALUES (11, 100000.00, 8, 7, 10, 2, 'Office', NULL, NULL, NULL, 'Office Print', '2026-03-20 09:21:00', '2026-03-20 09:22:00', '2026-03-20 09:22:00');
INSERT INTO `expenses` VALUES (12, 2000000.00, 9, 27, 23, NULL, 'Kopi Biji', NULL, NULL, 'ROB-A-1', 'kualitas terbaik', '2026-03-21 08:13:14', '2026-03-21 08:14:17', '2026-03-21 08:14:17');
INSERT INTO `expenses` VALUES (13, 360000.00, 10, 12, 9, NULL, 'Gas untuk mask', NULL, NULL, NULL, NULL, '2026-04-12 20:05:57', '2026-04-12 20:06:59', '2026-04-12 20:06:59');
-- ----------------------------
-- Table structure for failed_jobs
-- ----------------------------
DROP TABLE IF EXISTS `failed_jobs`;
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`uuid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `failed_jobs_uuid_unique`(`uuid` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of failed_jobs
-- ----------------------------
-- ----------------------------
-- Table structure for features
-- ----------------------------
DROP TABLE IF EXISTS `features`;
CREATE TABLE `features` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`bg_color` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of features
-- ----------------------------
INSERT INTO `features` VALUES (1, 'B to B Sales', '#d3c6f5', 'uploads/24/04/1713261432-447.png', 1, '2024-04-16 21:57:12', '2026-02-23 16:23:45');
INSERT INTO `features` VALUES (2, 'Pos Sales', '#BCEBD7', 'uploads/24/04/1713261480-659.png', 1, '2024-04-16 21:58:00', '2024-04-16 21:58:00');
INSERT INTO `features` VALUES (3, 'Dashboard', '#FEE8C2', 'uploads/24/04/1713261520-929.png', 1, '2024-04-16 21:58:40', '2024-04-16 21:58:40');
INSERT INTO `features` VALUES (4, 'Low Inventory Alert', '#bed8ff', 'uploads/24/04/1713261611-324.png', 1, '2024-04-16 22:00:11', '2026-02-24 14:26:12');
INSERT INTO `features` VALUES (5, 'Multi Currency', '#FFDCF4', 'uploads/24/04/1713261675-63.png', 1, '2024-04-16 22:01:15', '2024-04-16 22:01:15');
INSERT INTO `features` VALUES (6, 'Composition', '#c3caff', 'uploads/24/04/1713261718-4.png', 1, '2024-04-16 22:01:58', '2026-02-24 14:29:04');
INSERT INTO `features` VALUES (7, 'Report', '#FFDDCC', 'uploads/24/04/1713261757-428.png', 1, '2024-04-16 22:02:37', '2024-04-16 22:02:37');
INSERT INTO `features` VALUES (8, 'Profit/Loss Report', '#bcebd7', 'uploads/24/04/1713261799-681.png', 1, '2024-04-16 22:03:19', '2026-02-23 16:24:17');
INSERT INTO `features` VALUES (9, 'Stock', '#BCE9FF', 'uploads/24/04/1713261842-604.png', 1, '2024-04-16 22:04:02', '2024-04-16 22:04:02');
INSERT INTO `features` VALUES (10, 'Inventory', '#fbbdd3', 'uploads/24/04/1713261880-146.png', 1, '2024-04-16 22:04:40', '2026-02-23 16:23:08');
INSERT INTO `features` VALUES (11, 'Income', '#F7C5FF', 'uploads/24/04/1713261919-222.png', 1, '2024-04-16 22:05:19', '2024-04-16 22:05:19');
INSERT INTO `features` VALUES (12, 'Due List', '#FFD4D5', 'uploads/24/04/1713261960-909.png', 1, '2024-04-16 22:06:00', '2024-04-16 22:06:00');
INSERT INTO `features` VALUES (13, 'Products', '#D3C6F5', 'uploads/24/04/1713261996-808.png', 1, '2024-04-16 22:06:36', '2024-04-16 22:06:36');
INSERT INTO `features` VALUES (14, 'Purchase', '#BCEBD7', 'uploads/24/04/1713262034-101.png', 1, '2024-04-16 22:07:14', '2024-04-16 22:07:14');
INSERT INTO `features` VALUES (15, '3rd Parties', '#fee8c2', 'uploads/24/04/1713262078-927.png', 1, '2024-04-16 22:07:58', '2026-02-24 14:25:08');
INSERT INTO `features` VALUES (16, 'Sales', '#BED8FF', 'uploads/24/04/1713262168-328.png', 1, '2024-04-16 22:09:28', '2024-04-16 22:09:48');
-- ----------------------------
-- Table structure for gateways
-- ----------------------------
DROP TABLE IF EXISTS `gateways`;
CREATE TABLE `gateways` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`platform` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`currency_id` bigint(20) UNSIGNED NOT NULL,
`mode` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`charge` tinyint(1) NOT NULL DEFAULT 0,
`image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`manual_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`is_manual` tinyint(1) NOT NULL DEFAULT 0,
`accept_img` tinyint(1) NOT NULL DEFAULT 0,
`namespace` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`phone_required` int(11) NOT NULL DEFAULT 0,
`instructions` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `gateways_currency_id_foreign`(`currency_id` ASC) USING BTREE,
CONSTRAINT `gateways_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of gateways
-- ----------------------------
INSERT INTO `gateways` VALUES (1, 'QRIS', NULL, 61, 'Live', '1', 0, 'uploads/26/03/1772466642-441.jpeg', '', '{\"label\":[\"QRIS\",\"Transaction ID\"],\"is_required\":[\"0\",\"0\"]}', 1, 1, 'App\\Library\\StripeGateway', 0, '1. Buka aplikasi Mobile Banking atau E-Wallet Anda<br>&nbsp; &nbsp;(contoh: BCA Mobile, Livin by Mandiri, BRImo, DANA, OVO, GoPay, dll).<br>2. Pilih menu Scan / QRIS.<br>3. Scan kode QRIS di halaman ini.<br>&nbsp; &nbsp;Pastikan:<br>&nbsp; &nbsp;<b>Nama merchant sudah sesuai</b><br>&nbsp; &nbsp;<b>Nominal pembayaran sudah benar</b><br>4. Masukkan PIN atau lakukan konfirmasi pembayaran sesuai prosedur aplikasi Anda.<br>5. Tunggu hingga transaksi dinyatakan <b>BERHASIL / SUCCESS</b>.<br>6. Simpan atau screenshot bukti pembayaran.<br>7. Kirimkan bukti pembayaran kepada melalui link ini pada bagian <b>Screenshot/Proof Image</b> untuk proses verifikasi.<br>8. Isi data Qris dan Transaksi ID berhasil<br>9. Klik <b>Paynow</b> dan tunggu proses verifikasi pembayaran.', '2024-02-18 23:45:52', '2026-03-02 22:50:42');
-- ----------------------------
-- Table structure for income_categories
-- ----------------------------
DROP TABLE IF EXISTS `income_categories`;
CREATE TABLE `income_categories` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`categoryName` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`business_id` bigint(20) UNSIGNED NOT NULL,
`categoryDescription` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `income_categories_business_id_foreign`(`business_id` ASC) USING BTREE,
CONSTRAINT `income_categories_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of income_categories
-- ----------------------------
INSERT INTO `income_categories` VALUES (8, 'penjualan', 23, NULL, 0, '2026-03-16 06:24:31', '2026-03-16 06:24:31');
INSERT INTO `income_categories` VALUES (9, 'other income', 9, NULL, 0, '2026-04-12 20:14:24', '2026-04-12 20:14:24');
-- ----------------------------
-- Table structure for incomes
-- ----------------------------
DROP TABLE IF EXISTS `incomes`;
CREATE TABLE `incomes` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`amount` double(10, 2) NOT NULL,
`income_category_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`user_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`business_id` bigint(20) UNSIGNED NOT NULL,
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`incomeFor` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`paymentType` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`payment_type_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`referenceNo` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`incomeDate` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `incomes_income_category_id_foreign`(`income_category_id` ASC) USING BTREE,
INDEX `incomes_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `incomes_user_id_foreign`(`user_id` ASC) USING BTREE,
INDEX `incomes_branch_id_foreign`(`branch_id` ASC) USING BTREE,
CONSTRAINT `incomes_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `incomes_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `incomes_income_category_id_foreign` FOREIGN KEY (`income_category_id`) REFERENCES `income_categories` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `incomes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of incomes
-- ----------------------------
INSERT INTO `incomes` VALUES (8, 100000.00, 8, 27, 23, NULL, 'penjualan', NULL, NULL, '1', '11', '2026-03-16 06:24:16', '2026-03-16 06:25:00', '2026-03-16 06:25:00');
INSERT INTO `incomes` VALUES (9, 100000.00, 8, 27, 23, NULL, 'ggungg', NULL, NULL, '23', NULL, '2026-03-20 17:03:50', '2026-03-20 17:04:42', '2026-03-20 17:04:42');
INSERT INTO `incomes` VALUES (10, 100000.00, 9, 12, 9, NULL, 'modal', NULL, NULL, NULL, 'pinjaman', '2026-04-12 20:14:08', '2026-04-12 20:14:55', '2026-04-12 20:14:55');
-- ----------------------------
-- Table structure for jobs
-- ----------------------------
DROP TABLE IF EXISTS `jobs`;
CREATE TABLE `jobs` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`queue` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`attempts` tinyint(3) UNSIGNED NOT NULL,
`reserved_at` int(10) UNSIGNED NULL DEFAULT NULL,
`available_at` int(10) UNSIGNED NOT NULL,
`created_at` int(10) UNSIGNED NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `jobs_queue_index`(`queue` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of jobs
-- ----------------------------
-- ----------------------------
-- Table structure for languages
-- ----------------------------
DROP TABLE IF EXISTS `languages`;
CREATE TABLE `languages` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`icon` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 49 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of languages
-- ----------------------------
INSERT INTO `languages` VALUES (1, 'Comming Soon', 'uploads/24/04/1713263132-74.png', 1, '2024-04-16 16:25:32', '2024-04-16 16:25:32');
INSERT INTO `languages` VALUES (2, 'Portuguese (BR)', 'uploads/24/04/1713263352-609.png', 1, '2024-04-16 16:29:12', '2024-04-16 16:29:12');
INSERT INTO `languages` VALUES (3, 'Chinese (TW)', 'uploads/24/04/1713263390-316.png', 1, '2024-04-16 16:29:50', '2024-04-16 16:29:50');
INSERT INTO `languages` VALUES (4, 'Chinese (CN)', 'uploads/24/04/1713263431-511.png', 1, '2024-04-16 16:30:31', '2024-04-16 16:30:31');
INSERT INTO `languages` VALUES (5, 'Azerbaijani', 'uploads/24/04/1713263469-306.png', 1, '2024-04-16 16:31:09', '2024-04-16 16:31:09');
INSERT INTO `languages` VALUES (6, 'Kazakhastan', 'uploads/24/04/1713263502-600.png', 1, '2024-04-16 16:31:42', '2024-04-16 16:31:42');
INSERT INTO `languages` VALUES (7, 'Tigrinya', 'uploads/24/04/1713263543-203.png', 1, '2024-04-16 16:32:23', '2024-04-16 16:32:23');
INSERT INTO `languages` VALUES (8, 'Burmuse', 'uploads/24/04/1713263573-197.png', 1, '2024-04-16 16:32:53', '2024-04-16 16:32:53');
INSERT INTO `languages` VALUES (9, 'Swahili', 'uploads/24/04/1713263661-746.png', 1, '2024-04-16 16:33:31', '2024-04-16 16:34:21');
INSERT INTO `languages` VALUES (10, 'Slovak', 'uploads/24/04/1713263705-676.png', 1, '2024-04-16 16:35:05', '2024-04-16 16:35:05');
INSERT INTO `languages` VALUES (11, 'Albanian', 'uploads/24/04/1713263748-483.png', 1, '2024-04-16 16:35:48', '2024-04-16 16:35:48');
INSERT INTO `languages` VALUES (12, 'Urdu', 'uploads/24/04/1713263785-829.png', 1, '2024-04-16 16:36:25', '2024-04-16 16:36:25');
INSERT INTO `languages` VALUES (13, 'Danish', 'uploads/24/04/1713263817-546.png', 1, '2024-04-16 16:36:57', '2024-04-16 16:36:57');
INSERT INTO `languages` VALUES (14, 'Swedish', 'uploads/24/04/1713263851-61.png', 1, '2024-04-16 16:37:31', '2024-04-16 16:37:31');
INSERT INTO `languages` VALUES (15, 'Marathi', 'uploads/24/04/1713263883-87.png', 1, '2024-04-16 16:38:03', '2024-04-16 16:38:03');
INSERT INTO `languages` VALUES (16, 'Kannada', 'uploads/24/04/1713263922-810.png', 1, '2024-04-16 16:38:42', '2024-04-16 16:38:42');
INSERT INTO `languages` VALUES (17, 'Czech', 'uploads/24/04/1713263954-737.png', 1, '2024-04-16 16:39:14', '2024-04-16 16:39:14');
INSERT INTO `languages` VALUES (18, 'Русский', 'uploads/24/04/1713263985-750.png', 1, '2024-04-16 16:39:45', '2024-04-16 16:39:45');
INSERT INTO `languages` VALUES (19, 'Lao', 'uploads/24/04/1713264024-299.png', 1, '2024-04-16 16:40:24', '2024-04-16 16:40:24');
INSERT INTO `languages` VALUES (20, 'Ukrainian', 'uploads/24/04/1713264051-664.png', 1, '2024-04-16 16:40:51', '2024-04-16 16:40:51');
INSERT INTO `languages` VALUES (21, 'Khmer', 'uploads/24/04/1713264076-901.png', 1, '2024-04-16 16:41:16', '2024-04-16 16:41:16');
INSERT INTO `languages` VALUES (22, 'Serbian', 'uploads/24/04/1713264104-342.png', 1, '2024-04-16 16:41:44', '2024-04-16 16:41:44');
INSERT INTO `languages` VALUES (23, 'Turkish', 'uploads/24/04/1713264131-167.png', 1, '2024-04-16 16:42:11', '2024-04-16 16:42:11');
INSERT INTO `languages` VALUES (24, 'Persian', 'uploads/24/04/1713264160-560.png', 1, '2024-04-16 16:42:40', '2024-04-16 16:42:40');
INSERT INTO `languages` VALUES (25, 'Indonesian', 'uploads/24/04/1713264189-370.png', 1, '2024-04-16 16:43:09', '2024-04-16 16:43:09');
INSERT INTO `languages` VALUES (26, 'Malay', 'uploads/24/04/1713264218-608.png', 1, '2024-04-16 16:43:38', '2024-04-16 16:43:38');
INSERT INTO `languages` VALUES (27, 'Korean', 'uploads/24/04/1713264250-943.png', 1, '2024-04-16 16:44:10', '2024-04-16 16:44:10');
INSERT INTO `languages` VALUES (28, 'Greek', 'uploads/24/04/1713264276-755.png', 1, '2024-04-16 16:44:37', '2024-04-16 16:44:37');
INSERT INTO `languages` VALUES (29, 'Finland', 'uploads/24/04/1713264306-829.png', 1, '2024-04-16 16:45:06', '2024-04-16 16:45:06');
INSERT INTO `languages` VALUES (30, 'Hungarian', 'uploads/24/04/1713264331-326.png', 1, '2024-04-16 16:45:31', '2024-04-16 16:45:31');
INSERT INTO `languages` VALUES (31, 'Polish', 'uploads/24/04/1713264358-886.png', 1, '2024-04-16 16:45:58', '2024-04-16 16:45:58');
INSERT INTO `languages` VALUES (32, 'Bengali', 'uploads/24/04/1713264388-157.png', 1, '2024-04-16 16:46:28', '2024-04-16 16:46:28');
INSERT INTO `languages` VALUES (33, 'Portuguese', 'uploads/24/04/1713264423-206.png', 1, '2024-04-16 16:47:03', '2024-04-16 16:47:03');
INSERT INTO `languages` VALUES (34, 'Hebrew', 'uploads/24/04/1713264450-677.png', 1, '2024-04-16 16:47:30', '2024-04-16 16:47:30');
INSERT INTO `languages` VALUES (35, 'Dutch', 'uploads/24/04/1713264476-832.png', 1, '2024-04-16 16:47:56', '2024-04-16 16:47:56');
INSERT INTO `languages` VALUES (36, 'Bosnian', 'uploads/24/04/1713264505-83.png', 1, '2024-04-16 16:48:25', '2024-04-16 16:48:25');
INSERT INTO `languages` VALUES (37, 'Thai', 'uploads/24/04/1713264534-163.png', 1, '2024-04-16 16:48:54', '2024-04-16 16:48:54');
INSERT INTO `languages` VALUES (38, 'Italian', 'uploads/24/04/1713264559-834.png', 1, '2024-04-16 16:49:19', '2024-04-16 16:49:19');
INSERT INTO `languages` VALUES (39, 'Vietnamese', 'uploads/24/04/1713264586-161.png', 1, '2024-04-16 16:49:46', '2024-04-16 16:49:46');
INSERT INTO `languages` VALUES (40, 'German', 'uploads/24/04/1713264610-223.png', 1, '2024-04-16 16:50:10', '2024-04-16 16:50:10');
INSERT INTO `languages` VALUES (41, 'Romanian', 'uploads/24/04/1713264637-599.png', 1, '2024-04-16 16:50:37', '2024-04-16 16:50:37');
INSERT INTO `languages` VALUES (42, 'Arabic', 'uploads/24/04/1713264667-831.png', 1, '2024-04-16 16:51:07', '2024-04-16 16:51:07');
INSERT INTO `languages` VALUES (43, 'Japanese', 'uploads/24/04/1713264693-992.png', 1, '2024-04-16 16:51:33', '2024-04-16 16:51:33');
INSERT INTO `languages` VALUES (44, 'Spanish', 'uploads/24/04/1713264720-829.png', 1, '2024-04-16 16:52:00', '2024-04-16 16:52:00');
INSERT INTO `languages` VALUES (45, 'French', 'uploads/24/04/1713264745-349.png', 1, '2024-04-16 16:52:25', '2024-04-16 16:52:25');
INSERT INTO `languages` VALUES (46, 'Hindi', 'uploads/24/04/1713264770-181.png', 1, '2024-04-16 16:52:50', '2024-04-16 16:52:50');
INSERT INTO `languages` VALUES (47, 'Chinese', 'uploads/24/04/1713264810-300.png', 1, '2024-04-16 16:53:30', '2024-04-16 16:53:30');
INSERT INTO `languages` VALUES (48, 'English', 'uploads/24/04/1713264836-549.png', 1, '2024-04-16 16:53:56', '2024-04-16 16:53:56');
-- ----------------------------
-- Table structure for messages
-- ----------------------------
DROP TABLE IF EXISTS `messages`;
CREATE TABLE `messages` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`company_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`message` varchar(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`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of messages
-- ----------------------------
INSERT INTO `messages` VALUES (1, 'Meus Ginting', '081310195804', 'onedirac@gmail.com', NULL, 'Mau Demo', '2026-02-24 14:56:18', '2026-02-24 14:56:18');
-- ----------------------------
-- Table structure for migrations
-- ----------------------------
DROP TABLE IF EXISTS `migrations`;
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`migration` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 78 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of migrations
-- ----------------------------
INSERT INTO `migrations` VALUES (1, '2014_10_10_000001_create_plans_table', 1);
INSERT INTO `migrations` VALUES (2, '2014_10_11_000001_create_business_categories_table', 1);
INSERT INTO `migrations` VALUES (3, '2014_10_11_000001_create_businesses_table', 1);
INSERT INTO `migrations` VALUES (4, '2014_10_11_000001_create_currencies_table', 1);
INSERT INTO `migrations` VALUES (5, '2014_10_11_000001_create_gateways_table', 1);
INSERT INTO `migrations` VALUES (6, '2014_10_11_000002_create_plan_subscribes_table', 1);
INSERT INTO `migrations` VALUES (7, '2014_10_12_000003_create_users_table', 1);
INSERT INTO `migrations` VALUES (8, '2014_10_12_100000_create_password_reset_tokens_table', 1);
INSERT INTO `migrations` VALUES (9, '2014_10_12_100000_create_password_resets_table', 1);
INSERT INTO `migrations` VALUES (10, '2019_08_19_000000_create_failed_jobs_table', 1);
INSERT INTO `migrations` VALUES (11, '2019_12_14_000001_create_personal_access_tokens_table', 1);
INSERT INTO `migrations` VALUES (12, '2023_05_20_040815_create_notifications_table', 1);
INSERT INTO `migrations` VALUES (13, '2023_07_10_104133_create_options_table', 1);
INSERT INTO `migrations` VALUES (14, '2023_12_24_162319_create_brands_table', 1);
INSERT INTO `migrations` VALUES (15, '2023_12_24_162456_create_categories_table', 1);
INSERT INTO `migrations` VALUES (16, '2023_12_24_162619_create_parties_table', 1);
INSERT INTO `migrations` VALUES (17, '2023_12_24_164558_create_expense_categories_table', 1);
INSERT INTO `migrations` VALUES (18, '2023_12_24_164659_create_expenses_table', 1);
INSERT INTO `migrations` VALUES (19, '2023_12_24_170916_create_units_table', 1);
INSERT INTO `migrations` VALUES (20, '2023_12_24_171614_create_products_table', 1);
INSERT INTO `migrations` VALUES (21, '2023_12_26_161841_create_purchases_table', 1);
INSERT INTO `migrations` VALUES (22, '2023_12_26_163232_create_purchase_details_table', 1);
INSERT INTO `migrations` VALUES (23, '2023_12_26_170106_create_sales_table', 1);
INSERT INTO `migrations` VALUES (24, '2023_12_26_170111_create_sale_details_table', 1);
INSERT INTO `migrations` VALUES (25, '2023_12_27_114439_create_banners_table', 1);
INSERT INTO `migrations` VALUES (26, '2023_12_27_131216_create_due_collects_table', 1);
INSERT INTO `migrations` VALUES (27, '2023_12_28_160816_create_permission_tables', 1);
INSERT INTO `migrations` VALUES (28, '2024_04_06_130925_create_features_table', 1);
INSERT INTO `migrations` VALUES (29, '2024_04_06_141243_create_pos_app_interfaces_table', 1);
INSERT INTO `migrations` VALUES (30, '2024_04_15_110711_create_languages_table', 1);
INSERT INTO `migrations` VALUES (31, '2024_04_15_124407_create_testimonials_table', 1);
INSERT INTO `migrations` VALUES (32, '2024_04_16_094724_create_blogs_table', 1);
INSERT INTO `migrations` VALUES (33, '2024_04_16_095526_create_comments_table', 1);
INSERT INTO `migrations` VALUES (34, '2024_04_17_183758_create_messages_table', 1);
INSERT INTO `migrations` VALUES (35, '2024_08_06_174713_create_jobs_table', 1);
INSERT INTO `migrations` VALUES (36, '2024_09_26_104816_create_income_categories_table', 1);
INSERT INTO `migrations` VALUES (37, '2024_09_26_110707_create_incomes_table', 1);
INSERT INTO `migrations` VALUES (38, '2024_09_30_110244_modify_field_nullable_and_remove_unique', 1);
INSERT INTO `migrations` VALUES (39, '2024_09_30_110552_add_new_field_to_users_table', 1);
INSERT INTO `migrations` VALUES (40, '2024_10_21_105615_create_sale_returns_table', 1);
INSERT INTO `migrations` VALUES (41, '2024_10_21_105624_create_sale_return_details_table', 1);
INSERT INTO `migrations` VALUES (42, '2024_11_03_090747_create_purchase_returns_table', 1);
INSERT INTO `migrations` VALUES (43, '2024_11_03_090801_create_purchase_return_details_table', 1);
INSERT INTO `migrations` VALUES (44, '2024_12_15_091748_create_user_currencies_table', 1);
INSERT INTO `migrations` VALUES (45, '2024_12_17_130201_add_field_to_categories_name', 1);
INSERT INTO `migrations` VALUES (46, '2024_12_17_130230_add_field_to_brands_name', 1);
INSERT INTO `migrations` VALUES (47, '2024_12_29_110400_update_quantities_column_type', 1);
INSERT INTO `migrations` VALUES (48, '2025_01_16_153449_create_vats_table', 1);
INSERT INTO `migrations` VALUES (49, '2025_01_16_173208_add_new_fields_to_multiple_table', 1);
INSERT INTO `migrations` VALUES (50, '2025_02_03_165120_add_vat_fields_to_businesses_table', 1);
INSERT INTO `migrations` VALUES (51, '2025_02_17_090212_add_fields_to_multiple_tables', 1);
INSERT INTO `migrations` VALUES (52, '2025_03_04_105457_create_payment_types_table', 1);
INSERT INTO `migrations` VALUES (53, '2025_03_04_113750_add_payment_type_id_to_multiple_tables', 1);
INSERT INTO `migrations` VALUES (54, '2025_03_17_125525_modify_phone_column_in_parties_table', 1);
INSERT INTO `migrations` VALUES (55, '2025_04_08_160010_add_rounding_columns_to_sales_table', 1);
INSERT INTO `migrations` VALUES (56, '2025_04_16_100500_add_change_amount_to_sales_and_purchases_tables', 1);
INSERT INTO `migrations` VALUES (57, '2025_04_30_173441_add_new_fields_to_users_table', 1);
INSERT INTO `migrations` VALUES (58, '2025_05_14_104217_add_new_fields_to_multiple_table', 1);
INSERT INTO `migrations` VALUES (59, '2025_05_20_063911_create_product_settings_table', 1);
INSERT INTO `migrations` VALUES (60, '2025_07_02_050211_create_warehouses_table', 1);
INSERT INTO `migrations` VALUES (61, '2025_07_03_052633_create_transfers_table', 1);
INSERT INTO `migrations` VALUES (62, '2025_07_05_025137_create_transfer_products_table', 1);
INSERT INTO `migrations` VALUES (63, '2025_07_05_075111_create_variations_table', 1);
INSERT INTO `migrations` VALUES (64, '2025_07_16_060817_create_stocks_table', 1);
INSERT INTO `migrations` VALUES (65, '2025_07_16_062823_create_product_models_table', 1);
INSERT INTO `migrations` VALUES (66, '2025_07_16_062824_add_new_fields_to_multiple_table', 1);
INSERT INTO `migrations` VALUES (67, '2025_08_14_092807_add_new_column_to_plans_table', 1);
INSERT INTO `migrations` VALUES (68, '2025_08_17_040001_create_shelves_table', 1);
INSERT INTO `migrations` VALUES (69, '2025_08_17_040002_create_racks_table', 1);
INSERT INTO `migrations` VALUES (70, '2025_08_17_055409_create_rack_shelf_table', 1);
INSERT INTO `migrations` VALUES (71, '2025_08_18_140100_create_branches_table', 1);
INSERT INTO `migrations` VALUES (72, '2025_08_18_162915_add_new_fields_to_multiple_table', 1);
INSERT INTO `migrations` VALUES (73, '2025_09_25_115613_create_transactions_table', 1);
INSERT INTO `migrations` VALUES (74, '2025_09_30_162915_add_new_fields_to_multiple_table', 1);
INSERT INTO `migrations` VALUES (75, '2025_10_04_121842_create_combo_products_table', 1);
INSERT INTO `migrations` VALUES (76, '2025_08_23_162915_add_new_fields_to_multiple_table', 2);
INSERT INTO `migrations` VALUES (77, '2026_03_01_194442_add_is_displayed_in_pos_to_products_table', 3);
-- ----------------------------
-- Table structure for model_has_permissions
-- ----------------------------
DROP TABLE IF EXISTS `model_has_permissions`;
CREATE TABLE `model_has_permissions` (
`permission_id` bigint(20) UNSIGNED NOT NULL,
`model_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` bigint(20) UNSIGNED NOT NULL,
PRIMARY KEY (`permission_id`, `model_id`, `model_type`) USING BTREE,
INDEX `model_has_permissions_model_id_model_type_index`(`model_id` ASC, `model_type` ASC) USING BTREE,
CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of model_has_permissions
-- ----------------------------
-- ----------------------------
-- Table structure for model_has_roles
-- ----------------------------
DROP TABLE IF EXISTS `model_has_roles`;
CREATE TABLE `model_has_roles` (
`role_id` bigint(20) UNSIGNED NOT NULL,
`model_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` bigint(20) UNSIGNED NOT NULL,
PRIMARY KEY (`role_id`, `model_id`, `model_type`) USING BTREE,
INDEX `model_has_roles_model_id_model_type_index`(`model_id` ASC, `model_type` ASC) USING BTREE,
CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of model_has_roles
-- ----------------------------
INSERT INTO `model_has_roles` VALUES (1, 'App\\Models\\User', 1);
INSERT INTO `model_has_roles` VALUES (2, 'App\\Models\\User', 2);
INSERT INTO `model_has_roles` VALUES (3, 'App\\Models\\User', 3);
-- ----------------------------
-- Table structure for notifications
-- ----------------------------
DROP TABLE IF EXISTS `notifications`;
CREATE TABLE `notifications` (
`id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`notifiable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`notifiable_id` bigint(20) UNSIGNED NOT NULL,
`data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`read_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `notifications_notifiable_type_notifiable_id_index`(`notifiable_type` ASC, `notifiable_id` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of notifications
-- ----------------------------
INSERT INTO `notifications` VALUES ('02f8f92c-9d31-4e49-b4c0-f8ff597b9161', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 7, '{\"id\":68,\"user\":10,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=68\"}', NULL, NULL, '2026-02-28 11:57:39', '2026-02-28 11:57:39');
INSERT INTO `notifications` VALUES ('0af4135c-c0a3-43d1-adaf-448949463bc0', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 7, '{\"id\":65,\"user\":10,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=65\"}', NULL, NULL, '2026-02-26 15:29:07', '2026-02-26 15:29:07');
INSERT INTO `notifications` VALUES ('0fbc428b-92e1-4c35-9504-5fc86eef8d95', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":77,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=77\"}', NULL, NULL, '2026-03-02 22:48:14', '2026-03-02 22:48:14');
INSERT INTO `notifications` VALUES ('2141a372-aee1-41d7-90e0-b7becd357363', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":60,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=60\"}', NULL, NULL, '2026-02-22 00:11:52', '2026-02-22 00:11:52');
INSERT INTO `notifications` VALUES ('30add770-9cf0-479e-9c78-b7464c4c5ad3', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":5,\"user\":8,\"message\":\"New Purchase created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/purchases?id=5\"}', NULL, NULL, '2026-02-23 15:29:58', '2026-02-23 15:29:58');
INSERT INTO `notifications` VALUES ('33ff8dfa-4c88-4c12-a42f-d06b7eb8e263', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":76,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=76\"}', NULL, NULL, '2026-03-02 22:44:39', '2026-03-02 22:44:39');
INSERT INTO `notifications` VALUES ('34a9771f-da6f-4c87-aac3-2c9ec5aea079', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":57,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=57\"}', NULL, NULL, '2026-02-21 23:08:20', '2026-02-21 23:08:20');
INSERT INTO `notifications` VALUES ('38f67b19-3b43-41a3-8f13-615751b055b7', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 1, '{\"id\":2,\"user\":null,\"message\":\"Plan subscribed by Super Admin\",\"url\":\"https:\\/\\/kulakpos.id\\/admin\\/subscription-reports?id=2\"}', '2026-02-20 05:57:44', NULL, '2026-02-07 14:12:59', '2026-02-20 05:57:44');
INSERT INTO `notifications` VALUES ('3fd9b17f-fbdd-4d11-9a3b-50c485910d4c', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 7, '{\"id\":66,\"user\":10,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=66\"}', NULL, NULL, '2026-02-27 11:38:13', '2026-02-27 11:38:13');
INSERT INTO `notifications` VALUES ('4992d751-2a07-4050-add7-5b0290e24e6b', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":72,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=72\"}', NULL, NULL, '2026-03-02 21:58:22', '2026-03-02 21:58:22');
INSERT INTO `notifications` VALUES ('6821931e-2a97-4ebe-a4c5-0053fb24e662', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 1, '{\"id\":12,\"user\":null,\"message\":\"New subscription purchased requested.\",\"url\":\"https:\\/\\/kulakpos.id\\/admin\\/subscription-reports?id=12\"}', '2026-03-05 23:10:08', NULL, '2026-02-28 16:31:42', '2026-03-05 23:10:08');
INSERT INTO `notifications` VALUES ('6c1e7ab7-ecd3-49b6-a9f5-100204f0ae2e', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":71,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=71\"}', NULL, NULL, '2026-03-02 21:57:36', '2026-03-02 21:57:36');
INSERT INTO `notifications` VALUES ('78de5f03-b6fa-4296-9511-205df8699690', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 1, '{\"id\":9,\"user\":null,\"message\":\"New subscription purchased requested.\",\"url\":\"https:\\/\\/kulakpos.id\\/admin\\/subscription-reports?id=9\"}', '2026-02-21 11:57:40', NULL, '2026-02-21 11:55:13', '2026-02-21 11:57:40');
INSERT INTO `notifications` VALUES ('7d867556-87d8-4f67-a1d8-a7b98e60fd8f', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":59,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=59\"}', NULL, NULL, '2026-02-22 00:10:04', '2026-02-22 00:10:04');
INSERT INTO `notifications` VALUES ('7fec9ee4-83c3-4642-ad8f-fc13f0d4134a', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":73,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=73\"}', NULL, NULL, '2026-03-02 22:12:04', '2026-03-02 22:12:04');
INSERT INTO `notifications` VALUES ('9131cc1c-1bd4-49c5-bd13-0276c12737ec', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":74,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=74\"}', NULL, NULL, '2026-03-02 22:23:27', '2026-03-02 22:23:27');
INSERT INTO `notifications` VALUES ('91bc10d1-3b05-45e1-8d18-2594a8ab43d6', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":58,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=58\"}', NULL, NULL, '2026-02-21 23:45:27', '2026-02-21 23:45:27');
INSERT INTO `notifications` VALUES ('9607a5fe-ad47-42eb-87a9-21aebfe81948', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":8,\"user\":8,\"message\":\"Expense has been created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/expenses?id=8\"}', NULL, NULL, '2026-02-23 16:11:45', '2026-02-23 16:11:45');
INSERT INTO `notifications` VALUES ('9b46946b-43fe-4417-861d-60c359987348', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":62,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=62\"}', NULL, NULL, '2026-02-25 13:31:15', '2026-02-25 13:31:15');
INSERT INTO `notifications` VALUES ('a6683fb0-48ba-4bf6-bed9-d5163fbb040c', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":56,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=56\"}', NULL, NULL, '2026-02-21 22:37:36', '2026-02-21 22:37:36');
INSERT INTO `notifications` VALUES ('a7197f6c-3bf0-4bd0-9aeb-3af33c0268aa', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":61,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=61\"}', NULL, NULL, '2026-02-23 15:24:18', '2026-02-23 15:24:18');
INSERT INTO `notifications` VALUES ('a90a3e4a-1586-4f4d-a80e-149d5bffacc6', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":69,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=69\"}', NULL, NULL, '2026-03-02 02:14:14', '2026-03-02 02:14:14');
INSERT INTO `notifications` VALUES ('ac93095c-eaa3-411c-b320-d7de86abb257', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 1, '{\"id\":32,\"user\":null,\"message\":\"New subscription purchased requested.\",\"url\":\"https:\\/\\/kulakpos.id\\/admin\\/subscription-reports?id=32\"}', NULL, NULL, '2026-03-28 08:51:00', '2026-03-28 08:51:00');
INSERT INTO `notifications` VALUES ('b5cb10bb-01d3-4860-9a69-5a9517832e42', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 7, '{\"id\":6,\"user\":10,\"message\":\"New Purchase created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/purchases?id=6\"}', NULL, NULL, '2026-02-27 11:46:14', '2026-02-27 11:46:14');
INSERT INTO `notifications` VALUES ('b85aa2e4-a931-4a33-a591-adc2692ac822', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":54,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=54\"}', NULL, NULL, '2026-02-21 22:18:08', '2026-02-21 22:18:08');
INSERT INTO `notifications` VALUES ('b956a400-2230-4464-a72b-984aaa5722ac', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 1, '{\"id\":13,\"user\":null,\"message\":\"New subscription purchased requested.\",\"url\":\"https:\\/\\/kulakpos.id\\/admin\\/subscription-reports?id=13\"}', '2026-03-05 23:10:08', NULL, '2026-03-01 21:03:28', '2026-03-05 23:10:08');
INSERT INTO `notifications` VALUES ('b9f062c7-eb74-4743-8365-16f7f6099896', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 1, '{\"id\":17,\"user\":null,\"message\":\"New subscription purchased requested.\",\"url\":\"https:\\/\\/kulakpos.id\\/admin\\/subscription-reports?id=17\"}', NULL, NULL, '2026-03-09 22:51:35', '2026-03-09 22:51:35');
INSERT INTO `notifications` VALUES ('d6c7c0b5-312d-42b9-a332-439347ccc9e4', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 7, '{\"id\":1,\"user\":10,\"message\":\"Due Collection has been created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/dues?id=1\"}', NULL, NULL, '2026-02-26 16:22:43', '2026-02-26 16:22:43');
INSERT INTO `notifications` VALUES ('eb1fb53a-221e-49fd-b5fb-a76e129387c9', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 1, '{\"id\":34,\"user\":null,\"message\":\"New subscription purchased requested.\",\"url\":\"https:\\/\\/kulakpos.id\\/admin\\/subscription-reports?id=34\"}', NULL, NULL, '2026-04-04 21:55:03', '2026-04-04 21:55:03');
INSERT INTO `notifications` VALUES ('edb7e7ba-d732-46b6-a5aa-d6ed3d7eb3dc', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 7, '{\"id\":67,\"user\":10,\"message\":\"Sale has been updated.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=67\"}', NULL, NULL, '2026-02-28 11:50:11', '2026-02-28 11:50:11');
INSERT INTO `notifications` VALUES ('f2f4513c-1434-4cf6-ae06-a6cb66ffa6c0', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 7, '{\"id\":67,\"user\":10,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=67\"}', NULL, NULL, '2026-02-28 11:49:14', '2026-02-28 11:49:14');
INSERT INTO `notifications` VALUES ('f445103a-58b2-4c81-be47-d11ac6638f62', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":55,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=55\"}', NULL, NULL, '2026-02-21 22:29:00', '2026-02-21 22:29:00');
INSERT INTO `notifications` VALUES ('f53b64db-ab57-4040-a80e-8f55d771aa64', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":75,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=75\"}', NULL, NULL, '2026-03-02 22:34:36', '2026-03-02 22:34:36');
INSERT INTO `notifications` VALUES ('fb3c61ea-1d28-4b21-b96a-1f0d43fdac85', 'App\\Notifications\\SendNotification', 'App\\Models\\User', 9, '{\"id\":70,\"user\":8,\"message\":\"New sale created.\",\"url\":\"https:\\/\\/kulakpos.id\\/business\\/sales?id=70\"}', NULL, NULL, '2026-03-02 21:55:25', '2026-03-02 21:55:25');
-- ----------------------------
-- Table structure for options
-- ----------------------------
DROP TABLE IF EXISTS `options`;
CREATE TABLE `options` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`key` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 26 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of options
-- ----------------------------
INSERT INTO `options` VALUES (1, 'general', '{\"title\":\"KulakPOS\",\"copy_right\":\"\\u00a9 2026 KulakPos, all rights reserved.\",\"admin_footer_text\":\"Development By\",\"admin_footer_link_text\":\"One Teknologi\",\"admin_footer_link\":\"https:\\/\\/kulakpos.id\\/\",\"app_link\":\"https:\\/\\/drive.google.com\\/file\\/d\\/157njiXN25RFCS5Xq4XkqHjjmMCQec3Xn\\/view?usp=drive_link\",\"whatsapp_number\":\"087783275818\",\"default_lang\":\"id\",\"logo\":\"uploads\\/26\\/02\\/1772099524-587.png\",\"favicon\":\"uploads\\/26\\/02\\/1771903056-931.png\",\"common_header_logo\":\"uploads\\/26\\/02\\/1771992101-390.png\",\"footer_logo\":\"uploads\\/26\\/02\\/1771903448-237.bmp\",\"admin_logo\":\"uploads\\/26\\/02\\/1771903429-115.bmp\",\"login_page_logo\":\"uploads\\/26\\/02\\/1771989810-773.png\",\"login_page_image\":\"uploads\\/26\\/02\\/1771905871-310.png\"}', 1, '2024-04-15 18:55:07', '2026-03-08 06:07:33');
INSERT INTO `options` VALUES (2, 'manage-pages', '{\"headings\":{\"slider_title\":\"KulakPOS Solusi Untuk\",\"slider_btn1\":\"Coba Sekarang\",\"slider_btn1_link\":\"\\/plans\",\"slider_btn2\":\"Watch Video\",\"slider_btn2_link\":\"https:\\/\\/www.youtube.com\\/embed\\/EEryt_-M-6Q?si=8iBjlbj8ip6BrqPm\",\"slider_description\":\"Solusi Smart POS dengan fitur lengkap untuk UMKM yang ingin naik kelas \\u2014 membantu pemilik usaha mengelola penjualan, inventori, laporan keuangan, hingga multi-cabang secara real-time dan terintegrasi, dengan biaya rendah dan tanpa sistem yang rumit.\",\"slider_scanner_text\":\"Scan Untuk Mencoba Gratis 1 Bulan\",\"silder_shop_text\":[\"Coffee Shop\",\"Toko Klontong\",\"Toko Roti\",\"Fashion Shop\",\"Pet shop\",\"Grocery shop\",\"Furniture shop\",\"General shop\",\"Store Booth\"],\"header_btn_text\":\"Login\",\"header_btn_link\":\"login\",\"feature_title\":\"Fitur Unggulan KulakPOS\",\"interface_title\":\"KulakPOS Solusi Cerdas UMKM\",\"interface_description\":\"KulakPOS Solusi Cerdas Mengelola Operasional UMKM, multi cabang, multi gudang, mengelola penjualan, pembelian, retur, persediaan dan lain-lain dalam satu dashboard dan satu gengaman, sehingga owner bisa fokus pada pengembangan bisnis.\",\"watch_title\":\"Watch Video Demo\",\"watch_btn_link\":\"https:\\/\\/www.youtube.com\\/embed\\/EEryt_-M-6Q?si=8iBjlbj8ip6BrqPm\",\"watch_description\":\"KulakPOS untuk kelola UMKM Multi Cabang dan Multi Warehouse dalam satu gengaman.\",\"blog_title\":\"Our Latest Blog Posts\",\"blog_btn_text\":\"Read More\",\"blog_view_all_btn_text\":\"View All\",\"blog_view_all_btn_link\":\"\\/blogs\",\"testimonial_title\":\"Apa yang UMKM katakan setelah menggunakan KulakPOS\",\"about_short_title\":\"Tentang Kami\",\"about_title\":\"Mendorong Pertumbuhan UMKM Indonesia Melalui Teknologi Masa Depan\",\"about_desc_one\":\"Selamat datang di KulakPOS, mitra teknologi terpercaya yang berdedikasi untuk merevolusi cara bisnis Usaha Mikro, Kecil, dan Menengah (UMKM) beroperasi di Indonesia. Kami memahami bahwa jantung perekonomian bangsa berada di tangan para pengusaha lokal, dan kami hadir untuk memastikan bisnis Anda tidak hanya bertahan, tetapi melesat jauh ke depan.\",\"about_desc_two\":\"KulakPOS.id adalah perusahaan teknologi inovatif yang berfokus pada pengembangan solusi Point of Sale (POS) berbasis sistem digital masa kini serta dilengkapi dengan AI cangih untuk memudahkan operasional bisnis UMKM. Lahir dari pemahaman mendalam akan tantangan operasional yang sering dihadapi oleh pelaku usaha, kami menciptakan ekosistem perangkat lunak kasir yang cerdas, efisien, dan mudah digunakan oleh siapa saja.\\r\\n\\r\\nMengapa Memilih POS dari KulakPOS?\\r\\nKami percaya bahwa teknologi canggih tidak harus rumit dan mahal. Oleh karena itu, sistem POS kami dirancang secara khusus untuk skala UMKM namun dibekali dengan modul yang komprehensif dan fitur kelas enterprise (canggih).\",\"about_us_options_text\":[\"Modul Manajemen Lengkap: Mulai dari pencatatan transaksi kasir, manajemen inventaris (stok barang) multi-cabang, hingga sistem manajemen karyawan, semuanya terintegrasi dalam satu platform.\",\"Laporan Keuangan & Analitik Real-Time: Pantau performa penjualan, laba rugi, dan tren produk terlaris Anda kapan saja dan di mana saja melalui dasbor cerdas kami.\",\"Berbasis Cloud yang Aman: Data bisnis Anda tersimpan dengan keamanan tingkat tinggi dan tidak akan hilang, memastikan operasional tetap berjalan lancar tanpa kendala teknis.\"],\"contact_us_title\":\"Lets connect with us\",\"contact_us_btn_text\":\"Book A Demo\",\"contact_us_description\":\"We will help a client\'s problmes to develop the products they have with high quality change the appearance.\",\"pricing_title\":\"Skema Harga KulakPOS\",\"pricing_btn_link\":\"https:\\/\\/kulakpos.id\\/plans\",\"pricing_description\":\"Kelola Bisnis Anda dengan System Hebat dan Harga Hemat\",\"footer_short_title\":\"Kulakpos - UMKM Technology Partner\",\"footer_scanner_title\":\"Scan Now to 30 Days Free Trials\",\"right_footer_title\":\"Quick Links\",\"middle_footer_title\":\"Our A
INSERT INTO `options` VALUES (3, 'designs', '{\"status\":\"1\",\"image\":\"uploads\\/24\\/04\\/1713260120-1.png\"}', 1, '2024-04-16 21:35:20', '2024-04-16 21:35:20');
INSERT INTO `options` VALUES (4, 'designs', '{\"status\":\"1\",\"image\":\"uploads\\/24\\/04\\/1713266747-928.png\"}', 1, '2024-04-16 23:25:47', '2024-04-16 23:25:47');
INSERT INTO `options` VALUES (5, 'designs', '{\"status\":\"1\",\"image\":\"uploads\\/24\\/04\\/1713266756-527.png\"}', 1, '2024-04-16 23:25:56', '2024-04-16 23:25:56');
INSERT INTO `options` VALUES (6, 'term-condition', '{\"term_title\":\"KETENTUAN PENGGUNAAN LAYANAN\",\"description_one\":\"KulakPOS.id\\r\\nBerlaku sejak: Maret 2026\\r\\nMohon membaca Ketentuan Penggunaan ini dengan seksama sebelum menggunakan layanan KulakPOS.\\r\\nDengan membuat akun atau menggunakan layanan KulakPOS, Anda menyatakan telah membaca, memahami, dan menyetujui seluruh ketentuan yang tercantum dalam dokumen ini.\",\"description_two\":\"1. Definisi\\r\\n\\r\\nDalam Ketentuan Penggunaan ini:\\r\\n\\r\\n1.1 KulakPOS\\r\\nAdalah layanan perangkat lunak kasir digital berbasis cloud (Software as a Service \\/ SaaS) yang disediakan oleh PT Sada Teknologi Indonesia.\\r\\n\\r\\n1.2 Pengguna \\/ Mitra Usaha\\r\\nAdalah individu atau badan usaha yang menggunakan layanan KulakPOS untuk mengelola operasional bisnis.\\r\\n\\r\\n1.3 Platform\\r\\nMeliputi website, dashboard, aplikasi, dan sistem teknologi yang digunakan untuk menyediakan layanan KulakPOS.\\r\\n\\r\\n1.4 Layanan\\r\\nAdalah seluruh fitur yang disediakan oleh KulakPOS termasuk namun tidak terbatas pada sistem kasir digital, manajemen produk, inventori, laporan penjualan, dan fitur lain yang dikembangkan dari waktu ke waktu.\\r\\n\\r\\n\\r\\n\\r\\n2. Layanan KulakPOS\\r\\n\\r\\nKulakPOS menyediakan sistem Point of Sale berbasis cloud yang membantu pengguna dalam:\\r\\n\\r\\n\\u2022 mencatat transaksi penjualan \\r\\n\\u2022 mengelola produk dan inventori \\r\\n\\u2022 menghasilkan laporan bisnis \\r\\n\\u2022 mengelola operasional usaha \\r\\n\\r\\nKulakPOS hanya menyediakan platform teknologi dan tidak terlibat dalam transaksi jual beli antara pengguna dan pelanggan pengguna.\\r\\n\\r\\n\\r\\n\\r\\n3. Pendaftaran dan Akun\\r\\n\\r\\nUntuk menggunakan layanan KulakPOS, pengguna harus membuat akun dengan memberikan informasi yang akurat dan lengkap.\\r\\n\\r\\nPengguna bertanggung jawab untuk:\\r\\n\\r\\n\\u2022 menjaga kerahasiaan akun dan kata sandi \\r\\n\\u2022 memastikan bahwa informasi akun selalu diperbarui \\r\\n\\u2022 mengontrol akses pengguna internal seperti karyawan \\r\\n\\r\\nSegala aktivitas yang terjadi melalui akun pengguna dianggap sebagai aktivitas yang dilakukan oleh pengguna yang sah.\\r\\n\\r\\n\\r\\n\\r\\n4. Kepemilikan Data\\r\\n\\r\\nSeluruh data bisnis yang dimasukkan oleh pengguna ke dalam sistem KulakPOS tetap menjadi milik pengguna.\\r\\n\\r\\nData tersebut dapat mencakup:\\r\\n\\r\\n\\u2022 data produk \\r\\n\\u2022 data transaksi \\r\\n\\u2022 data pelanggan \\r\\n\\u2022 data inventori \\r\\n\\u2022 data laporan bisnis \\r\\n\\r\\nKulakPOS bertindak sebagai penyedia platform teknologi dan hanya memproses data tersebut untuk menyediakan layanan kepada pengguna.\\r\\n\\r\\nKulakPOS tidak menjual atau memanfaatkan data bisnis pengguna untuk kepentingan komersial pihak ketiga.\\r\\n\\r\\n\\r\\n\\r\\n5. Biaya Berlangganan\\r\\n\\r\\nBeberapa fitur KulakPOS dapat digunakan melalui sistem berlangganan berbayar.\\r\\n\\r\\nPengguna setuju untuk:\\r\\n\\r\\n\\u2022 membayar biaya langganan sesuai paket yang dipilih \\r\\n\\u2022 melakukan pembayaran tepat waktu \\r\\n\\r\\nKulakPOS berhak menangguhkan atau membatasi akses layanan apabila pembayaran tidak dilakukan sesuai ketentuan.\\r\\n\\r\\nBiaya berlangganan yang telah dibayarkan tidak dapat dikembalikan kecuali ditentukan lain oleh kebijakan KulakPOS.\\r\\n\\r\\n\\r\\n\\r\\n6. Penggunaan Layanan\\r\\n\\r\\nPengguna setuju untuk tidak menggunakan platform KulakPOS untuk:\\r\\n\\r\\n\\u2022 aktivitas ilegal atau melanggar hukum \\r\\n\\u2022 penipuan atau penyalahgunaan sistem \\r\\n\\u2022 pelanggaran hak kekayaan intelektual \\r\\n\\u2022 distribusi konten ilegal atau berbahaya \\r\\n\\u2022 aktivitas yang dapat merusak sistem atau keamanan platform \\r\\n\\r\\nKulakPOS berhak membatasi atau menghentikan akses pengguna yang melanggar ketentuan ini.\\r\\n\\r\\n\\r\\n\\r\\n7. Hak Kekayaan Intelektual\\r\\n\\r\\nSeluruh hak kekayaan intelektual atas platform KulakPOS termasuk namun tidak terbatas pada:\\r\\n\\r\\n\\u2022 perangkat lunak \\r\\n\\u2022 desain siste
INSERT INTO `options` VALUES (7, 'privacy-policy', '{\"privacy_title\":\"PEMBERITAHUAN KEBIJAKAN PRIVASI\",\"description_one\":\"KulakPOS.id\\r\\nTerakhir diperbarui: 10 Maret 2026\",\"description_two\":\"1. Pendahuluan\\r\\n\\r\\nKulakPOS.id (\\u201cKulakPOS\\u201d, \\u201ckami\\u201d, atau \\u201cPlatform\\u201d) berkomitmen untuk melindungi privasi dan keamanan Data Pribadi pengguna layanan kami.\\r\\nPemberitahuan Privasi ini menjelaskan bagaimana kami mengumpulkan, menggunakan, menyimpan, memproses, dan melindungi Data Pribadi pengguna ketika menggunakan layanan Point of Sale (POS) berbasis cloud (Software as a Service \\/ SaaS) yang kami sediakan.\\r\\nPemrosesan Data Pribadi dilakukan sesuai dengan Undang-Undang Republik Indonesia Nomor 27 Tahun 2022 tentang Perlindungan Data Pribadi serta peraturan terkait lainnya.\\r\\nDengan menggunakan layanan KulakPOS, Anda menyatakan telah membaca dan memahami Pemberitahuan Privasi ini.\\r\\n\\r\\n\\r\\n2. Definisi\\r\\nData Pribadi\\r\\nSetiap data tentang individu yang dapat mengidentifikasi seseorang baik secara langsung maupun tidak langsung.\\r\\nPengguna\\r\\nIndividu atau badan usaha yang menggunakan layanan KulakPOS.\\r\\nPlatform\\r\\nSeluruh layanan digital KulakPOS termasuk website, dashboard, aplikasi, dan sistem yang terkait.\\r\\n\\r\\n\\r\\n3. Data Pribadi yang Kami Kumpulkan\\r\\nKami hanya mengumpulkan Data Pribadi yang diperlukan untuk menyediakan layanan KulakPOS.\\r\\n\\r\\n3.1 Informasi Akun\\r\\nSaat pengguna membuat akun, kami dapat mengumpulkan:\\r\\n\\u2022\\tNama pengguna\\r\\n\\u2022\\tNama usaha\\r\\n\\u2022\\tAlamat email\\r\\n\\u2022\\tNomor telepon\\r\\n\\u2022\\tAlamat usaha\\r\\n\\u2022\\tInformasi login akun\\r\\n3.2 Data Operasional Bisnis\\r\\nSebagai sistem POS, KulakPOS memproses data operasional bisnis yang dimasukkan oleh pengguna ke dalam Platform, yang dapat mencakup antara lain:\\r\\n\\u2022\\tdata produk\\r\\n\\u2022\\tdata transaksi penjualan\\r\\n\\u2022\\tdata pelanggan yang dimasukkan oleh pengguna\\r\\n\\u2022\\tdata inventori atau stok\\r\\n\\u2022\\tdata laporan bisnis\\r\\nSeluruh data operasional bisnis tersebut merupakan milik pengguna atau bisnis pengguna.\\r\\nKulakPOS tidak menggunakan, menjual, menganalisis, ataupun memanfaatkan data operasional bisnis milik pengguna untuk kepentingan komersial atau tujuan lain di luar penyediaan layanan KulakPOS, kecuali:\\r\\n\\u2022\\tUntuk menjalankan fungsi layanan POS sebagaimana diminta oleh pengguna;\\r\\n\\u2022\\tUntuk tujuan pemeliharaan sistem, keamanan, dan dukungan teknis; atau\\r\\n\\u2022\\tDalam bentuk data yang telah dianonimkan atau diagregasi, sehingga tidak dapat mengidentifikasi pengguna atau bisnis tertentu.\\r\\nKulakPOS bertindak sebagai penyedia platform teknologi yang memproses data tersebut semata-mata untuk memungkinkan pengguna menjalankan operasional bisnis mereka melalui Platform.\\r\\n3.3 Informasi Teknis\\r\\nSaat Anda menggunakan platform kami, kami dapat mengumpulkan informasi teknis seperti:\\r\\n\\u2022\\talamat IP\\r\\n\\u2022\\tjenis perangkat\\r\\n\\u2022\\tsistem operasi\\r\\n\\u2022\\tbrowser\\r\\n\\u2022\\tlog aktivitas sistem\\r\\n\\u2022\\twaktu akses platform\\r\\n3.4 Cookies\\r\\nKami menggunakan cookies dan teknologi serupa untuk:\\r\\n\\u2022\\tmenjaga sesi login pengguna\\r\\n\\u2022\\tmeningkatkan performa platform\\r\\n\\u2022\\tmemahami penggunaan layanan\\r\\nPengguna dapat mengatur preferensi cookies melalui pengaturan browser.\\r\\n\\r\\n4. Cara Kami Menggunakan Data Pribadi\\r\\nData Pribadi digunakan untuk tujuan berikut:\\r\\n\\u2022\\tmenyediakan layanan POS berbasis cloud\\r\\n\\u2022\\tmembuat dan mengelola akun pengguna\\r\\n\\u2022\\tmemproses transaksi dalam sistem POS\\r\\n\\u2022\\tmenyediakan laporan dan analisis bisnis\\r\\n\\u2022\\tmeningkatkan kualitas platform\\r\\n\\u2022\\tmemberikan dukungan pelanggan\\r\\n\\u2022\\tmendeteksi aktivitas ilegal atau penyalahgunaan sistem\\r\\n\\u2022\\tmematuhi kewajiban hukum yang berlaku\\r\\n\\r\\n5. Pembagian Data Pribadi\\r\\nKami tidak menjual Data Pribadi pengguna.\\r\
INSERT INTO `options` VALUES (8, 'business-settings', '{\"vat_name\":\"GST11\",\"vat_no\":\"2134\",\"sale_rounding_option\":\"none\",\"product_profit_option\":\"markup\",\"gratitude_message\":\"Great job! Thank you for choosing us.\",\"show_gratitude_msg\":\"1\",\"note_label\":\"Note\",\"show_note\":\"1\",\"note\":\"Thank you for allowing us to serve you.\",\"warranty_void_label\":\"Warranty Void\",\"show_warranty\":\"1\",\"warranty_void\":\"Any damaged by misuse, mishandling, unauthorized repair, water, burn, or short circuit.\",\"show_a4_invoice_logo\":\"1\",\"show_thermal_invoice_logo\":\"1\",\"show_invoice_scanner_logo\":\"1\",\"business_id\":1,\"a4_invoice_logo\":\"uploads\\/24\\/12\\/1765785282-400.png\",\"thermal_invoice_logo\":\"uploads\\/24\\/12\\/1733210591-637.svg\",\"invoice_scanner_logo\":\"uploads\\/25\\/07\\/1753849171-91.svg\"}', 1, '2024-12-03 18:58:12', '2024-12-04 19:05:36');
INSERT INTO `options` VALUES (9, 'invoice_setting_1', '\"a4\"', 1, '2025-07-31 14:56:27', '2025-07-31 14:56:27');
INSERT INTO `options` VALUES (10, 'currency_setting_1', '\"us\"', 1, '2026-02-05 08:39:19', '2026-02-05 08:39:19');
INSERT INTO `options` VALUES (11, 'email-varification', '{\"otp_status\":\"on\",\"otp_expiration_time\":\"120\",\"otp_duration_type\":\"second\"}', 1, '2025-07-31 14:56:27', '2026-02-21 10:45:06');
INSERT INTO `options` VALUES (12, 'version', '\"6.1\"', 1, '2026-02-05 08:39:19', '2026-02-05 08:39:19');
INSERT INTO `options` VALUES (13, 'business-settings', '{\"business_id\":2,\"invoice_logo\":null,\"a4_invoice_logo\":\"uploads\\/26\\/02\\/1770648277-125.png\",\"thermal_invoice_logo\":\"uploads\\/26\\/02\\/1770648226-76.png\",\"invoice_scanner_logo\":null,\"sale_rounding_option\":\"none\",\"note_label\":null,\"note\":null,\"gratitude_message\":null,\"warranty_void_label\":null,\"warranty_void\":null,\"vat_name\":null,\"vat_no\":null,\"show_note\":\"1\",\"show_gratitude_msg\":\"1\",\"show_invoice_scanner_logo\":\"1\",\"show_a4_invoice_logo\":\"1\",\"show_thermal_invoice_logo\":\"1\",\"show_warranty\":\"1\"}', 1, '2026-02-08 10:23:20', '2026-02-09 20:44:37');
INSERT INTO `options` VALUES (14, 'invoice_setting_2', '\"2_inch_58mm\"', 1, '2026-02-08 10:23:20', '2026-02-08 10:23:20');
INSERT INTO `options` VALUES (15, 'invoice_language_2', '\"english\"', 1, '2026-02-08 10:23:20', '2026-02-08 10:23:20');
INSERT INTO `options` VALUES (16, 'business-settings', '{\"sale_rounding_option\":\"round_up\",\"vat_name\":null,\"vat_no\":null,\"product_profit_option\":\"markup\",\"gratitude_message\":null,\"show_gratitude_msg\":0,\"note_label\":null,\"note\":null,\"show_note\":0,\"warranty_void_label\":null,\"warranty_void\":null,\"show_warranty\":0,\"show_a4_invoice_logo\":0,\"show_thermal_invoice_logo\":0,\"show_invoice_scanner_logo\":0,\"business_id\":10,\"a4_invoice_logo\":\"uploads\\/26\\/02\\/1772091876-617.png\",\"thermal_invoice_logo\":\"uploads\\/26\\/02\\/1772100722-846.png\",\"invoice_scanner_logo\":\"uploads\\/26\\/02\\/1772091876-964.png\",\"invoice_logo\":null}', 1, '2026-02-26 14:44:36', '2026-03-20 08:53:32');
INSERT INTO `options` VALUES (17, 'business-settings', '{\"business_id\":8,\"invoice_logo\":null,\"a4_invoice_logo\":null,\"thermal_invoice_logo\":null,\"invoice_scanner_logo\":null,\"sale_rounding_option\":\"round_up\",\"note_label\":null,\"note\":null,\"gratitude_message\":null,\"warranty_void_label\":null,\"warranty_void\":null,\"vat_name\":null,\"vat_no\":null,\"show_note\":0,\"show_gratitude_msg\":0,\"show_invoice_scanner_logo\":0,\"show_a4_invoice_logo\":0,\"show_thermal_invoice_logo\":0,\"show_warranty\":0}', 1, '2026-03-05 00:10:30', '2026-03-13 11:30:44');
INSERT INTO `options` VALUES (18, 'invoice_setting_8', '\"2_inch_58mm\"', 1, '2026-03-05 00:10:30', '2026-03-05 00:10:30');
INSERT INTO `options` VALUES (19, 'invoice_language_8', '\"english\"', 1, '2026-03-05 00:10:30', '2026-03-05 00:10:30');
INSERT INTO `options` VALUES (20, 'invoice_setting_10', '\"2_inch_58mm\"', 1, '2026-03-07 14:55:53', '2026-03-07 14:55:53');
INSERT INTO `options` VALUES (21, 'invoice_language_10', '\"english\"', 1, '2026-03-07 14:55:53', '2026-03-07 14:55:53');
INSERT INTO `options` VALUES (22, 'business-settings', '{\"business_id\":19,\"invoice_logo\":null,\"a4_invoice_logo\":\"uploads\\/26\\/03\\/1773935788-566.jpg\",\"thermal_invoice_logo\":\"uploads\\/26\\/03\\/1773935788-582.jpg\",\"invoice_scanner_logo\":null,\"sale_rounding_option\":\"none\",\"note_label\":null,\"note\":null,\"gratitude_message\":null,\"warranty_void_label\":null,\"warranty_void\":null,\"vat_name\":null,\"vat_no\":null,\"show_note\":\"0\",\"show_gratitude_msg\":\"0\",\"show_invoice_scanner_logo\":\"0\",\"show_a4_invoice_logo\":\"0\",\"show_thermal_invoice_logo\":\"1\",\"show_warranty\":\"0\"}', 1, '2026-03-19 22:56:28', '2026-03-19 22:56:28');
INSERT INTO `options` VALUES (23, 'invoice_setting_19', '\"2_inch_58mm\"', 1, '2026-03-19 22:56:28', '2026-03-19 22:56:28');
INSERT INTO `options` VALUES (24, 'invoice_language_19', '\"english\"', 1, '2026-03-19 22:56:28', '2026-03-19 22:56:28');
INSERT INTO `options` VALUES (25, 'business-settings', '{\"business_id\":9,\"invoice_logo\":null,\"a4_invoice_logo\":null,\"thermal_invoice_logo\":null,\"invoice_scanner_logo\":null,\"sale_rounding_option\":\"round_up\",\"note_label\":null,\"note\":null,\"gratitude_message\":null,\"warranty_void_label\":null,\"warranty_void\":null,\"vat_name\":null,\"vat_no\":null,\"show_note\":0,\"show_gratitude_msg\":0,\"show_invoice_scanner_logo\":0,\"show_a4_invoice_logo\":0,\"show_thermal_invoice_logo\":0,\"show_warranty\":0}', 1, '2026-04-04 21:47:50', '2026-04-04 21:47:50');
-- ----------------------------
-- Table structure for parties
-- ----------------------------
DROP TABLE IF EXISTS `parties`;
CREATE TABLE `parties` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`business_id` bigint(20) UNSIGNED NOT NULL,
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Retailer',
`phone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`due` double(10, 2) NOT NULL DEFAULT 0.00,
`opening_balance_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`opening_balance` double NOT NULL DEFAULT 0,
`wallet` double NOT NULL DEFAULT 0,
`loyalty_points` double NOT NULL DEFAULT 0,
`credit_limit` double NOT NULL DEFAULT 0,
`address` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`meta` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`shipping_address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`billing_address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `parties_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `parties_branch_id_foreign`(`branch_id` ASC) USING BTREE,
CONSTRAINT `parties_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `parties_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 38 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of parties
-- ----------------------------
INSERT INTO `parties` VALUES (16, 'Andi', 2, 1, NULL, 'Retailer', '081310195804', 0.00, 'due', 0, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-02-09 10:56:14', '2026-02-11 11:57:00');
INSERT INTO `parties` VALUES (17, 'eko', 8, 1, NULL, 'Retailer', NULL, 0.00, NULL, 0, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-02-22 00:09:29', '2026-02-22 00:09:29');
INSERT INTO `parties` VALUES (18, 'Supplier Kopi', 8, 1, 'supplier@kopi.com', 'Supplier', '081310195804', -340000.00, NULL, 0, 0, 0, 0, 'BSD', NULL, 1, NULL, NULL, NULL, '2026-02-23 15:29:12', '2026-03-18 08:38:20');
INSERT INTO `parties` VALUES (19, 'Meus', 10, 2, 'meus@dirac.com', 'Retailer', '0813', 16650.00, NULL, 0, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-02-26 15:28:51', '2026-02-28 11:49:14');
INSERT INTO `parties` VALUES (20, 'PT Sari Roti', 10, 2, 'supplier@sariroti.com', 'Supplier', '08', -822500.00, NULL, 0, 0, 0, 0, 'Jakarta', NULL, 1, NULL, NULL, NULL, '2026-02-27 11:45:19', '2026-03-18 10:16:27');
INSERT INTO `parties` VALUES (21, 'Aulia', 14, NULL, NULL, 'Retailer', '081369354083', 109998.00, 'due', 55000, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-03-11 18:51:46', '2026-03-11 18:53:02');
INSERT INTO `parties` VALUES (22, 'Agung', 23, NULL, NULL, 'Retailer', '085279002200', 100000.00, 'due', 100000, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-03-13 10:26:33', '2026-03-13 10:26:33');
INSERT INTO `parties` VALUES (23, 'ia', 24, NULL, NULL, 'Retailer', '08999980737', 900000.00, 'due', 900000, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-03-14 00:46:34', '2026-03-14 00:46:34');
INSERT INTO `parties` VALUES (24, 'agungg', 23, NULL, NULL, 'Retailer', '085279002201', 50000.00, 'due', 50000, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-03-16 06:26:27', '2026-03-16 06:26:27');
INSERT INTO `parties` VALUES (25, 'tri', 23, NULL, NULL, 'Retailer', '085279002202', 0.00, 'advance', 3000000, 3000000, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-03-16 18:32:10', '2026-03-16 18:32:10');
INSERT INTO `parties` VALUES (26, 'Biantoro', 23, NULL, NULL, 'Dealer', '085279002203', 0.00, 'advance', 500000, 500000, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-03-17 06:18:28', '2026-03-17 06:18:28');
INSERT INTO `parties` VALUES (27, 'tria', 23, NULL, NULL, 'Wholesaler', '085279002205', 0.00, 'advance', 500000, 500000, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-03-20 17:02:31', '2026-03-20 17:02:31');
INSERT INTO `parties` VALUES (28, 'biantoro', 23, NULL, NULL, 'Wholesaler', '085279002208', 2500000.00, 'due', 2500000, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-03-25 20:45:04', '2026-03-25 20:45:04');
INSERT INTO `parties` VALUES (29, 'Sari Roti', 28, NULL, 'supplier@gmail.com', 'Supplier', '081310195804', 27500.00, 'due', 0, 0, 0, 0, 'Tangerang', NULL, 1, NULL, NULL, NULL, '2026-03-29 20:46:53', '2026-03-29 20:57:12');
INSERT INTO `parties` VALUES (30, 'agungbian', 23, NULL, NULL, 'Supplier', '085279112211', 0.00, 'due', 0, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-03-29 20:48:53', '2026-03-29 20:48:53');
INSERT INTO `parties` VALUES (31, 'Loyal Customer', 28, NULL, NULL, 'Retailer', '081310195805', 0.00, 'due', 0, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-03-29 20:48:58', '2026-03-29 20:48:58');
INSERT INTO `parties` VALUES (33, 'Eko', 9, NULL, NULL, 'Retailer', '089234892290', 11000000.00, 'due', 11000000, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-04-04 22:52:10', '2026-04-12 19:18:49');
INSERT INTO `parties` VALUES (34, 'sarui', 9, NULL, NULL, 'Retailer', '089900829363', 110000.00, 'due', 110000, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-04-04 23:22:25', '2026-04-12 19:18:02');
INSERT INTO `parties` VALUES (35, 'Ekosa', 9, NULL, NULL, 'Retailer', '089627921935', 10000.00, 'due', 10000, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-04-04 23:25:30', '2026-04-12 19:17:45');
INSERT INTO `parties` VALUES (36, 'yanto', 9, NULL, NULL, 'Retailer', '089627921934', 1000000.00, 'due', 1000000, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-04-04 23:34:21', '2026-04-12 19:17:18');
INSERT INTO `parties` VALUES (37, 'toko eko jaya', 9, NULL, NULL, 'Supplier', '089627921936', 1000.00, 'due', 1000, 0, 0, 0, NULL, NULL, 1, NULL, NULL, NULL, '2026-04-12 19:45:59', '2026-04-12 19:45:59');
-- ----------------------------
-- Table structure for password_reset_tokens
-- ----------------------------
DROP TABLE IF EXISTS `password_reset_tokens`;
CREATE TABLE `password_reset_tokens` (
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`email`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of password_reset_tokens
-- ----------------------------
-- ----------------------------
-- Table structure for password_resets
-- ----------------------------
DROP TABLE IF EXISTS `password_resets`;
CREATE TABLE `password_resets` (
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
INDEX `password_resets_email_index`(`email` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of password_resets
-- ----------------------------
-- ----------------------------
-- Table structure for payment_types
-- ----------------------------
DROP TABLE IF EXISTS `payment_types`;
CREATE TABLE `payment_types` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`business_id` bigint(20) UNSIGNED NOT NULL,
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`meta` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`show_in_invoice` tinyint(1) NOT NULL DEFAULT 1,
`opening_date` date NULL DEFAULT NULL,
`opening_balance` decimal(15, 3) NOT NULL DEFAULT 0.000,
`balance` decimal(15, 3) NOT NULL DEFAULT 0.000,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `payment_types_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `payment_types_branch_id_foreign`(`branch_id` ASC) USING BTREE,
CONSTRAINT `payment_types_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `payment_types_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of payment_types
-- ----------------------------
INSERT INTO `payment_types` VALUES (1, 2, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-02-07 14:12:59', '2026-02-07 14:12:59', NULL);
INSERT INTO `payment_types` VALUES (4, 8, NULL, 'Bank BCA', '{\"account_number\":\"123456\",\"routing_number\":null,\"upi_id\":null,\"bank_name\":\"Bank BCA\",\"branch\":null,\"account_holder\":null}', 0, '2026-02-23', 0.000, 344862.375, 1, '2026-02-23 16:12:57', '2026-03-19 22:53:53', NULL);
INSERT INTO `payment_types` VALUES (5, 8, NULL, 'Cash at Store', '{\"account_number\":null,\"routing_number\":null,\"upi_id\":null,\"bank_name\":null,\"branch\":null,\"account_holder\":null}', 0, '2026-02-23', 0.000, 658820.000, 1, '2026-02-23 16:13:24', '2026-03-18 08:37:31', NULL);
INSERT INTO `payment_types` VALUES (6, 10, 2, 'Bank BCA', '{\"account_number\":\"123456\",\"routing_number\":null,\"upi_id\":null,\"bank_name\":\"BCA\",\"branch\":\"Gading Serpong\",\"account_holder\":\"Mrs Rebecca\"}', 1, '2026-02-26', 500000.000, 428538.000, 1, '2026-02-26 16:21:04', '2026-03-20 09:22:00', NULL);
INSERT INTO `payment_types` VALUES (7, 11, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-05 22:57:49', '2026-03-05 22:57:49', NULL);
INSERT INTO `payment_types` VALUES (8, 12, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-09 22:12:47', '2026-03-09 22:12:47', NULL);
INSERT INTO `payment_types` VALUES (9, 13, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-09 22:45:03', '2026-03-09 22:45:03', NULL);
INSERT INTO `payment_types` VALUES (10, 10, 2, 'QRIS', '{\"account_number\":null,\"routing_number\":null,\"upi_id\":null,\"bank_name\":null,\"account_holder\":null,\"branch\":null}', 0, '2026-03-10', 0.000, 162900.000, 1, '2026-03-10 13:05:26', '2026-03-19 22:54:44', NULL);
INSERT INTO `payment_types` VALUES (11, 14, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-11 15:29:08', '2026-03-11 15:29:08', NULL);
INSERT INTO `payment_types` VALUES (12, 16, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-12 13:18:47', '2026-03-12 13:18:47', NULL);
INSERT INTO `payment_types` VALUES (13, 17, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-12 19:27:22', '2026-03-12 19:27:22', NULL);
INSERT INTO `payment_types` VALUES (14, 18, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-12 20:46:35', '2026-03-12 20:46:35', NULL);
INSERT INTO `payment_types` VALUES (15, 19, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-12 20:53:59', '2026-03-12 20:53:59', NULL);
INSERT INTO `payment_types` VALUES (16, 20, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-12 21:00:03', '2026-03-12 21:00:03', NULL);
INSERT INTO `payment_types` VALUES (17, 21, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-12 22:08:13', '2026-03-12 22:08:13', NULL);
INSERT INTO `payment_types` VALUES (18, 22, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-13 07:09:12', '2026-03-13 07:09:12', NULL);
INSERT INTO `payment_types` VALUES (19, 23, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-13 10:24:29', '2026-03-13 10:24:29', NULL);
INSERT INTO `payment_types` VALUES (20, 24, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-13 23:46:50', '2026-03-13 23:46:50', NULL);
INSERT INTO `payment_types` VALUES (21, 25, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-14 11:03:24', '2026-03-14 11:03:24', NULL);
INSERT INTO `payment_types` VALUES (22, 26, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-16 11:12:33', '2026-03-16 11:12:33', NULL);
INSERT INTO `payment_types` VALUES (23, 27, NULL, 'Cash', NULL, 1, NULL, 0.000, 0.000, 1, '2026-03-18 13:39:00', '2026-03-18 13:39:00', NULL);
INSERT INTO `payment_types` VALUES (24, 28, NULL, 'BCA', '{\"account_number\":null,\"routing_number\":null,\"upi_id\":null,\"bank_name\":null,\"account_holder\":null,\"branch\":null}', 0, '2026-03-29', 50000.000, 58250.000, 1, '2026-03-29 20:52:15', '2026-03-29 20:53:02', NULL);
-- ----------------------------
-- Table structure for permissions
-- ----------------------------
DROP TABLE IF EXISTS `permissions`;
CREATE TABLE `permissions` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`guard_name` varchar(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`) USING BTREE,
UNIQUE INDEX `permissions_name_guard_name_unique`(`name` ASC, `guard_name` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 68 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of permissions
-- ----------------------------
INSERT INTO `permissions` VALUES (1, 'dashboard-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (2, 'users-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (3, 'users-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (4, 'users-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (5, 'users-delete', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (6, 'banners-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (7, 'banners-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (8, 'banners-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (9, 'banners-delete', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (10, 'business-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (11, 'business-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (12, 'business-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (13, 'business-delete', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (14, 'addons-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (15, 'addons-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (16, 'business-categories-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (17, 'business-categories-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (18, 'business-categories-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (19, 'business-categories-delete', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (20, 'plans-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (21, 'plans-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (22, 'plans-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (23, 'plans-delete', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (24, 'subscription-reports-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (25, 'subscription-orders-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (26, 'features-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (27, 'features-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (28, 'features-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (29, 'features-delete', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (30, 'domains-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (31, 'domains-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (32, 'domains-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (33, 'domains-delete', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (34, 'interfaces-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (35, 'interfaces-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (36, 'interfaces-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (37, 'interfaces-delete', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (38, 'testimonials-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (39, 'testimonials-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (40, 'testimonials-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (41, 'testimonials-delete', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (42, 'blogs-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (43, 'blogs-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (44, 'blogs-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (45, 'blogs-delete', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (46, 'messages-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (47, 'messages-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (48, 'messages-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (49, 'messages-delete', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (50, 'terms-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (51, 'terms-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (52, 'gateways-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (53, 'gateways-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (54, 'currencies-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (55, 'currencies-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (56, 'currencies-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (57, 'currencies-delete', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (58, 'settings-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (59, 'settings-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (60, 'roles-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (61, 'roles-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (62, 'roles-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (63, 'roles-delete', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (64, 'permissions-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (65, 'permissions-create', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (66, 'notifications-read', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `permissions` VALUES (67, 'notifications-update', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
-- ----------------------------
-- Table structure for personal_access_tokens
-- ----------------------------
DROP TABLE IF EXISTS `personal_access_tokens`;
CREATE TABLE `personal_access_tokens` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`tokenable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`tokenable_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`abilities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`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`) USING BTREE,
UNIQUE INDEX `personal_access_tokens_token_unique`(`token` ASC) USING BTREE,
INDEX `personal_access_tokens_tokenable_type_tokenable_id_index`(`tokenable_type` ASC, `tokenable_id` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 141 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of personal_access_tokens
-- ----------------------------
INSERT INTO `personal_access_tokens` VALUES (3, 'App\\Models\\User', 4, 'createToken', 'c01d7fc52faa78abbe312d0a93388218cc5c47cdf51254aed9bb694fb271e090', '[\"*\"]', '2026-02-19 10:03:20', NULL, '2026-02-05 17:13:42', '2026-02-19 10:03:20');
INSERT INTO `personal_access_tokens` VALUES (10, 'App\\Models\\User', 4, 'createToken', '8a02d1391aa4f5fb0b56cf147a4d780a1618e02d3060cbc429a1e42cb9a56268', '[\"*\"]', '2026-02-07 15:40:08', NULL, '2026-02-07 14:52:15', '2026-02-07 15:40:08');
INSERT INTO `personal_access_tokens` VALUES (13, 'App\\Models\\User', 4, 'createToken', 'a87e5c4b96a62c3981301821fc15fc514a4a697503e8e27da21ca5cf29884523', '[\"*\"]', '2026-02-07 16:05:00', NULL, '2026-02-07 15:59:21', '2026-02-07 16:05:00');
INSERT INTO `personal_access_tokens` VALUES (14, 'App\\Models\\User', 4, 'createToken', '09e9a8bdbce116b77640b71cf84e0d75b9ce79bc2ca2b981264a9e17dd38fc3a', '[\"*\"]', '2026-02-07 17:12:09', NULL, '2026-02-07 17:11:50', '2026-02-07 17:12:09');
INSERT INTO `personal_access_tokens` VALUES (16, 'App\\Models\\User', 4, 'createToken', 'ee0bb3d96b6edc33e35918d442016335ac5b4b10e451901132d446387dcb5408', '[\"*\"]', '2026-02-07 21:53:02', NULL, '2026-02-07 21:51:49', '2026-02-07 21:53:02');
INSERT INTO `personal_access_tokens` VALUES (17, 'App\\Models\\User', 4, 'createToken', '846d1165ded2c3c73a7a27903a2012d784837a780a94ef689a841b0e1485761b', '[\"*\"]', '2026-02-08 11:58:53', NULL, '2026-02-07 22:03:44', '2026-02-08 11:58:53');
INSERT INTO `personal_access_tokens` VALUES (33, 'App\\Models\\User', 5, 'createToken', 'dfa4ddc5cb5ca0adc9efe2e4a82f796247af9d891b655383e41525f8b31f3d65', '[\"*\"]', '2026-02-11 18:16:35', NULL, '2026-02-11 18:16:11', '2026-02-11 18:16:35');
INSERT INTO `personal_access_tokens` VALUES (34, 'App\\Models\\User', 5, 'createToken', '472a8a15843da254b126681aaffb83ea22a54baa22cfb07d45048fe332677d41', '[\"*\"]', '2026-02-18 12:27:12', NULL, '2026-02-13 12:07:59', '2026-02-18 12:27:12');
INSERT INTO `personal_access_tokens` VALUES (35, 'App\\Models\\User', 5, 'createToken', '0be7fa289c6eecc660d2ad3940dc5a0440743c3808f88364369caf7550fc2b96', '[\"*\"]', '2026-02-15 19:00:26', NULL, '2026-02-15 18:15:30', '2026-02-15 19:00:26');
INSERT INTO `personal_access_tokens` VALUES (36, 'App\\Models\\User', 5, 'createToken', '3dec9752eaf9c4e31bef0f9058cad2ab5362203aedd7ce6efbcdbd8ff42d3bab', '[\"*\"]', '2026-02-15 19:10:29', NULL, '2026-02-15 19:07:09', '2026-02-15 19:10:29');
INSERT INTO `personal_access_tokens` VALUES (37, 'App\\Models\\User', 5, 'createToken', '3eba92fa44e21d140a53f110fc3e7a4b15fb4c9dc643e1edb82abbf3dd8256de', '[\"*\"]', '2026-02-15 19:48:31', NULL, '2026-02-15 19:31:48', '2026-02-15 19:48:31');
INSERT INTO `personal_access_tokens` VALUES (38, 'App\\Models\\User', 5, 'createToken', 'd2dce411f3204bd2d8719c99bee80770ebd1c62a6ca04322464445556a2cbf63', '[\"*\"]', '2026-02-15 22:27:34', NULL, '2026-02-15 20:24:54', '2026-02-15 22:27:34');
INSERT INTO `personal_access_tokens` VALUES (39, 'App\\Models\\User', 5, 'createToken', '0d9eb86b4d806cc07c6e118d5db4d11b1c2bd368ae481da4120e10975eb4fbbf', '[\"*\"]', '2026-02-15 22:15:15', NULL, '2026-02-15 22:14:19', '2026-02-15 22:15:15');
INSERT INTO `personal_access_tokens` VALUES (41, 'App\\Models\\User', 5, 'createToken', 'e4accf24b36c176a79837bc0c696b45f58f2453ce4725bb4bb543241badb14f6', '[\"*\"]', '2026-03-05 11:13:26', NULL, '2026-02-20 07:05:25', '2026-03-05 11:13:26');
INSERT INTO `personal_access_tokens` VALUES (45, 'App\\Models\\User', 9, 'createToken', '4ef38316110eeb9998606185cb9c185c16a6598eda916fee7d683d59721a9b62', '[\"*\"]', '2026-02-21 23:18:54', NULL, '2026-02-21 11:32:50', '2026-02-21 23:18:54');
INSERT INTO `personal_access_tokens` VALUES (48, 'App\\Models\\User', 9, 'createToken', '1b3a97f5e830f89c8cc7b28bfdb601e54fae5c88ec8a8011a74e4b52b21af033', '[\"*\"]', '2026-03-05 22:40:19', NULL, '2026-02-22 01:03:05', '2026-03-05 22:40:19');
INSERT INTO `personal_access_tokens` VALUES (49, 'App\\Models\\User', 5, 'createToken', 'ddc7339f3df625d8e5029190947bb1ce3272055247a8299b52ada5e3922a8df4', '[\"*\"]', '2026-02-23 22:13:29', NULL, '2026-02-23 22:00:22', '2026-02-23 22:13:29');
INSERT INTO `personal_access_tokens` VALUES (50, 'App\\Models\\User', 5, 'createToken', '94ed3709e054cd5b53da3f8b65cf6b07c3cebf266b1c815e8d8b219f87e45a34', '[\"*\"]', '2026-02-23 22:59:37', NULL, '2026-02-23 22:21:08', '2026-02-23 22:59:37');
INSERT INTO `personal_access_tokens` VALUES (59, 'App\\Models\\User', 9, 'createToken', '04be1710e54bfb37d1c97292ef3ae0a2bf5de19604b7b118813637b441c98a01', '[\"*\"]', '2026-03-10 10:06:46', NULL, '2026-03-01 07:30:56', '2026-03-10 10:06:46');
INSERT INTO `personal_access_tokens` VALUES (62, 'App\\Models\\User', 5, 'createToken', '0ac6e7b972c9a8a72a616abd0c6d807001993201363bfe4d2242afa90691cfee', '[\"*\"]', '2026-03-02 18:03:37', NULL, '2026-03-02 18:02:48', '2026-03-02 18:03:37');
INSERT INTO `personal_access_tokens` VALUES (71, 'App\\Models\\User', 5, 'createToken', '4edd4b1e362e97da193f6a38b44938eb9d363e6a7149e25ed5964cbdfa070a85', '[\"*\"]', '2026-03-08 05:55:57', NULL, '2026-03-05 17:31:03', '2026-03-08 05:55:57');
INSERT INTO `personal_access_tokens` VALUES (72, 'App\\Models\\User', 5, 'createToken', '22279d52a84a5049d499a922ca97520bb7239ad45564c1d6eb5078cfa62eeca5', '[\"*\"]', '2026-03-05 17:37:06', NULL, '2026-03-05 17:34:49', '2026-03-05 17:37:06');
INSERT INTO `personal_access_tokens` VALUES (73, 'App\\Models\\User', 5, 'createToken', '24af64e3d25d72775ed7c835205ac2ce0968ca999af560ddbd01864722cac8c9', '[\"*\"]', '2026-03-05 17:38:28', NULL, '2026-03-05 17:38:27', '2026-03-05 17:38:28');
INSERT INTO `personal_access_tokens` VALUES (74, 'App\\Models\\User', 5, 'createToken', '1e9aa49ee5bba9b88e80ff62508e94edc9739e8259f812459112d43e4ce09f6a', '[\"*\"]', '2026-03-05 17:40:19', NULL, '2026-03-05 17:40:19', '2026-03-05 17:40:19');
INSERT INTO `personal_access_tokens` VALUES (78, 'App\\Models\\User', 10, 'createToken', 'eaa7e55ded413ef833e5f219835e161cd1a1c6c8524297faa4b102407a5d13bd', '[\"*\"]', NULL, NULL, '2026-03-05 22:54:46', '2026-03-05 22:54:46');
INSERT INTO `personal_access_tokens` VALUES (79, 'App\\Models\\User', 10, 'createToken', 'a1f12f2214aed44c98a1d01fe26462ec4b6c8408b6783f794d76927cc709b521', '[\"*\"]', NULL, NULL, '2026-03-05 22:54:59', '2026-03-05 22:54:59');
INSERT INTO `personal_access_tokens` VALUES (80, 'App\\Models\\User', 14, 'createToken', '3df5daa4aa63bbf63e83d22450e061b68ea0cd1751369aa157591ea4bb8818fd', '[\"*\"]', '2026-03-15 11:27:51', NULL, '2026-03-05 22:56:35', '2026-03-15 11:27:51');
INSERT INTO `personal_access_tokens` VALUES (81, 'App\\Models\\User', 14, 'createToken', '133895d16c7bc47ebec51d7cdcf13d5e40c9ebba0b87d1ca09c28ea6710620b2', '[\"*\"]', NULL, '2026-03-05 22:56:35', '2026-03-05 22:56:35', '2026-03-05 22:56:35');
INSERT INTO `personal_access_tokens` VALUES (83, 'App\\Models\\User', 16, 'createToken', '81c80fd73a61438f965905a0dae7d0736ee0fcb8b171999115cec9572b498458', '[\"*\"]', NULL, '2026-03-09 22:12:19', '2026-03-09 22:12:19', '2026-03-09 22:12:19');
INSERT INTO `personal_access_tokens` VALUES (86, 'App\\Models\\User', 5, 'createToken', '3379daf5e1b8d6f5af2e722b1218966c8db6cdbc572c2833cb57c1bc9879b2ee', '[\"*\"]', '2026-03-09 23:09:39', NULL, '2026-03-09 23:09:25', '2026-03-09 23:09:39');
INSERT INTO `personal_access_tokens` VALUES (87, 'App\\Models\\User', 5, 'createToken', 'f32e3adb7adc9a15826e88216bfc9bcf8a9b0567280b7d3130e4931c6a359fa0', '[\"*\"]', '2026-03-10 14:26:18', NULL, '2026-03-10 14:25:48', '2026-03-10 14:26:18');
INSERT INTO `personal_access_tokens` VALUES (89, 'App\\Models\\User', 18, 'createToken', '93f8dcfab00b3486bcd077c17c30b24726b9a5e961bd1e59f915ea5e3b667352', '[\"*\"]', '2026-04-02 14:05:37', NULL, '2026-03-11 15:28:00', '2026-04-02 14:05:37');
INSERT INTO `personal_access_tokens` VALUES (90, 'App\\Models\\User', 18, 'createToken', 'd5a58d1dfe89c4797cd9287f95eeb46e4d2c2deb1e58902bdf9b656283a0c405', '[\"*\"]', NULL, '2026-03-11 15:28:00', '2026-03-11 15:28:00', '2026-03-11 15:28:00');
INSERT INTO `personal_access_tokens` VALUES (94, 'App\\Models\\User', 20, 'createToken', 'a663108aaa4b9667bdb318ee31e73ecd4f71221eac7ff9373f351c7b70fc3a21', '[\"*\"]', NULL, '2026-03-12 13:15:46', '2026-03-12 13:15:46', '2026-03-12 13:15:46');
INSERT INTO `personal_access_tokens` VALUES (95, 'App\\Models\\User', 5, 'createToken', '13de1f46a7f613f948bc5421acec9789cdc23208ac9c7003a3a3cee232bd22c5', '[\"*\"]', '2026-03-12 16:26:57', NULL, '2026-03-12 16:26:23', '2026-03-12 16:26:57');
INSERT INTO `personal_access_tokens` VALUES (96, 'App\\Models\\User', 21, 'createToken', '14e19820e496f2a6a875feee98bd093ec001774d8d84fa924e420869d2a23392', '[\"*\"]', '2026-03-26 09:20:54', NULL, '2026-03-12 19:26:47', '2026-03-26 09:20:54');
INSERT INTO `personal_access_tokens` VALUES (97, 'App\\Models\\User', 21, 'createToken', 'c33ec70890c247385181aadf5229854a2232f1dc64cb71e62ece4e45dbc5ce19', '[\"*\"]', NULL, '2026-03-12 19:26:47', '2026-03-12 19:26:47', '2026-03-12 19:26:47');
INSERT INTO `personal_access_tokens` VALUES (98, 'App\\Models\\User', 22, 'createToken', '91b5a19555f63cdaa1df65e14b338ffb7709669e40c1abd74ef902eaa30d711f', '[\"*\"]', '2026-03-12 20:46:36', NULL, '2026-03-12 20:44:49', '2026-03-12 20:46:36');
INSERT INTO `personal_access_tokens` VALUES (99, 'App\\Models\\User', 22, 'createToken', '03e62b1b28a24499bdaf21941deef44ebfb2d65ffd385bd9cfab2ac7f18cc9dc', '[\"*\"]', NULL, '2026-03-12 20:44:49', '2026-03-12 20:44:49', '2026-03-12 20:44:49');
INSERT INTO `personal_access_tokens` VALUES (100, 'App\\Models\\User', 23, 'createToken', '40bbecc5a5f716585ea82e891f7828d2384625e06dcf06ba26a5d5dc5debd5ce', '[\"*\"]', '2026-03-30 21:17:13', NULL, '2026-03-12 20:53:16', '2026-03-30 21:17:13');
INSERT INTO `personal_access_tokens` VALUES (101, 'App\\Models\\User', 23, 'createToken', 'dca1bd33b04f0ef2c270240d574361ecad51c17f9d74bb9e007fed46bb15d817', '[\"*\"]', NULL, '2026-03-12 20:53:16', '2026-03-12 20:53:16', '2026-03-12 20:53:16');
INSERT INTO `personal_access_tokens` VALUES (102, 'App\\Models\\User', 24, 'createToken', 'af06a265bda2198cca8f1e759d85faf7953586c11f6a0b4b20118928b949146e', '[\"*\"]', '2026-03-14 14:22:40', NULL, '2026-03-12 20:57:45', '2026-03-14 14:22:40');
INSERT INTO `personal_access_tokens` VALUES (103, 'App\\Models\\User', 24, 'createToken', '37b6fcdd91cd0bf47b6e00f1116637086b2e75bc638993602ddf6909cc58f28d', '[\"*\"]', NULL, '2026-03-12 20:57:45', '2026-03-12 20:57:45', '2026-03-12 20:57:45');
INSERT INTO `personal_access_tokens` VALUES (104, 'App\\Models\\User', 25, 'createToken', '6810a77c507c152089ac0f6546cb80c377b59c5f039bc4a98310f725e61ec8db', '[\"*\"]', '2026-03-26 10:34:08', NULL, '2026-03-12 22:07:42', '2026-03-26 10:34:08');
INSERT INTO `personal_access_tokens` VALUES (105, 'App\\Models\\User', 25, 'createToken', '09754268557e47dcb1e7674349915faaa4068384bea463203aa90870bdcbdb16', '[\"*\"]', NULL, '2026-03-12 22:07:42', '2026-03-12 22:07:42', '2026-03-12 22:07:42');
INSERT INTO `personal_access_tokens` VALUES (108, 'App\\Models\\User', 26, 'createToken', '349dcb60b162e98c1d4efc04e835c91b464d10989089c1766625957c8dcc3b79', '[\"*\"]', NULL, '2026-03-13 07:07:42', '2026-03-13 07:07:42', '2026-03-13 07:07:42');
INSERT INTO `personal_access_tokens` VALUES (109, 'App\\Models\\User', 27, 'createToken', 'f46b16b7a2735baf89355ee548afc243c4beb271566e68b9c57be037bb48ab34', '[\"*\"]', '2026-04-09 19:07:05', NULL, '2026-03-13 10:23:26', '2026-04-09 19:07:05');
INSERT INTO `personal_access_tokens` VALUES (110, 'App\\Models\\User', 27, 'createToken', '52e2e1ddba904d3c5399b94aac721d5fcd0c9131e8ec0c0de45fd1593619c3fa', '[\"*\"]', NULL, '2026-03-13 10:23:26', '2026-03-13 10:23:26', '2026-03-13 10:23:26');
INSERT INTO `personal_access_tokens` VALUES (111, 'App\\Models\\User', 20, 'createToken', 'ea98a205d479cbdead3bfd99591d4422ae4d1b39264cd86f7b3857a8b69b7020', '[\"*\"]', '2026-04-04 12:18:29', NULL, '2026-03-13 17:54:31', '2026-04-04 12:18:29');
INSERT INTO `personal_access_tokens` VALUES (112, 'App\\Models\\User', 28, 'createToken', 'f075fa2a6533ea4bd2395a9b094ab373ef859d3ab3f2d98bba7e80b6bcbd8964', '[\"*\"]', '2026-03-14 12:46:56', NULL, '2026-03-13 23:45:57', '2026-03-14 12:46:56');
INSERT INTO `personal_access_tokens` VALUES (113, 'App\\Models\\User', 28, 'createToken', '2166940fd7e4bbfe2defdf99d352a1bb302039e293f3ceb83b3b540a11ba8560', '[\"*\"]', NULL, '2026-03-13 23:45:57', '2026-03-13 23:45:57', '2026-03-13 23:45:57');
INSERT INTO `personal_access_tokens` VALUES (115, 'App\\Models\\User', 29, 'createToken', '4fcf980bf5b1d46582e7adc9d34790f593b4ea6c8cab5686ba208142c526044a', '[\"*\"]', NULL, '2026-03-14 11:03:01', '2026-03-14 11:03:01', '2026-03-14 11:03:01');
INSERT INTO `personal_access_tokens` VALUES (117, 'App\\Models\\User', 10, 'createToken', 'a35a884c7a54bc441730e8869848d310b87e8286e2dd71800aff662216f141f7', '[\"*\"]', NULL, NULL, '2026-03-15 11:30:19', '2026-03-15 11:30:19');
INSERT INTO `personal_access_tokens` VALUES (118, 'App\\Models\\User', 26, 'createToken', '9cae1f4497b5a5bf03ba144912b58de1676006e977f1aba7fe70639b6314b8bf', '[\"*\"]', '2026-03-15 13:56:48', NULL, '2026-03-15 13:56:47', '2026-03-15 13:56:48');
INSERT INTO `personal_access_tokens` VALUES (119, 'App\\Models\\User', 31, 'createToken', '0175f1dedc446c42be9a46eccfc641afddddab5a3fc416d5f20206ec2f53d9f9', '[\"*\"]', '2026-03-18 09:23:43', NULL, '2026-03-16 11:11:59', '2026-03-18 09:23:43');
INSERT INTO `personal_access_tokens` VALUES (120, 'App\\Models\\User', 31, 'createToken', '0dc7d10606b662e2e395c17bbe86adacd8b6ae4dd37073048ed72ec33b3088e9', '[\"*\"]', NULL, '2026-03-16 11:11:59', '2026-03-16 11:11:59', '2026-03-16 11:11:59');
INSERT INTO `personal_access_tokens` VALUES (121, 'App\\Models\\User', 12, 'createToken', '1726412b44a1b76a36d1bd73dc9a60a998f567fa8cfaf2ad86496157cea303c4', '[\"*\"]', '2026-03-31 18:21:09', NULL, '2026-03-16 16:23:59', '2026-03-31 18:21:09');
INSERT INTO `personal_access_tokens` VALUES (123, 'App\\Models\\User', 32, 'createToken', '8951e602ff7220361c242f1a2ad092f6363289c9120ad8f617ff6b31c661320e', '[\"*\"]', NULL, '2026-03-18 13:38:22', '2026-03-18 13:38:22', '2026-03-18 13:38:22');
INSERT INTO `personal_access_tokens` VALUES (126, 'App\\Models\\User', 12, 'createToken', 'f3ad6cf71912248759e848c68da1bd11091183b9180fa1a6a90a455bfd9a17cb', '[\"*\"]', '2026-03-28 10:08:07', NULL, '2026-03-28 09:40:44', '2026-03-28 10:08:07');
INSERT INTO `personal_access_tokens` VALUES (127, 'App\\Models\\User', 33, 'createToken', '150574dc559fe0a9101334fdd1a0ac32fb7d2d86476cb37a203f94d10824fb6e', '[\"*\"]', '2026-04-06 15:56:57', NULL, '2026-03-29 20:34:13', '2026-04-06 15:56:57');
2026-04-15 22:26:07 +07:00
INSERT INTO `personal_access_tokens` VALUES (128, 'App\\Models\\User', 7, 'createToken', '4446a4f5d3b405069bf59ab269c1b001fc43261165122c1bb4b1d88c5810073b', '[\"*\"]', '2026-04-14 12:38:27', NULL, '2026-03-30 11:52:21', '2026-04-14 12:38:27');
2026-04-13 09:24:39 +07:00
INSERT INTO `personal_access_tokens` VALUES (129, 'App\\Models\\User', 7, 'createToken', '1305eec80c330a8c3e44e5a7efcbc641a5c93b6af45431c9c7551feb75d42f3e', '[\"*\"]', '2026-04-10 14:23:56', NULL, '2026-04-04 21:54:11', '2026-04-10 14:23:56');
INSERT INTO `personal_access_tokens` VALUES (130, 'App\\Models\\User', 12, 'createToken', 'd22cb5fbc2fd1598a9452306468ad8484d694b4c21ee18363c19dfbd77b5cf17', '[\"*\"]', '2026-04-05 16:56:19', NULL, '2026-04-05 16:51:23', '2026-04-05 16:56:19');
INSERT INTO `personal_access_tokens` VALUES (135, 'App\\Models\\User', 12, 'createToken', '77dafee519ef7e70f16dba869ded190db1cb7027a531f9dbcb19a676e6448de4', '[\"*\"]', '2026-04-12 20:48:08', NULL, '2026-04-12 20:47:59', '2026-04-12 20:48:08');
INSERT INTO `personal_access_tokens` VALUES (136, 'App\\Models\\User', 12, 'createToken', '617c3ee89b9d35a13543a3c9e9f2612039ecc67bde25aedd6ca3a4b36614ed6c', '[\"*\"]', '2026-04-12 21:23:48', NULL, '2026-04-12 21:15:23', '2026-04-12 21:23:48');
INSERT INTO `personal_access_tokens` VALUES (137, 'App\\Models\\User', 12, 'createToken', '8302629ed94b079ff4469b138582d197dd4d600a0117a2909b86749259fd7288', '[\"*\"]', NULL, NULL, '2026-04-12 21:34:05', '2026-04-12 21:34:05');
INSERT INTO `personal_access_tokens` VALUES (140, 'App\\Models\\User', 12, 'createToken', '5316304d975801daa9923f2ab325e3194432f0c0ab3b8ad8d6f460a77048686b', '[\"*\"]', '2026-04-12 23:02:46', NULL, '2026-04-12 23:02:44', '2026-04-12 23:02:46');
-- ----------------------------
-- Table structure for plan_subscribes
-- ----------------------------
DROP TABLE IF EXISTS `plan_subscribes`;
CREATE TABLE `plan_subscribes` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`plan_id` bigint(20) UNSIGNED NOT NULL,
`business_id` bigint(20) UNSIGNED NOT NULL,
`gateway_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`price` double(10, 2) NOT NULL DEFAULT 0.00,
`subdomain_limit` int(11) NOT NULL DEFAULT 0,
`addon_domain_limit` int(11) NOT NULL DEFAULT 0,
`allow_multibranch` tinyint(1) NOT NULL DEFAULT 0,
`payment_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'unpaid',
`duration` int(11) NOT NULL DEFAULT 0,
`notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `plan_subscribes_plan_id_foreign`(`plan_id` ASC) USING BTREE,
INDEX `plan_subscribes_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `plan_subscribes_gateway_id_foreign`(`gateway_id` ASC) USING BTREE,
CONSTRAINT `plan_subscribes_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `plan_subscribes_gateway_id_foreign` FOREIGN KEY (`gateway_id`) REFERENCES `gateways` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `plan_subscribes_plan_id_foreign` FOREIGN KEY (`plan_id`) REFERENCES `plans` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 35 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of plan_subscribes
-- ----------------------------
INSERT INTO `plan_subscribes` VALUES (2, 1, 2, NULL, 0.00, 0, 0, 0, 'unpaid', 7, NULL, '2026-02-07 14:12:59', '2026-02-07 14:12:59');
INSERT INTO `plan_subscribes` VALUES (6, 1, 6, NULL, 0.00, 0, 0, 0, 'unpaid', 7, NULL, '2026-02-19 14:05:44', '2026-02-19 14:05:44');
INSERT INTO `plan_subscribes` VALUES (7, 1, 7, NULL, 0.00, 0, 0, 0, 'unpaid', 7, NULL, '2026-02-20 06:56:47', '2026-02-20 06:56:47');
INSERT INTO `plan_subscribes` VALUES (8, 1, 8, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-02-21 10:48:03', '2026-02-21 10:48:03');
INSERT INTO `plan_subscribes` VALUES (10, 1, 9, NULL, 0.00, 0, 0, 1, 'unpaid', 30, NULL, '2026-02-25 23:50:10', '2026-02-25 23:50:10');
INSERT INTO `plan_subscribes` VALUES (11, 1, 10, NULL, 0.00, 0, 0, 1, 'unpaid', 30, NULL, '2026-02-26 09:24:40', '2026-02-26 09:24:40');
INSERT INTO `plan_subscribes` VALUES (12, 2, 2, 1, 100000.00, 0, 0, 1, 'reject', 31, '\"test\"', '2026-02-28 16:31:42', '2026-02-28 16:33:35');
INSERT INTO `plan_subscribes` VALUES (13, 2, 10, 1, 100000.00, 0, 0, 1, 'paid', 31, '{\"manual_data\":[\"10000\",\"2101\"],\"attachment\":\"uploads\\/26\\/03\\/1772373808-36.jpg\",\"reason\":\"ok\"}', '2026-03-01 21:03:28', '2026-03-01 21:07:24');
INSERT INTO `plan_subscribes` VALUES (14, 1, 11, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-05 22:57:49', '2026-03-05 22:57:49');
INSERT INTO `plan_subscribes` VALUES (15, 1, 12, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-09 22:12:47', '2026-03-09 22:12:47');
INSERT INTO `plan_subscribes` VALUES (16, 1, 13, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-09 22:45:03', '2026-03-09 22:45:03');
INSERT INTO `plan_subscribes` VALUES (17, 2, 2, 1, 100000.00, 0, 0, 1, 'paid', 31, '{\"manual_data\":[null,null],\"attachment\":\"uploads\\/26\\/03\\/1773071495-631.jpg\",\"reason\":\"test\"}', '2026-03-09 22:51:35', '2026-03-09 22:52:09');
INSERT INTO `plan_subscribes` VALUES (18, 1, 14, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-11 15:29:08', '2026-03-11 15:29:08');
INSERT INTO `plan_subscribes` VALUES (19, 1, 15, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-12 13:03:15', '2026-03-12 13:03:15');
INSERT INTO `plan_subscribes` VALUES (20, 1, 16, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-12 13:18:47', '2026-03-12 13:18:47');
INSERT INTO `plan_subscribes` VALUES (21, 1, 17, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-12 19:27:22', '2026-03-12 19:27:22');
INSERT INTO `plan_subscribes` VALUES (22, 1, 18, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-12 20:46:35', '2026-03-12 20:46:35');
INSERT INTO `plan_subscribes` VALUES (23, 1, 19, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-12 20:53:59', '2026-03-12 20:53:59');
INSERT INTO `plan_subscribes` VALUES (24, 1, 20, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-12 21:00:03', '2026-03-12 21:00:03');
INSERT INTO `plan_subscribes` VALUES (25, 1, 21, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-12 22:08:13', '2026-03-12 22:08:13');
INSERT INTO `plan_subscribes` VALUES (26, 1, 22, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-13 07:09:12', '2026-03-13 07:09:12');
INSERT INTO `plan_subscribes` VALUES (27, 1, 23, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-13 10:24:29', '2026-03-13 10:24:29');
INSERT INTO `plan_subscribes` VALUES (28, 1, 24, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-13 23:46:50', '2026-03-13 23:46:50');
INSERT INTO `plan_subscribes` VALUES (29, 1, 25, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-14 11:03:24', '2026-03-14 11:03:24');
INSERT INTO `plan_subscribes` VALUES (30, 1, 26, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-16 11:12:33', '2026-03-16 11:12:33');
INSERT INTO `plan_subscribes` VALUES (31, 1, 27, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-18 13:39:00', '2026-03-18 13:39:00');
INSERT INTO `plan_subscribes` VALUES (32, 2, 9, 1, 100000.00, 0, 0, 1, 'paid', 31, '{\"manual_data\":[null,null],\"attachment\":\"uploads\\/26\\/03\\/1774662660-153.jpg\",\"reason\":\"tester\"}', '2026-03-28 08:51:00', '2026-03-28 08:51:22');
INSERT INTO `plan_subscribes` VALUES (33, 1, 28, NULL, 0.00, 0, 0, 0, 'unpaid', 30, NULL, '2026-03-29 20:33:13', '2026-03-29 20:33:13');
INSERT INTO `plan_subscribes` VALUES (34, 2, 10, 1, 100000.00, 0, 0, 1, 'paid', 31, '{\"manual_data\":[\"90000\",null],\"attachment\":\"uploads\\/26\\/04\\/1775314503-132.jpg\",\"reason\":\"ok\"}', '2026-04-04 21:55:03', '2026-04-04 21:55:54');
-- ----------------------------
-- Table structure for plans
-- ----------------------------
DROP TABLE IF EXISTS `plans`;
CREATE TABLE `plans` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`subscriptionName` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`duration` int(11) NOT NULL DEFAULT 0,
`offerPrice` double(10, 2) NULL DEFAULT NULL,
`subscriptionPrice` double(10, 2) NOT NULL DEFAULT 0.00,
`status` tinyint(1) NOT NULL DEFAULT 1,
`allow_multibranch` tinyint(1) NOT NULL DEFAULT 0,
`addon_domain_limit` int(11) NULL DEFAULT NULL,
`subdomain_limit` int(11) NULL DEFAULT NULL,
`visibility` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`features` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 57 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of plans
-- ----------------------------
INSERT INTO `plans` VALUES (1, 'Free', 30, NULL, 0.00, 1, 0, NULL, NULL, NULL, '{\"features_features_features_features_features_features_features_0\":[\"POS Full Features\",\"1\"],\"features_features_features_features_features_features_features_1\":[\"Inventory Management\",\"1\"],\"features_features_features_features_features_features_features_2\":[\"Finance & Accounting\",\"1\"],\"features_features_features_3\":[\"Warehouse Management\",\"1\"],\"features_features_4\":[\"Purchase Management\",\"1\"],\"features_5\":[\"3rd Party Management\",\"1\"]}', '2024-06-05 00:08:12', '2026-03-02 10:57:46');
INSERT INTO `plans` VALUES (2, 'Hemat 1 Bulan', 31, 90000.00, 100000.00, 1, 1, NULL, NULL, NULL, '{\"features_features_features_features_features_features_features_features_features_features_features_0\":[\"POS Full Features\",\"1\"],\"features_features_features_features_features_features_features_features_features_features_features_1\":[\"Inventory Management\",\"1\"],\"features_features_features_features_features_features_features_features_features_features_features_2\":[\"Finance & Accounting\",\"1\"],\"features_features_features_features_features_features_features_features_features_features_3\":[\"Purchase Management\",\"1\"],\"features_features_features_features_features_features_features_features_features_4\":[\"Warehouse Management\",\"1\"],\"features_features_5\":[\"3rd Party Management\",\"1\"]}', '2026-02-22 21:49:12', '2026-03-04 13:42:28');
INSERT INTO `plans` VALUES (3, 'Hemat Pro Tri Wulan', 90, 225000.00, 300000.00, 1, 1, NULL, NULL, NULL, '{\"features_features_features_features_features_features_features_features_features_features_features_features_features_features_0\":[\"POS Full Features\",\"1\"],\"features_features_features_features_features_features_features_features_features_features_features_features_features_1\":[\"Inventory Management\",\"1\"],\"features_features_features_features_features_features_features_features_features_features_features_features_features_2\":[\"Finance & Accounting\",\"1\"],\"features_features_features_features_features_features_features_features_features_3\":[\"Purchase Management\",\"1\"],\"features_features_features_features_features_features_features_4\":[\"Warehouse Management\",\"1\"],\"features_5\":[\"3rd Party Management\",\"1\"]}', '2026-02-19 15:30:08', '2026-03-02 10:54:01');
INSERT INTO `plans` VALUES (4, 'Hemat Pro Max 1 Tahun', 360, 500000.00, 1200000.00, 1, 1, NULL, NULL, NULL, '{\"features_features_features_features_features_features_features_features_0\":[\"POS Full Features\",\"1\"],\"features_features_features_features_features_features_features_features_1\":[\"Inventory Management\",\"1\"],\"features_features_features_features_features_features_features_features_2\":[\"Finance & Accounting\",\"1\"],\"features_features_features_features_features_features_features_features_3\":[\"Purchase Management\",\"1\"],\"features_features_features_features_features_features_features_features_4\":[\"Warehouse Management\",\"1\"],\"features_5\":[\"3rd Party Management\",\"1\"]}', '2026-02-19 15:32:17', '2026-03-02 10:52:42');
INSERT INTO `plans` VALUES (5, 'Standard', 30, NULL, 10.00, 0, 1, NULL, NULL, NULL, '{\"features_features_features_0\":[\"Lifetime Free Update\",\"1\"],\"features_features_features_1\":[\"6 months technical support\",\"1\"],\"features_features_features_2\":[\"WhatsApp & Skype support\",\"1\"],\"features_features_features_3\":[\"Live support\",\"1\"],\"features_features_features_4\":[\"Free installation\",\"1\"],\"features_features_features_5\":[\"Free installation Cpanel\"],\"features_features_features_6\":[\"Advance Remote Support\"]}', '2024-06-05 00:08:12', '2026-02-19 15:30:16');
INSERT INTO `plans` VALUES (6, 'Premium', 180, 50.00, 60.00, 0, 1, NULL, NULL, NULL, '{\"features_features_0\":[\"Lifetime Free Update\",\"1\"],\"features_features_1\":[\"6 months technical support\",\"1\"],\"features_features_2\":[\"WhatsApp & Skype support\",\"1\"],\"features_features_3\":[\"Live support\",\"1\"],\"features_features_4\":[\"Free installation\",\"1\"],\"features_features_5\":[\"Free installation Cpanel\",\"1\"],\"features_features_6\":[\"Advance Remote Support\",\"1\"]}', '2024-06-05 00:08:12', '2026-02-19 15:30:15');
-- ----------------------------
-- Table structure for pos_app_interfaces
-- ----------------------------
DROP TABLE IF EXISTS `pos_app_interfaces`;
CREATE TABLE `pos_app_interfaces` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of pos_app_interfaces
-- ----------------------------
INSERT INTO `pos_app_interfaces` VALUES (1, 'uploads/24/06/1717395096-735.png', 1, '2024-04-16 22:18:51', '2024-06-03 18:11:36');
INSERT INTO `pos_app_interfaces` VALUES (2, 'uploads/24/06/1717395110-964.png', 1, '2024-04-16 22:19:43', '2024-06-03 18:11:50');
INSERT INTO `pos_app_interfaces` VALUES (3, 'uploads/24/06/1717395121-241.png', 1, '2024-04-18 20:56:07', '2024-06-03 18:12:01');
INSERT INTO `pos_app_interfaces` VALUES (4, 'uploads/24/06/1717395131-322.png', 1, '2024-04-18 20:56:17', '2024-06-03 18:12:11');
INSERT INTO `pos_app_interfaces` VALUES (5, 'uploads/24/06/1717396714-782.png', 1, '2024-06-03 18:38:34', '2024-06-03 18:38:34');
INSERT INTO `pos_app_interfaces` VALUES (6, 'uploads/24/06/1717396725-163.png', 1, '2024-06-03 18:38:45', '2024-06-03 18:38:45');
INSERT INTO `pos_app_interfaces` VALUES (7, 'uploads/24/06/1717396734-535.png', 1, '2024-06-03 18:38:54', '2024-06-03 18:38:54');
INSERT INTO `pos_app_interfaces` VALUES (8, 'uploads/24/06/1717396745-346.png', 1, '2024-06-03 18:39:05', '2024-06-03 18:39:05');
-- ----------------------------
-- Table structure for product_models
-- ----------------------------
DROP TABLE IF EXISTS `product_models`;
CREATE TABLE `product_models` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`business_id` bigint(20) UNSIGNED NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `product_models_business_id_foreign`(`business_id` ASC) USING BTREE,
CONSTRAINT `product_models_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of product_models
-- ----------------------------
-- ----------------------------
-- Table structure for product_settings
-- ----------------------------
DROP TABLE IF EXISTS `product_settings`;
CREATE TABLE `product_settings` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`business_id` bigint(20) UNSIGNED NOT NULL,
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`modules` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `product_settings_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `product_settings_branch_id_foreign`(`branch_id` ASC) USING BTREE,
CONSTRAINT `product_settings_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `product_settings_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of product_settings
-- ----------------------------
INSERT INTO `product_settings` VALUES (3, 2, 1, '{\"show_product_name\":\"1\",\"show_product_code\":\"0\",\"show_product_stock\":\"1\",\"show_product_sale_price\":\"1\",\"show_product_dealer_price\":\"0\",\"show_product_wholesale_price\":\"0\",\"show_product_unit\":\"1\",\"show_product_brand\":\"0\",\"show_product_category\":\"1\",\"show_product_manufacturer\":\"0\",\"show_product_image\":\"1\",\"show_expire_date\":\"0\",\"show_alert_qty\":\"1\",\"show_vat_id\":\"1\",\"show_vat_type\":\"1\",\"show_exclusive_price\":\"1\",\"show_inclusive_price\":\"1\",\"show_profit_percent\":\"1\",\"show_batch_no\":\"0\",\"show_mfg_date\":\"0\",\"show_model_no\":\"0\",\"show_product_type_single\":\"1\",\"show_product_type_variant\":\"0\",\"show_action\":\"0\",\"default_expired_date\":\"0\",\"default_mfg_date\":\"0\",\"expire_date_type\":\"0\",\"mfg_date_type\":\"0\",\"show_product_type_combo\":\"0\",\"show_warehouse\":\"0\",\"show_rack\":\"0\",\"show_shelf\":\"0\",\"show_guarantee\":\"0\",\"show_warranty\":\"0\"}', '2026-02-08 09:06:42', '2026-02-08 12:27:25');
INSERT INTO `product_settings` VALUES (4, 8, 1, '{\"show_product_price\":\"0\",\"show_product_code\":\"1\",\"show_product_stock\":\"1\",\"show_product_unit\":\"1\",\"show_product_brand\":\"1\",\"show_model_no\":\"1\",\"show_product_category\":\"1\",\"show_product_manufacturer\":\"1\",\"show_product_image\":\"1\",\"show_alert_qty\":\"1\",\"show_vat_id\":\"1\",\"show_vat_type\":\"1\",\"show_exclusive_price\":\"1\",\"show_inclusive_price\":\"1\",\"show_profit_percent\":\"1\",\"show_rack\":\"0\",\"show_shelf\":\"1\",\"show_action\":\"0\",\"show_weight\":\"0\",\"show_warranty\":\"0\",\"show_guarantee\":\"0\",\"show_product_sale_price\":\"1\",\"default_sale_price\":null,\"show_product_wholesale_price\":\"0\",\"default_wholesale_price\":null,\"show_product_dealer_price\":\"0\",\"default_dealer_price\":null,\"show_batch_no\":\"0\",\"default_batch_no\":null,\"show_expire_date\":\"0\",\"expire_date_type\":null,\"show_mfg_date\":\"0\",\"mfg_date_type\":null,\"show_product_type_single\":\"1\",\"show_product_type_variant\":\"1\",\"show_product_type_combo\":\"1\",\"show_product_batch_no\":\"1\",\"show_product_expire_date\":\"1\",\"allow_due_sale\":\"1\",\"allow_product_discount\":\"1\",\"default_expired_date\":null,\"default_mfg_date\":null}', '2026-02-21 11:05:03', '2026-02-25 11:36:51');
INSERT INTO `product_settings` VALUES (5, 10, NULL, '{\"show_product_price\":\"1\",\"show_product_code\":\"1\",\"show_product_stock\":\"1\",\"show_product_unit\":\"1\",\"show_product_brand\":\"1\",\"show_model_no\":\"1\",\"show_product_category\":\"1\",\"show_product_manufacturer\":\"1\",\"show_product_image\":\"1\",\"show_alert_qty\":\"1\",\"show_vat_id\":\"1\",\"show_vat_type\":\"1\",\"show_exclusive_price\":\"1\",\"show_inclusive_price\":\"1\",\"show_profit_percent\":\"1\",\"show_warehouse\":\"1\",\"show_rack\":\"1\",\"show_shelf\":\"1\",\"show_action\":\"1\",\"show_weight\":\"1\",\"show_warranty\":\"1\",\"show_guarantee\":\"1\",\"show_product_sale_price\":\"1\",\"default_sale_price\":null,\"show_product_wholesale_price\":\"1\",\"default_wholesale_price\":null,\"show_product_dealer_price\":\"1\",\"default_dealer_price\":null,\"show_batch_no\":\"1\",\"default_batch_no\":null,\"show_expire_date\":\"1\",\"expire_date_type\":null,\"show_mfg_date\":\"1\",\"mfg_date_type\":null,\"show_product_type_single\":\"1\",\"show_product_type_variant\":\"1\",\"show_product_type_combo\":\"1\",\"show_product_batch_no\":\"1\",\"show_product_expire_date\":\"1\",\"allow_due_sale\":\"1\",\"allow_product_discount\":\"1\",\"default_expired_date\":null,\"default_mfg_date\":null}', '2026-02-26 14:46:10', '2026-02-27 11:42:27');
INSERT INTO `product_settings` VALUES (6, 11, NULL, '{\"show_product_price\":\"1\",\"show_product_code\":\"1\",\"show_product_stock\":\"1\",\"show_product_unit\":\"1\",\"show_product_brand\":\"1\",\"show_model_no\":\"1\",\"show_product_category\":\"1\",\"show_product_manufacturer\":\"1\",\"show_product_image\":\"1\",\"show_alert_qty\":\"1\",\"show_vat_id\":\"1\",\"show_vat_type\":\"1\",\"show_exclusive_price\":\"1\",\"show_inclusive_price\":\"1\",\"show_profit_percent\":\"1\",\"show_warehouse\":\"1\",\"show_rack\":\"1\",\"show_shelf\":\"1\",\"show_action\":\"1\",\"show_weight\":\"1\",\"show_warranty\":\"1\",\"show_guarantee\":\"1\",\"show_product_sale_price\":\"1\",\"default_sale_price\":null,\"show_product_wholesale_price\":\"1\",\"default_wholesale_price\":null,\"show_product_dealer_price\":\"1\",\"default_dealer_price\":null,\"show_batch_no\":\"1\",\"default_batch_no\":null,\"show_expire_date\":\"1\",\"expire_date_type\":null,\"show_mfg_date\":\"1\",\"mfg_date_type\":null,\"show_product_type_single\":\"1\",\"show_product_type_variant\":\"1\",\"show_product_type_combo\":\"1\",\"show_product_batch_no\":\"1\",\"show_product_expire_date\":\"1\",\"allow_due_sale\":\"1\",\"allow_product_discount\":\"1\",\"default_expired_date\":null,\"default_mfg_date\":null}', '2026-03-05 23:03:40', '2026-03-05 23:03:40');
INSERT INTO `product_settings` VALUES (7, 27, NULL, '{\"show_product_name\":\"1\",\"show_product_code\":\"1\",\"show_product_stock\":\"1\",\"show_product_sale_price\":\"1\",\"show_product_dealer_price\":\"1\",\"show_product_wholesale_price\":\"1\",\"show_product_unit\":\"1\",\"show_product_brand\":\"1\",\"show_product_category\":\"1\",\"show_product_manufacturer\":\"1\",\"show_product_image\":\"1\",\"show_expire_date\":\"1\",\"show_alert_qty\":\"1\",\"show_vat_id\":\"1\",\"show_vat_type\":\"1\",\"show_exclusive_price\":\"1\",\"show_inclusive_price\":\"1\",\"show_profit_percent\":\"1\",\"show_batch_no\":\"1\",\"show_mfg_date\":\"1\",\"show_model_no\":\"1\",\"show_product_type_single\":\"1\",\"show_product_type_variant\":\"1\",\"show_action\":\"1\",\"default_expired_date\":\"0\",\"default_mfg_date\":\"0\",\"expire_date_type\":\"0\",\"mfg_date_type\":\"0\",\"show_product_type_combo\":\"1\",\"show_warehouse\":\"1\",\"show_rack\":\"1\",\"show_shelf\":\"1\",\"show_guarantee\":\"1\",\"show_warranty\":\"1\"}', '2026-03-20 08:38:29', '2026-03-20 08:38:29');
INSERT INTO `product_settings` VALUES (8, 23, NULL, '{\"show_product_name\":\"1\",\"show_product_code\":\"0\",\"show_product_stock\":\"1\",\"show_product_sale_price\":\"1\",\"show_product_dealer_price\":\"0\",\"show_product_wholesale_price\":\"0\",\"show_product_unit\":\"1\",\"show_product_brand\":\"0\",\"show_product_category\":\"1\",\"show_product_manufacturer\":\"0\",\"show_product_image\":\"1\",\"show_expire_date\":\"1\",\"show_alert_qty\":\"1\",\"show_vat_id\":\"0\",\"show_vat_type\":\"0\",\"show_exclusive_price\":\"1\",\"show_inclusive_price\":\"1\",\"show_profit_percent\":\"1\",\"show_batch_no\":\"0\",\"show_mfg_date\":\"0\",\"show_model_no\":\"0\",\"show_product_type_single\":\"1\",\"show_product_type_variant\":\"0\",\"show_action\":\"0\",\"default_expired_date\":\"0\",\"default_mfg_date\":\"0\",\"expire_date_type\":\"0\",\"mfg_date_type\":\"0\",\"show_product_type_combo\":\"0\",\"show_warehouse\":\"0\",\"show_rack\":\"0\",\"show_shelf\":\"0\",\"show_guarantee\":\"0\",\"show_warranty\":\"0\"}', '2026-03-21 08:21:50', '2026-03-21 08:23:38');
INSERT INTO `product_settings` VALUES (9, 9, NULL, '{\"show_product_name\":\"1\",\"show_product_code\":\"0\",\"show_product_stock\":\"1\",\"show_product_sale_price\":\"1\",\"show_product_dealer_price\":\"0\",\"show_product_wholesale_price\":\"0\",\"show_product_unit\":\"1\",\"show_product_brand\":\"0\",\"show_product_category\":\"1\",\"show_product_manufacturer\":\"0\",\"show_product_image\":\"0\",\"show_expire_date\":\"0\",\"show_alert_qty\":\"1\",\"show_vat_id\":\"1\",\"show_vat_type\":\"1\",\"show_exclusive_price\":\"1\",\"show_inclusive_price\":\"1\",\"show_profit_percent\":\"1\",\"show_batch_no\":\"0\",\"show_mfg_date\":\"0\",\"show_model_no\":\"0\",\"show_product_type_single\":\"1\",\"show_product_type_variant\":\"0\",\"show_action\":\"0\",\"default_expired_date\":\"0\",\"default_mfg_date\":\"0\",\"expire_date_type\":\"0\",\"mfg_date_type\":\"0\",\"show_product_type_combo\":\"0\",\"show_warehouse\":\"0\",\"show_rack\":\"0\",\"show_shelf\":\"0\",\"show_guarantee\":\"0\",\"show_warranty\":\"0\"}', '2026-03-28 11:14:25', '2026-03-28 11:14:25');
INSERT INTO `product_settings` VALUES (10, 28, NULL, '{\"show_product_name\":\"1\",\"show_product_code\":\"1\",\"show_product_stock\":\"1\",\"show_product_sale_price\":\"1\",\"show_product_dealer_price\":\"0\",\"show_product_wholesale_price\":\"0\",\"show_product_unit\":\"1\",\"show_product_brand\":\"0\",\"show_product_category\":\"1\",\"show_product_manufacturer\":\"0\",\"show_product_image\":\"1\",\"show_expire_date\":\"0\",\"show_alert_qty\":\"1\",\"show_vat_id\":\"1\",\"show_vat_type\":\"1\",\"show_exclusive_price\":\"1\",\"show_inclusive_price\":\"1\",\"show_profit_percent\":\"1\",\"show_batch_no\":\"0\",\"show_mfg_date\":\"0\",\"show_model_no\":\"0\",\"show_product_type_single\":\"1\",\"show_product_type_variant\":\"1\",\"show_action\":\"1\",\"default_expired_date\":\"0\",\"default_mfg_date\":\"0\",\"expire_date_type\":\"0\",\"mfg_date_type\":\"0\",\"show_product_type_combo\":\"1\",\"show_warehouse\":\"1\",\"show_rack\":\"0\",\"show_shelf\":\"0\",\"show_guarantee\":\"0\",\"show_warranty\":\"0\"}', '2026-03-29 20:35:44', '2026-03-29 20:41:13');
-- ----------------------------
-- Table structure for products
-- ----------------------------
DROP TABLE IF EXISTS `products`;
CREATE TABLE `products` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`productName` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`business_id` bigint(20) UNSIGNED NOT NULL,
`rack_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`shelf_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`unit_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`brand_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`category_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`productCode` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`warranty_guarantee_info` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`has_serial` int(11) NOT NULL DEFAULT 0,
`variation_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`productPicture` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`product_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT 'single',
`is_displayed_in_pos` tinyint(1) NOT NULL DEFAULT 1,
`productDealerPrice` double(10, 2) NOT NULL DEFAULT 0.00,
`productPurchasePrice` double(10, 2) NOT NULL DEFAULT 0.00,
`productSalePrice` double(10, 2) NOT NULL DEFAULT 0.00,
`productWholeSalePrice` double(10, 2) NOT NULL DEFAULT 0.00,
`productStock` double(10, 2) NOT NULL DEFAULT 0.00,
`expire_date` date NULL DEFAULT NULL,
`alert_qty` double NOT NULL DEFAULT 0,
`profit_percent` double NOT NULL DEFAULT 0,
`vat_amount` double(10, 2) NOT NULL DEFAULT 0.00,
`vat_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'exclusive',
`size` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`color` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`weight` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`capacity` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`productManufacturer` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`meta` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`vat_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`model_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`warehouse_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `products_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `products_vat_id_foreign`(`vat_id` ASC) USING BTREE,
INDEX `products_model_id_foreign`(`model_id` ASC) USING BTREE,
INDEX `products_warehouse_id_foreign`(`warehouse_id` ASC) USING BTREE,
INDEX `products_unit_id_foreign`(`unit_id` ASC) USING BTREE,
INDEX `products_brand_id_foreign`(`brand_id` ASC) USING BTREE,
INDEX `products_category_id_foreign`(`category_id` ASC) USING BTREE,
INDEX `products_rack_id_foreign`(`rack_id` ASC) USING BTREE,
INDEX `products_shelf_id_foreign`(`shelf_id` ASC) USING BTREE,
CONSTRAINT `products_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `products_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `products_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `products_model_id_foreign` FOREIGN KEY (`model_id`) REFERENCES `product_models` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `products_rack_id_foreign` FOREIGN KEY (`rack_id`) REFERENCES `racks` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `products_shelf_id_foreign` FOREIGN KEY (`shelf_id`) REFERENCES `shelves` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `products_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `products_vat_id_foreign` FOREIGN KEY (`vat_id`) REFERENCES `vats` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `products_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 59 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of products
-- ----------------------------
INSERT INTO `products` VALUES (15, 'Risol', 2, NULL, NULL, 12, NULL, 22, '0001', NULL, 0, NULL, 'uploads/26/02/1770521148-493.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:08:11', '2026-02-08 12:30:49', 3, NULL, NULL);
INSERT INTO `products` VALUES (16, 'Putu Mayang', 2, NULL, NULL, 12, NULL, 22, '0002', NULL, 0, NULL, 'uploads/26/02/1770521060-627.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:09:21', '2026-02-08 12:31:06', 3, NULL, NULL);
INSERT INTO `products` VALUES (17, 'Lupis', 2, NULL, NULL, 12, NULL, 22, '0003', NULL, 0, NULL, 'uploads/26/02/1770520196-581.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:09:56', '2026-02-08 12:30:42', 3, NULL, NULL);
INSERT INTO `products` VALUES (18, 'Onde-Onde', 2, NULL, NULL, 12, NULL, 22, '0004', NULL, 0, NULL, 'uploads/26/02/1770520237-49.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:10:37', '2026-02-08 12:31:32', 3, NULL, NULL);
INSERT INTO `products` VALUES (19, 'Pisang Krispy', 2, NULL, NULL, 12, NULL, 22, '0005', NULL, 0, NULL, 'uploads/26/02/1770520288-454.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 4, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:11:28', '2026-02-08 12:30:30', 3, NULL, NULL);
INSERT INTO `products` VALUES (20, 'Kue Apem', 2, NULL, NULL, 12, NULL, 22, '0006', NULL, 0, NULL, 'uploads/26/02/1770520327-627.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:12:07', '2026-02-08 09:12:07', NULL, NULL, NULL);
INSERT INTO `products` VALUES (21, 'Cenil', 2, NULL, NULL, 13, NULL, 22, '0007', NULL, 0, NULL, 'uploads/26/02/1770520385-299.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:13:05', '2026-02-08 09:13:05', NULL, NULL, NULL);
INSERT INTO `products` VALUES (22, 'Es Campur', 2, NULL, NULL, 14, NULL, 23, '0008', NULL, 0, NULL, 'uploads/26/02/1770521189-164.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:13:59', '2026-02-08 13:25:02', 3, NULL, NULL);
INSERT INTO `products` VALUES (23, 'Es Campur', 2, NULL, NULL, 14, NULL, 23, '0009', NULL, 0, NULL, 'uploads/26/02/1770520703-525.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:18:23', '2026-02-08 13:25:11', 3, NULL, NULL);
INSERT INTO `products` VALUES (24, 'Es Jeruk', 2, NULL, NULL, 14, NULL, 23, '0010', NULL, 0, NULL, 'uploads/26/02/1770521226-270.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:19:07', '2026-02-08 12:28:47', 3, NULL, NULL);
INSERT INTO `products` VALUES (25, 'Tahu Isi', 2, NULL, NULL, 12, NULL, 22, '0011', NULL, 0, NULL, 'uploads/26/02/1770520846-133.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:20:46', '2026-02-08 12:28:27', 3, NULL, NULL);
INSERT INTO `products` VALUES (26, 'Es Teh', 2, NULL, NULL, 14, NULL, 23, '0012', NULL, 0, NULL, 'uploads/26/02/1770520937-879.png', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:22:17', '2026-02-08 13:24:47', 3, NULL, NULL);
INSERT INTO `products` VALUES (27, 'Wajik', 2, NULL, NULL, 12, NULL, 22, '0013', NULL, 0, NULL, 'uploads/26/02/1770521395-328.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:29:55', '2026-02-08 12:28:21', 3, NULL, NULL);
INSERT INTO `products` VALUES (28, 'Gemblong Ketang', 2, NULL, NULL, 12, NULL, 22, '0014', NULL, 0, NULL, 'uploads/26/02/1770521434-980.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:30:34', '2026-02-08 12:28:15', 3, NULL, NULL);
INSERT INTO `products` VALUES (29, 'Gethuk Lindri', 2, NULL, NULL, 12, NULL, 22, '0015', NULL, 0, NULL, 'uploads/26/02/1770521672-209.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:34:32', '2026-02-08 12:28:08', 3, NULL, NULL);
INSERT INTO `products` VALUES (30, 'Pukis', 2, NULL, NULL, 12, NULL, 22, '0016', NULL, 0, NULL, 'uploads/26/02/1770521794-954.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:36:34', '2026-02-08 12:27:59', 3, NULL, NULL);
INSERT INTO `products` VALUES (31, 'Kue Bugis', 2, NULL, NULL, 12, NULL, 22, '0017', NULL, 0, NULL, 'uploads/26/02/1770521930-155.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:38:50', '2026-02-08 12:27:41', 3, NULL, NULL);
INSERT INTO `products` VALUES (32, 'Filter', 2, NULL, NULL, 15, NULL, 24, '0018', NULL, 0, NULL, 'uploads/26/02/1770532511-42.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 12:35:11', '2026-02-08 12:35:11', 4, NULL, NULL);
INSERT INTO `products` VALUES (33, 'Dji Sam Sue', 2, NULL, NULL, 15, NULL, 24, '0019', NULL, 0, NULL, 'uploads/26/02/1770532604-948.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 12:36:44', '2026-02-08 12:36:44', 4, NULL, NULL);
INSERT INTO `products` VALUES (34, 'Gudang Garam Hijau', 2, NULL, NULL, 15, NULL, 24, '0020', NULL, 0, NULL, 'uploads/26/02/1770532680-480.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 12:38:00', '2026-02-08 12:38:00', 4, NULL, NULL);
INSERT INTO `products` VALUES (35, 'Kopi Hitam', 2, NULL, NULL, 14, NULL, 23, '0021', NULL, 0, NULL, 'uploads/26/02/1770536876-91.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-08 13:47:56', '2026-02-08 13:47:56', 3, NULL, NULL);
INSERT INTO `products` VALUES (36, 'Aqua Bottle 330 ml', 8, NULL, NULL, 16, NULL, 25, '0001', NULL, 0, NULL, 'uploads/26/02/1771646743-378.jpg', 'single', 0, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 24, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-21 11:04:20', '2026-03-01 21:59:37', 5, NULL, NULL);
INSERT INTO `products` VALUES (37, 'Black Coffee', 8, NULL, NULL, 17, NULL, 26, '0002', NULL, 0, NULL, 'uploads/26/02/1771647770-374.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 0, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-21 11:22:50', '2026-02-21 11:27:55', 6, NULL, NULL);
INSERT INTO `products` VALUES (38, 'Kopi Mandailing', 8, NULL, NULL, 18, NULL, 27, '0003', NULL, 0, NULL, 'uploads/26/02/1771993435-32.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 500, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-25 11:23:55', '2026-02-25 11:23:55', 5, NULL, NULL);
INSERT INTO `products` VALUES (39, 'Secangkir Kopi Hitam Mandailing', 8, NULL, NULL, 17, NULL, 26, '0004', NULL, 0, NULL, 'uploads/26/02/1771994015-272.jpg', 'combo', 1, 0.00, 0.00, 5000.00, 0.00, 0.00, NULL, 0, 566.666, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-25 11:33:35', '2026-03-01 21:59:02', 6, NULL, NULL);
INSERT INTO `products` VALUES (40, 'Kopi Lampung', 8, NULL, NULL, 18, NULL, 27, '0005', NULL, 0, NULL, 'uploads/26/02/1772072345-518.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 0, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-26 09:19:05', '2026-03-01 21:57:35', 5, NULL, NULL);
INSERT INTO `products` VALUES (41, 'Roti Tawar', 10, NULL, NULL, 20, NULL, 28, NULL, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 0, NULL, 'uploads/26/03/1772706193-881.jpg', 'variant', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 2, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-26 14:26:17', '2026-03-05 17:23:13', 7, NULL, NULL);
INSERT INTO `products` VALUES (42, 'Roti Sobek Coklat', 10, NULL, NULL, 21, NULL, 29, NULL, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 0, NULL, 'uploads/26/03/1772443035-666.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 2, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-26 15:20:55', '2026-03-02 16:17:15', 7, NULL, NULL);
INSERT INTO `products` VALUES (43, 'Roti Abon', 10, NULL, NULL, 21, NULL, 29, '0003', '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 0, NULL, 'uploads/26/03/1772443105-212.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 0, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-02 16:18:25', '2026-03-02 16:18:25', 7, NULL, NULL);
INSERT INTO `products` VALUES (44, 'Roti Coklat', 10, NULL, NULL, 21, NULL, 30, '0004', '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 0, NULL, 'uploads/26/03/1772443192-956.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 0, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-02 16:19:52', '2026-03-02 16:19:52', NULL, NULL, NULL);
INSERT INTO `products` VALUES (45, 'Kopi Hitam', 10, NULL, NULL, 21, NULL, 31, '0005', '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 0, NULL, 'uploads/26/03/1772443265-874.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 0, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-02 16:21:05', '2026-03-09 10:46:50', 8, NULL, NULL);
INSERT INTO `products` VALUES (46, 'Kopi Susu', 10, NULL, NULL, 21, NULL, 31, '0006', '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 0, NULL, 'uploads/26/03/1772443312-410.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 0, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-02 16:21:52', '2026-03-09 10:46:39', 8, NULL, NULL);
INSERT INTO `products` VALUES (47, 'Americano', 10, NULL, NULL, 21, NULL, 31, '0007', '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 0, NULL, 'uploads/26/03/1772443732-475.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 0, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-02 16:28:52', '2026-03-09 10:46:28', 8, NULL, NULL);
INSERT INTO `products` VALUES (48, 'Cappucino', 10, NULL, NULL, 21, NULL, 31, '0008', '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 0, NULL, 'uploads/26/03/1772443992-378.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 0, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-02 16:33:12', '2026-03-09 10:46:17', 8, NULL, NULL);
INSERT INTO `products` VALUES (49, 'meon meon', 14, NULL, NULL, 25, NULL, 33, '0001', NULL, 0, NULL, NULL, 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 10, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-11 18:48:38', '2026-03-11 18:48:38', NULL, NULL, NULL);
INSERT INTO `products` VALUES (50, 'Kopi Premium', 23, NULL, NULL, 26, NULL, 34, '0001', NULL, 0, NULL, 'uploads/26/03/1774056148-782.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 0, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-13 15:51:31', '2026-03-21 08:22:28', NULL, NULL, NULL);
INSERT INTO `products` VALUES (51, 'baju', 24, NULL, NULL, 27, NULL, 36, '0001', NULL, 0, NULL, NULL, 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 0, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-14 00:49:00', '2026-03-14 00:49:00', NULL, NULL, NULL);
INSERT INTO `products` VALUES (52, 'susu kambing', 26, NULL, NULL, 29, NULL, 38, '0001', NULL, 0, NULL, NULL, 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 10, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-18 09:15:56', '2026-03-18 09:15:56', NULL, NULL, NULL);
INSERT INTO `products` VALUES (53, 'Product Test', 27, NULL, NULL, 30, NULL, 39, '0001', NULL, 0, NULL, 'uploads/26/03/1773970784-111.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-20 08:37:29', '2026-03-20 08:43:38', 9, NULL, NULL);
INSERT INTO `products` VALUES (54, 'posang goreng', 9, NULL, NULL, 31, NULL, 41, '0001', NULL, 0, NULL, NULL, 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-20 09:22:30', '2026-03-28 11:15:23', 11, NULL, NULL);
INSERT INTO `products` VALUES (55, 'live 50k', 19, NULL, NULL, 28, NULL, 37, '0001', NULL, 0, NULL, NULL, 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-23 12:52:00', '2026-03-23 12:52:00', NULL, NULL, NULL);
INSERT INTO `products` VALUES (56, 'LIVE 85K', 19, NULL, NULL, 28, NULL, 37, '0002', NULL, 0, NULL, NULL, 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 1, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-25 07:12:25', '2026-03-25 07:12:25', NULL, NULL, NULL);
INSERT INTO `products` VALUES (57, 'KOPI HITAM', 9, NULL, NULL, 33, NULL, 40, '0002', NULL, 0, NULL, NULL, 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 999, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-28 11:22:40', '2026-03-28 11:22:40', 11, NULL, NULL);
INSERT INTO `products` VALUES (58, 'Roti Coklat', 28, NULL, NULL, 34, NULL, 46, '0001', NULL, 0, NULL, 'uploads/26/03/1774791737-717.jpg', 'single', 1, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 5, 0, 0.00, 'exclusive', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-03-29 20:39:32', '2026-03-29 20:42:17', 13, NULL, NULL);
-- ----------------------------
-- Table structure for purchase_details
-- ----------------------------
DROP TABLE IF EXISTS `purchase_details`;
CREATE TABLE `purchase_details` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`purchase_id` bigint(20) UNSIGNED NOT NULL,
`product_id` bigint(20) UNSIGNED NOT NULL,
`productDealerPrice` double(10, 2) NOT NULL DEFAULT 0.00,
`productPurchasePrice` double(10, 2) NOT NULL DEFAULT 0.00,
`productSalePrice` double(10, 2) NOT NULL DEFAULT 0.00,
`productWholeSalePrice` double(10, 2) NOT NULL DEFAULT 0.00,
`quantities` double(10, 2) NOT NULL DEFAULT 0.00,
`mfg_date` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`profit_percent` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`expire_date` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`stock_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `purchase_details_purchase_id_foreign`(`purchase_id` ASC) USING BTREE,
INDEX `purchase_details_product_id_foreign`(`product_id` ASC) USING BTREE,
INDEX `purchase_details_stock_id_foreign`(`stock_id` ASC) USING BTREE,
CONSTRAINT `purchase_details_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `purchase_details_purchase_id_foreign` FOREIGN KEY (`purchase_id`) REFERENCES `purchases` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `purchase_details_stock_id_foreign` FOREIGN KEY (`stock_id`) REFERENCES `stocks` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of purchase_details
-- ----------------------------
INSERT INTO `purchase_details` VALUES (7, 7, 41, 0.00, 10000.00, 15000.00, 0.00, 5.00, NULL, '50', NULL, 37);
INSERT INTO `purchase_details` VALUES (8, 8, 40, 0.00, 50.00, 75.00, 0.00, 1000.00, NULL, '50', NULL, 36);
INSERT INTO `purchase_details` VALUES (9, 8, 38, 0.00, 50.00, 62.50, 0.00, 1000.00, NULL, '25', NULL, 35);
INSERT INTO `purchase_details` VALUES (10, 9, 41, 0.00, 10000.00, 15000.00, 0.00, 1.00, NULL, '50', NULL, 37);
INSERT INTO `purchase_details` VALUES (11, 10, 58, 0.00, 5000.00, 7500.00, 0.00, 10.00, '2026-03-29', '50', '2026-03-31', 56);
INSERT INTO `purchase_details` VALUES (12, 11, 58, 0.00, 5000.00, 7500.00, 0.00, 5.00, '2026-03-29', '50', '2026-03-31', 56);
INSERT INTO `purchase_details` VALUES (13, 12, 57, 0.00, 5000.00, 5000.00, 0.00, 1.00, NULL, '0', NULL, 55);
-- ----------------------------
-- Table structure for purchase_return_details
-- ----------------------------
DROP TABLE IF EXISTS `purchase_return_details`;
CREATE TABLE `purchase_return_details` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`business_id` bigint(20) UNSIGNED NOT NULL,
`purchase_return_id` bigint(20) UNSIGNED NOT NULL,
`purchase_detail_id` bigint(20) UNSIGNED NOT NULL,
`return_amount` double(10, 2) NOT NULL DEFAULT 0.00,
`return_qty` double(10, 2) NOT NULL DEFAULT 0.00,
PRIMARY KEY (`id`) USING BTREE,
INDEX `purchase_return_details_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `purchase_return_details_purchase_return_id_foreign`(`purchase_return_id` ASC) USING BTREE,
INDEX `purchase_return_details_purchase_detail_id_foreign`(`purchase_detail_id` ASC) USING BTREE,
CONSTRAINT `purchase_return_details_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `purchase_return_details_purchase_detail_id_foreign` FOREIGN KEY (`purchase_detail_id`) REFERENCES `purchase_details` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `purchase_return_details_purchase_return_id_foreign` FOREIGN KEY (`purchase_return_id`) REFERENCES `purchase_returns` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of purchase_return_details
-- ----------------------------
-- ----------------------------
-- Table structure for purchase_returns
-- ----------------------------
DROP TABLE IF EXISTS `purchase_returns`;
CREATE TABLE `purchase_returns` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`business_id` bigint(20) UNSIGNED NOT NULL,
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`purchase_id` bigint(20) UNSIGNED NOT NULL,
`invoice_no` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`return_date` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `purchase_returns_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `purchase_returns_purchase_id_foreign`(`purchase_id` ASC) USING BTREE,
INDEX `purchase_returns_branch_id_foreign`(`branch_id` ASC) USING BTREE,
CONSTRAINT `purchase_returns_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `purchase_returns_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `purchase_returns_purchase_id_foreign` FOREIGN KEY (`purchase_id`) REFERENCES `purchases` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of purchase_returns
-- ----------------------------
-- ----------------------------
-- Table structure for purchases
-- ----------------------------
DROP TABLE IF EXISTS `purchases`;
CREATE TABLE `purchases` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`party_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`business_id` bigint(20) UNSIGNED NOT NULL,
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`user_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`discountAmount` double(10, 2) NOT NULL DEFAULT 0.00,
`shipping_charge` double NOT NULL DEFAULT 0,
`discount_percent` double NOT NULL DEFAULT 0,
`discount_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'flat',
`dueAmount` double(10, 2) NOT NULL DEFAULT 0.00,
`paidAmount` double(10, 2) NOT NULL DEFAULT 0.00,
`change_amount` double NOT NULL DEFAULT 0,
`totalAmount` double(10, 2) NOT NULL DEFAULT 0.00,
`invoiceNumber` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`isPaid` tinyint(1) NOT NULL DEFAULT 0,
`vat_percent` double(10, 2) NOT NULL DEFAULT 0.00,
`vat_amount` double(10, 2) NOT NULL DEFAULT 0.00,
`paymentType` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`payment_type_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`purchaseDate` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`vat_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `purchases_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `purchases_vat_id_foreign`(`vat_id` ASC) USING BTREE,
INDEX `purchases_party_id_foreign`(`party_id` ASC) USING BTREE,
INDEX `purchases_user_id_foreign`(`user_id` ASC) USING BTREE,
INDEX `purchases_branch_id_foreign`(`branch_id` ASC) USING BTREE,
CONSTRAINT `purchases_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `purchases_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `purchases_party_id_foreign` FOREIGN KEY (`party_id`) REFERENCES `parties` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `purchases_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `purchases_vat_id_foreign` FOREIGN KEY (`vat_id`) REFERENCES `vats` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of purchases
-- ----------------------------
INSERT INTO `purchases` VALUES (7, 20, 10, 2, 7, 0.00, 0, 0, 'flat', 55500.00, 0.00, 0, 55500.00, 'P01', 0, 11.00, 5500.00, NULL, NULL, '2026-03-09 10:53:04', '2026-03-09 10:53:51', '2026-03-09 10:53:51', 7);
INSERT INTO `purchases` VALUES (8, 18, 8, NULL, 9, 0.00, 0, 0, 'flat', 100000.00, 0.00, 0, 100000.00, 'P01', 0, 0.00, 0.00, NULL, NULL, '2026-03-18 08:37:37', '2026-03-18 08:38:21', '2026-03-18 08:38:21', NULL);
INSERT INTO `purchases` VALUES (9, 20, 10, 2, 7, 0.00, 0, 0, 'flat', 10000.00, 0.00, 0, 10000.00, 'P02', 0, 0.00, 0.00, NULL, NULL, '2026-03-18 10:16:16', '2026-03-18 10:16:27', '2026-03-18 10:16:27', NULL);
INSERT INTO `purchases` VALUES (10, 29, 28, NULL, 33, 0.00, 0, 0, 'flat', 0.00, 55000.00, 0, 55000.00, 'P01', 1, 10.00, 5000.00, NULL, NULL, '2026-03-29 20:46:58', '2026-03-29 20:48:00', '2026-03-29 20:48:00', 13);
INSERT INTO `purchases` VALUES (11, 29, 28, NULL, 33, 0.00, 0, 0, 'flat', 27500.00, 0.00, 0, 27500.00, 'P02', 0, 10.00, 2500.00, NULL, NULL, '2026-03-29 20:56:30', '2026-03-29 20:57:12', '2026-03-29 20:57:12', 13);
INSERT INTO `purchases` VALUES (12, 37, 9, NULL, 12, 0.00, 0, 0, 'flat', 0.00, 5000.00, 0, 5000.00, 'P01', 1, 0.00, 0.00, NULL, NULL, '2026-04-12 20:13:11', '2026-04-12 20:13:23', '2026-04-12 20:13:23', NULL);
-- ----------------------------
-- Table structure for rack_shelf
-- ----------------------------
DROP TABLE IF EXISTS `rack_shelf`;
CREATE TABLE `rack_shelf` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`rack_id` bigint(20) UNSIGNED NOT NULL,
`shelf_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `rack_shelf_rack_id_foreign`(`rack_id` ASC) USING BTREE,
INDEX `rack_shelf_shelf_id_foreign`(`shelf_id` ASC) USING BTREE,
CONSTRAINT `rack_shelf_rack_id_foreign` FOREIGN KEY (`rack_id`) REFERENCES `racks` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `rack_shelf_shelf_id_foreign` FOREIGN KEY (`shelf_id`) REFERENCES `shelves` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of rack_shelf
-- ----------------------------
-- ----------------------------
-- Table structure for racks
-- ----------------------------
DROP TABLE IF EXISTS `racks`;
CREATE TABLE `racks` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`business_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `racks_business_id_foreign`(`business_id` ASC) USING BTREE,
CONSTRAINT `racks_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of racks
-- ----------------------------
-- ----------------------------
-- Table structure for role_has_permissions
-- ----------------------------
DROP TABLE IF EXISTS `role_has_permissions`;
CREATE TABLE `role_has_permissions` (
`permission_id` bigint(20) UNSIGNED NOT NULL,
`role_id` bigint(20) UNSIGNED NOT NULL,
PRIMARY KEY (`permission_id`, `role_id`) USING BTREE,
INDEX `role_has_permissions_role_id_foreign`(`role_id` ASC) USING BTREE,
CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of role_has_permissions
-- ----------------------------
INSERT INTO `role_has_permissions` VALUES (1, 1);
INSERT INTO `role_has_permissions` VALUES (2, 1);
INSERT INTO `role_has_permissions` VALUES (3, 1);
INSERT INTO `role_has_permissions` VALUES (4, 1);
INSERT INTO `role_has_permissions` VALUES (5, 1);
INSERT INTO `role_has_permissions` VALUES (6, 1);
INSERT INTO `role_has_permissions` VALUES (7, 1);
INSERT INTO `role_has_permissions` VALUES (8, 1);
INSERT INTO `role_has_permissions` VALUES (9, 1);
INSERT INTO `role_has_permissions` VALUES (10, 1);
INSERT INTO `role_has_permissions` VALUES (11, 1);
INSERT INTO `role_has_permissions` VALUES (12, 1);
INSERT INTO `role_has_permissions` VALUES (13, 1);
INSERT INTO `role_has_permissions` VALUES (14, 1);
INSERT INTO `role_has_permissions` VALUES (15, 1);
INSERT INTO `role_has_permissions` VALUES (16, 1);
INSERT INTO `role_has_permissions` VALUES (17, 1);
INSERT INTO `role_has_permissions` VALUES (18, 1);
INSERT INTO `role_has_permissions` VALUES (19, 1);
INSERT INTO `role_has_permissions` VALUES (20, 1);
INSERT INTO `role_has_permissions` VALUES (21, 1);
INSERT INTO `role_has_permissions` VALUES (22, 1);
INSERT INTO `role_has_permissions` VALUES (23, 1);
INSERT INTO `role_has_permissions` VALUES (24, 1);
INSERT INTO `role_has_permissions` VALUES (25, 1);
INSERT INTO `role_has_permissions` VALUES (26, 1);
INSERT INTO `role_has_permissions` VALUES (27, 1);
INSERT INTO `role_has_permissions` VALUES (28, 1);
INSERT INTO `role_has_permissions` VALUES (29, 1);
INSERT INTO `role_has_permissions` VALUES (30, 1);
INSERT INTO `role_has_permissions` VALUES (31, 1);
INSERT INTO `role_has_permissions` VALUES (32, 1);
INSERT INTO `role_has_permissions` VALUES (33, 1);
INSERT INTO `role_has_permissions` VALUES (34, 1);
INSERT INTO `role_has_permissions` VALUES (35, 1);
INSERT INTO `role_has_permissions` VALUES (36, 1);
INSERT INTO `role_has_permissions` VALUES (37, 1);
INSERT INTO `role_has_permissions` VALUES (38, 1);
INSERT INTO `role_has_permissions` VALUES (39, 1);
INSERT INTO `role_has_permissions` VALUES (40, 1);
INSERT INTO `role_has_permissions` VALUES (41, 1);
INSERT INTO `role_has_permissions` VALUES (42, 1);
INSERT INTO `role_has_permissions` VALUES (43, 1);
INSERT INTO `role_has_permissions` VALUES (44, 1);
INSERT INTO `role_has_permissions` VALUES (45, 1);
INSERT INTO `role_has_permissions` VALUES (46, 1);
INSERT INTO `role_has_permissions` VALUES (47, 1);
INSERT INTO `role_has_permissions` VALUES (48, 1);
INSERT INTO `role_has_permissions` VALUES (49, 1);
INSERT INTO `role_has_permissions` VALUES (50, 1);
INSERT INTO `role_has_permissions` VALUES (51, 1);
INSERT INTO `role_has_permissions` VALUES (52, 1);
INSERT INTO `role_has_permissions` VALUES (53, 1);
INSERT INTO `role_has_permissions` VALUES (54, 1);
INSERT INTO `role_has_permissions` VALUES (55, 1);
INSERT INTO `role_has_permissions` VALUES (56, 1);
INSERT INTO `role_has_permissions` VALUES (57, 1);
INSERT INTO `role_has_permissions` VALUES (58, 1);
INSERT INTO `role_has_permissions` VALUES (59, 1);
INSERT INTO `role_has_permissions` VALUES (60, 1);
INSERT INTO `role_has_permissions` VALUES (61, 1);
INSERT INTO `role_has_permissions` VALUES (62, 1);
INSERT INTO `role_has_permissions` VALUES (63, 1);
INSERT INTO `role_has_permissions` VALUES (64, 1);
INSERT INTO `role_has_permissions` VALUES (65, 1);
INSERT INTO `role_has_permissions` VALUES (66, 1);
INSERT INTO `role_has_permissions` VALUES (67, 1);
INSERT INTO `role_has_permissions` VALUES (1, 2);
INSERT INTO `role_has_permissions` VALUES (2, 2);
INSERT INTO `role_has_permissions` VALUES (3, 2);
INSERT INTO `role_has_permissions` VALUES (4, 2);
INSERT INTO `role_has_permissions` VALUES (5, 2);
INSERT INTO `role_has_permissions` VALUES (6, 2);
INSERT INTO `role_has_permissions` VALUES (7, 2);
INSERT INTO `role_has_permissions` VALUES (8, 2);
INSERT INTO `role_has_permissions` VALUES (9, 2);
INSERT INTO `role_has_permissions` VALUES (10, 2);
INSERT INTO `role_has_permissions` VALUES (11, 2);
INSERT INTO `role_has_permissions` VALUES (12, 2);
INSERT INTO `role_has_permissions` VALUES (13, 2);
INSERT INTO `role_has_permissions` VALUES (14, 2);
INSERT INTO `role_has_permissions` VALUES (15, 2);
INSERT INTO `role_has_permissions` VALUES (16, 2);
INSERT INTO `role_has_permissions` VALUES (17, 2);
INSERT INTO `role_has_permissions` VALUES (18, 2);
INSERT INTO `role_has_permissions` VALUES (19, 2);
INSERT INTO `role_has_permissions` VALUES (20, 2);
INSERT INTO `role_has_permissions` VALUES (21, 2);
INSERT INTO `role_has_permissions` VALUES (22, 2);
INSERT INTO `role_has_permissions` VALUES (23, 2);
INSERT INTO `role_has_permissions` VALUES (24, 2);
INSERT INTO `role_has_permissions` VALUES (26, 2);
INSERT INTO `role_has_permissions` VALUES (27, 2);
INSERT INTO `role_has_permissions` VALUES (28, 2);
INSERT INTO `role_has_permissions` VALUES (29, 2);
INSERT INTO `role_has_permissions` VALUES (30, 2);
INSERT INTO `role_has_permissions` VALUES (31, 2);
INSERT INTO `role_has_permissions` VALUES (32, 2);
INSERT INTO `role_has_permissions` VALUES (33, 2);
INSERT INTO `role_has_permissions` VALUES (34, 2);
INSERT INTO `role_has_permissions` VALUES (35, 2);
INSERT INTO `role_has_permissions` VALUES (36, 2);
INSERT INTO `role_has_permissions` VALUES (37, 2);
INSERT INTO `role_has_permissions` VALUES (38, 2);
INSERT INTO `role_has_permissions` VALUES (39, 2);
INSERT INTO `role_has_permissions` VALUES (40, 2);
INSERT INTO `role_has_permissions` VALUES (41, 2);
INSERT INTO `role_has_permissions` VALUES (42, 2);
INSERT INTO `role_has_permissions` VALUES (43, 2);
INSERT INTO `role_has_permissions` VALUES (44, 2);
INSERT INTO `role_has_permissions` VALUES (45, 2);
INSERT INTO `role_has_permissions` VALUES (46, 2);
INSERT INTO `role_has_permissions` VALUES (47, 2);
INSERT INTO `role_has_permissions` VALUES (48, 2);
INSERT INTO `role_has_permissions` VALUES (49, 2);
INSERT INTO `role_has_permissions` VALUES (50, 2);
INSERT INTO `role_has_permissions` VALUES (51, 2);
INSERT INTO `role_has_permissions` VALUES (54, 2);
INSERT INTO `role_has_permissions` VALUES (55, 2);
INSERT INTO `role_has_permissions` VALUES (56, 2);
INSERT INTO `role_has_permissions` VALUES (57, 2);
INSERT INTO `role_has_permissions` VALUES (1, 3);
INSERT INTO `role_has_permissions` VALUES (6, 3);
INSERT INTO `role_has_permissions` VALUES (7, 3);
INSERT INTO `role_has_permissions` VALUES (8, 3);
INSERT INTO `role_has_permissions` VALUES (9, 3);
INSERT INTO `role_has_permissions` VALUES (16, 3);
INSERT INTO `role_has_permissions` VALUES (17, 3);
INSERT INTO `role_has_permissions` VALUES (18, 3);
INSERT INTO `role_has_permissions` VALUES (19, 3);
INSERT INTO `role_has_permissions` VALUES (20, 3);
INSERT INTO `role_has_permissions` VALUES (21, 3);
INSERT INTO `role_has_permissions` VALUES (22, 3);
INSERT INTO `role_has_permissions` VALUES (23, 3);
INSERT INTO `role_has_permissions` VALUES (24, 3);
INSERT INTO `role_has_permissions` VALUES (26, 3);
INSERT INTO `role_has_permissions` VALUES (27, 3);
INSERT INTO `role_has_permissions` VALUES (28, 3);
INSERT INTO `role_has_permissions` VALUES (29, 3);
INSERT INTO `role_has_permissions` VALUES (34, 3);
INSERT INTO `role_has_permissions` VALUES (35, 3);
INSERT INTO `role_has_permissions` VALUES (36, 3);
INSERT INTO `role_has_permissions` VALUES (37, 3);
INSERT INTO `role_has_permissions` VALUES (38, 3);
INSERT INTO `role_has_permissions` VALUES (39, 3);
INSERT INTO `role_has_permissions` VALUES (40, 3);
INSERT INTO `role_has_permissions` VALUES (41, 3);
INSERT INTO `role_has_permissions` VALUES (42, 3);
INSERT INTO `role_has_permissions` VALUES (43, 3);
INSERT INTO `role_has_permissions` VALUES (44, 3);
INSERT INTO `role_has_permissions` VALUES (45, 3);
INSERT INTO `role_has_permissions` VALUES (46, 3);
INSERT INTO `role_has_permissions` VALUES (47, 3);
INSERT INTO `role_has_permissions` VALUES (48, 3);
INSERT INTO `role_has_permissions` VALUES (49, 3);
INSERT INTO `role_has_permissions` VALUES (50, 3);
INSERT INTO `role_has_permissions` VALUES (51, 3);
-- ----------------------------
-- Table structure for roles
-- ----------------------------
DROP TABLE IF EXISTS `roles`;
CREATE TABLE `roles` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`guard_name` varchar(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`) USING BTREE,
UNIQUE INDEX `roles_name_guard_name_unique`(`name` ASC, `guard_name` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of roles
-- ----------------------------
INSERT INTO `roles` VALUES (1, 'superadmin', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `roles` VALUES (2, 'admin', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
INSERT INTO `roles` VALUES (3, 'manager', 'web', '2026-02-05 08:39:18', '2026-02-05 08:39:18');
-- ----------------------------
-- Table structure for sale_details
-- ----------------------------
DROP TABLE IF EXISTS `sale_details`;
CREATE TABLE `sale_details` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`sale_id` bigint(20) UNSIGNED NOT NULL,
`product_id` bigint(20) UNSIGNED NOT NULL,
`price` double(10, 2) NOT NULL DEFAULT 0.00,
`discount` double NOT NULL DEFAULT 0,
`lossProfit` double(10, 2) NOT NULL DEFAULT 0.00,
`quantities` double(10, 2) NOT NULL DEFAULT 0.00,
`warranty_guarantee_info` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`productPurchasePrice` double NOT NULL DEFAULT 0,
`mfg_date` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`expire_date` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`stock_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `sale_details_sale_id_foreign`(`sale_id` ASC) USING BTREE,
INDEX `sale_details_product_id_foreign`(`product_id` ASC) USING BTREE,
INDEX `sale_details_stock_id_foreign`(`stock_id` ASC) USING BTREE,
CONSTRAINT `sale_details_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `sale_details_sale_id_foreign` FOREIGN KEY (`sale_id`) REFERENCES `sales` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `sale_details_stock_id_foreign` FOREIGN KEY (`stock_id`) REFERENCES `stocks` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 255 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sale_details
-- ----------------------------
INSERT INTO `sale_details` VALUES (162, 76, 39, 5000.00, 0, 4250.00, 1.00, NULL, 750, NULL, NULL, NULL);
INSERT INTO `sale_details` VALUES (163, 77, 39, 5000.00, 0, 8500.00, 2.00, NULL, 1500, NULL, NULL, NULL);
INSERT INTO `sale_details` VALUES (164, 78, 39, 5000.00, 0, 4250.00, 1.00, NULL, 750, NULL, NULL, NULL);
INSERT INTO `sale_details` VALUES (165, 79, 39, 5000.00, 0, 4250.00, 1.00, NULL, 750, NULL, NULL, NULL);
INSERT INTO `sale_details` VALUES (166, 80, 48, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 46);
INSERT INTO `sale_details` VALUES (167, 80, 47, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 45);
INSERT INTO `sale_details` VALUES (168, 80, 46, 10500.00, 0, 3500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 7000, NULL, NULL, 44);
INSERT INTO `sale_details` VALUES (169, 81, 48, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 46);
INSERT INTO `sale_details` VALUES (170, 81, 47, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 45);
INSERT INTO `sale_details` VALUES (171, 81, 46, 10500.00, 0, 3500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 7000, NULL, NULL, 44);
INSERT INTO `sale_details` VALUES (172, 81, 43, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 41);
INSERT INTO `sale_details` VALUES (173, 81, 41, 15000.00, 0, 5000.00, 1.00, NULL, 10000, NULL, NULL, 37);
INSERT INTO `sale_details` VALUES (174, 82, 48, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 46);
INSERT INTO `sale_details` VALUES (175, 82, 47, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 45);
INSERT INTO `sale_details` VALUES (176, 82, 46, 10500.00, 0, 3500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 7000, NULL, NULL, 44);
INSERT INTO `sale_details` VALUES (177, 83, 48, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 46);
INSERT INTO `sale_details` VALUES (178, 83, 47, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 45);
INSERT INTO `sale_details` VALUES (179, 83, 44, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 42);
INSERT INTO `sale_details` VALUES (180, 83, 43, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 41);
INSERT INTO `sale_details` VALUES (182, 85, 49, 27500.00, 0, 5000.00, 2.00, NULL, 25000, NULL, NULL, 47);
INSERT INTO `sale_details` VALUES (183, 86, 39, 5000.00, 0, 4250.00, 1.00, NULL, 750, NULL, NULL, NULL);
INSERT INTO `sale_details` VALUES (184, 86, 38, 62.50, 0, 12.50, 1.00, NULL, 50, NULL, NULL, 35);
INSERT INTO `sale_details` VALUES (185, 86, 36, 75000.00, 0, 25000.00, 1.00, NULL, 50000, NULL, NULL, 33);
INSERT INTO `sale_details` VALUES (186, 87, 39, 5000.00, 0, 4250.00, 1.00, NULL, 750, NULL, NULL, NULL);
INSERT INTO `sale_details` VALUES (187, 87, 38, 62.50, 0, 12.50, 1.00, NULL, 50, NULL, NULL, 35);
INSERT INTO `sale_details` VALUES (188, 87, 36, 75000.00, 0, 25000.00, 1.00, NULL, 50000, NULL, NULL, 33);
INSERT INTO `sale_details` VALUES (189, 88, 45, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 43);
INSERT INTO `sale_details` VALUES (190, 88, 44, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 42);
INSERT INTO `sale_details` VALUES (191, 88, 47, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 45);
INSERT INTO `sale_details` VALUES (192, 88, 48, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 46);
INSERT INTO `sale_details` VALUES (193, 88, 46, 10500.00, 0, 3500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 7000, NULL, NULL, 44);
INSERT INTO `sale_details` VALUES (197, 90, 48, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 46);
INSERT INTO `sale_details` VALUES (198, 90, 43, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 41);
INSERT INTO `sale_details` VALUES (199, 90, 44, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 42);
INSERT INTO `sale_details` VALUES (200, 91, 44, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 42);
INSERT INTO `sale_details` VALUES (201, 91, 47, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 45);
INSERT INTO `sale_details` VALUES (202, 91, 48, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 46);
INSERT INTO `sale_details` VALUES (203, 91, 46, 10500.00, 0, 3500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 7000, NULL, NULL, 44);
INSERT INTO `sale_details` VALUES (204, 92, 39, 5000.00, 0, 4250.00, 1.00, NULL, 750, NULL, NULL, NULL);
INSERT INTO `sale_details` VALUES (205, 92, 38, 62.50, 0, 12.50, 1.00, NULL, 50, NULL, NULL, 35);
INSERT INTO `sale_details` VALUES (206, 92, 36, 75000.00, 0, 25000.00, 1.00, NULL, 50000, NULL, NULL, 33);
INSERT INTO `sale_details` VALUES (207, 93, 47, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 45);
INSERT INTO `sale_details` VALUES (208, 93, 46, 10500.00, 0, 3500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 7000, NULL, NULL, 44);
INSERT INTO `sale_details` VALUES (210, 95, 50, 3030000.00, 0, 3000000.00, 1.00, NULL, 30000, NULL, NULL, 48);
INSERT INTO `sale_details` VALUES (211, 96, 39, 5000.00, 0, 4250.00, 1.00, NULL, 750, NULL, NULL, NULL);
INSERT INTO `sale_details` VALUES (212, 96, 38, 62.50, 0, 12.50, 1.00, NULL, 50, NULL, NULL, 35);
INSERT INTO `sale_details` VALUES (213, 96, 36, 75000.00, 0, 25000.00, 1.00, NULL, 50000, NULL, NULL, 33);
INSERT INTO `sale_details` VALUES (214, 97, 43, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 41);
INSERT INTO `sale_details` VALUES (215, 97, 44, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 42);
INSERT INTO `sale_details` VALUES (216, 97, 48, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 46);
INSERT INTO `sale_details` VALUES (217, 98, 36, 75000.00, 0, 25000.00, 1.00, NULL, 50000, NULL, NULL, 33);
INSERT INTO `sale_details` VALUES (218, 98, 38, 62.50, 0, 12.50, 1.00, NULL, 50, NULL, NULL, 35);
INSERT INTO `sale_details` VALUES (219, 99, 39, 5000.00, 0, 4250.00, 1.00, NULL, 750, NULL, NULL, NULL);
INSERT INTO `sale_details` VALUES (220, 99, 38, 62.50, 0, 12.50, 1.00, NULL, 50, NULL, NULL, 35);
INSERT INTO `sale_details` VALUES (221, 99, 36, 75000.00, 0, 25000.00, 1.00, NULL, 50000, NULL, NULL, 33);
INSERT INTO `sale_details` VALUES (222, 100, 48, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 46);
INSERT INTO `sale_details` VALUES (223, 100, 47, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 45);
INSERT INTO `sale_details` VALUES (224, 100, 46, 10500.00, 0, 3500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 7000, NULL, NULL, 44);
INSERT INTO `sale_details` VALUES (225, 100, 43, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 41);
INSERT INTO `sale_details` VALUES (226, 100, 45, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 43);
INSERT INTO `sale_details` VALUES (227, 100, 44, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 42);
INSERT INTO `sale_details` VALUES (228, 101, 40, 75.00, 0, 25.00, 1.00, NULL, 50, NULL, NULL, 36);
INSERT INTO `sale_details` VALUES (229, 101, 39, 5000.00, 0, 4250.00, 1.00, NULL, 750, NULL, NULL, NULL);
INSERT INTO `sale_details` VALUES (230, 101, 38, 62.50, 0, 12.50, 1.00, NULL, 50, NULL, NULL, 35);
INSERT INTO `sale_details` VALUES (231, 101, 36, 75000.00, 0, 25000.00, 1.00, NULL, 50000, NULL, NULL, 33);
INSERT INTO `sale_details` VALUES (232, 102, 48, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 46);
INSERT INTO `sale_details` VALUES (233, 102, 47, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 45);
INSERT INTO `sale_details` VALUES (234, 102, 46, 10500.00, 0, 3500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 7000, NULL, NULL, 44);
INSERT INTO `sale_details` VALUES (235, 102, 45, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 43);
INSERT INTO `sale_details` VALUES (236, 102, 43, 7500.00, 0, 2500.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 41);
INSERT INTO `sale_details` VALUES (237, 102, 44, 8750.00, 0, 3750.00, 1.00, '{\"warranty_duration\":null,\"warranty_unit\":\"days\",\"guarantee_duration\":null,\"guarantee_unit\":\"days\"}', 5000, NULL, NULL, 42);
INSERT INTO `sale_details` VALUES (238, 103, 50, 0.00, 0, -30000.00, 1.00, NULL, 30000, NULL, NULL, 48);
INSERT INTO `sale_details` VALUES (239, 104, 50, 3030000.00, 0, 3000000.00, 1.00, NULL, 30000, NULL, NULL, 48);
INSERT INTO `sale_details` VALUES (240, 105, 55, 50000.00, 0, 25000.00, 1.00, NULL, 25000, NULL, NULL, 53);
INSERT INTO `sale_details` VALUES (244, 109, 56, 85000.00, 0, 42500.00, 1.00, NULL, 42500, NULL, NULL, 54);
INSERT INTO `sale_details` VALUES (245, 110, 55, 50000.00, 0, 25000.00, 1.00, NULL, 25000, NULL, NULL, 53);
INSERT INTO `sale_details` VALUES (246, 111, 54, 1500.00, 0, 0.00, 4.00, NULL, 1500, NULL, NULL, 52);
INSERT INTO `sale_details` VALUES (247, 112, 54, 1500.00, 0, 0.00, 1.00, NULL, 1500, NULL, NULL, 52);
INSERT INTO `sale_details` VALUES (248, 112, 57, 5000.00, 0, 0.00, 1.00, NULL, 5000, NULL, NULL, 55);
INSERT INTO `sale_details` VALUES (249, 113, 58, 7500.00, 0, 2500.00, 1.00, NULL, 5000, NULL, '2026-03-31', 56);
INSERT INTO `sale_details` VALUES (250, 114, 56, 85000.00, 0, 42500.00, 1.00, NULL, 42500, NULL, NULL, 54);
INSERT INTO `sale_details` VALUES (251, 115, 54, 1500.00, 0, 0.00, 1.00, NULL, 1500, NULL, NULL, 52);
INSERT INTO `sale_details` VALUES (252, 115, 57, 5000.00, 0, 0.00, 1.00, NULL, 5000, NULL, NULL, 55);
-- ----------------------------
-- Table structure for sale_return_details
-- ----------------------------
DROP TABLE IF EXISTS `sale_return_details`;
CREATE TABLE `sale_return_details` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`business_id` bigint(20) UNSIGNED NOT NULL,
`sale_return_id` bigint(20) UNSIGNED NOT NULL,
`sale_detail_id` bigint(20) UNSIGNED NOT NULL,
`return_amount` double(10, 2) NOT NULL DEFAULT 0.00,
`return_qty` double(10, 2) NOT NULL DEFAULT 0.00,
PRIMARY KEY (`id`) USING BTREE,
INDEX `sale_return_details_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `sale_return_details_sale_return_id_foreign`(`sale_return_id` ASC) USING BTREE,
INDEX `sale_return_details_sale_detail_id_foreign`(`sale_detail_id` ASC) USING BTREE,
CONSTRAINT `sale_return_details_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `sale_return_details_sale_detail_id_foreign` FOREIGN KEY (`sale_detail_id`) REFERENCES `sale_details` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `sale_return_details_sale_return_id_foreign` FOREIGN KEY (`sale_return_id`) REFERENCES `sale_returns` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sale_return_details
-- ----------------------------
-- ----------------------------
-- Table structure for sale_returns
-- ----------------------------
DROP TABLE IF EXISTS `sale_returns`;
CREATE TABLE `sale_returns` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`business_id` bigint(20) UNSIGNED NOT NULL,
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`sale_id` bigint(20) UNSIGNED NOT NULL,
`invoice_no` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`return_date` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `sale_returns_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `sale_returns_sale_id_foreign`(`sale_id` ASC) USING BTREE,
INDEX `sale_returns_branch_id_foreign`(`branch_id` ASC) USING BTREE,
CONSTRAINT `sale_returns_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `sale_returns_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `sale_returns_sale_id_foreign` FOREIGN KEY (`sale_id`) REFERENCES `sales` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sale_returns
-- ----------------------------
-- ----------------------------
-- Table structure for sales
-- ----------------------------
DROP TABLE IF EXISTS `sales`;
CREATE TABLE `sales` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`business_id` bigint(20) UNSIGNED NOT NULL,
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`party_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`user_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`discountAmount` double(10, 2) NOT NULL DEFAULT 0.00,
`shipping_charge` double NOT NULL DEFAULT 0,
`discount_percent` double NOT NULL DEFAULT 0,
`discount_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'flat',
`dueAmount` double(10, 2) NOT NULL DEFAULT 0.00,
`isPaid` tinyint(1) NOT NULL DEFAULT 0,
`vat_amount` double(10, 2) NOT NULL DEFAULT 0.00,
`vat_percent` double(10, 2) NOT NULL DEFAULT 0.00,
`paidAmount` double(10, 2) NOT NULL DEFAULT 0.00,
`change_amount` double NOT NULL DEFAULT 0,
`totalAmount` double(10, 2) NOT NULL DEFAULT 0.00,
`actual_total_amount` double(10, 2) NOT NULL DEFAULT 0.00,
`rounding_amount` double(10, 2) NOT NULL DEFAULT 0.00,
`rounding_option` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`lossProfit` double(10, 2) NOT NULL DEFAULT 0.00,
`paymentType` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`payment_type_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
`invoiceNumber` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`saleDate` timestamp NULL DEFAULT NULL,
`image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`meta` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`vat_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `sales_business_id_foreign`(`business_id` ASC) USING BTREE,
INDEX `sales_vat_id_foreign`(`vat_id` ASC) USING BTREE,
INDEX `sales_party_id_foreign`(`party_id` ASC) USING BTREE,
INDEX `sales_user_id_foreign`(`user_id` ASC) USING BTREE,
INDEX `sales_branch_id_foreign`(`branch_id` ASC) USING BTREE,
CONSTRAINT `sales_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `sales_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `sales_party_id_foreign` FOREIGN KEY (`party_id`) REFERENCES `parties` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `sales_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT `sales_vat_id_foreign` FOREIGN KEY (`vat_id`) REFERENCES `vats` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 118 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sales
-- ----------------------------
INSERT INTO `sales` VALUES (76, 8, NULL, NULL, 9, 'sale', 0.00, 0, 0, 'flat', 0.00, 1, 500.00, 0.00, 5500.00, 4500, 5500.00, 5500.00, 0.00, 'none', 4250.00, NULL, NULL, 'S01', '2026-03-02 22:44:39', NULL, '{\"customer_phone\":null,\"note\":null}', '2026-03-02 22:44:39', '2026-03-02 22:44:39', NULL);
INSERT INTO `sales` VALUES (77, 8, NULL, NULL, 9, 'sale', 0.00, 0, 0, 'flat', 0.00, 1, 1000.00, 0.00, 11000.00, 4000, 11000.00, 11000.00, 0.00, 'none', 8500.00, NULL, NULL, 'S02', '2026-03-02 22:48:14', NULL, '{\"customer_phone\":null,\"note\":null}', '2026-03-02 22:48:14', '2026-03-02 22:48:14', NULL);
INSERT INTO `sales` VALUES (78, 8, NULL, NULL, 9, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 500.00, 0.00, 5500.00, 94500, 5500.00, 5500.00, 0.00, 'none', 4250.00, NULL, NULL, 'S03', '2026-03-04 09:14:03', NULL, '{\"note\":null}', '2026-03-04 09:15:05', '2026-03-04 09:15:05', NULL);
INSERT INTO `sales` VALUES (79, 8, NULL, NULL, 9, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 500.00, 0.00, 5500.00, 4500, 5500.00, 5500.00, 0.00, 'none', 4250.00, NULL, NULL, 'S04', '2026-03-05 00:07:02', NULL, '{\"note\":null}', '2026-03-05 00:07:18', '2026-03-05 00:07:18', NULL);
2026-04-15 22:26:07 +07:00
INSERT INTO `sales` VALUES (80, 10, 2, 19, 7, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 1787.50, 0.00, 28537.50, 21462.5, 28537.50, 28537.50, 0.00, 'none', 9750.00, NULL, NULL, 'S01', '2026-03-05 16:20:06', NULL, '{\"note\":null}', '2026-03-05 16:20