-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `creativedesignbd_pos1`
--

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

--
-- Table structure for table `ac_accounts`
--

CREATE TABLE `ac_accounts` (
  `id` int(11) NOT NULL,
  `count_id` int(11) DEFAULT NULL,
  `store_id` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `sort_code` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `account_name` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `account_code` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `balance` double(20,4) DEFAULT NULL,
  `note` text CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `created_by` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `system_ip` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `system_name` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `delete_bit` int(11) DEFAULT 0,
  `account_selection_name` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `paymenttypes_id` int(11) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `expense_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ac_accounts`
--

INSERT INTO `ac_accounts` (`id`, `count_id`, `store_id`, `parent_id`, `sort_code`, `account_name`, `account_code`, `balance`, `note`, `created_by`, `created_date`, `created_time`, `system_ip`, `system_name`, `status`, `delete_bit`, `account_selection_name`, `paymenttypes_id`, `customer_id`, `supplier_id`, `expense_id`) VALUES
(1, 1, 2, 0, '1', 'Cash Box', 'Cash', 26303659.0000, '', 'user_67930', '2024-07-09', '12:53:17 am', '::1', 'DESKTOP-GMFRN98', 1, 0, NULL, NULL, NULL, NULL, NULL),
(2, 2, 2, 0, '2', 'EBL Bank', '108059345444', -15100.0000, '', 'user_67930', '2024-07-09', '12:53:36 am', '::1', 'DESKTOP-GMFRN98', 1, 0, NULL, NULL, NULL, NULL, NULL),
(3, 3, 2, 0, '3', 'DBL Bank', '45887111555', 108.0000, '', 'user_67930', '2024-07-09', '12:53:57 am', '::1', 'DESKTOP-GMFRN98', 1, 0, NULL, NULL, NULL, NULL, NULL),
(4, 4, 2, 0, '8', 'Baksh Merchant', '+880184983217812', 22200.0000, '', 'user_67930', '2024-07-09', '12:54:12 am', '::1', 'DESKTOP-GMFRN98', 1, 0, NULL, NULL, NULL, NULL, NULL),
(5, 5, 2, 0, '8', 'Nagod Personal', '+8801849832178', 0.0000, '', 'user_67930', '2024-07-09', '12:54:30 am', '::1', 'DESKTOP-GMFRN98', 1, 0, NULL, NULL, NULL, NULL, NULL),
(6, 6, 2, 0, '8', 'Rocket Personal', '+88018498321781', 500.0000, '', 'user_67930', '2024-07-09', '12:54:49 am', '::1', 'DESKTOP-GMFRN98', 1, 0, NULL, NULL, NULL, NULL, NULL),
(7, 7, 2, 0, '7', 'Islami Bank', '852112254', 51000.0000, '', 'admin', '2024-07-10', '12:37:29 pm', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', 1, 0, NULL, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `ac_moneydeposits`
--

CREATE TABLE `ac_moneydeposits` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `deposit_date` date DEFAULT NULL,
  `reference_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `debit_account_id` int(11) DEFAULT NULL,
  `credit_account_id` int(11) DEFAULT NULL,
  `amount` double(20,4) DEFAULT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_date` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `system_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `system_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ac_moneydeposits`
--

INSERT INTO `ac_moneydeposits` (`id`, `store_id`, `deposit_date`, `reference_no`, `debit_account_id`, `credit_account_id`, `amount`, `note`, `created_by`, `created_date`, `created_time`, `system_ip`, `system_name`, `status`) VALUES
(1, 2, '2024-07-10', '1545422', 7, 1, 20000.0000, '', 'admin', '2024-07-10', '12:38:36 pm', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', 1),
(2, 2, '2024-08-19', '', NULL, 1, 50000.0000, '', 'admin', '2024-08-19', '01:25:34 am', '103.59.179.21', '103.59.179.21', 1);

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

--
-- Table structure for table `ac_moneytransfer`
--

CREATE TABLE `ac_moneytransfer` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL,
  `transfer_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `transfer_date` date DEFAULT NULL,
  `reference_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `debit_account_id` int(11) DEFAULT NULL,
  `credit_account_id` int(11) DEFAULT NULL,
  `amount` double(20,4) DEFAULT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_date` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `system_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `system_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ac_moneytransfer`
--

INSERT INTO `ac_moneytransfer` (`id`, `store_id`, `count_id`, `transfer_code`, `transfer_date`, `reference_no`, `debit_account_id`, `credit_account_id`, `amount`, `note`, `created_by`, `created_date`, `created_time`, `system_ip`, `system_name`, `status`) VALUES
(1, 2, 1, 'MT0001', '2024-08-19', '', 1, 7, 20000.0000, '', 'admin', '2024-08-19', '01:25:01 am', '103.59.179.21', '103.59.179.21', 1);

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

--
-- Table structure for table `ac_transactions`
--

CREATE TABLE `ac_transactions` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `payment_code` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `transaction_date` date DEFAULT NULL,
  `transaction_type` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `debit_account_id` int(11) DEFAULT NULL,
  `credit_account_id` int(11) DEFAULT NULL,
  `debit_amt` double(20,4) DEFAULT NULL,
  `credit_amt` double(20,4) DEFAULT NULL,
  `note` text CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `created_by` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `ref_accounts_id` int(11) DEFAULT NULL COMMENT 'reference table',
  `ref_moneytransfer_id` int(11) DEFAULT NULL COMMENT 'reference table',
  `ref_moneydeposits_id` int(11) DEFAULT NULL COMMENT 'reference table',
  `ref_salespayments_id` int(11) DEFAULT NULL,
  `ref_salespaymentsreturn_id` int(11) DEFAULT NULL,
  `ref_purchasepayments_id` int(11) DEFAULT NULL,
  `ref_purchasepaymentsreturn_id` int(11) DEFAULT NULL,
  `ref_expense_id` int(11) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `short_code` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ac_transactions`
--

INSERT INTO `ac_transactions` (`id`, `store_id`, `payment_code`, `transaction_date`, `transaction_type`, `debit_account_id`, `credit_account_id`, `debit_amt`, `credit_amt`, `note`, `created_by`, `created_date`, `ref_accounts_id`, `ref_moneytransfer_id`, `ref_moneydeposits_id`, `ref_salespayments_id`, `ref_salespaymentsreturn_id`, `ref_purchasepayments_id`, `ref_purchasepaymentsreturn_id`, `ref_expense_id`, `customer_id`, `supplier_id`, `short_code`) VALUES
(830, 2, '', '2024-07-09', 'OPENING BALANCE', NULL, 1, NULL, 5000.0000, '', 'user_67930', '2024-07-09', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(831, 2, '', '2024-07-09', 'OPENING BALANCE', NULL, 2, NULL, 500.0000, '', 'user_67930', '2024-07-09', 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(832, 2, '', '2024-07-09', 'OPENING BALANCE', NULL, 3, NULL, 108.0000, '', 'user_67930', '2024-07-09', 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(833, 2, '', '2024-07-09', 'OPENING BALANCE', NULL, 4, NULL, 0.0000, '', 'user_67930', '2024-07-09', 4, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(834, 2, '', '2024-07-09', 'OPENING BALANCE', NULL, 5, NULL, 0.0000, '', 'user_67930', '2024-07-09', 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(835, 2, '', '2024-07-09', 'OPENING BALANCE', NULL, 6, NULL, 0.0000, '', 'user_67930', '2024-07-09', 6, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(837, 2, 'SP0001', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 500.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 351, NULL, NULL, NULL, NULL, 7, NULL, NULL),
(838, 2, 'SP0002', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 800.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 352, NULL, NULL, NULL, NULL, 8, NULL, NULL),
(839, 2, 'SP0003', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 300.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 353, NULL, NULL, NULL, NULL, 9, NULL, NULL),
(840, 2, 'XP0002', '2024-07-09', 'EXPENSE PAYMENT', 1, NULL, 100.0000, NULL, '???????? ???? ?? ??? ???????', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 34, NULL, NULL, NULL),
(841, 2, 'XP0003', '2024-07-09', 'EXPENSE PAYMENT', 1, NULL, 500.0000, NULL, '????? ??? ??????', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 35, NULL, NULL, NULL),
(842, 2, 'XP0004', '2024-07-09', 'EXPENSE PAYMENT', 1, NULL, 200.0000, NULL, '???? ???? ??????', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 36, NULL, NULL, NULL),
(843, 2, 'XP0005', '2024-07-09', 'EXPENSE PAYMENT', 1, NULL, 1200.0000, NULL, '???????? ??????? ????', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 37, NULL, NULL, NULL),
(844, 2, 'PP0001', '2024-07-09', 'PURCHASE PAYMENT', 2, NULL, 10000.0000, NULL, '', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, NULL, 110, NULL, NULL, NULL, 2, NULL),
(845, 2, 'PP0002', '2024-07-09', 'PURCHASE PAYMENT', 1, NULL, 200.0000, NULL, '', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, NULL, 111, NULL, NULL, NULL, 3, NULL),
(846, 2, 'PP0003', '2024-07-09', 'PURCHASE PAYMENT', 1, NULL, 100.0000, NULL, '', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, NULL, 112, NULL, NULL, NULL, 6, NULL),
(847, 2, 'PP0004', '2024-07-09', 'PURCHASE PAYMENT', 2, NULL, 100.0000, NULL, '', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, NULL, 113, NULL, NULL, NULL, 4, NULL),
(848, 2, 'PP0005', '2024-07-09', 'PURCHASE PAYMENT', 2, NULL, 1000.0000, NULL, '', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, NULL, 114, NULL, NULL, NULL, 5, NULL),
(849, 2, 'PP0006', '2024-07-09', 'PURCHASE PAYMENT', 1, NULL, 500.0000, NULL, '', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, NULL, 115, NULL, NULL, NULL, 1, NULL),
(850, 2, 'PP0007', '2024-07-09', 'PURCHASE PAYMENT', 1, NULL, 500.0000, NULL, '', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, NULL, 116, NULL, NULL, NULL, 2, NULL),
(851, 2, 'PP0008', '2024-07-09', 'PURCHASE PAYMENT', 2, NULL, 100.0000, NULL, '', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, NULL, 117, NULL, NULL, NULL, 2, NULL),
(852, 2, 'SP0004', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 2265250.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 354, NULL, NULL, NULL, NULL, 3, NULL, NULL),
(855, 2, 'SP0005', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 23997000.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 357, NULL, NULL, NULL, NULL, 3, NULL, NULL),
(856, 2, 'SP0006', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 200.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 358, NULL, NULL, NULL, NULL, 7, NULL, NULL),
(857, 2, 'SP0007', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 300.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 359, NULL, NULL, NULL, NULL, 8, NULL, NULL),
(858, 2, 'SP0008', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 75.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 360, NULL, NULL, NULL, NULL, 9, NULL, NULL),
(859, 2, 'SP0009', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 215.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 361, NULL, NULL, NULL, NULL, 8, NULL, NULL),
(860, 2, 'SP0010', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 500.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 362, NULL, NULL, NULL, NULL, 7, NULL, NULL),
(861, 2, 'SP0011', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 21700.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 363, NULL, NULL, NULL, NULL, 9, NULL, NULL),
(862, 2, 'SP0012', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 999.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 364, NULL, NULL, NULL, NULL, 7, NULL, NULL),
(863, 2, 'SP0013', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 100.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 365, NULL, NULL, NULL, NULL, 7, NULL, NULL),
(864, 2, 'SP0014', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 3000.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 366, NULL, NULL, NULL, NULL, 7, NULL, NULL),
(865, 2, 'SRP0001', '2024-07-09', 'SALES PAYMENT RETURN', 1, NULL, 22000.0000, NULL, '', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, 46, NULL, NULL, NULL, 3, NULL, NULL),
(866, 2, 'PP0011', '2024-07-09', 'PURCHASE PAYMENT', 1, NULL, 90000.0000, NULL, '', 'admin', '2024-07-09', NULL, NULL, NULL, NULL, NULL, 120, NULL, NULL, NULL, 5, NULL),
(867, 2, 'SP0015', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 100.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 367, NULL, NULL, NULL, NULL, 10, NULL, NULL),
(868, 2, 'SP0016', '2024-07-09', 'SALES PAYMENT', NULL, 1, NULL, 22000.0000, '', 'admin', '2024-07-09', NULL, NULL, NULL, 368, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(869, 2, 'SP0017', '2024-07-10', 'SALES PAYMENT', NULL, 4, NULL, 22000.0000, '018708293434', 'admin', '2024-07-10', NULL, NULL, NULL, 369, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(870, 2, 'SP0018', '2024-07-10', 'SALES PAYMENT', NULL, 1, NULL, 22970.0000, '', 'admin', '2024-07-10', NULL, NULL, NULL, 370, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(871, 2, 'SP0019', '2024-07-10', 'SALES PAYMENT', NULL, 4, NULL, 200.0000, '01870829343 ei number theke se pay koreche', 'admin', '2024-07-10', NULL, NULL, NULL, 371, NULL, NULL, NULL, NULL, 12, NULL, NULL),
(872, 2, 'SP0020', '2024-07-10', 'SALES PAYMENT', NULL, 1, NULL, 800.0000, '', 'admin', '2024-07-10', NULL, NULL, NULL, 372, NULL, NULL, NULL, NULL, 12, NULL, NULL),
(873, 2, 'SP0021', '2024-07-10', 'SALES PAYMENT', NULL, 1, NULL, 260.0000, '', 'admin', '2024-07-10', NULL, NULL, NULL, 373, NULL, NULL, NULL, NULL, 12, NULL, NULL),
(874, 2, 'PP0014', '2024-07-10', 'PURCHASE PAYMENT', 2, NULL, 10000.0000, NULL, '', 'admin', '2024-07-10', NULL, NULL, NULL, NULL, NULL, 123, NULL, NULL, NULL, 2, NULL),
(875, 2, 'PP0015', '2024-07-10', 'PURCHASE PAYMENT', 1, NULL, 20000.0000, NULL, '', 'admin', '2024-07-10', NULL, NULL, NULL, NULL, NULL, 124, NULL, NULL, NULL, 2, NULL),
(876, 2, 'PP0016', '2024-07-10', 'PURCHASE PAYMENT', 1, NULL, 290000.0000, NULL, '', 'admin', '2024-07-10', NULL, NULL, NULL, NULL, NULL, 125, NULL, NULL, NULL, 2, NULL),
(877, 2, '', '2024-07-10', 'OPENING BALANCE', NULL, 7, NULL, 50000.0000, '', 'admin', '2024-07-10', 7, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(878, 2, '', '2024-07-10', 'DEPOSIT', 7, 1, 20000.0000, 20000.0000, '', 'admin', '2024-07-10', NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(879, 2, 'XP0006', '2024-07-10', 'EXPENSE PAYMENT', 1, NULL, 200.0000, NULL, '', 'admin', '2024-07-10', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 38, NULL, NULL, NULL),
(880, 2, 'SP0022', '2024-07-11', 'SALES PAYMENT', NULL, 1, NULL, 20000.0000, '', 'admin', '2024-07-11', NULL, NULL, NULL, 374, NULL, NULL, NULL, NULL, 13, NULL, NULL),
(881, 2, 'SP0024', '2024-07-13', 'SALES PAYMENT', NULL, 1, NULL, 200.0000, '', 'admin', '2024-07-13', NULL, NULL, NULL, 376, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(882, 2, 'SP0025', '2024-07-14', 'SALES PAYMENT', NULL, 1, NULL, 22400.0000, '', 'admin', '2024-07-14', NULL, NULL, NULL, 377, NULL, NULL, NULL, NULL, 14, NULL, NULL),
(883, 2, 'SP0026', '2024-07-14', 'OPENING BALANCE PAID', NULL, 1, NULL, 5.0000, '', 'admin', '2024-07-14', NULL, NULL, NULL, 378, NULL, NULL, NULL, NULL, 14, NULL, NULL),
(886, 2, 'SP0029', '2024-08-02', 'SALES PAYMENT', NULL, 1, NULL, 22000.0000, '', 'admin', '2024-08-02', NULL, NULL, NULL, 383, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(887, 2, 'SP0031', '2024-08-18', 'SALES PAYMENT', NULL, 1, NULL, 8800.0000, '', 'admin', '2024-08-18', NULL, NULL, NULL, 385, NULL, NULL, NULL, NULL, 3, NULL, NULL),
(888, 2, 'SP0032', '2024-08-19', 'SALES PAYMENT', NULL, 7, NULL, 1000.0000, '', 'admin', '2024-08-19', NULL, NULL, NULL, 386, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(889, 2, 'SP0033', '2024-08-19', 'SALES PAYMENT', NULL, 1, NULL, 200.0000, '', 'admin', '2024-08-19', NULL, NULL, NULL, 387, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(890, 2, 'SP0034', '2024-08-19', 'SALES PAYMENT', NULL, 2, NULL, 300.0000, '', 'admin', '2024-08-19', NULL, NULL, NULL, 388, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(891, 2, 'SP0035', '2024-08-19', 'SALES PAYMENT', NULL, 1, NULL, 21200.0000, '', 'admin', '2024-08-19', NULL, NULL, NULL, 389, NULL, NULL, NULL, NULL, 8, NULL, NULL),
(892, 2, 'SP0036', '2024-08-19', 'SALES PAYMENT', NULL, 1, NULL, 20401.0000, '', 'admin', '2024-08-19', NULL, NULL, NULL, 390, NULL, NULL, NULL, NULL, 7, NULL, NULL),
(893, 2, 'SP0036', '2024-08-19', 'SALES PAYMENT', NULL, 1, NULL, 18300.0000, '', 'admin', '2024-08-19', NULL, NULL, NULL, 391, NULL, NULL, NULL, NULL, 7, NULL, NULL),
(894, 2, 'SP0037', '2024-08-19', 'SALES PAYMENT', NULL, 1, NULL, 2000.0000, '', 'admin', '2024-08-19', NULL, NULL, NULL, 392, NULL, NULL, NULL, NULL, 13, NULL, NULL),
(895, 2, 'PP0017', '2024-08-19', 'PURCHASE PAYMENT', 1, NULL, 2000.0000, NULL, '', 'admin', '2024-08-19', NULL, NULL, NULL, NULL, NULL, 126, NULL, NULL, NULL, 2, NULL),
(896, 2, '', '2024-08-19', 'TRANSFER', 1, 7, 20000.0000, 20000.0000, '', 'admin', '2024-08-19', NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(897, 2, '', '2024-08-19', 'DEPOSIT', NULL, 1, 50000.0000, 50000.0000, '', 'admin', '2024-08-19', NULL, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(898, 2, 'SP0038', '2024-08-01', 'SALES PAYMENT', NULL, 2, NULL, 100.0000, '', 'admin', '2024-08-19', NULL, NULL, NULL, 382, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(899, 2, 'SP0038', '2024-07-16', 'SALES PAYMENT', NULL, 2, NULL, 5200.0000, '', 'admin', '2024-08-19', NULL, NULL, NULL, 381, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(900, 2, 'XP0007', '2024-08-19', 'EXPENSE PAYMENT', 1, NULL, 20000.0000, NULL, 'Salary of August 24', 'admin', '2024-08-19', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 39, NULL, NULL, NULL),
(901, 2, 'SP0038', '2024-08-19', 'SALES PAYMENT', NULL, 1, NULL, 500.0000, '', 'admin', '2024-08-19', NULL, NULL, NULL, 394, NULL, NULL, NULL, NULL, 13, NULL, NULL),
(902, 2, 'SP0039', '2024-08-19', 'SALES PAYMENT', NULL, 6, NULL, 500.0000, '', 'admin', '2024-08-19', NULL, NULL, NULL, 395, NULL, NULL, NULL, NULL, 13, NULL, NULL),
(903, 2, 'SP0043', '2024-08-31', 'SALES PAYMENT', NULL, 1, NULL, 22000.0000, 'Ss', 'admin', '2024-08-31', NULL, NULL, NULL, 399, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(904, 2, 'SP0049', '2024-09-19', 'SALES PAYMENT', NULL, 1, NULL, 22520.0000, '', 'admin', '2024-09-19', NULL, NULL, NULL, 405, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(905, 2, 'SP0050', '2024-09-22', 'SALES PAYMENT', NULL, 1, NULL, 43590.0000, '', 'admin', '2024-09-22', NULL, NULL, NULL, 406, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(906, 2, 'SP0053', '2025-01-29', 'SALES PAYMENT', NULL, 1, NULL, 22000.0000, '', 'admin', '2025-01-29', NULL, NULL, NULL, 409, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(907, 2, 'SP0054', '2025-01-29', 'SALES PAYMENT', NULL, 1, NULL, 22000.0000, '', 'admin', '2025-01-29', NULL, NULL, NULL, 410, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(908, 2, 'SP0055', '2025-01-29', 'SALES PAYMENT', NULL, 1, NULL, 44000.0000, '', 'admin', '2025-01-29', NULL, NULL, NULL, 411, NULL, NULL, NULL, NULL, 3, NULL, NULL),
(909, 2, 'SP0056', '2025-01-29', 'SALES PAYMENT', NULL, 1, NULL, 22000.0000, '', 'admin', '2025-01-29', NULL, NULL, NULL, 412, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(910, 2, 'SP0057', '2025-01-29', 'SALES PAYMENT', NULL, 1, NULL, 100.0000, '', 'admin', '2025-01-29', NULL, NULL, NULL, 413, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(914, 2, 'SP0060', '2025-01-29', 'SALES PAYMENT', NULL, 1, NULL, 2200.0000, '', 'admin', '2025-01-29', NULL, NULL, NULL, 419, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(917, 2, 'SP0061', '2025-02-02', 'SALES PAYMENT', NULL, 1, NULL, 154.0000, '', 'admin', '2025-02-02', NULL, NULL, NULL, 422, NULL, NULL, NULL, NULL, 7, NULL, NULL),
(918, 2, 'SP0062', '2025-02-02', 'SALES PAYMENT', NULL, 1, NULL, 22000.0000, '', 'admin', '2025-02-02', NULL, NULL, NULL, 423, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(919, 2, 'SP0063', '2025-02-03', 'SALES PAYMENT', NULL, 1, NULL, 300.0000, '', 'admin', '2025-02-03', NULL, NULL, NULL, 424, NULL, NULL, NULL, NULL, 2, NULL, NULL),
(920, 2, 'SP0064', '2025-02-03', 'SALES PAYMENT', NULL, 1, NULL, 220.0000, '', 'admin', '2025-02-03', NULL, NULL, NULL, 425, NULL, NULL, NULL, NULL, 2, NULL, NULL);

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

--
-- Table structure for table `ci_sessions`
--

CREATE TABLE `ci_sessions` (
  `id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `ip_address` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `timestamp` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `data` blob NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ci_sessions`
--

INSERT INTO `ci_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES
('c398d4dc3ef0e80e2e4fdf86d93d91a666be798e', '103.95.98.65', 1738663655, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383636333635353b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('0199f816901e79aa097d59af30d8be5c52895cb0', '103.29.124.48', 1738670218, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383636393936373b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('d512928cbeb41bbcca5a795c835c2debe42a4993', '144.126.233.40', 1738671852, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383637313835323b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('d205608f9f9ff9d5f16a23637a5b62f36ed81ac2', '144.126.233.40', 1738671854, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383637313835343b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('922bae5d41adde2642a7233787f7b229a8663e7f', '198.235.24.57', 1738695543, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383639353534333b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('5e5d7eb5e0c127ca0756339ad1355fec45951a0a', '204.48.26.244', 1738699985, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383639393938353b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('7e35ef6de4edc64bd360aed1a6efe97e4b706c9c', '204.48.26.244', 1738699987, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383639393938373b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('6763fc2adeb47ff905880b4ce46081368f6ce8a3', '118.179.46.33', 1738702760, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383730323437383b63757272656e63797c733a323a22544b223b63757272656e63795f706c6163656d656e747c733a343a224c656674223b63757272656e63795f636f64657c733a333a22424454223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a33353a22e0a6aee0a781e0a6a6e0a6bfe0a693e0a79fe0a6bee0a6b2e0a6be20e0a7ae2ee0a7ae223b696e765f757365726e616d657c733a353a2261646d696e223b757365725f6c6e616d657c733a363a2244657369676e223b696e765f7573657269647c733a313a2232223b6c6f676765645f696e7c623a313b726f6c655f69647c733a313a2232223b726f6c655f6e616d657c733a31313a2253746f72652041646d696e223b73746f72655f69647c733a313a2232223b656d61696c7c733a32363a22696e666f40637265617469766564657369676e2e636f6d2e6264223b6c616e67756167657c733a373a22456e676c697368223b6c616e67756167655f69647c733a313a2231223b),
('e9a98e14e3a637d71c0fad3ebfa55428c0f42290', '199.45.154.125', 1738725992, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383732353939323b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('413a8c9c8a4e7e1ec6e1bfbffae8ecd7abfd7b25', '167.94.138.121', 1738728928, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383732383932383b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('59b41610522d035d2f1e5498e2b3b825d8d75254', '103.131.145.159', 1738740510, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383734303531303b63757272656e63797c733a323a22544b223b63757272656e63795f706c6163656d656e747c733a343a224c656674223b63757272656e63795f636f64657c733a333a22424454223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a33353a22e0a6aee0a781e0a6a6e0a6bfe0a693e0a79fe0a6bee0a6b2e0a6be20e0a7ae2ee0a7ae223b696e765f757365726e616d657c733a353a2261646d696e223b757365725f6c6e616d657c733a363a2244657369676e223b696e765f7573657269647c733a313a2232223b6c6f676765645f696e7c623a313b726f6c655f69647c733a313a2232223b726f6c655f6e616d657c733a31313a2253746f72652041646d696e223b73746f72655f69647c733a313a2232223b656d61696c7c733a32363a22696e666f40637265617469766564657369676e2e636f6d2e6264223b6c616e67756167657c733a373a22456e676c697368223b6c616e67756167655f69647c733a313a2231223b),
('77682996e41ae6b6eecba2cd02e6c216177b83ee', '103.131.145.159', 1738740510, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383734303531303b63757272656e63797c733a323a22544b223b63757272656e63795f706c6163656d656e747c733a343a224c656674223b63757272656e63795f636f64657c733a333a22424454223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a33353a22e0a6aee0a781e0a6a6e0a6bfe0a693e0a79fe0a6bee0a6b2e0a6be20e0a7ae2ee0a7ae223b696e765f757365726e616d657c733a353a2261646d696e223b757365725f6c6e616d657c733a363a2244657369676e223b696e765f7573657269647c733a313a2232223b6c6f676765645f696e7c623a313b726f6c655f69647c733a313a2232223b726f6c655f6e616d657c733a31313a2253746f72652041646d696e223b73746f72655f69647c733a313a2232223b656d61696c7c733a32363a22696e666f40637265617469766564657369676e2e636f6d2e6264223b6c616e67756167657c733a373a22456e676c697368223b6c616e67756167655f69647c733a313a2231223b),
('86acdfc546b5ecb5ce6510c1a8a6972ca40ea892', '135.148.100.196', 1738743248, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383734333234383b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('7f4fb0ffcdd8448bcf58945878727238dabb98fe', '91.84.87.137', 1738795234, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383739353233343b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('416a0caaecb6e586ea6821ad05a330bc99913581', '104.166.80.41', 1738797780, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383739373738303b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('aaa2cfa7d8c46301f40c8f241f07b6a02b6dcaae', '104.166.80.16', 1738797879, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383739373837393b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('110d8adab454a0637794578832b3ed2d878c9dac', '139.59.125.217', 1738808198, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383830383139373b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('5203c61e2c273fe03be9cf7e0779c0a4766074fe', '139.59.125.217', 1738808206, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383830383230353b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('66142fd622759da9cd89a32df4700a6875218dfc', '139.59.125.217', 1738808214, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383830383231343b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('20d620acc856497d2ce90ac97cd2f4a4f00950cb', '139.59.125.217', 1738808217, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383830383231373b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('bf5938dc0922cbc5c625fde6ee600d2494acf1fc', '103.131.145.159', 1738821293, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383832313239333b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('413405ab9d0b9f69fcb9c046dd147197c1bdacb5', '103.149.169.103', 1738838416, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383833383431363b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('c0441ebe9d42b867b46a001ca3a18a4599415f86', '167.94.138.192', 1738872348, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383837323334383b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('a8dedca974c4fe50325d4e0c2471a345ddb9850f', '162.142.125.211', 1738877854, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383837373834393b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('581db7b931811616b1dba9d9c6ba443e01f4b89a', '167.94.146.55', 1738879129, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383837393132393b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('455bfa9472c97237199a9f85dc57d1a3420565f1', '199.45.155.74', 1738884247, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383838343234373b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('ecb40ffedf74faed565edd05636735e9decef11c', '205.210.31.80', 1738929030, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383932393032393b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('bdac5f6d904c73b2556476a48ad2d688f95c9528', '104.152.52.66', 1738946084, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383934363038343b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('c338485ec5866384f3b3d6f9019b4a962ce2ed4c', '173.252.83.3', 1738951637, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383935313633373b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('42f2d9948681dcc56ce4fd30838f49396aeadabd', '147.185.132.25', 1738971807, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383937313830373b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('d2f856209d23cdd24fffb9895d871e09a5e82db4', '146.190.23.115', 1738980585, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383938303538353b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('acb8795d13c0217a752a42ef91a1d4f07e7bf3f0', '146.190.23.115', 1738980587, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383938303538373b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('6e6860c5cfff327dc1b8643cca8ac17c83aa2c50', '198.235.24.40', 1738983514, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383938333531343b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('0ecd1ad106b26b2ba896ddfff45027f3440c2fd9', '65.21.113.206', 1738997334, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733383939373333343b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('c06f50c71cdc0483f8936041e3d7ac804ce77bb1', '135.148.100.196', 1739001992, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393030313939323b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('1b82ced4d0af1c9f72900f4d4077c9f3f34402f6', '206.189.112.132', 1739018676, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393031383637363b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('0edc325d820fdac905bf5251f154e64ade8c9eed', '206.189.112.132', 1739018679, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393031383637393b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('6fbc74cdb68bda8785e97a894c49f5bd7a71a4d1', '142.93.58.56', 1739049702, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393034393730323b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('ce89c8808d864a07eba73d6ebbe0d7b3b2958564', '142.93.58.56', 1739049704, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393034393730343b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('e37edd87cf707373985d5cbc451e96932c8031f0', '54.36.148.190', 1739051116, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393035313131363b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('5b7777f18fe0de8547bb1088bcef5e82ec6fcd71', '69.63.184.15', 1739090179, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393039303137393b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('ab222e5b872795b859d0ea568abc00ec3b6cb75b', '69.63.184.8', 1739090179, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393039303137393b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('b331b6a42c6d648dc2b10df8c25f3022c0b4fb4e', '69.63.184.14', 1739090180, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393039303137393b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('6b6e16a6a095cd77e456c9d99e075084ee36bb62', '69.63.184.12', 1739090180, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393039303138303b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('c6fa6a9a3c45a5b890b2c843a7da466afcab6218', '199.45.155.106', 1739125171, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393132353137313b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('59c2894cf6a3b7e8dd211a3a848a72a187e9e110', '198.235.24.158', 1739155129, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393135353132393b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('582e620461e4d8f59ea864c5e0642f9fddde7147', '198.235.24.28', 1739171929, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393137313932393b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('7dda10e74aef68d206c18f0c50ed5969cedc66d6', '65.21.113.206', 1739177357, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393137373335373b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b),
('7ebdaba1f2b9c8d787dd8ee02552e66daf8af78e', '103.131.145.159', 1739185854, 0x5f5f63695f6c6173745f726567656e65726174657c693a313733393138353835323b63757272656e63797c733a303a22223b63757272656e63795f706c6163656d656e747c733a303a22223b63757272656e63795f636f64657c733a303a22223b766965775f646174657c733a31303a2264642d6d6d2d79797979223b766965775f74696d657c733a323a223132223b646563696d616c737c733a313a2232223b7174795f646563696d616c737c733a313a2232223b73746f72655f6e616d657c733a31303a22534141532041444d494e223b);

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

--
-- Table structure for table `db_bankdetails`
--

CREATE TABLE `db_bankdetails` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `holder_name` varchar(250) DEFAULT NULL,
  `bank_name` varchar(250) DEFAULT NULL,
  `branch_name` varchar(250) DEFAULT NULL,
  `code` varchar(250) DEFAULT NULL COMMENT 'IFSC or Bank Code',
  `account_type` varchar(250) DEFAULT NULL,
  `account_number` varchar(250) DEFAULT NULL,
  `other_details` mediumtext DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_bankdetails`
--

INSERT INTO `db_bankdetails` (`id`, `store_id`, `country_id`, `holder_name`, `bank_name`, `branch_name`, `code`, `account_type`, `account_number`, `other_details`, `description`, `status`) VALUES
(1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1);

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

--
-- Table structure for table `db_brands`
--

CREATE TABLE `db_brands` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `brand_code` varchar(50) DEFAULT NULL,
  `brand_name` varchar(100) DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_brands`
--

INSERT INTO `db_brands` (`id`, `store_id`, `brand_code`, `brand_name`, `description`, `status`) VALUES
(327, 2, NULL, 'Adidas', '', 1),
(328, 2, NULL, 'Vivo', '', 1),
(329, 2, NULL, 'Zara', '', 1),
(330, 2, NULL, 'Tomy Hilfigure', '', 1),
(331, 2, NULL, 'Old Neavy', '', 1),
(332, 2, NULL, 'Denimco', '', 1),
(333, 2, NULL, 'Pran', '', 1);

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

--
-- Table structure for table `db_category`
--

CREATE TABLE `db_category` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL COMMENT 'Use to create category Code',
  `category_code` varchar(50) DEFAULT NULL,
  `category_name` varchar(100) DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_category`
--

INSERT INTO `db_category` (`id`, `store_id`, `count_id`, `category_code`, `category_name`, `description`, `company_id`, `status`) VALUES
(82, 2, 1, 'CT/02/0001', 'Electronics', '', NULL, 1),
(83, 2, 2, 'CT0002', 'Grocery', '', NULL, 1),
(84, 2, 3, 'CT0003', 'Cloth', '', NULL, 1),
(85, 2, 4, 'CT0004', 'Pharma', '', NULL, 1);

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

--
-- Table structure for table `db_cobpayments`
--

CREATE TABLE `db_cobpayments` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `payment_type` varchar(50) DEFAULT NULL,
  `payment` double(10,2) DEFAULT NULL,
  `payment_note` mediumtext DEFAULT NULL,
  `system_ip` varchar(50) DEFAULT NULL,
  `system_name` varchar(50) DEFAULT NULL,
  `created_time` time DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_company`
--

CREATE TABLE `db_company` (
  `id` double DEFAULT NULL,
  `company_code` varchar(150) DEFAULT NULL,
  `company_name` varchar(150) DEFAULT NULL,
  `company_website` varchar(150) DEFAULT NULL,
  `mobile` varchar(150) DEFAULT NULL,
  `phone` varchar(150) DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `website` varchar(250) DEFAULT NULL,
  `company_logo` text DEFAULT NULL,
  `logo` mediumtext DEFAULT NULL,
  `upi_id` varchar(50) DEFAULT NULL,
  `upi_code` text DEFAULT NULL,
  `country` varchar(150) DEFAULT NULL,
  `state` varchar(150) DEFAULT NULL,
  `city` varchar(100) DEFAULT NULL,
  `address` varchar(300) DEFAULT NULL,
  `postcode` varchar(50) DEFAULT NULL,
  `gst_no` varchar(50) DEFAULT NULL,
  `vat_no` varchar(50) DEFAULT NULL,
  `pan_no` varchar(50) DEFAULT NULL,
  `bank_details` mediumtext DEFAULT NULL,
  `cid` int(11) DEFAULT NULL,
  `category_init` varchar(5) DEFAULT NULL,
  `item_init` varchar(5) DEFAULT NULL COMMENT 'INITAL CODE',
  `supplier_init` varchar(5) DEFAULT NULL COMMENT 'INITAL CODE',
  `purchase_init` varchar(5) DEFAULT NULL COMMENT 'INITAL CODE',
  `purchase_return_init` varchar(5) DEFAULT NULL,
  `customer_init` varchar(5) DEFAULT NULL COMMENT 'INITAL CODE',
  `sales_init` varchar(5) DEFAULT NULL COMMENT 'INITAL CODE',
  `sales_return_init` varchar(5) DEFAULT NULL,
  `expense_init` varchar(5) DEFAULT NULL,
  `invoice_view` int(11) DEFAULT NULL COMMENT '1=Standard,2=Indian GST',
  `status` int(11) DEFAULT NULL,
  `sms_status` int(11) DEFAULT NULL COMMENT '1=Enable 0=Disable',
  `sales_terms_and_conditions` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_company`
--

INSERT INTO `db_company` (`id`, `company_code`, `company_name`, `company_website`, `mobile`, `phone`, `email`, `website`, `company_logo`, `logo`, `upi_id`, `upi_code`, `country`, `state`, `city`, `address`, `postcode`, `gst_no`, `vat_no`, `pan_no`, `bank_details`, `cid`, `category_init`, `item_init`, `supplier_init`, `purchase_init`, `purchase_return_init`, `customer_init`, `sales_init`, `sales_return_init`, `expense_init`, `invoice_view`, `status`, `sms_status`, `sales_terms_and_conditions`) VALUES
(1, '', 'Company Name', NULL, '9999999999', '', 'admin@example.com', '', 'company_logo.png', 'logo-0.png', NULL, NULL, 'India', 'Karnataka', 'Belgaum', 'Address Details', '', '', '', '', '', 1, 'CT', 'IT', 'SP', 'PU', 'PR', 'CU', 'SL', 'PR', 'EX', 1, 1, 0, NULL);

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

--
-- Table structure for table `db_country`
--

CREATE TABLE `db_country` (
  `id` int(11) NOT NULL,
  `country` varchar(4050) DEFAULT NULL,
  `added_on` date DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_country`
--

INSERT INTO `db_country` (`id`, `country`, `added_on`, `status`) VALUES
(210, 'Bangladesh', NULL, 1);

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

--
-- Table structure for table `db_coupons`
--

CREATE TABLE `db_coupons` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `code` varchar(50) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `value` double(20,2) DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL,
  `expire_date` date DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `created_by` varchar(100) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(100) DEFAULT NULL,
  `system_name` varchar(250) DEFAULT NULL,
  `system_ip` varchar(250) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_coupons`
--

INSERT INTO `db_coupons` (`id`, `store_id`, `code`, `name`, `description`, `value`, `type`, `expire_date`, `status`, `created_by`, `created_date`, `created_time`, `system_name`, `system_ip`) VALUES
(343, 2, NULL, 'পহেলা বৈশাখ', 'পহেলা বৈশাখ কুপন কোড', 120.00, 'Fixed', '2026-07-09', 1, 'admin', '2024-07-09', '11:26:25 am', 'DESKTOP-GMFRN98', '::1'),
(344, 2, NULL, 'ঈদ অফার', '', 200.00, 'Fixed', '2026-07-09', 1, 'admin', '2024-07-09', '11:26:58 am', 'DESKTOP-GMFRN98', '::1'),
(345, 2, NULL, 'পুজা অফার', '', 500.00, 'Fixed', '2026-07-09', 1, 'admin', '2024-07-09', '11:27:47 am', 'DESKTOP-GMFRN98', '::1'),
(346, 2, NULL, 'ধামাকা অফার', 'ধামাকা অফার', 10.00, 'Percentage', '2026-07-09', 1, 'admin', '2024-07-09', '11:31:48 am', 'DESKTOP-GMFRN98', '::1'),
(347, 2, NULL, 'eid', '', 100.00, 'Fixed', '2024-07-31', 1, 'admin', '2024-07-14', '12:04:20 pm', '103.161.66.23', '103.161.66.23'),
(348, 2, NULL, 'শীতের অফার', '', 200.00, 'Fixed', '2024-09-20', 1, 'admin', '2024-08-19', '01:12:16 am', '103.59.179.21', '103.59.179.21'),
(349, 2, NULL, 'লাকী কুপন', '', 2.00, 'Percentage', '2024-08-20', 1, 'admin', '2024-08-19', '01:13:13 am', '103.59.179.21', '103.59.179.21');

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

--
-- Table structure for table `db_currency`
--

CREATE TABLE `db_currency` (
  `id` int(11) NOT NULL,
  `currency_name` varchar(50) DEFAULT NULL,
  `currency_code` varchar(20) DEFAULT NULL,
  `currency` blob DEFAULT NULL,
  `symbol` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_currency`
--

INSERT INTO `db_currency` (`id`, `currency_name`, `currency_code`, `currency`, `symbol`, `status`) VALUES
(60, 'TAKA', 'BDT', 0x544b, NULL, 1);

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

--
-- Table structure for table `db_custadvance`
--

CREATE TABLE `db_custadvance` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL,
  `payment_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `amount` double(20,4) DEFAULT NULL,
  `payment_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `system_ip` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `system_name` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_custadvance`
--

INSERT INTO `db_custadvance` (`id`, `store_id`, `count_id`, `payment_code`, `payment_date`, `customer_id`, `amount`, `payment_type`, `note`, `created_by`, `created_date`, `created_time`, `system_ip`, `system_name`, `status`) VALUES
(1, 2, 1, 'ADV0001', '2024-07-09', 3, 3000.0000, 'CASH', 'Iphone 15 pro max kenar jonno advanch (31/03/2027) e delivery deowa hobe', 'admin', '2024-07-09', '11:33:39 am', '::1', 'DESKTOP-GMFRN98', 1),
(2, 2, 2, 'ADV0002', '2024-07-09', 6, 1200.0000, 'CASH', 'সেলাই মেশিন কেনার জন্য এডভাঞ্ছ নেওয়া হয়েছে', 'admin', '2024-07-09', '11:35:13 am', '::1', 'DESKTOP-GMFRN98', 1),
(3, 2, 3, 'ADV0003', '2024-07-09', 7, 5000.0000, 'Rocket', 'HP ল্যাপটপ এনে দিতে হবে ', 'admin', '2024-07-09', '11:36:22 am', '::1', 'DESKTOP-GMFRN98', 1),
(4, 2, 4, 'ADV0004', '2024-07-09', 7, 500.0000, 'CASH', 'আইফোন ১৩ প্র মেক্স আনার জন্য এডভাঞ্ছ দেওয়া হয়েছে', 'admin', '2024-07-09', '11:37:31 am', '::1', 'DESKTOP-GMFRN98', 1),
(5, 2, 5, 'ADV0005', '2024-07-10', 5, 5000.0000, 'CASH', 'For Oder Iphone 15 Pro max', 'admin', '2024-07-10', '12:26:49 pm', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', 1),
(6, 2, 6, 'ADV0006', '2024-08-13', 13, 20000.0000, 'CASH', 'Monthly Cost babat', 'admin', '2024-08-19', '01:09:11 am', '103.59.179.21', '103.59.179.21', 1),
(7, 2, 7, 'ADV0007', '2024-09-22', 2, 900.0000, 'Bkash', '', 'admin', '2024-09-22', '10:47:05 pm', '103.109.96.196', 'client-103-109-96-196.digijadoo.net', 1);

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

--
-- Table structure for table `db_customers`
--

CREATE TABLE `db_customers` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL COMMENT 'Use to create Customer Code',
  `customer_code` varchar(20) DEFAULT NULL,
  `customer_name` varchar(50) DEFAULT NULL,
  `mobile` varchar(15) DEFAULT NULL,
  `phone` varchar(15) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `gstin` varchar(100) DEFAULT NULL,
  `tax_number` varchar(50) DEFAULT NULL,
  `vatin` varchar(100) DEFAULT NULL,
  `opening_balance` double(20,4) DEFAULT NULL,
  `sales_due` double(20,4) DEFAULT NULL,
  `sales_return_due` double(20,4) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `city` varchar(50) DEFAULT NULL,
  `postcode` varchar(10) DEFAULT NULL,
  `address` varchar(250) DEFAULT NULL,
  `ship_country_id` int(11) DEFAULT NULL,
  `ship_state_id` int(11) DEFAULT NULL,
  `ship_city` varchar(100) DEFAULT NULL,
  `ship_postcode` varchar(10) DEFAULT NULL,
  `ship_address` text DEFAULT NULL,
  `system_ip` varchar(50) DEFAULT NULL,
  `system_name` varchar(50) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(30) DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `location_link` text DEFAULT NULL,
  `attachment_1` text DEFAULT NULL,
  `price_level_type` varchar(50) DEFAULT 'Increase',
  `price_level` double(20,4) DEFAULT 0.0000,
  `delete_bit` int(11) DEFAULT 0,
  `tot_advance` double(20,4) DEFAULT NULL,
  `credit_limit` double(20,4) DEFAULT -1.0000,
  `shippingaddress_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_customers`
--

INSERT INTO `db_customers` (`id`, `store_id`, `count_id`, `customer_code`, `customer_name`, `mobile`, `phone`, `email`, `gstin`, `tax_number`, `vatin`, `opening_balance`, `sales_due`, `sales_return_due`, `country_id`, `state_id`, `city`, `postcode`, `address`, `ship_country_id`, `ship_state_id`, `ship_city`, `ship_postcode`, `ship_address`, `system_ip`, `system_name`, `created_date`, `created_time`, `created_by`, `company_id`, `status`, `location_link`, `attachment_1`, `price_level_type`, `price_level`, `delete_bit`, `tot_advance`, `credit_limit`, `shippingaddress_id`) VALUES
(1, 1, NULL, 'CU0001', 'Walk-in customer', NULL, '', '', '', '', NULL, 0.0000, 0.0000, 0.0000, 1, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2019-01-01', '10:55:54 pm', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 1, NULL, -1.0000, 1),
(2, 2, 1, 'CU/02/0001', 'Walk-in customer', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 752704.0000, 0.0000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '127.0.0.1', 'LAPTOP-I5OUIM4R', '2021-02-12', '05:53:37 pm', '', NULL, 1, NULL, NULL, 'Increase', 0.0000, 1, 900.0000, -1.0000, 2),
(3, 2, 2, 'CU0002', 'Md Abdul Rashid', '01858989394', '', '', '', '', NULL, 0.0000, 520.0000, 0.0000, 210, NULL, 'Dhaka', '', '35/3/1,B,Section-13', NULL, NULL, NULL, NULL, NULL, '::1', 'DESKTOP-GMFRN98', '2024-07-09', '02:11:31 am', 'admin', NULL, 1, '', NULL, 'Increase', 0.0000, 0, 3000.0000, -1.0000, 4),
(4, 2, 3, 'CU0003', 'Md Abdul Rashid', '+8801870829343', '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '35/3/1-B,Section-13,Dhaka', NULL, NULL, NULL, NULL, NULL, '::1', 'DESKTOP-GMFRN98', '2024-07-09', '02:13:37 am', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 0, NULL, NULL, NULL),
(5, 2, 4, 'CU0004', 'Md kader', '+8801870829344', NULL, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '35/3,Dhaka', NULL, NULL, NULL, NULL, NULL, '::1', 'DESKTOP-GMFRN98', '2024-07-09', '02:15:54 am', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 0, 5000.0000, NULL, NULL),
(6, 2, 5, 'CU0005', 'Md Jashim', '01775457003', NULL, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, '::1', 'DESKTOP-GMFRN98', '2024-07-09', '02:20:13 am', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 0, 1200.0000, NULL, NULL),
(7, 2, 6, 'CU0006', 'Md Khaledur Rahman', '01875952626', NULL, '', NULL, NULL, NULL, 0.0000, 22411.0000, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, '::1', 'DESKTOP-GMFRN98', '2024-07-09', '02:24:02 am', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 0, 5500.0000, -1.0000, NULL),
(8, 2, 7, 'CU0007', 'Ami Tomar', '8801870829399', NULL, '', NULL, NULL, NULL, 0.0000, 0.0000, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, '::1', 'DESKTOP-GMFRN98', '2024-07-09', '02:25:20 am', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 0, 0.0000, -1.0000, NULL),
(9, 2, 8, 'CU0008', 'Md Khalil', '01775457889', NULL, '', NULL, NULL, NULL, 0.0000, 0.0000, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, '::1', 'DESKTOP-GMFRN98', '2024-07-09', '02:26:45 am', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 0, 0.0000, -1.0000, NULL),
(10, 2, 9, 'CU0009', 'Md Khalekur', '01858989397', NULL, '', NULL, NULL, NULL, 0.0000, 120.0000, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '2024-07-09', '01:56:20 pm', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 0, 0.0000, -1.0000, NULL),
(11, 2, 10, 'CU0010', 'Md Khaled', '8801870829345', NULL, '', NULL, NULL, NULL, 0.0000, NULL, NULL, NULL, NULL, NULL, NULL, '35/3/1,B,Section-13', NULL, NULL, NULL, NULL, NULL, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '2024-07-10', '11:58:13 am', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 0, NULL, -1.0000, NULL),
(12, 2, 11, 'CU0011', 'Md Nayan', '01870829340', NULL, 'nayam@gmial.com', NULL, NULL, NULL, 0.0000, 0.0000, NULL, NULL, NULL, NULL, NULL, '35/3/1,B,Section-13', NULL, NULL, NULL, NULL, NULL, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '2024-07-10', '12:18:48 pm', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 0, 0.0000, -1.0000, NULL),
(13, 2, 12, 'CU0012', 'MD. FARID AHMED', '01658789639', '', 'heaventechit247@gmail.com', '', '', NULL, 0.0000, 0.0000, NULL, 210, 67, 'Dahak', '1200', 'sutrapur\r\njatrabary', NULL, NULL, NULL, NULL, NULL, '103.88.140.78', '103.88.140.78', '2024-07-11', '10:00:56 pm', 'admin', NULL, 1, '', NULL, 'Increase', 0.0000, 0, 20000.0000, 5000.0000, 7),
(14, 2, 13, 'CU0013', 'Siam Ahmed', '0133483004', NULL, 'sksiamboss121@gmail.com', NULL, NULL, NULL, 10.0000, 0.0000, NULL, NULL, NULL, NULL, NULL, 'Chapai Nawbabganj club super market\r\nChapai Nawbabganj club super market dokan No: 119120', NULL, NULL, NULL, NULL, NULL, '182.48.82.20', '182.48.82.20', '2024-07-14', '02:06:56 am', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 0, 0.0000, -1.0000, NULL),
(15, 2, 14, 'CU0014', 'siam', '01333483004', NULL, 'fahimchowdhury2580@gmail.com', NULL, NULL, NULL, 0.0000, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, '114.130.189.19', '114.130.189.19', '2024-07-14', '10:41:49 am', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 0, NULL, -1.0000, NULL),
(16, 2, 15, 'CU0015', 'siam', '01744594344', NULL, 'fahimchowdhury2580@gmail.com', NULL, NULL, NULL, 0.0000, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, '114.130.189.19', '114.130.189.19', '2024-07-14', '10:50:34 am', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 0, NULL, -1.0000, NULL),
(17, 2, 16, 'CU0016', 'siam', '+8801886507498', NULL, 'fahimchowdhury2580@gmail.com', NULL, NULL, NULL, 0.0000, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, '114.130.189.19', '114.130.189.19', '2024-07-14', '10:54:07 am', 'admin', NULL, 1, NULL, NULL, 'Increase', 0.0000, 0, NULL, -1.0000, NULL),
(18, 2, 17, 'CU0017', 'Rashed', '01750781781', '', '', '', '', NULL, 0.0000, NULL, NULL, 0, NULL, '', '', 'Balabari ', NULL, NULL, NULL, NULL, NULL, '37.111.225.121', '37.111.225.121', '2024-07-16', '04:04:12 pm', 'admin', NULL, 1, '', NULL, 'Increase', 0.0000, 0, NULL, -1.0000, 5),
(19, 2, 18, 'CU0018', 'Md Farhan Tanvir', '01965982698', '01965982698', 'afarid126@gmail.com', '', '', NULL, 0.0000, NULL, NULL, 210, 66, 'Dhaka', '1202', 'sutrapur\r\njatrabary', NULL, NULL, NULL, NULL, NULL, '103.59.179.21', '103.59.179.21', '2024-08-19', '12:53:54 am', 'admin', NULL, 1, '', NULL, 'Increase', 0.0000, 0, NULL, -1.0000, 6),
(20, 2, 19, 'CU0019', 'Mazharul Islam', '+8801706452007', '', 'mazharuli325@gmail.com', '', '', NULL, 0.0000, 0.0000, NULL, 210, NULL, 'Sirajganj', '1215', 'Bolorampur, Kamarkhand, Sirajganj', NULL, NULL, NULL, NULL, NULL, '182.163.115.234', 'IP-115-234.bol-online.com', '2024-08-31', '05:23:02 pm', 'admin', NULL, 1, '', NULL, 'Increase', 0.0000, 0, 0.0000, 0.0000, 8),
(21, 2, 20, 'CU0020', 'Jony', '01862648892', '01714478780', '', '', '', NULL, 0.0000, NULL, NULL, 210, 67, 'Jashore ', '7400', 'Hospital get', NULL, NULL, NULL, NULL, NULL, '37.111.247.37', '37.111.247.37', '2024-09-22', '07:47:53 pm', 'admin', NULL, 1, '', NULL, 'Increase', 0.0000, 0, NULL, 0.0000, 9);

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

--
-- Table structure for table `db_customer_coupons`
--

CREATE TABLE `db_customer_coupons` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `code` varchar(50) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `value` double(20,2) DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL,
  `expire_date` date DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `created_by` varchar(100) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(100) DEFAULT NULL,
  `system_name` varchar(250) DEFAULT NULL,
  `system_ip` varchar(250) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `coupon_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_customer_coupons`
--

INSERT INTO `db_customer_coupons` (`id`, `store_id`, `code`, `name`, `description`, `value`, `type`, `expire_date`, `status`, `created_by`, `created_date`, `created_time`, `system_name`, `system_ip`, `customer_id`, `coupon_id`) VALUES
(2, 2, '84853658313498', NULL, 'পহেলা বৈশাখ', 120.00, 'Fixed', '2026-07-09', 1, 'admin', '2024-07-09', '11:28:46 am', 'DESKTOP-GMFRN98', '::1', 3, 343),
(3, 2, '04122426478792', NULL, 'ঈদ অফার', 200.00, 'Fixed', '2026-07-09', 1, 'admin', '2024-07-09', '11:29:53 am', 'DESKTOP-GMFRN98', '::1', 2, 344),
(4, 2, '72892605148336', NULL, 'পূজা অফার', 500.00, 'Fixed', '2026-07-09', 1, 'admin', '2024-07-09', '11:30:26 am', 'DESKTOP-GMFRN98', '::1', 2, 345);

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

--
-- Table structure for table `db_customer_payments`
--

CREATE TABLE `db_customer_payments` (
  `id` int(11) NOT NULL,
  `salespayment_id` int(11) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `payment_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `payment` double(10,2) DEFAULT NULL,
  `payment_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `system_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `system_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_date` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_emailtemplates`
--

CREATE TABLE `db_emailtemplates` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `key` varchar(150) DEFAULT NULL,
  `template_name` varchar(100) DEFAULT NULL,
  `content` text DEFAULT NULL,
  `variables` text DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `undelete_bit` int(11) DEFAULT NULL,
  `admin_only` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_emailtemplates`
--

INSERT INTO `db_emailtemplates` (`id`, `store_id`, `key`, `template_name`, `content`, `variables`, `status`, `undelete_bit`, `admin_only`) VALUES
(1, 1, 'SAAS_FORGOT_PASSWORD_EMAIL', 'Site forgot password email template', 'Hi {{user_name}},\r\n\r\nyour OTP is {{email_otp}}\r\n\r\nThank you\r\n{{saas_name}}', '{{user_name}}<br>\r\n{{saas_name}}<br>\r\n{{email_otp}}<br>', 1, 1, 1),
(2, 1, 'SAAS_WELCOME_EMAIL', 'Site welcome email', 'Hi {{user_name}},\r\nYour email id {{email_id}},\r\nwelcome to our {{saas_name}},\r\n\r\nThank you', '{{user_name}}<br>\r\n{{email_id}}<br>\r\n{{saas_name}}<br>', 1, 1, 1);

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

--
-- Table structure for table `db_expense`
--

CREATE TABLE `db_expense` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL COMMENT 'Use to create Expense Code',
  `expense_code` varchar(50) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `expense_date` date DEFAULT NULL,
  `reference_no` varchar(50) DEFAULT NULL,
  `expense_for` varchar(100) DEFAULT NULL,
  `expense_amt` double(20,4) DEFAULT NULL,
  `payment_type` varchar(100) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) DEFAULT NULL,
  `system_ip` varchar(50) DEFAULT NULL,
  `system_name` varchar(50) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_expense`
--

INSERT INTO `db_expense` (`id`, `store_id`, `count_id`, `expense_code`, `category_id`, `expense_date`, `reference_no`, `expense_for`, `expense_amt`, `payment_type`, `account_id`, `note`, `created_by`, `created_date`, `created_time`, `system_ip`, `system_name`, `status`) VALUES
(34, 2, 1, 'EX0001', 60, '2024-07-09', '', 'For Guest', 100.0000, 'CASH', 1, 'অতিথিদের জন্য চা আনা হয়েছিল।', 'admin', '2024-07-09', '11:18:48 am', '::1', 'DESKTOP-GMFRN98', 1),
(35, 2, 2, 'EX0002', 59, '2024-07-09', '4777', 'Lunch', 500.0000, 'CASH', 1, 'লাঞ্ছ করা হয়েছিল', 'admin', '2024-07-09', '11:20:01 am', '::1', 'DESKTOP-GMFRN98', 1),
(36, 2, 3, 'EX0003', 58, '2024-07-09', '655', 'ঝাড়ু কেনা হয়েছে', 200.0000, 'CASH', 1, 'ঝাড়ু কেনা হয়েছিল', 'admin', '2024-07-09', '11:21:13 am', '::1', 'DESKTOP-GMFRN98', 1),
(37, 2, 4, 'EX0004', 61, '2024-07-09', '', 'যাতায়াত ভাড়া', 1200.0000, 'CASH', 1, 'স্টাফদের যাতায়াত ভাড়া', 'admin', '2024-07-09', '11:22:21 am', '::1', 'DESKTOP-GMFRN98', 1),
(38, 2, 5, 'EX0005', 58, '2024-07-10', '', 'Flor Clean Koriyechi', 200.0000, 'CASH', 1, '', 'admin', '2024-07-10', '12:43:10 pm', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', 1),
(39, 2, 6, 'EX0006', 62, '2024-08-19', 'Salary of August 24', 'Karim Salary', 20000.0000, 'CASH', 1, 'Salary of August 24', 'admin', '2024-08-19', '01:31:57 am', '103.59.179.21', '103.59.179.21', 1);

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

--
-- Table structure for table `db_expense_category`
--

CREATE TABLE `db_expense_category` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `category_code` varchar(50) DEFAULT NULL,
  `category_name` varchar(50) DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_expense_category`
--

INSERT INTO `db_expense_category` (`id`, `store_id`, `category_code`, `category_name`, `description`, `created_by`, `status`) VALUES
(58, 2, 'EC0001', 'Cleaning', '', 'user_67930', 1),
(59, 2, 'EC0059', 'Lunch', '', 'user_67930', 1),
(60, 2, 'EC0060', 'Tea Bill', '', 'user_67930', 1),
(61, 2, 'EC0061', 'Traveling', '', 'user_67930', 1),
(62, 2, 'EC0062', 'Staff Salary', 'Monthly Salary', 'admin', 1);

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

--
-- Table structure for table `db_fivemojo`
--

CREATE TABLE `db_fivemojo` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `token` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `instance_id` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `status` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_fivemojo`
--

INSERT INTO `db_fivemojo` (`id`, `store_id`, `url`, `token`, `instance_id`, `status`) VALUES
(4, 2, 'https://app.fivemojo.com/api/send.php', '', '', 0);

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

--
-- Table structure for table `db_hold`
--

CREATE TABLE `db_hold` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `reference_id` varchar(50) DEFAULT NULL COMMENT 'Temprary',
  `reference_no` varchar(50) DEFAULT NULL,
  `sales_date` date DEFAULT NULL,
  `sales_status` varchar(50) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `other_charges_input` double(20,2) DEFAULT NULL,
  `other_charges_tax_id` int(11) DEFAULT NULL,
  `other_charges_amt` double(20,2) DEFAULT NULL,
  `discount_to_all_input` double(20,2) DEFAULT NULL,
  `discount_to_all_type` varchar(50) DEFAULT NULL,
  `tot_discount_to_all_amt` double(20,2) DEFAULT NULL,
  `subtotal` double(20,2) DEFAULT NULL,
  `round_off` double(20,2) DEFAULT NULL,
  `grand_total` double(20,4) DEFAULT NULL,
  `sales_note` text DEFAULT NULL,
  `pos` int(11) DEFAULT NULL COMMENT '1=yes 0=no'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_holditems`
--

CREATE TABLE `db_holditems` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `hold_id` int(11) DEFAULT NULL,
  `item_id` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `sales_qty` double(20,2) DEFAULT NULL,
  `price_per_unit` double(20,4) DEFAULT NULL,
  `tax_type` varchar(50) DEFAULT NULL,
  `tax_id` int(11) DEFAULT NULL,
  `tax_amt` double(20,4) DEFAULT NULL,
  `discount_type` varchar(50) DEFAULT NULL,
  `discount_input` double(20,4) DEFAULT NULL,
  `discount_amt` double(20,4) DEFAULT NULL,
  `unit_total_cost` double(20,4) DEFAULT NULL,
  `total_cost` double(20,4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_instamojo`
--

CREATE TABLE `db_instamojo` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `sandbox` int(11) DEFAULT NULL,
  `api_key` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `api_token` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `updated_at` date DEFAULT NULL,
  `updated_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_instamojo`
--

INSERT INTO `db_instamojo` (`id`, `store_id`, `sandbox`, `api_key`, `api_token`, `updated_at`, `updated_by`, `status`) VALUES
(1, 1, 1, '', '', '2021-02-22', 'Admin', 1);

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

--
-- Table structure for table `db_instamojopayments`
--

CREATE TABLE `db_instamojopayments` (
  `id` int(10) UNSIGNED NOT NULL,
  `phone` varchar(25) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `email` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `buyer_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `amount` decimal(16,2) NOT NULL,
  `purpose` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `expires_at` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `status` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `send_sms` varchar(5) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'false',
  `send_email` varchar(5) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'false',
  `sms_status` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `email_status` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `shorturl` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `longurl` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `redirect_url` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `webhook` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `allow_repeated_payments` varchar(5) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'false',
  `customer_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `created_at` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `modified_at` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_items`
--

CREATE TABLE `db_items` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL COMMENT 'Use to create ITEM Code',
  `item_code` varchar(50) DEFAULT NULL,
  `item_name` varchar(100) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `sku` varchar(50) DEFAULT NULL,
  `hsn` varchar(50) DEFAULT NULL,
  `sac` varchar(50) DEFAULT NULL,
  `unit_id` int(11) DEFAULT NULL,
  `alert_qty` int(11) DEFAULT NULL,
  `brand_id` int(11) DEFAULT NULL,
  `lot_number` varchar(50) DEFAULT NULL,
  `expire_date` date DEFAULT NULL,
  `price` double(20,4) DEFAULT NULL,
  `tax_id` int(11) DEFAULT NULL,
  `purchase_price` double(20,4) DEFAULT NULL,
  `tax_type` varchar(50) DEFAULT NULL,
  `profit_margin` double(20,2) DEFAULT NULL,
  `sales_price` double(20,4) DEFAULT NULL,
  `stock` double(20,2) DEFAULT NULL,
  `item_image` text DEFAULT NULL,
  `system_ip` varchar(50) DEFAULT NULL,
  `system_name` varchar(50) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `discount_type` varchar(100) DEFAULT 'Percentage',
  `discount` double(20,2) DEFAULT 0.00,
  `service_bit` int(11) DEFAULT 0,
  `seller_points` double(20,2) DEFAULT 0.00,
  `custom_barcode` varchar(100) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `item_group` varchar(50) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `variant_id` int(11) DEFAULT NULL,
  `child_bit` int(11) DEFAULT 0,
  `mrp` double(20,4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_items`
--

INSERT INTO `db_items` (`id`, `store_id`, `count_id`, `item_code`, `item_name`, `category_id`, `sku`, `hsn`, `sac`, `unit_id`, `alert_qty`, `brand_id`, `lot_number`, `expire_date`, `price`, `tax_id`, `purchase_price`, `tax_type`, `profit_margin`, `sales_price`, `stock`, `item_image`, `system_ip`, `system_name`, `created_date`, `created_time`, `created_by`, `company_id`, `status`, `discount_type`, `discount`, `service_bit`, `seller_points`, `custom_barcode`, `description`, `item_group`, `parent_id`, `variant_id`, `child_bit`, `mrp`) VALUES
(1, 2, 1, 'IT020001', 'Iphone 15 Pro Max', 82, '', '', NULL, 61, 10, 330, NULL, NULL, 15000.0000, 150, 15000.0000, 'Inclusive', 46.67, 22000.0000, 99998880.00, 'uploads/items/1720468353.jpg', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '01:52:33 am', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '44577754432555', '', 'Single', NULL, NULL, 0, 0.0000),
(2, 2, 2, 'IT020002', 'Denim Pant for men&#039;s', 84, '', '', NULL, 61, 10, 331, NULL, NULL, 300.0000, 150, 300.0000, 'Inclusive', 73.00, 520.0000, 10098933.00, 'uploads/items/1720504218.jpg', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '11:50:18 am', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '', '', 'Single', NULL, NULL, 0, 0.0000),
(3, 2, 3, 'IT020003', 'Men&#039;s Shirt', 84, '', '', NULL, 61, 0, 329, NULL, NULL, 300.0000, 150, 300.0000, 'Inclusive', 50.00, 450.0000, 1098990.00, 'uploads/items/1720504518.jpg', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '11:55:18 am', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '4578222', '', 'Single', NULL, NULL, 0, 0.0000),
(4, 2, 4, 'IT020004', 'Chiken', 83, '', '', NULL, 62, 10, 0, NULL, NULL, 180.0000, 150, 180.0000, 'Inclusive', 22.22, 220.0000, 99999796.00, 'uploads/items/1720504803.png', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '12:00:03 pm', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '5555555533', '', 'Single', NULL, NULL, 0, 0.0000),
(5, 2, 5, 'IT020005', 'Egg', 83, '', '', NULL, 61, 0, 0, NULL, NULL, 10.0000, 150, 10.0000, 'Inclusive', 20.00, 12.0000, 9999999984.00, 'uploads/items/1720504912.png', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '12:01:52 pm', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '4332222', '', 'Single', NULL, NULL, 0, 0.0000),
(6, 2, 6, 'IT020006', 'Rice', 83, '', '', NULL, 62, 10, 328, NULL, NULL, 35.0000, 150, 35.0000, 'Inclusive', 28.57, 45.0000, 999986.00, 'uploads/items/1720505022.png', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '12:03:42 pm', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '3221555', '', 'Single', NULL, NULL, 0, 0.0000),
(7, 2, 7, 'IT020007', 'Moricer Gura', 83, '', '', NULL, 61, 64, 329, NULL, NULL, 8.0000, 150, 8.0000, 'Inclusive', 50.00, 12.0000, 99999008.00, 'uploads/items/1720505141.jpg', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '12:05:41 pm', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '321155677', '', 'Single', NULL, NULL, 0, 0.0000),
(8, 2, 8, 'IT020008', 'Holuder Gura', 83, '', '', NULL, 61, 10, 328, NULL, NULL, 12.0000, 150, 12.0000, 'Inclusive', 25.00, 15.0000, 9998993.00, 'uploads/items/1720505302.jpg', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '12:08:22 pm', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '66422111', '', 'Single', NULL, NULL, 0, 0.0000),
(9, 2, 9, 'IT020009', 'Women&#039;s Sharee', 84, '', '', NULL, 61, 10, 0, NULL, NULL, 400.0000, 150, 400.0000, 'Inclusive', 25.00, 500.0000, 98996.00, 'uploads/items/1720505656.png', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '12:14:16 pm', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '12345', '', 'Single', NULL, NULL, 0, 0.0000),
(10, 2, 10, 'IT020010', 'Tshirt', 84, '', '', NULL, 61, 5, 328, NULL, NULL, 400.0000, 150, 400.0000, 'Inclusive', 25.00, 500.0000, 9998998.00, 'uploads/items/1720505772.jpg', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '12:16:12 pm', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '456777', '', 'Single', NULL, NULL, 0, 0.0000),
(11, 2, 11, 'IT020011', 'Mashroom', 83, '', '', NULL, 61, 5, 328, NULL, NULL, 10.0000, 150, 10.0000, 'Inclusive', 20.00, 12.0000, 0.00, 'uploads/items/1720507325.png', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '12:42:05 pm', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '44577754432555', '', 'Single', NULL, NULL, 0, 0.0000),
(12, 2, 12, 'IT020012', 'Kalolite Capsulle', 85, '', '', NULL, 61, 5, 333, NULL, NULL, 20.0000, 150, 20.0000, 'Inclusive', 50.00, 30.0000, 18.00, 'uploads/items/1720594148.png', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '2024-07-10', '12:49:08 pm', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '44577754432555', 'vcbbcvbvbvc', 'Single', NULL, NULL, 0, 50.0000),
(13, 2, 13, 'IT020013', 'tplink', 82, '', '', NULL, 64, 0, 0, NULL, NULL, 2250.0000, 150, 2250.0000, 'Inclusive', 0.00, 2250.0000, NULL, NULL, '114.130.189.19', '114.130.189.19', '2024-07-14', '10:47:20 am', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '', '', 'Single', NULL, NULL, 0, 0.0000),
(14, 2, 14, 'IT020014', 'tplink c54', 82, '', '', NULL, 64, 0, 331, NULL, NULL, 2250.0000, 150, 2250.0000, 'Inclusive', 0.00, 0.0000, 10.00, NULL, '114.130.189.19', '114.130.189.19', '2024-07-14', '10:52:51 am', 'admin', NULL, 1, 'Percentage', 0.00, 0, 2250.00, '', '', 'Single', NULL, NULL, 0, 0.0000),
(15, 2, 15, 'IT020015', 'kk', 82, '', '', NULL, 64, 0, 0, NULL, NULL, 1200.0000, 150, 1200.0000, 'Exclusive', 0.00, 1200.0000, NULL, NULL, '37.111.211.73', '37.111.211.73', '2024-07-15', '04:45:19 pm', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '', '', 'Single', NULL, NULL, 0, 1100.0000),
(16, 2, 16, 'IT020016', 'As123', 82, NULL, '12 am ', '', NULL, NULL, NULL, NULL, NULL, 1000.0000, 150, 1000.0000, 'Inclusive', NULL, 1000.0000, NULL, 'uploads/items/1722495974.jpg', '115.164.210.7', 'UE7.210.digi.net.my', '2024-08-01', '01:06:14 pm', 'admin', NULL, 1, 'Fixed', 0.00, 1, 0.00, '', '133\r\nEkk\r\nEkk\r\nJgv', NULL, NULL, NULL, 0, NULL),
(17, 2, 17, 'IT020017', 'Kiau', 82, 'Snsjhdh', 'Ndsnihshsj', NULL, 61, 110100, 328, NULL, NULL, 182737.0000, 150, 182737.0000, 'Exclusive', 10.00, 201010.7000, NULL, NULL, '182.48.69.235', '182.48.69.235', '2024-08-03', '01:17:12 am', 'admin', NULL, 1, 'Percentage', 20.00, 0, 0.00, '17363683', 'Test', 'Single', NULL, NULL, 0, 1727.0000),
(18, 2, 18, 'IT020018', 'cctv', 82, '', '', NULL, 61, 0, 328, NULL, NULL, 2000.0000, 150, 2000.0000, 'Inclusive', 10.00, 2200.0000, 34.00, NULL, '103.197.248.45', '103.197.248-45.eurotelbd.net', '2024-08-11', '07:09:49 pm', 'admin', NULL, 1, 'Percentage', 0.00, 0, 0.00, '', '', 'Single', NULL, NULL, 0, 0.0000),
(19, 2, 19, 'IT020019', 'Ball Pen', 83, '', '', NULL, 61, 20, 331, NULL, NULL, 100.0000, 150, 100.0000, 'Inclusive', 0.00, 100.0000, 0.00, NULL, '103.59.179.21', '103.59.179.21', '2024-08-19', '12:28:11 am', 'admin', NULL, 1, 'Percentage', 3.00, 0, 2.00, 'FAR125ID', '', 'Single', NULL, NULL, 0, 100.0000);

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

--
-- Table structure for table `db_languages`
--

CREATE TABLE `db_languages` (
  `id` int(11) NOT NULL,
  `language` varchar(50) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_languages`
--

INSERT INTO `db_languages` (`id`, `language`, `status`) VALUES
(1, 'English', 1),
(5, 'Bangla', 1);

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

--
-- Table structure for table `db_package`
--

CREATE TABLE `db_package` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `package_type` varchar(50) DEFAULT NULL,
  `package_code` varchar(20) DEFAULT NULL,
  `package_name` varchar(50) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `monthly_price` double(20,2) DEFAULT NULL,
  `annual_price` double(20,2) DEFAULT NULL,
  `trial_days` int(11) DEFAULT NULL,
  `max_users` int(11) DEFAULT NULL,
  `max_items` int(11) DEFAULT NULL,
  `max_invoices` int(11) DEFAULT NULL,
  `max_warehouses` int(11) DEFAULT NULL,
  `expire_date` date DEFAULT NULL,
  `system_ip` varchar(50) DEFAULT NULL,
  `system_name` varchar(50) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(30) DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `plan_type` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_package`
--

INSERT INTO `db_package` (`id`, `store_id`, `package_type`, `package_code`, `package_name`, `description`, `monthly_price`, `annual_price`, `trial_days`, `max_users`, `max_items`, `max_invoices`, `max_warehouses`, `expire_date`, `system_ip`, `system_name`, `created_date`, `created_time`, `created_by`, `status`, `plan_type`) VALUES
(1, 1, 'Free', NULL, 'Free', 'Test description', 0.00, 0.00, 10, 2, 20, 20, 2, '2021-01-14', '127.0.0.1', 'LAPTOP-I5OUIM4R', '2021-01-13', '06:37:21 pm', 'admin', 1, NULL),
(2, 1, 'Paid', NULL, 'Regular', 'Test description', 250.00, 2000.00, 15, 20, 200, 200, 20, NULL, '127.0.0.1', 'LAPTOP-I5OUIM4R', '2021-01-13', '06:39:23 pm', 'admin', 1, NULL),
(3, 1, 'Paid', NULL, 'Ultimate', 'Description', 500.00, 5000.00, 15, -1, -1, -1, -1, NULL, '127.0.0.1', 'LAPTOP-I5OUIM4R', '2021-01-24', '12:35:30 pm', 'admin', 1, NULL);

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

--
-- Table structure for table `db_paymenttypes`
--

CREATE TABLE `db_paymenttypes` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `payment_type` varchar(50) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_paymenttypes`
--

INSERT INTO `db_paymenttypes` (`id`, `store_id`, `payment_type`, `status`) VALUES
(36, 2, 'CASH', 1),
(37, 2, 'Bkash', 1),
(38, 2, 'Rocket', 1),
(39, 2, 'Nagod', 1),
(40, 2, 'Bank', 1);

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

--
-- Table structure for table `db_paypal`
--

CREATE TABLE `db_paypal` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `sandbox` int(11) DEFAULT NULL,
  `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `updated_at` date DEFAULT NULL,
  `updated_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_paypal`
--

INSERT INTO `db_paypal` (`id`, `store_id`, `sandbox`, `email`, `updated_at`, `updated_by`, `status`) VALUES
(1, 1, 1, '', '2021-02-22', 'Admin', 1);

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

--
-- Table structure for table `db_paypalpaylog`
--

CREATE TABLE `db_paypalpaylog` (
  `payment_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `txn_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `payment_gross` float(10,2) NOT NULL,
  `currency_code` varchar(5) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `payer_email` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `payment_status` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_permissions`
--

CREATE TABLE `db_permissions` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `permissions` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_permissions`
--

INSERT INTO `db_permissions` (`id`, `store_id`, `role_id`, `permissions`) VALUES
(4414, 1, 17, 'items_add'),
(4415, 1, 17, 'items_edit'),
(4416, 1, 17, 'items_delete'),
(4417, 1, 17, 'items_view'),
(4418, 1, 17, 'import_items'),
(4419, 1, 17, 'brand_add'),
(4420, 1, 17, 'brand_edit'),
(4421, 1, 17, 'brand_delete'),
(4422, 1, 17, 'brand_view'),
(4423, 1, 17, 'customers_add'),
(4424, 1, 17, 'customers_edit'),
(4425, 1, 17, 'customers_delete'),
(4426, 1, 17, 'customers_view'),
(4427, 1, 17, 'sales_add'),
(4428, 1, 17, 'sales_edit'),
(4429, 1, 17, 'sales_delete'),
(4430, 1, 17, 'sales_view'),
(4431, 1, 17, 'sales_payment_view'),
(4432, 1, 17, 'sales_payment_add'),
(4433, 1, 17, 'sales_payment_delete'),
(4434, 1, 17, 'sales_report'),
(4435, 1, 17, 'sales_payments_report'),
(4436, 1, 17, 'items_category_add'),
(4437, 1, 17, 'items_category_edit'),
(4438, 1, 17, 'items_category_delete'),
(4439, 1, 17, 'items_category_view'),
(4440, 1, 17, 'print_labels'),
(4441, 1, 17, 'dashboard_view'),
(4442, 1, 17, 'dashboard_info_box_1'),
(4443, 1, 17, 'dashboard_info_box_2'),
(4444, 1, 17, 'dashboard_pur_sal_chart'),
(4445, 1, 17, 'dashboard_recent_items'),
(4446, 1, 17, 'dashboard_stock_alert'),
(4447, 1, 17, 'dashboard_trending_items_chart'),
(4448, 1, 17, 'sales_return_add'),
(4449, 1, 17, 'sales_return_edit'),
(4450, 1, 17, 'sales_return_delete'),
(4451, 1, 17, 'sales_return_view'),
(4452, 1, 17, 'sales_return_report'),
(4453, 1, 17, 'sales_return_payment_view'),
(4454, 1, 17, 'sales_return_payment_add'),
(4455, 1, 17, 'sales_return_payment_delete'),
(4456, 1, 17, 'payment_types_add'),
(4457, 1, 17, 'payment_types_edit'),
(4458, 1, 17, 'payment_types_delete'),
(4459, 1, 17, 'payment_types_view'),
(4460, 1, 17, 'import_customers'),
(4461, 1, 17, 'stock_transfer_add'),
(4462, 1, 17, 'stock_transfer_edit'),
(4463, 1, 17, 'stock_transfer_delete'),
(4464, 1, 17, 'stock_transfer_view'),
(4465, 1, 17, 'seller_points_report'),
(4466, 1, 17, 'services_add'),
(4467, 1, 17, 'services_edit'),
(4468, 1, 17, 'services_delete'),
(4469, 1, 17, 'services_view'),
(4470, 1, 17, 'import_services'),
(4471, 1, 17, 'stock_adjustment_add'),
(4472, 1, 17, 'stock_adjustment_edit'),
(4473, 1, 17, 'stock_adjustment_delete'),
(4474, 1, 17, 'stock_adjustment_view'),
(4475, 1, 17, 'variant_add'),
(4476, 1, 17, 'variant_edit'),
(4477, 1, 17, 'variant_delete'),
(4478, 1, 17, 'variant_view'),
(4479, 1, 17, 'accounts_add'),
(4480, 1, 17, 'accounts_edit'),
(4481, 1, 17, 'accounts_delete'),
(4482, 1, 17, 'accounts_view'),
(4483, 1, 17, 'money_transfer_add'),
(4484, 1, 17, 'money_transfer_edit'),
(4485, 1, 17, 'money_transfer_delete'),
(4486, 1, 17, 'money_transfer_view'),
(4487, 1, 17, 'money_deposit_add'),
(4488, 1, 17, 'money_deposit_edit'),
(4489, 1, 17, 'money_deposit_delete'),
(4490, 1, 17, 'money_deposit_view'),
(4491, 1, 17, 'sales_tax_report'),
(4492, 1, 18, 'tax_add'),
(4493, 1, 18, 'tax_edit'),
(4494, 1, 18, 'tax_delete'),
(4495, 1, 18, 'tax_view'),
(4496, 1, 18, 'units_add'),
(4497, 1, 18, 'units_edit'),
(4498, 1, 18, 'units_delete'),
(4499, 1, 18, 'units_view'),
(4500, 1, 18, 'items_add'),
(4501, 1, 18, 'items_edit'),
(4502, 1, 18, 'items_delete'),
(4503, 1, 18, 'items_view'),
(4504, 1, 18, 'import_items'),
(4505, 1, 18, 'brand_add'),
(4506, 1, 18, 'brand_edit'),
(4507, 1, 18, 'brand_delete'),
(4508, 1, 18, 'brand_view'),
(4509, 1, 18, 'suppliers_add'),
(4510, 1, 18, 'suppliers_edit'),
(4511, 1, 18, 'suppliers_delete'),
(4512, 1, 18, 'suppliers_view'),
(4513, 1, 18, 'purchase_add'),
(4514, 1, 18, 'purchase_edit'),
(4515, 1, 18, 'purchase_delete'),
(4516, 1, 18, 'purchase_view'),
(4517, 1, 18, 'purchase_report'),
(4518, 1, 18, 'purchase_payments_report'),
(4519, 1, 18, 'items_category_add'),
(4520, 1, 18, 'items_category_edit'),
(4521, 1, 18, 'items_category_delete'),
(4522, 1, 18, 'items_category_view'),
(4523, 1, 18, 'print_labels'),
(4524, 1, 18, 'dashboard_view'),
(4525, 1, 18, 'dashboard_info_box_1'),
(4526, 1, 18, 'dashboard_info_box_2'),
(4527, 1, 18, 'dashboard_pur_sal_chart'),
(4528, 1, 18, 'dashboard_recent_items'),
(4529, 1, 18, 'dashboard_stock_alert'),
(4530, 1, 18, 'dashboard_trending_items_chart'),
(4531, 1, 18, 'purchase_return_add'),
(4532, 1, 18, 'purchase_return_edit'),
(4533, 1, 18, 'purchase_return_delete'),
(4534, 1, 18, 'purchase_return_view'),
(4535, 1, 18, 'purchase_return_report'),
(4536, 1, 18, 'purchase_return_payment_view'),
(4537, 1, 18, 'purchase_return_payment_add'),
(4538, 1, 18, 'purchase_return_payment_delete'),
(4539, 1, 18, 'purchase_payment_view'),
(4540, 1, 18, 'purchase_payment_add'),
(4541, 1, 18, 'purchase_payment_delete'),
(4542, 1, 18, 'payment_types_add'),
(4543, 1, 18, 'payment_types_edit'),
(4544, 1, 18, 'payment_types_delete'),
(4545, 1, 18, 'payment_types_view'),
(4546, 1, 18, 'import_suppliers'),
(4547, 1, 18, 'stock_transfer_add'),
(4548, 1, 18, 'stock_transfer_edit'),
(4549, 1, 18, 'stock_transfer_delete'),
(4550, 1, 18, 'stock_transfer_view'),
(4551, 1, 18, 'warehouse_add'),
(4552, 1, 18, 'warehouse_edit'),
(4553, 1, 18, 'warehouse_delete'),
(4554, 1, 18, 'warehouse_view'),
(4555, 1, 18, 'services_add'),
(4556, 1, 18, 'services_edit'),
(4557, 1, 18, 'services_delete'),
(4558, 1, 18, 'services_view'),
(4559, 1, 18, 'import_services'),
(4560, 1, 18, 'stock_adjustment_add'),
(4561, 1, 18, 'stock_adjustment_edit'),
(4562, 1, 18, 'stock_adjustment_delete'),
(4563, 1, 18, 'stock_adjustment_view'),
(4564, 1, 18, 'variant_add'),
(4565, 1, 18, 'variant_edit'),
(4566, 1, 18, 'variant_delete'),
(4567, 1, 18, 'variant_view'),
(4568, 1, 18, 'accounts_add'),
(4569, 1, 18, 'accounts_edit'),
(4570, 1, 18, 'accounts_delete'),
(4571, 1, 18, 'accounts_view'),
(4572, 1, 18, 'money_transfer_add'),
(4573, 1, 18, 'money_transfer_edit'),
(4574, 1, 18, 'money_transfer_delete'),
(4575, 1, 18, 'money_transfer_view'),
(4576, 1, 18, 'money_deposit_add'),
(4577, 1, 18, 'money_deposit_edit'),
(4578, 1, 18, 'money_deposit_delete'),
(4579, 1, 18, 'money_deposit_view'),
(4580, 1, 18, 'purchase_tax_report'),
(5818, 1, 2, 'users_add'),
(5819, 1, 2, 'users_edit'),
(5820, 1, 2, 'users_delete'),
(5821, 1, 2, 'users_view'),
(5822, 1, 2, 'tax_add'),
(5823, 1, 2, 'tax_edit'),
(5824, 1, 2, 'tax_delete'),
(5825, 1, 2, 'tax_view'),
(5826, 1, 2, 'store_edit'),
(5827, 1, 2, 'units_add'),
(5828, 1, 2, 'units_edit'),
(5829, 1, 2, 'units_delete'),
(5830, 1, 2, 'units_view'),
(5831, 1, 2, 'roles_add'),
(5832, 1, 2, 'roles_edit'),
(5833, 1, 2, 'roles_delete'),
(5834, 1, 2, 'roles_view'),
(5835, 1, 2, 'expense_add'),
(5836, 1, 2, 'expense_edit'),
(5837, 1, 2, 'expense_delete'),
(5838, 1, 2, 'expense_view'),
(5839, 1, 2, 'items_add'),
(5840, 1, 2, 'items_edit'),
(5841, 1, 2, 'items_delete'),
(5842, 1, 2, 'items_view'),
(5843, 1, 2, 'import_items'),
(5844, 1, 2, 'brand_add'),
(5845, 1, 2, 'brand_edit'),
(5846, 1, 2, 'brand_delete'),
(5847, 1, 2, 'brand_view'),
(5848, 1, 2, 'suppliers_add'),
(5849, 1, 2, 'suppliers_edit'),
(5850, 1, 2, 'suppliers_delete'),
(5851, 1, 2, 'suppliers_view'),
(5852, 1, 2, 'customers_add'),
(5853, 1, 2, 'customers_edit'),
(5854, 1, 2, 'customers_delete'),
(5855, 1, 2, 'customers_view'),
(5856, 1, 2, 'purchase_add'),
(5857, 1, 2, 'purchase_edit'),
(5858, 1, 2, 'purchase_delete'),
(5859, 1, 2, 'purchase_view'),
(5860, 1, 2, 'sales_add'),
(5861, 1, 2, 'sales_edit'),
(5862, 1, 2, 'sales_delete'),
(5863, 1, 2, 'sales_view'),
(5864, 1, 2, 'sales_payment_view'),
(5865, 1, 2, 'sales_payment_add'),
(5866, 1, 2, 'sales_payment_delete'),
(5867, 1, 2, 'sales_report'),
(5868, 1, 2, 'purchase_report'),
(5869, 1, 2, 'expense_report'),
(5870, 1, 2, 'profit_report'),
(5871, 1, 2, 'stock_report'),
(5872, 1, 2, 'item_sales_report'),
(5873, 1, 2, 'purchase_payments_report'),
(5874, 1, 2, 'sales_payments_report'),
(5875, 1, 2, 'items_category_add'),
(5876, 1, 2, 'items_category_edit'),
(5877, 1, 2, 'items_category_delete'),
(5878, 1, 2, 'items_category_view'),
(5879, 1, 2, 'print_labels'),
(5880, 1, 2, 'expense_category_add'),
(5881, 1, 2, 'expense_category_edit'),
(5882, 1, 2, 'expense_category_delete'),
(5883, 1, 2, 'expense_category_view'),
(5884, 1, 2, 'dashboard_view'),
(5885, 1, 2, 'dashboard_info_box_1'),
(5886, 1, 2, 'dashboard_info_box_2'),
(5887, 1, 2, 'dashboard_pur_sal_chart'),
(5888, 1, 2, 'dashboard_recent_items'),
(5889, 1, 2, 'dashboard_stock_alert'),
(5890, 1, 2, 'dashboard_trending_items_chart'),
(5891, 1, 2, 'send_sms'),
(5892, 1, 2, 'sms_template_edit'),
(5893, 1, 2, 'sms_template_view'),
(5894, 1, 2, 'sms_api_view'),
(5895, 1, 2, 'sms_api_edit'),
(5896, 1, 2, 'purchase_return_add'),
(5897, 1, 2, 'purchase_return_edit'),
(5898, 1, 2, 'purchase_return_delete'),
(5899, 1, 2, 'purchase_return_view'),
(5900, 1, 2, 'purchase_return_report'),
(5901, 1, 2, 'sales_return_add'),
(5902, 1, 2, 'sales_return_edit'),
(5903, 1, 2, 'sales_return_delete'),
(5904, 1, 2, 'sales_return_view'),
(5905, 1, 2, 'sales_return_report'),
(5906, 1, 2, 'sales_return_payment_view'),
(5907, 1, 2, 'sales_return_payment_add'),
(5908, 1, 2, 'sales_return_payment_delete'),
(5909, 1, 2, 'purchase_return_payment_view'),
(5910, 1, 2, 'purchase_return_payment_add'),
(5911, 1, 2, 'purchase_return_payment_delete'),
(5912, 1, 2, 'purchase_payment_view'),
(5913, 1, 2, 'purchase_payment_add'),
(5914, 1, 2, 'purchase_payment_delete'),
(5915, 1, 2, 'payment_types_add'),
(5916, 1, 2, 'payment_types_edit'),
(5917, 1, 2, 'payment_types_delete'),
(5918, 1, 2, 'payment_types_view'),
(5919, 1, 2, 'import_customers'),
(5920, 1, 2, 'import_suppliers'),
(5921, 1, 2, 'stock_transfer_add'),
(5922, 1, 2, 'stock_transfer_edit'),
(5923, 1, 2, 'stock_transfer_delete'),
(5924, 1, 2, 'stock_transfer_view'),
(5925, 1, 2, 'warehouse_add'),
(5926, 1, 2, 'warehouse_edit'),
(5927, 1, 2, 'warehouse_delete'),
(5928, 1, 2, 'warehouse_view'),
(5929, 1, 2, 'supplier_items_report'),
(5930, 1, 2, 'seller_points_report'),
(5931, 1, 2, 'services_add'),
(5932, 1, 2, 'services_edit'),
(5933, 1, 2, 'services_delete'),
(5934, 1, 2, 'services_view'),
(5935, 1, 2, 'quotation_add'),
(5936, 1, 2, 'quotation_edit'),
(5937, 1, 2, 'quotation_delete'),
(5938, 1, 2, 'quotation_view'),
(5939, 1, 2, 'import_services'),
(5940, 1, 2, 'stock_adjustment_add'),
(5941, 1, 2, 'stock_adjustment_edit'),
(5942, 1, 2, 'stock_adjustment_delete'),
(5943, 1, 2, 'stock_adjustment_view'),
(5944, 1, 2, 'variant_add'),
(5945, 1, 2, 'variant_edit'),
(5946, 1, 2, 'variant_delete'),
(5947, 1, 2, 'variant_view'),
(5948, 1, 2, 'accounts_add'),
(5949, 1, 2, 'accounts_edit'),
(5950, 1, 2, 'accounts_delete'),
(5951, 1, 2, 'accounts_view'),
(5952, 1, 2, 'money_transfer_add'),
(5953, 1, 2, 'money_transfer_edit'),
(5954, 1, 2, 'money_transfer_delete'),
(5955, 1, 2, 'money_transfer_view'),
(5956, 1, 2, 'money_deposit_add'),
(5957, 1, 2, 'money_deposit_edit'),
(5958, 1, 2, 'money_deposit_delete'),
(5959, 1, 2, 'money_deposit_view'),
(5960, 1, 2, 'sales_tax_report'),
(5961, 1, 2, 'purchase_tax_report'),
(5962, 1, 2, 'cash_transactions'),
(5963, 1, 2, 'show_all_users_sales_invoices'),
(5964, 1, 2, 'show_all_users_sales_return_invoices'),
(5965, 1, 2, 'show_all_users_purchase_invoices'),
(5966, 1, 2, 'show_all_users_purchase_return_invoices'),
(5967, 1, 2, 'show_all_users_expenses'),
(5968, 1, 2, 'show_all_users_quotations'),
(5969, 1, 2, 'subscription'),
(5970, 1, 2, 'smtp_settings'),
(5971, 1, 2, 'send_email'),
(5972, 1, 2, 'sms_settings'),
(5973, 1, 2, 'email_template_edit'),
(5974, 1, 2, 'email_template_view'),
(5975, 1, 2, 'cust_adv_payments_add'),
(5976, 1, 2, 'cust_adv_payments_edit'),
(5977, 1, 2, 'cust_adv_payments_delete'),
(5978, 1, 2, 'cust_adv_payments_view'),
(5999, 2, 28, 'cust_adv_payments_add'),
(6000, 2, 28, 'cust_adv_payments_edit'),
(6001, 2, 28, 'cust_adv_payments_delete'),
(6002, 2, 28, 'cust_adv_payments_view'),
(6011, 2, 29, 'users_add'),
(6012, 2, 29, 'users_edit'),
(6013, 2, 29, 'users_delete'),
(6014, 2, 29, 'users_view'),
(6015, 2, 29, 'tax_add'),
(6016, 2, 29, 'tax_edit'),
(6017, 2, 29, 'tax_delete'),
(6018, 2, 29, 'tax_view'),
(6019, 2, 29, 'store_edit'),
(6020, 2, 29, 'units_add'),
(6021, 2, 29, 'units_edit'),
(6022, 2, 29, 'units_delete'),
(6023, 2, 29, 'units_view'),
(6024, 2, 29, 'roles_add'),
(6025, 2, 29, 'roles_edit'),
(6026, 2, 29, 'roles_delete'),
(6027, 2, 29, 'roles_view'),
(6028, 2, 29, 'expense_add'),
(6029, 2, 29, 'expense_edit'),
(6030, 2, 29, 'expense_delete'),
(6031, 2, 29, 'expense_view'),
(6032, 2, 29, 'items_add'),
(6033, 2, 29, 'items_edit'),
(6034, 2, 29, 'items_delete'),
(6035, 2, 29, 'items_view'),
(6036, 2, 29, 'import_items'),
(6037, 2, 29, 'brand_add'),
(6038, 2, 29, 'brand_edit'),
(6039, 2, 29, 'brand_delete'),
(6040, 2, 29, 'brand_view'),
(6041, 2, 29, 'suppliers_add'),
(6042, 2, 29, 'suppliers_edit'),
(6043, 2, 29, 'suppliers_delete'),
(6044, 2, 29, 'suppliers_view'),
(6045, 2, 29, 'customers_add'),
(6046, 2, 29, 'customers_edit'),
(6047, 2, 29, 'customers_delete'),
(6048, 2, 29, 'customers_view'),
(6049, 2, 29, 'purchase_add'),
(6050, 2, 29, 'purchase_edit'),
(6051, 2, 29, 'purchase_delete'),
(6052, 2, 29, 'purchase_view'),
(6053, 2, 29, 'sales_add'),
(6054, 2, 29, 'sales_edit'),
(6055, 2, 29, 'sales_delete'),
(6056, 2, 29, 'sales_view'),
(6057, 2, 29, 'sales_payment_view'),
(6058, 2, 29, 'sales_payment_add'),
(6059, 2, 29, 'sales_payment_delete'),
(6060, 2, 29, 'sales_report'),
(6061, 2, 29, 'purchase_report'),
(6062, 2, 29, 'expense_report'),
(6063, 2, 29, 'profit_report'),
(6064, 2, 29, 'stock_report'),
(6065, 2, 29, 'item_sales_report'),
(6066, 2, 29, 'purchase_payments_report'),
(6067, 2, 29, 'sales_payments_report'),
(6068, 2, 29, 'items_category_add'),
(6069, 2, 29, 'items_category_edit'),
(6070, 2, 29, 'items_category_delete'),
(6071, 2, 29, 'items_category_view'),
(6072, 2, 29, 'print_labels'),
(6073, 2, 29, 'expense_category_add'),
(6074, 2, 29, 'expense_category_edit'),
(6075, 2, 29, 'expense_category_delete'),
(6076, 2, 29, 'expense_category_view'),
(6077, 2, 29, 'dashboard_view'),
(6078, 2, 29, 'dashboard_info_box_1'),
(6079, 2, 29, 'dashboard_info_box_2'),
(6080, 2, 29, 'dashboard_pur_sal_chart'),
(6081, 2, 29, 'dashboard_recent_items'),
(6082, 2, 29, 'dashboard_stock_alert'),
(6083, 2, 29, 'dashboard_trending_items_chart'),
(6084, 2, 29, 'send_sms'),
(6085, 2, 29, 'sms_template_edit'),
(6086, 2, 29, 'sms_template_view'),
(6087, 2, 29, 'sms_api_view'),
(6088, 2, 29, 'sms_api_edit'),
(6089, 2, 29, 'purchase_return_add'),
(6090, 2, 29, 'purchase_return_edit'),
(6091, 2, 29, 'purchase_return_delete'),
(6092, 2, 29, 'purchase_return_view'),
(6093, 2, 29, 'purchase_return_report'),
(6094, 2, 29, 'sales_return_add'),
(6095, 2, 29, 'sales_return_edit'),
(6096, 2, 29, 'sales_return_delete'),
(6097, 2, 29, 'sales_return_view'),
(6098, 2, 29, 'sales_return_report'),
(6099, 2, 29, 'sales_return_payment_view'),
(6100, 2, 29, 'sales_return_payment_add'),
(6101, 2, 29, 'sales_return_payment_delete'),
(6102, 2, 29, 'purchase_return_payment_view'),
(6103, 2, 29, 'purchase_return_payment_add'),
(6104, 2, 29, 'purchase_return_payment_delete'),
(6105, 2, 29, 'purchase_payment_view'),
(6106, 2, 29, 'purchase_payment_add'),
(6107, 2, 29, 'purchase_payment_delete'),
(6108, 2, 29, 'payment_types_add'),
(6109, 2, 29, 'payment_types_edit'),
(6110, 2, 29, 'payment_types_delete'),
(6111, 2, 29, 'payment_types_view'),
(6112, 2, 29, 'import_customers'),
(6113, 2, 29, 'import_suppliers'),
(6114, 2, 29, 'stock_transfer_add'),
(6115, 2, 29, 'stock_transfer_edit'),
(6116, 2, 29, 'stock_transfer_delete'),
(6117, 2, 29, 'stock_transfer_view'),
(6118, 2, 29, 'warehouse_add'),
(6119, 2, 29, 'warehouse_edit'),
(6120, 2, 29, 'warehouse_delete'),
(6121, 2, 29, 'warehouse_view'),
(6122, 2, 29, 'supplier_items_report'),
(6123, 2, 29, 'seller_points_report'),
(6124, 2, 29, 'services_add'),
(6125, 2, 29, 'services_edit'),
(6126, 2, 29, 'services_delete'),
(6127, 2, 29, 'services_view'),
(6128, 2, 29, 'quotation_add'),
(6129, 2, 29, 'quotation_edit'),
(6130, 2, 29, 'quotation_delete'),
(6131, 2, 29, 'quotation_view'),
(6132, 2, 29, 'import_services'),
(6133, 2, 29, 'stock_adjustment_add'),
(6134, 2, 29, 'stock_adjustment_edit'),
(6135, 2, 29, 'stock_adjustment_delete'),
(6136, 2, 29, 'stock_adjustment_view'),
(6137, 2, 29, 'variant_add'),
(6138, 2, 29, 'variant_edit'),
(6139, 2, 29, 'variant_delete'),
(6140, 2, 29, 'variant_view'),
(6141, 2, 29, 'accounts_add'),
(6142, 2, 29, 'accounts_edit'),
(6143, 2, 29, 'accounts_delete'),
(6144, 2, 29, 'accounts_view'),
(6145, 2, 29, 'money_transfer_add'),
(6146, 2, 29, 'money_transfer_edit'),
(6147, 2, 29, 'money_transfer_delete'),
(6148, 2, 29, 'money_transfer_view'),
(6149, 2, 29, 'money_deposit_add'),
(6150, 2, 29, 'money_deposit_edit'),
(6151, 2, 29, 'money_deposit_delete'),
(6152, 2, 29, 'money_deposit_view'),
(6153, 2, 29, 'sales_tax_report'),
(6154, 2, 29, 'purchase_tax_report'),
(6155, 2, 29, 'cash_transactions'),
(6156, 2, 29, 'show_all_users_sales_invoices'),
(6157, 2, 29, 'show_all_users_sales_return_invoices'),
(6158, 2, 29, 'show_all_users_purchase_invoices'),
(6159, 2, 29, 'show_all_users_purchase_return_invoices'),
(6160, 2, 29, 'show_all_users_expenses'),
(6161, 2, 29, 'show_all_users_quotations'),
(6162, 2, 29, 'smtp_settings'),
(6163, 2, 29, 'send_email'),
(6164, 2, 29, 'sms_settings'),
(6165, 2, 29, 'email_template_edit'),
(6166, 2, 29, 'email_template_view'),
(6167, 2, 29, 'cust_adv_payments_add'),
(6168, 2, 29, 'cust_adv_payments_edit'),
(6169, 2, 29, 'cust_adv_payments_delete'),
(6170, 2, 29, 'cust_adv_payments_view'),
(6179, 1, 2, 'gstr_1_report'),
(6180, 1, 2, 'gstr_2_report'),
(6181, 1, 2, 'delivery_sheet_report'),
(6182, 1, 2, 'load_sheet_report'),
(6183, 1, 2, 'show_purchase_price'),
(6184, 1, 2, 'customer_orders_report'),
(6185, 1, 2, 'discountCouponAdd'),
(6186, 1, 2, 'discountCouponEdit'),
(6187, 1, 2, 'discountCouponDelete'),
(6188, 1, 2, 'discountCouponView'),
(6189, 2, 2, 'sales_gst_report'),
(6190, 2, 2, 'purchase_gst_report'),
(6191, 2, 2, 'subscription'),
(6192, 1, 2, 'customerCouponAdd'),
(6193, 1, 2, 'customerCouponEdit'),
(6194, 1, 2, 'customerCouponDelete'),
(6195, 1, 2, 'customerCouponView'),
(6196, 1, 2, 'return_items_report'),
(6197, 1, 2, 'help_link'),
(6198, 2, 31, 'sales_add'),
(6199, 2, 31, 'sales_edit'),
(6200, 2, 31, 'sales_delete'),
(6201, 2, 31, 'sales_view'),
(6202, 2, 31, 'sales_payment_view'),
(6203, 2, 31, 'sales_payment_add'),
(6204, 2, 31, 'sales_payment_delete'),
(6205, 2, 31, 'sales_return_add'),
(6206, 2, 31, 'sales_return_edit'),
(6207, 2, 31, 'sales_return_delete'),
(6208, 2, 31, 'sales_return_view'),
(6209, 2, 31, 'sales_return_payment_view'),
(6210, 2, 31, 'sales_return_payment_add'),
(6211, 2, 31, 'sales_return_payment_delete'),
(6212, 2, 31, 'show_all_users_sales_invoices'),
(6213, 2, 31, 'show_all_users_sales_return_invoices'),
(6214, 2, 31, 'show_purchase_price'),
(6215, 2, 2, 'recent_sales_invoice_list'),
(6216, 1, 2, 'stock_transfer_report'),
(6217, 1, 2, 'pos'),
(6218, 1, 2, 'sales_summary_report'),
(6219, 1, 2, 'sales_return_payments'),
(6220, 2, 32, 'store_edit'),
(6221, 2, 32, 'units_add'),
(6222, 2, 32, 'units_edit'),
(6223, 2, 32, 'units_delete'),
(6224, 2, 32, 'units_view'),
(6225, 2, 32, 'expense_add'),
(6226, 2, 32, 'expense_edit'),
(6227, 2, 32, 'expense_delete'),
(6228, 2, 32, 'expense_view'),
(6229, 2, 32, 'items_add'),
(6230, 2, 32, 'items_edit'),
(6231, 2, 32, 'items_delete'),
(6232, 2, 32, 'items_view'),
(6233, 2, 32, 'import_items'),
(6234, 2, 32, 'brand_add'),
(6235, 2, 32, 'brand_edit'),
(6236, 2, 32, 'brand_delete'),
(6237, 2, 32, 'brand_view'),
(6238, 2, 32, 'suppliers_add'),
(6239, 2, 32, 'suppliers_edit'),
(6240, 2, 32, 'suppliers_delete'),
(6241, 2, 32, 'suppliers_view'),
(6242, 2, 32, 'customers_add'),
(6243, 2, 32, 'customers_edit'),
(6244, 2, 32, 'customers_delete'),
(6245, 2, 32, 'customers_view'),
(6246, 2, 32, 'purchase_add'),
(6247, 2, 32, 'purchase_edit'),
(6248, 2, 32, 'purchase_delete'),
(6249, 2, 32, 'purchase_view'),
(6250, 2, 32, 'sales_add'),
(6251, 2, 32, 'sales_edit'),
(6252, 2, 32, 'sales_delete'),
(6253, 2, 32, 'sales_view'),
(6254, 2, 32, 'sales_payment_view'),
(6255, 2, 32, 'sales_payment_add'),
(6256, 2, 32, 'sales_payment_delete'),
(6257, 2, 32, 'sales_report'),
(6258, 2, 32, 'purchase_report'),
(6259, 2, 32, 'expense_report'),
(6260, 2, 32, 'profit_report'),
(6261, 2, 32, 'stock_report'),
(6262, 2, 32, 'item_sales_report'),
(6263, 2, 32, 'purchase_payments_report'),
(6264, 2, 32, 'sales_payments_report'),
(6265, 2, 32, 'items_category_add'),
(6266, 2, 32, 'items_category_edit'),
(6267, 2, 32, 'items_category_delete'),
(6268, 2, 32, 'items_category_view'),
(6269, 2, 32, 'print_labels'),
(6270, 2, 32, 'expense_category_add'),
(6271, 2, 32, 'expense_category_edit'),
(6272, 2, 32, 'expense_category_delete'),
(6273, 2, 32, 'expense_category_view'),
(6274, 2, 32, 'dashboard_view'),
(6275, 2, 32, 'dashboard_info_box_1'),
(6276, 2, 32, 'dashboard_info_box_2'),
(6277, 2, 32, 'dashboard_pur_sal_chart'),
(6278, 2, 32, 'dashboard_recent_items'),
(6279, 2, 32, 'dashboard_stock_alert'),
(6280, 2, 32, 'dashboard_trending_items_chart'),
(6281, 2, 32, 'send_sms'),
(6282, 2, 32, 'sms_template_edit'),
(6283, 2, 32, 'sms_template_view'),
(6284, 2, 32, 'sms_api_view'),
(6285, 2, 32, 'sms_api_edit'),
(6286, 2, 32, 'purchase_return_add'),
(6287, 2, 32, 'purchase_return_edit'),
(6288, 2, 32, 'purchase_return_delete'),
(6289, 2, 32, 'purchase_return_view'),
(6290, 2, 32, 'purchase_return_report'),
(6291, 2, 32, 'sales_return_report'),
(6292, 2, 32, 'purchase_return_payment_view'),
(6293, 2, 32, 'purchase_return_payment_add'),
(6294, 2, 32, 'purchase_return_payment_delete'),
(6295, 2, 32, 'purchase_payment_view'),
(6296, 2, 32, 'purchase_payment_add'),
(6297, 2, 32, 'purchase_payment_delete'),
(6298, 2, 32, 'import_customers'),
(6299, 2, 32, 'import_suppliers'),
(6300, 2, 32, 'stock_transfer_add'),
(6301, 2, 32, 'stock_transfer_edit'),
(6302, 2, 32, 'stock_transfer_delete'),
(6303, 2, 32, 'stock_transfer_view'),
(6304, 2, 32, 'supplier_items_report'),
(6305, 2, 32, 'seller_points_report'),
(6306, 2, 32, 'quotation_add'),
(6307, 2, 32, 'quotation_edit'),
(6308, 2, 32, 'quotation_delete'),
(6309, 2, 32, 'quotation_view'),
(6310, 2, 32, 'import_services'),
(6311, 2, 32, 'stock_adjustment_add'),
(6312, 2, 32, 'stock_adjustment_edit'),
(6313, 2, 32, 'stock_adjustment_delete'),
(6314, 2, 32, 'stock_adjustment_view'),
(6315, 2, 32, 'accounts_add'),
(6316, 2, 32, 'accounts_edit'),
(6317, 2, 32, 'accounts_delete'),
(6318, 2, 32, 'accounts_view'),
(6319, 2, 32, 'money_transfer_add'),
(6320, 2, 32, 'money_transfer_edit'),
(6321, 2, 32, 'money_transfer_delete'),
(6322, 2, 32, 'money_transfer_view'),
(6323, 2, 32, 'money_deposit_add'),
(6324, 2, 32, 'money_deposit_edit'),
(6325, 2, 32, 'money_deposit_delete'),
(6326, 2, 32, 'money_deposit_view'),
(6327, 2, 32, 'sales_tax_report'),
(6328, 2, 32, 'purchase_tax_report'),
(6329, 2, 32, 'cash_transactions'),
(6330, 2, 32, 'show_all_users_sales_invoices'),
(6331, 2, 32, 'show_all_users_purchase_invoices'),
(6332, 2, 32, 'show_all_users_purchase_return_invoices'),
(6333, 2, 32, 'show_all_users_expenses'),
(6334, 2, 32, 'show_all_users_quotations'),
(6335, 2, 32, 'sms_settings'),
(6336, 2, 32, 'cust_adv_payments_add'),
(6337, 2, 32, 'cust_adv_payments_edit'),
(6338, 2, 32, 'cust_adv_payments_delete'),
(6339, 2, 32, 'cust_adv_payments_view'),
(6340, 2, 32, 'gstr_1_report'),
(6341, 2, 32, 'gstr_2_report'),
(6342, 2, 32, 'customer_orders_report'),
(6343, 2, 32, 'load_sheet_report'),
(6344, 2, 32, 'delivery_sheet_report'),
(6345, 2, 32, 'show_purchase_price'),
(6346, 2, 32, 'discountCouponAdd'),
(6347, 2, 32, 'discountCouponEdit'),
(6348, 2, 32, 'discountCouponDelete'),
(6349, 2, 32, 'discountCouponView'),
(6350, 2, 32, 'sales_gst_report'),
(6351, 2, 32, 'purchase_gst_report'),
(6352, 2, 32, 'customerCouponAdd'),
(6353, 2, 32, 'customerCouponEdit'),
(6354, 2, 32, 'customerCouponDelete'),
(6355, 2, 32, 'customerCouponView'),
(6356, 2, 32, 'return_items_report'),
(6357, 2, 32, 'help_link'),
(6358, 2, 32, 'recent_sales_invoice_list'),
(6359, 2, 32, 'stock_transfer_report'),
(6360, 2, 32, 'pos'),
(6361, 2, 32, 'sales_summary_report'),
(6362, 2, 32, 'sales_return_payments');

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

--
-- Table structure for table `db_purchase`
--

CREATE TABLE `db_purchase` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL COMMENT 'Use to create Purchase Code',
  `purchase_code` varchar(50) DEFAULT NULL,
  `reference_no` varchar(50) DEFAULT NULL,
  `purchase_date` date DEFAULT NULL,
  `purchase_status` varchar(50) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `other_charges_input` double(20,4) DEFAULT NULL,
  `other_charges_tax_id` int(11) DEFAULT NULL,
  `other_charges_amt` double(20,4) DEFAULT NULL,
  `discount_to_all_input` double(20,4) DEFAULT NULL,
  `discount_to_all_type` varchar(50) DEFAULT NULL,
  `tot_discount_to_all_amt` double(20,4) DEFAULT NULL,
  `subtotal` double(20,4) DEFAULT NULL COMMENT 'Purchased qty',
  `round_off` double(20,4) DEFAULT NULL COMMENT 'Pending Qty',
  `grand_total` double(20,4) DEFAULT NULL,
  `purchase_note` text DEFAULT NULL,
  `payment_status` varchar(50) DEFAULT NULL,
  `paid_amount` double(20,4) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `system_ip` varchar(100) DEFAULT NULL,
  `system_name` varchar(100) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `return_bit` int(11) DEFAULT NULL COMMENT 'Purchase return raised'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_purchase`
--

INSERT INTO `db_purchase` (`id`, `store_id`, `warehouse_id`, `count_id`, `purchase_code`, `reference_no`, `purchase_date`, `purchase_status`, `supplier_id`, `other_charges_input`, `other_charges_tax_id`, `other_charges_amt`, `discount_to_all_input`, `discount_to_all_type`, `tot_discount_to_all_amt`, `subtotal`, `round_off`, `grand_total`, `purchase_note`, `payment_status`, `paid_amount`, `created_date`, `created_time`, `created_by`, `system_ip`, `system_name`, `company_id`, `status`, `return_bit`) VALUES
(1, 2, 2, 1, 'PU0001', '12147', '2024-07-09', 'Received', 2, NULL, 150, NULL, NULL, 'in_percentage', NULL, 3000000000.0000, NULL, 3000000000.0000, '', 'Partial', 10000.0000, '2024-07-09', '11:52:49 am', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, NULL),
(2, 2, 2, 2, 'PU0002', '154', '2024-07-09', 'Received', 2, NULL, NULL, NULL, NULL, 'in_percentage', NULL, 300000000.0000, NULL, 300000000.0000, '', 'Unpaid', 0.0000, '2024-07-09', '11:55:53 am', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, NULL),
(3, 2, 2, 3, 'PU0003', '312222', '2024-07-09', 'Received', 3, NULL, 150, NULL, NULL, 'in_percentage', NULL, 60000000.0000, NULL, 60000000.0000, '', 'Partial', 200.0000, '2024-07-09', '12:17:27 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, NULL),
(4, 2, 2, 4, 'PU0004', '456666', '2024-07-09', 'Received', 6, NULL, NULL, NULL, NULL, 'in_percentage', NULL, 18000000000.0000, NULL, 18000000000.0000, '', 'Partial', 100.0000, '2024-07-09', '12:18:17 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, NULL),
(5, 2, 2, 5, 'PU0005', '', '2024-07-09', 'Received', 4, NULL, NULL, NULL, NULL, 'in_percentage', NULL, 100000000000.0000, NULL, 100000000000.0000, '', 'Paid', 100000000000.0000, '2024-07-09', '12:18:53 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, NULL),
(6, 2, 2, 6, 'PU0006', '45555i', '2024-07-09', 'Received', 5, NULL, NULL, NULL, NULL, 'in_percentage', NULL, 1500000000000.0000, NULL, 1500000000000.0000, '', 'Partial', 91000.0000, '2024-07-09', '12:19:44 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, NULL),
(7, 2, 2, 7, 'PU0007', '76655', '2024-07-09', 'Received', 1, NULL, NULL, NULL, NULL, 'in_percentage', NULL, 955000000.0000, NULL, 955000000.0000, '', 'Partial', 500.0000, '2024-07-09', '12:21:15 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, NULL),
(8, 2, 2, 8, 'PU0008', '6543322', '2024-07-09', 'Received', 2, NULL, NULL, NULL, NULL, 'in_percentage', NULL, 40000000.0000, NULL, 40000000.0000, '', 'Partial', 500.0000, '2024-07-09', '12:21:58 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, NULL),
(9, 2, 2, 9, 'PU0009', '54332', '2024-07-09', 'Received', 2, NULL, NULL, NULL, NULL, 'in_percentage', NULL, 4000000000.0000, NULL, 4000000000.0000, '', 'Partial', 60500.0000, '2024-07-09', '12:22:47 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, NULL),
(10, 2, 2, 10, 'PU0010', '1545422', '2024-07-09', 'Received', 2, NULL, NULL, NULL, NULL, 'in_percentage', NULL, 320000.0000, NULL, 320000.0000, '', 'Paid', 320000.0000, '2024-07-10', '12:34:25 pm', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, 1, NULL),
(11, 2, 2, 11, 'PU0011', 'Regular', '2024-08-19', 'Received', 2, 50.0000, 150, 50.0000, NULL, 'in_percentage', NULL, 120080.0000, NULL, 120130.0000, '', 'Partial', 2000.0000, '2024-08-19', '01:19:42 am', 'admin', '103.59.179.21', '103.59.179.21', NULL, 1, NULL);

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

--
-- Table structure for table `db_purchaseitems`
--

CREATE TABLE `db_purchaseitems` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `purchase_id` int(11) DEFAULT NULL,
  `purchase_status` varchar(50) DEFAULT NULL,
  `item_id` int(11) DEFAULT NULL,
  `purchase_qty` double(20,2) DEFAULT NULL,
  `price_per_unit` double(20,4) DEFAULT NULL,
  `tax_type` varchar(50) DEFAULT NULL,
  `tax_id` int(11) DEFAULT NULL,
  `tax_amt` double(20,4) DEFAULT NULL,
  `discount_type` varchar(50) DEFAULT NULL,
  `discount_input` double(20,4) DEFAULT NULL,
  `discount_amt` double(20,4) DEFAULT NULL,
  `unit_total_cost` double(20,4) DEFAULT NULL,
  `total_cost` double(20,4) DEFAULT NULL,
  `profit_margin_per` double(20,4) DEFAULT NULL,
  `unit_sales_price` double(20,4) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_purchaseitems`
--

INSERT INTO `db_purchaseitems` (`id`, `store_id`, `purchase_id`, `purchase_status`, `item_id`, `purchase_qty`, `price_per_unit`, `tax_type`, `tax_id`, `tax_amt`, `discount_type`, `discount_input`, `discount_amt`, `unit_total_cost`, `total_cost`, `profit_margin_per`, `unit_sales_price`, `status`, `description`) VALUES
(203, 2, 1, 'Received', 2, 10000000.00, 300.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 300.0000, 3000000000.0000, NULL, NULL, 1, ''),
(204, 2, 2, 'Received', 3, 1000000.00, 300.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 300.0000, 300000000.0000, NULL, NULL, 1, ''),
(205, 2, 3, 'Received', 3, 100000.00, 300.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 300.0000, 30000000.0000, NULL, NULL, 1, ''),
(206, 2, 3, 'Received', 2, 100000.00, 300.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 300.0000, 30000000.0000, NULL, NULL, 1, ''),
(207, 2, 4, 'Received', 4, 100000000.00, 180.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 180.0000, 18000000000.0000, NULL, NULL, 1, ''),
(208, 2, 5, 'Received', 5, 10000000000.00, 10.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 10.0000, 100000000000.0000, NULL, NULL, 1, ''),
(209, 2, 6, 'Received', 1, 100000000.00, 15000.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 15000.0000, 1500000000000.0000, NULL, NULL, 1, ''),
(210, 2, 7, 'Received', 7, 100000000.00, 8.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 8.0000, 800000000.0000, NULL, NULL, 1, ''),
(211, 2, 7, 'Received', 6, 1000000.00, 35.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 35.0000, 35000000.0000, NULL, NULL, 1, ''),
(212, 2, 7, 'Received', 8, 10000000.00, 12.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 12.0000, 120000000.0000, NULL, NULL, 1, ''),
(213, 2, 8, 'Received', 9, 100000.00, 400.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 400.0000, 40000000.0000, NULL, NULL, 1, ''),
(214, 2, 9, 'Received', 10, 10000000.00, 400.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 400.0000, 4000000000.0000, NULL, NULL, 1, ''),
(215, 2, 10, 'Received', 1, 20.00, 16000.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 16000.0000, 320000.0000, NULL, NULL, 1, ''),
(216, 2, 11, 'Received', 7, 10.00, 8.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 8.0000, 80.0000, NULL, NULL, 1, ''),
(217, 2, 11, 'Received', 1, 8.00, 15000.0000, 'Inclusive', 150, 0.0000, 'Percentage', 0.0000, 0.0000, 15000.0000, 120000.0000, NULL, NULL, 1, '');

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

--
-- Table structure for table `db_purchaseitemsreturn`
--

CREATE TABLE `db_purchaseitemsreturn` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `purchase_id` int(11) DEFAULT NULL,
  `return_id` int(11) DEFAULT NULL,
  `return_status` varchar(50) DEFAULT NULL,
  `item_id` int(11) DEFAULT NULL,
  `return_qty` double(20,2) DEFAULT NULL,
  `price_per_unit` double(20,4) DEFAULT NULL,
  `tax_id` int(11) DEFAULT NULL,
  `tax_amt` double(20,4) DEFAULT NULL,
  `tax_type` varchar(50) DEFAULT NULL,
  `discount_input` double(20,4) DEFAULT NULL,
  `discount_amt` double(20,4) DEFAULT NULL,
  `discount_type` varchar(50) DEFAULT NULL,
  `unit_total_cost` double(20,4) DEFAULT NULL,
  `total_cost` double(20,4) DEFAULT NULL,
  `profit_margin_per` double(20,4) DEFAULT NULL,
  `unit_sales_price` double(20,4) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_purchasepayments`
--

CREATE TABLE `db_purchasepayments` (
  `id` int(11) NOT NULL,
  `count_id` int(11) DEFAULT NULL,
  `payment_code` varchar(50) DEFAULT NULL,
  `store_id` int(11) DEFAULT NULL,
  `purchase_id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `payment_type` varchar(50) DEFAULT NULL,
  `payment` double(20,4) DEFAULT NULL,
  `payment_note` text DEFAULT NULL,
  `system_ip` varchar(50) DEFAULT NULL,
  `system_name` varchar(50) DEFAULT NULL,
  `created_time` time DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `short_code` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_purchasepayments`
--

INSERT INTO `db_purchasepayments` (`id`, `count_id`, `payment_code`, `store_id`, `purchase_id`, `payment_date`, `payment_type`, `payment`, `payment_note`, `system_ip`, `system_name`, `created_time`, `created_date`, `created_by`, `status`, `account_id`, `supplier_id`, `short_code`) VALUES
(110, 1, 'PP0001', 2, 1, '2024-07-09', 'CASH', 10000.0000, '', '::1', 'DESKTOP-GMFRN98', '11:52:49', '2024-07-09', 'admin', 1, 2, 2, NULL),
(111, 2, 'PP0002', 2, 3, '2024-07-09', 'CASH', 200.0000, '', '::1', 'DESKTOP-GMFRN98', '12:17:27', '2024-07-09', 'admin', 1, 1, 3, NULL),
(112, 3, 'PP0003', 2, 4, '2024-07-09', 'Bkash', 100.0000, '', '::1', 'DESKTOP-GMFRN98', '12:18:17', '2024-07-09', 'admin', 1, 1, 6, NULL),
(113, 4, 'PP0004', 2, 5, '2024-07-09', 'CASH', 100.0000, '', '::1', 'DESKTOP-GMFRN98', '12:18:53', '2024-07-09', 'admin', 1, 2, 4, NULL),
(114, 5, 'PP0005', 2, 6, '2024-07-09', 'CASH', 1000.0000, '', '::1', 'DESKTOP-GMFRN98', '12:19:44', '2024-07-09', 'admin', 1, 2, 5, NULL),
(115, 6, 'PP0006', 2, 7, '2024-07-09', 'CASH', 500.0000, '', '::1', 'DESKTOP-GMFRN98', '12:21:15', '2024-07-09', 'admin', 1, 1, 1, NULL),
(116, 7, 'PP0007', 2, 8, '2024-07-09', 'Bkash', 500.0000, '', '::1', 'DESKTOP-GMFRN98', '12:21:58', '2024-07-09', 'admin', 1, 1, 2, NULL),
(117, 8, 'PP0008', 2, 9, '2024-07-09', 'CASH', 100.0000, '', '::1', 'DESKTOP-GMFRN98', '12:22:47', '2024-07-09', 'admin', 1, 2, 2, NULL),
(118, 9, 'PP0009', 2, 9, '2024-07-09', 'CASH', 50000.0000, '', '::1', 'DESKTOP-GMFRN98', '12:36:34', '2024-07-09', 'admin', 1, NULL, 2, NULL),
(119, 10, 'PP0010', 2, 5, '2024-07-09', 'CASH', 99999999900.0000, '', '::1', 'DESKTOP-GMFRN98', '12:36:45', '2024-07-09', 'admin', 1, NULL, 4, NULL),
(120, 11, 'PP0011', 2, 6, '2024-07-09', 'CASH', 90000.0000, '', '::1', 'DESKTOP-GMFRN98', '12:37:44', '2024-07-09', 'admin', 1, 1, 5, NULL),
(121, 12, 'PP0012', 2, 9, '2024-07-09', 'CASH', 400.0000, '', '::1', 'DESKTOP-GMFRN98', '12:37:56', '2024-07-09', 'admin', 1, NULL, 2, NULL),
(122, 13, 'PP0013', 2, 9, '2024-07-09', 'CASH', 10000.0000, '', '::1', 'DESKTOP-GMFRN98', '12:38:07', '2024-07-09', 'admin', 1, NULL, 2, NULL),
(123, 14, 'PP0014', 2, 10, '2024-07-09', 'CASH', 10000.0000, '', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '12:34:25', '2024-07-10', 'admin', 1, 2, 2, NULL),
(124, 15, 'PP0015', 2, 10, '2024-07-10', 'CASH', 20000.0000, '', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '12:35:34', '2024-07-10', 'admin', 1, 1, 2, NULL),
(125, 16, 'PP0016', 2, 10, '2024-07-10', 'CASH', 290000.0000, '', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '12:35:53', '2024-07-10', 'admin', 1, 1, 2, NULL),
(126, 17, 'PP0017', 2, 11, '2024-08-19', 'CASH', 2000.0000, '', '103.59.179.21', '103.59.179.21', '01:19:42', '2024-08-19', 'admin', 1, 1, 2, NULL);

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

--
-- Table structure for table `db_purchasepaymentsreturn`
--

CREATE TABLE `db_purchasepaymentsreturn` (
  `id` int(11) NOT NULL,
  `count_id` int(11) DEFAULT NULL,
  `payment_code` varchar(50) DEFAULT NULL,
  `store_id` int(11) DEFAULT NULL,
  `purchase_id` int(11) DEFAULT NULL,
  `return_id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `payment_type` varchar(50) DEFAULT NULL,
  `payment` double(20,4) DEFAULT NULL,
  `payment_note` text DEFAULT NULL,
  `system_ip` varchar(50) DEFAULT NULL,
  `system_name` varchar(50) DEFAULT NULL,
  `created_time` time DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `short_code` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_purchasereturn`
--

CREATE TABLE `db_purchasereturn` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL COMMENT 'Use to create Purchase Return Code',
  `warehouse_id` int(11) DEFAULT NULL,
  `purchase_id` int(11) DEFAULT NULL,
  `return_code` varchar(50) DEFAULT NULL,
  `reference_no` varchar(50) DEFAULT NULL,
  `return_date` date DEFAULT NULL,
  `return_status` varchar(50) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `other_charges_input` double(20,4) DEFAULT NULL,
  `other_charges_tax_id` int(11) DEFAULT NULL,
  `other_charges_amt` double(20,4) DEFAULT NULL,
  `discount_to_all_input` double(20,4) DEFAULT NULL,
  `discount_to_all_type` varchar(50) DEFAULT NULL,
  `tot_discount_to_all_amt` double(20,4) DEFAULT NULL,
  `subtotal` double(20,4) DEFAULT NULL COMMENT 'Purchased qty',
  `round_off` double(20,4) DEFAULT NULL COMMENT 'Pending Qty',
  `grand_total` double(20,4) DEFAULT NULL,
  `return_note` text DEFAULT NULL,
  `payment_status` varchar(50) DEFAULT NULL,
  `paid_amount` double(20,4) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `system_ip` varchar(100) DEFAULT NULL,
  `system_name` varchar(100) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_quotation`
--

CREATE TABLE `db_quotation` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL COMMENT 'Use to create quotation Code',
  `quotation_code` varchar(50) DEFAULT NULL,
  `reference_no` varchar(50) DEFAULT NULL,
  `quotation_date` date DEFAULT NULL,
  `expire_date` date DEFAULT NULL,
  `quotation_status` varchar(50) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `other_charges_input` double(20,4) DEFAULT NULL,
  `other_charges_tax_id` int(11) DEFAULT NULL,
  `other_charges_amt` double(20,4) DEFAULT NULL,
  `discount_to_all_input` double(20,4) DEFAULT NULL,
  `discount_to_all_type` varchar(50) DEFAULT NULL,
  `tot_discount_to_all_amt` double(20,4) DEFAULT NULL,
  `subtotal` double(20,4) DEFAULT NULL,
  `round_off` double(20,4) DEFAULT NULL,
  `grand_total` double(20,4) DEFAULT NULL,
  `quotation_note` text DEFAULT NULL,
  `payment_status` varchar(50) DEFAULT NULL,
  `paid_amount` double(20,4) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `system_ip` varchar(100) DEFAULT NULL,
  `system_name` varchar(100) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `pos` int(11) DEFAULT NULL COMMENT '1=yes 0=no',
  `status` int(11) DEFAULT NULL,
  `return_bit` int(11) DEFAULT NULL COMMENT 'quotation return raised',
  `customer_previous_due` double(20,4) DEFAULT NULL,
  `customer_total_due` double(20,4) DEFAULT NULL,
  `sales_status` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_quotation`
--

INSERT INTO `db_quotation` (`id`, `store_id`, `warehouse_id`, `count_id`, `quotation_code`, `reference_no`, `quotation_date`, `expire_date`, `quotation_status`, `customer_id`, `other_charges_input`, `other_charges_tax_id`, `other_charges_amt`, `discount_to_all_input`, `discount_to_all_type`, `tot_discount_to_all_amt`, `subtotal`, `round_off`, `grand_total`, `quotation_note`, `payment_status`, `paid_amount`, `created_date`, `created_time`, `created_by`, `system_ip`, `system_name`, `company_id`, `pos`, `status`, `return_bit`, `customer_previous_due`, `customer_total_due`, `sales_status`) VALUES
(1, 2, 2, 1, 'QT0001', '12554', '2024-07-09', '2024-07-09', 'Quotation', 3, NULL, NULL, NULL, NULL, 'in_percentage', NULL, 22000.0000, NULL, 22000.0000, '', NULL, NULL, '2024-07-09', '12:38:49 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, NULL, 1, NULL, NULL, NULL, NULL),
(2, 2, 2, 2, 'QT0002', '', '2024-07-10', '2024-07-11', 'Quotation', 4, NULL, NULL, NULL, NULL, 'in_percentage', NULL, 20000.0000, NULL, 20000.0000, '', NULL, NULL, '2024-07-10', '12:30:02 pm', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, NULL, 1, NULL, NULL, NULL, NULL),
(3, 2, 2, 3, 'QT0003', '', '2024-08-19', '2024-08-21', 'Quotation', 3, 50.0000, 150, 50.0000, 1.0000, 'in_percentage', 228.2100, 22771.0000, 0.2100, 22593.0000, '', NULL, NULL, '2024-08-19', '01:17:05 am', 'admin', '103.59.179.21', '103.59.179.21', NULL, NULL, 1, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `db_quotationitems`
--

CREATE TABLE `db_quotationitems` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `quotation_id` int(11) DEFAULT NULL,
  `quotation_status` varchar(50) DEFAULT NULL,
  `item_id` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `quotation_qty` double(20,2) DEFAULT NULL,
  `price_per_unit` double(20,4) DEFAULT NULL,
  `tax_type` varchar(50) DEFAULT NULL,
  `tax_id` int(11) DEFAULT NULL,
  `tax_amt` double(20,4) DEFAULT NULL,
  `discount_type` varchar(50) DEFAULT NULL,
  `discount_input` double(20,4) DEFAULT NULL,
  `discount_amt` double(20,4) DEFAULT NULL,
  `unit_total_cost` double(20,4) DEFAULT NULL,
  `total_cost` double(20,4) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `seller_points` double(20,4) DEFAULT 0.0000
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_quotationitems`
--

INSERT INTO `db_quotationitems` (`id`, `store_id`, `quotation_id`, `quotation_status`, `item_id`, `description`, `quotation_qty`, `price_per_unit`, `tax_type`, `tax_id`, `tax_amt`, `discount_type`, `discount_input`, `discount_amt`, `unit_total_cost`, `total_cost`, `status`, `seller_points`) VALUES
(288, 2, 1, 'Quotation', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', NULL, 0.0000, 22000.0000, 22000.0000, 1, 0.0000),
(289, 2, 2, 'Quotation', 1, '', 1.00, 20000.0000, 'Inclusive', 150, NULL, 'Percentage', NULL, 0.0000, 20000.0000, 20000.0000, 1, 0.0000),
(290, 2, 3, 'Quotation', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', NULL, 0.0000, 22000.0000, 22000.0000, 1, 0.0000),
(291, 2, 3, 'Quotation', 5, '', 3.00, 12.0000, 'Inclusive', 150, NULL, 'Percentage', NULL, 0.0000, 12.0000, 36.0000, 1, 0.0000),
(292, 2, 3, 'Quotation', 19, '', 2.00, 100.0000, 'Inclusive', 150, NULL, 'Percentage', NULL, 0.0000, 100.0000, 200.0000, 1, 4.0000),
(293, 2, 3, 'Quotation', 2, '', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', NULL, 0.0000, 520.0000, 520.0000, 1, 0.0000),
(294, 2, 3, 'Quotation', 8, '', 1.00, 15.0000, 'Inclusive', 150, NULL, 'Percentage', NULL, 0.0000, 15.0000, 15.0000, 1, 0.0000);

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

--
-- Table structure for table `db_roles`
--

CREATE TABLE `db_roles` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `role_name` varchar(50) DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_roles`
--

INSERT INTO `db_roles` (`id`, `store_id`, `role_name`, `description`, `status`) VALUES
(1, 1, 'Admin', 'All Rights Permitted.', 1),
(2, 1, 'Store Admin', 'Note: Apply this role for New Store Admin. ', 1),
(31, 2, 'Cashier', '', 1),
(32, 2, 'Manager', 'listed &amp; Manage All products', 1);

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

--
-- Table structure for table `db_sales`
--

CREATE TABLE `db_sales` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `init_code` varchar(100) DEFAULT NULL,
  `count_id` decimal(20,0) DEFAULT NULL COMMENT 'Use to create Sales Code',
  `sales_code` varchar(50) DEFAULT NULL,
  `reference_no` varchar(50) DEFAULT NULL,
  `sales_date` date DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `sales_status` varchar(50) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `other_charges_input` double(20,2) DEFAULT NULL,
  `other_charges_tax_id` int(11) DEFAULT NULL,
  `other_charges_amt` double(20,2) DEFAULT NULL,
  `discount_to_all_input` double(20,2) DEFAULT NULL,
  `discount_to_all_type` varchar(50) DEFAULT NULL,
  `tot_discount_to_all_amt` double(20,2) DEFAULT NULL,
  `subtotal` double(20,2) DEFAULT NULL,
  `round_off` double(20,2) DEFAULT NULL,
  `grand_total` double(20,4) DEFAULT NULL,
  `sales_note` text DEFAULT NULL,
  `payment_status` varchar(50) DEFAULT NULL,
  `paid_amount` double(20,4) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `system_ip` varchar(100) DEFAULT NULL,
  `system_name` varchar(100) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `pos` int(11) DEFAULT NULL COMMENT '1=yes 0=no',
  `status` int(11) DEFAULT NULL,
  `return_bit` int(11) DEFAULT NULL COMMENT 'sales return raised',
  `customer_previous_due` double(20,2) DEFAULT NULL,
  `customer_total_due` double(20,2) DEFAULT NULL,
  `quotation_id` int(11) DEFAULT NULL,
  `coupon_id` int(11) DEFAULT NULL,
  `coupon_amt` double(20,2) DEFAULT 0.00,
  `invoice_terms` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_sales`
--

INSERT INTO `db_sales` (`id`, `store_id`, `warehouse_id`, `init_code`, `count_id`, `sales_code`, `reference_no`, `sales_date`, `due_date`, `sales_status`, `customer_id`, `other_charges_input`, `other_charges_tax_id`, `other_charges_amt`, `discount_to_all_input`, `discount_to_all_type`, `tot_discount_to_all_amt`, `subtotal`, `round_off`, `grand_total`, `sales_note`, `payment_status`, `paid_amount`, `created_date`, `created_time`, `created_by`, `system_ip`, `system_name`, `company_id`, `pos`, `status`, `return_bit`, `customer_previous_due`, `customer_total_due`, `quotation_id`, `coupon_id`, `coupon_amt`, `invoice_terms`) VALUES
(1, 2, 2, 'SL', 1, 'SL1', NULL, '2024-07-09', NULL, 'Final', 7, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2024-07-09', '02:24:11 am', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(2, 2, 2, 'SL', 2, 'SL2', NULL, '2024-07-09', NULL, 'Final', 8, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2024-07-09', '02:25:34 am', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(3, 2, 2, 'SL', 3, 'SL3', NULL, '2024-07-09', NULL, 'Final', 9, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2024-07-09', '02:26:53 am', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(4, 2, 2, 'SL', 4, 'SL4', NULL, '2024-07-09', NULL, 'Final', 3, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 2265250.00, 0.00, 2265250.0000, '', 'Paid', 2265250.0000, '2024-07-09', '12:27:43 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(5, 2, 2, 'SL', 5, 'SL5', NULL, '2024-07-09', NULL, 'Final', 3, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 23997000.00, 0.00, 23997000.0000, '', 'Paid', 23997000.0000, '2024-07-09', '12:30:45 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(6, 2, 2, 'SL', 6, 'SL6', NULL, '2024-07-09', NULL, 'Final', 7, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2024-07-09', '12:31:34 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(7, 2, 2, 'SL', 7, 'SL7', NULL, '2024-07-09', NULL, 'Final', 8, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 515.00, 0.00, 515.0000, '', 'Paid', 515.0000, '2024-07-09', '12:32:23 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(8, 2, 2, 'SL', 8, 'SL8', NULL, '2024-07-09', NULL, 'Final', 9, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 75.00, 0.00, 75.0000, '', 'Paid', 75.0000, '2024-07-09', '12:32:46 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(9, 2, 2, 'SL', 9, 'SL9', NULL, '2024-07-09', NULL, 'Final', 10, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 220.00, 0.00, 220.0000, '', 'Partial', 100.0000, '2024-07-09', '01:56:41 pm', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(10, 2, 2, 'SL', 10, 'SL10', NULL, '2024-07-09', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2024-07-09', '05:08:32 pm', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(11, 2, 2, 'SL', 11, 'SL11', NULL, '2024-07-10', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2024-07-10', '12:02:23 pm', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(12, 2, 2, 'SL', 12, 'SL12', NULL, '2024-07-10', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22970.00, 0.00, 22970.0000, '', 'Paid', 22970.0000, '2024-07-10', '12:07:41 pm', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(13, 2, 2, 'SL', 13, 'SL13', NULL, '2024-07-10', NULL, 'Final', 12, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 1260.00, 0.00, 1260.0000, '', 'Paid', 1260.0000, '2024-07-10', '12:20:25 pm', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(14, 2, 2, 'SL', 14, 'SL14', NULL, '2024-07-11', NULL, 'Final', 13, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2024-07-11', '10:01:40 pm', 'admin', '103.88.140.78', '103.88.140.78', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(15, 2, 2, 'SL', 15, 'SL15', NULL, '2024-07-12', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2024-07-12', '01:45:16 pm', 'admin', '103.85.156.81', '103.85.156.81.race.net.bd', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(16, 2, 2, 'SL', 16, 'SL16', NULL, '2024-07-13', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22057.00, 0.00, 22057.0000, '', 'Partial', 200.0000, '2024-07-13', '12:36:01 am', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(17, 2, 2, 'SL', 17, 'SL17', '', '2024-07-14', NULL, 'Final', 14, 400.00, 150, 400.00, NULL, 'in_percentage', NULL, 22000.00, NULL, 22400.0000, '', 'Paid', 22400.0000, '2024-07-14', '02:09:06 am', 'admin', '182.48.82.20', '182.48.82.20', NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(18, 2, 2, 'SL', 18, 'SL18', NULL, '2024-07-16', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 5200.00, 0.00, 5200.0000, '', 'Paid', 5200.0000, '2024-07-16', '06:37:50 pm', 'admin', '103.92.153.33', '103.92.153.33', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(19, 2, 2, 'SL', 19, 'SL19', NULL, '2024-08-01', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 1000.00, 0.00, 1000.0000, '', 'Partial', 100.0000, '2024-08-01', '01:08:04 pm', 'admin', '115.164.210.7', 'UE7.210.digi.net.my', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(20, 2, 2, 'SL', 20, 'SL20', NULL, '2024-08-02', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2024-08-02', '04:15:14 pm', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(21, 2, 2, 'SL', 21, 'SL21', NULL, '2024-08-11', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 69.00, 0.00, 69.0000, '', 'Unpaid', 0.0000, '2024-08-11', '12:58:57 am', 'admin', '103.59.179.21', '103.59.179.21', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(22, 2, 2, 'SL', 22, 'SL22', NULL, '2024-08-11', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 69.00, 0.00, 69.0000, '', 'Unpaid', 0.0000, '2024-08-11', '12:58:57 am', 'admin', '103.59.179.21', '103.59.179.21', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(23, 2, 2, 'SL', 23, 'SL23', NULL, '2024-08-11', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 1574.00, 0.00, 1574.0000, '', 'Unpaid', 0.0000, '2024-08-11', '02:10:05 pm', 'admin', '103.120.35.154', '103.120.35.154', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(24, 2, 2, 'SL', 24, 'SL24', NULL, '2024-08-11', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 24200.00, 0.00, 24200.0000, '', 'Paid', 24200.0000, '2024-08-11', '07:14:03 pm', 'admin', '103.197.248.45', '103.197.248-45.eurotelbd.net', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(25, 2, 2, 'SL', 25, 'SL25', NULL, '2024-08-18', NULL, 'Final', 3, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 8800.00, 0.00, 8800.0000, '', 'Paid', 8800.0000, '2024-08-18', '12:29:58 am', 'admin', '118.179.89.119', '118.179.89.119', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(26, 2, 2, 'SL', 26, 'SL26', NULL, '2024-08-19', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 1500.00, 0.00, 1500.0000, '', 'Paid', 1500.0000, '2024-08-19', '12:33:18 am', 'admin', '103.59.179.21', '103.59.179.21', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(27, 2, 91, 'SL', 27, 'SL27', NULL, '2024-08-19', NULL, 'Final', 13, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 1000.00, 0.00, 1000.0000, '', 'Paid', 1000.0000, '2024-08-19', '01:38:07 am', 'admin', '103.59.179.21', '103.59.179.21', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(28, 2, 2, 'SL', 28, 'SL28', NULL, '2024-08-21', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 23247.00, 0.00, 23247.0000, '', 'Paid', 23247.0000, '2024-08-21', '01:23:03 am', 'admin', '103.140.212.171', '103.140.212.171', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(29, 2, 2, 'SL', 29, 'SL29', NULL, '2024-08-23', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22577.00, 0.00, 22577.0000, '', 'Paid', 22577.0000, '2024-08-23', '12:01:20 am', 'admin', '103.114.94.37', '103.114.94.37', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(30, 2, 2, 'SL', 30, 'SL30', NULL, '2024-08-23', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 113577.00, 0.00, 113577.0000, '', 'Paid', 113577.0000, '2024-08-23', '12:02:15 am', 'admin', '103.114.94.37', '103.114.94.37', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(31, 2, 2, 'SL', 31, 'SL31', NULL, '2024-08-31', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2024-08-31', '03:12:21 pm', 'admin', '37.111.237.161', '37.111.237.161', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(32, 2, 88, 'SL', 32, 'SL32', NULL, '2024-08-31', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 1000.00, 0.00, 1000.0000, '', 'Unpaid', 0.0000, '2024-08-31', '05:14:35 pm', 'admin', '182.163.115.234', 'IP-115-234.bol-online.com', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(33, 2, 88, 'SL', 33, 'SL33', NULL, '2024-08-31', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 1000.00, 0.00, 1000.0000, '', 'Paid', 1000.0000, '2024-08-31', '05:14:51 pm', 'admin', '182.163.115.234', 'IP-115-234.bol-online.com', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(34, 2, 2, 'SL', 34, 'SL34', NULL, '2024-08-31', NULL, 'Final', 20, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 1000.00, 0.00, 1000.0000, '', 'Paid', 1000.0000, '2024-08-31', '05:23:51 pm', 'admin', '182.163.115.234', 'IP-115-234.bol-online.com', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(35, 2, 2, 'SL', 35, 'SL35', NULL, '2024-09-07', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 1215.00, 0.00, 1215.0000, '', 'Unpaid', 0.0000, '2024-09-07', '12:36:57 am', 'admin', '103.43.94.69', '103.43.94.69', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(36, 2, 2, 'SL', 36, 'SL36', NULL, '2024-09-12', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2024-09-12', '09:55:07 am', 'admin', '43.245.143.54', '43.245.143.54.summitiig.net', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(37, 2, 2, 'SL', 37, 'SL37', NULL, '2024-09-12', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 565.00, 0.00, 565.0000, '', 'Unpaid', 0.0000, '2024-09-12', '04:52:13 pm', 'admin', '163.47.86.163', 'peninsulactg-163.colbd.com', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(38, 2, 2, 'SL', 38, 'SL38', NULL, '2024-09-13', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22520.00, 0.00, 22520.0000, '', 'Paid', 22520.0000, '2024-09-13', '08:23:43 pm', 'admin', '45.118.60.6', '45.118.60.6', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(39, 2, 2, 'SL', 39, 'SL39', NULL, '2024-09-16', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 3170.00, 0.00, 3170.0000, '', 'Paid', 3170.0000, '2024-09-16', '06:26:34 am', 'admin', '117.99.20.215', '117.99.20.215', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(40, 2, 2, 'SL', 40, 'SL40', NULL, '2024-09-19', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22520.00, 0.00, 22520.0000, '', 'Paid', 22520.0000, '2024-09-19', '11:30:32 pm', 'admin', '103.84.133.206', '103.84.133.206', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(41, 2, 2, 'SL', 41, 'SL41', NULL, '2024-09-22', NULL, 'Final', 3, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 520.00, 0.00, 520.0000, '', 'Unpaid', 0.0000, '2024-09-22', '04:32:46 pm', 'admin', '118.179.89.119', '118.179.89.119', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(42, 2, 2, 'SL', 42, 'SL42', '', '2024-09-22', NULL, 'Final', 2, NULL, NULL, NULL, 1.00, 'in_percentage', 440.30, 44030.00, 0.30, 43590.0000, '', 'Paid', 43590.0000, '2024-09-22', '06:49:01 pm', 'admin', '37.111.212.94', '37.111.212.94', NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(43, 2, 2, 'SL', 43, 'SL43', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2025-01-29', '04:08:16 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(44, 2, 2, 'SL', 44, 'SL44', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2025-01-29', '04:10:28 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(45, 2, 2, 'SL', 45, 'SL45', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2025-01-29', '04:11:04 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(46, 2, 2, 'SL', 46, 'SL46', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '04:13:29 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(47, 2, 2, 'SL', 47, 'SL47', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '04:13:46 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(48, 2, 2, 'SL', 48, 'SL48', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '04:14:21 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(49, 2, 2, 'SL', 49, 'SL49', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 520.00, 0.00, 520.0000, '', 'Unpaid', 0.0000, '2025-01-29', '04:18:05 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(50, 2, 2, 'SL', 50, 'SL50', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2025-01-29', '04:21:20 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(51, 2, 2, 'SL', 51, 'SL51', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '05:34:24 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(52, 2, 2, 'SL', 52, 'SL52', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '05:34:58 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(53, 2, 2, 'SL', 53, 'SL53', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '05:35:37 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(54, 2, 2, 'SL', 54, 'SL54', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '05:43:03 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(55, 2, 2, 'SL', 55, 'SL55', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '05:45:02 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(56, 2, 2, 'SL', 56, 'SL56', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 44000.00, 0.00, 44000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '05:49:01 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(57, 2, 2, 'SL', 57, 'SL57', NULL, '2025-01-29', NULL, 'Final', 3, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 44000.00, 0.00, 44000.0000, '', 'Paid', 44000.0000, '2025-01-29', '05:51:47 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(58, 2, 2, 'SL', 58, 'SL58', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2025-01-29', '05:55:48 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(59, 2, 2, 'SL', 59, 'SL59', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '06:01:40 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(60, 2, 2, 'SL', 60, 'SL60', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '06:14:32 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(61, 2, 2, 'SL', 61, 'SL61', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 220.00, 0.00, 220.0000, '', 'Unpaid', 0.0000, '2025-01-29', '06:16:14 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(62, 2, 2, 'SL', 62, 'SL62', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '06:16:47 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(63, 2, 2, 'SL', 63, 'SL63', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '06:17:24 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(64, 2, 2, 'SL', 64, 'SL64', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 45.00, 0.00, 45.0000, '', 'Unpaid', 0.0000, '2025-01-29', '06:22:05 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(65, 2, 2, 'SL', 65, 'SL65', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 450.00, 0.00, 450.0000, '', 'Partial', 100.0000, '2025-01-29', '06:22:37 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(66, 2, 2, 'SL', 66, 'SL66', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '06:22:43 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(67, 2, 2, 'SL', 67, 'SL67', NULL, '2025-01-29', NULL, 'Final', 3, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2025-01-29', '06:23:18 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(68, 2, 2, 'SL', 68, 'SL68', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '06:24:55 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(69, 2, 2, 'SL', 69, 'SL69', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 44000.00, 0.00, 44000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '07:29:07 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(70, 2, 2, 'SL', 70, 'SL70', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '07:32:49 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(71, 2, 2, 'SL', 71, 'SL71', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '07:33:17 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(72, 2, 2, 'SL', 72, 'SL72', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '07:34:05 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(73, 2, 2, 'SL', 73, 'SL73', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '07:34:39 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(74, 2, 2, 'SL', 74, 'SL74', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 520.00, 0.00, 520.0000, '', 'Unpaid', 0.0000, '2025-01-29', '07:37:50 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(75, 2, 2, 'SL', 75, 'SL75', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '07:39:15 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(76, 2, 2, 'SL', 76, 'SL76', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '07:40:07 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(77, 2, 2, 'SL', 77, 'SL77', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '07:41:07 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(78, 2, 2, 'SL', 78, 'SL78', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2025-01-29', '07:50:22 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(79, 2, 2, 'SL', 79, 'SL79', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '07:50:53 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(80, 2, 2, 'SL', 80, 'SL80', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '11:42:22 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(81, 2, 2, 'SL', 81, 'SL81', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '11:50:21 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(82, 2, 2, 'SL', 82, 'SL82', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-29', '11:51:47 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(83, 2, 2, 'SL', 83, 'SL83', NULL, '2025-01-29', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Partial', 2200.0000, '2025-01-29', '11:54:55 pm', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(84, 2, 2, 'SL', 84, 'SL84', NULL, '2025-01-30', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-30', '03:42:56 am', 'admin', '::1', 'DESKTOP-2JSSNEM', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(85, 2, 2, 'SL', 85, 'SL85', NULL, '2025-01-30', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-01-30', '09:42:48 pm', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(86, 2, 2, 'SL', 86, 'SL86', NULL, '2025-02-02', NULL, 'Final', 7, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22565.00, 0.00, 22565.0000, '', 'Partial', 154.0000, '2025-02-02', '04:35:23 am', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(87, 2, 2, 'SL', 87, 'SL87', NULL, '2025-02-02', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Paid', 22000.0000, '2025-02-02', '01:02:06 pm', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(88, 2, 2, 'SL', 88, 'SL88', NULL, '2025-02-03', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 520.00, 0.00, 520.0000, '', 'Paid', 520.0000, '2025-02-03', '04:33:03 pm', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।'),
(89, 2, 2, 'SL', 89, 'SL89', NULL, '2025-02-05', NULL, 'Final', 2, NULL, NULL, NULL, 0.00, 'in_percentage', 0.00, 22000.00, 0.00, 22000.0000, '', 'Unpaid', 0.0000, '2025-02-05', '01:23:41 pm', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, 0.00, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।');

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

--
-- Table structure for table `db_salesitems`
--

CREATE TABLE `db_salesitems` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `sales_id` int(11) DEFAULT NULL,
  `sales_status` varchar(50) DEFAULT NULL,
  `item_id` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `sales_qty` double(20,2) DEFAULT NULL,
  `price_per_unit` double(20,4) DEFAULT NULL,
  `tax_type` varchar(50) DEFAULT NULL,
  `tax_id` int(11) DEFAULT NULL,
  `tax_amt` double(20,4) DEFAULT NULL,
  `discount_type` varchar(50) DEFAULT NULL,
  `discount_input` double(20,4) DEFAULT NULL,
  `discount_amt` double(20,4) DEFAULT NULL,
  `unit_total_cost` double(20,4) DEFAULT NULL,
  `total_cost` double(20,4) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `seller_points` double(20,2) DEFAULT 0.00,
  `purchase_price` double(20,3) DEFAULT 0.000
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_salesitems`
--

INSERT INTO `db_salesitems` (`id`, `store_id`, `sales_id`, `sales_status`, `item_id`, `description`, `sales_qty`, `price_per_unit`, `tax_type`, `tax_id`, `tax_amt`, `discount_type`, `discount_input`, `discount_amt`, `unit_total_cost`, `total_cost`, `status`, `seller_points`, `purchase_price`) VALUES
(622, 2, 1, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(623, 2, 2, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(624, 2, 3, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(625, 2, 4, 'Final', 4, '', 200.00, 220.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 220.0000, 44000.0000, 1, 0.00, 180.000),
(626, 2, 4, 'Final', 1, '', 100.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 2200000.0000, 1, 0.00, 15000.000),
(627, 2, 4, 'Final', 2, '', 40.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 20800.0000, 1, 0.00, 300.000),
(628, 2, 4, 'Final', 3, '', 1.00, 450.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 450.0000, 450.0000, 1, 0.00, 300.000),
(643, 2, 5, 'Final', 1, '', 1000.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000000.0000, 1, 0.00, 15000.000),
(644, 2, 5, 'Final', 2, '', 1000.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520000.0000, 1, 0.00, 300.000),
(645, 2, 5, 'Final', 3, '', 1000.00, 450.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 450.0000, 450000.0000, 1, 0.00, 300.000),
(646, 2, 5, 'Final', 8, '', 1000.00, 15.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 15.0000, 15000.0000, 1, 0.00, 12.000),
(647, 2, 5, 'Final', 7, '', 1000.00, 12.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 12.0000, 12000.0000, 1, 0.00, 8.000),
(648, 2, 5, 'Final', 10, '', 1000.00, 500.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 500.0000, 500000.0000, 1, 0.00, 400.000),
(649, 2, 5, 'Final', 9, '', 1000.00, 500.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 500.0000, 500000.0000, 1, 0.00, 400.000),
(650, 2, 6, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(651, 2, 7, 'Final', 8, '', 1.00, 15.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 15.0000, 15.0000, 1, 0.00, 12.000),
(652, 2, 7, 'Final', 9, '', 1.00, 500.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 500.0000, 500.0000, 1, 0.00, 400.000),
(653, 2, 8, 'Final', 8, '', 5.00, 15.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 15.0000, 75.0000, 1, 0.00, 12.000),
(654, 2, 9, 'Final', 4, '', 1.00, 220.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 220.0000, 220.0000, 1, 0.00, 180.000),
(655, 2, 10, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(656, 2, 11, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(657, 2, 12, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(658, 2, 12, 'Final', 2, '', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520.0000, 1, 0.00, 300.000),
(659, 2, 12, 'Final', 3, '', 1.00, 450.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 450.0000, 450.0000, 1, 0.00, 300.000),
(660, 2, 13, 'Final', 2, '', 2.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 1040.0000, 1, 0.00, 300.000),
(661, 2, 13, 'Final', 4, '', 1.00, 220.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 220.0000, 220.0000, 1, 0.00, 180.000),
(662, 2, 14, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(663, 2, 15, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(664, 2, 16, 'Final', 6, '', 1.00, 45.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 45.0000, 45.0000, 1, 0.00, 35.000),
(665, 2, 16, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(666, 2, 16, 'Final', 5, '', 1.00, 12.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 12.0000, 12.0000, 1, 0.00, 10.000),
(669, 2, 17, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', NULL, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(676, 2, 18, 'Final', 2, '', 10.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 5200.0000, 1, 0.00, 300.000),
(677, 2, 19, 'Final', 16, '', 1.00, 1000.0000, 'Inclusive', 150, NULL, 'Fixed', 0.0000, 0.0000, 1000.0000, 1000.0000, 1, 0.00, 1000.000),
(678, 2, 20, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(679, 2, 21, 'Final', 11, '', 1.00, 12.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 12.0000, 12.0000, 1, 0.00, 10.000),
(680, 2, 21, 'Final', 6, '', 1.00, 45.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 45.0000, 45.0000, 1, 0.00, 35.000),
(681, 2, 21, 'Final', 7, '', 1.00, 12.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 12.0000, 12.0000, 1, 0.00, 8.000),
(682, 2, 22, 'Final', 11, '', 1.00, 12.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 12.0000, 12.0000, 1, 0.00, 10.000),
(683, 2, 22, 'Final', 6, '', 1.00, 45.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 45.0000, 45.0000, 1, 0.00, 35.000),
(684, 2, 22, 'Final', 7, '', 1.00, 12.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 12.0000, 12.0000, 1, 0.00, 8.000),
(685, 2, 23, 'Final', 6, '', 5.00, 45.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 45.0000, 225.0000, 1, 0.00, 35.000),
(686, 2, 23, 'Final', 5, '', 12.00, 12.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 12.0000, 144.0000, 1, 0.00, 10.000),
(687, 2, 23, 'Final', 2, '', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520.0000, 1, 0.00, 300.000),
(688, 2, 23, 'Final', 3, '', 1.00, 450.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 450.0000, 450.0000, 1, 0.00, 300.000),
(689, 2, 23, 'Final', 4, '', 1.00, 220.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 220.0000, 220.0000, 1, 0.00, 180.000),
(690, 2, 23, 'Final', 8, '', 1.00, 15.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 15.0000, 15.0000, 1, 0.00, 12.000),
(691, 2, 24, 'Final', 18, '', 11.00, 2200.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 2200.0000, 24200.0000, 1, 0.00, 2000.000),
(692, 2, 25, 'Final', 18, '', 4.00, 2200.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 2200.0000, 8800.0000, 1, 0.00, 2000.000),
(693, 2, 26, 'Final', 16, '', 1.00, 1000.0000, 'Inclusive', 150, NULL, 'Fixed', 0.0000, 0.0000, 1000.0000, 1000.0000, 1, 0.00, 1000.000),
(694, 2, 26, 'Final', 10, '', 1.00, 500.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 500.0000, 500.0000, 1, 0.00, 400.000),
(698, 2, 27, 'Final', 16, '', 1.00, 1000.0000, 'Inclusive', 150, NULL, 'Fixed', 0.0000, 0.0000, 1000.0000, 1000.0000, 1, 0.00, 1000.000),
(699, 2, 28, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(700, 2, 28, 'Final', 2, '', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520.0000, 1, 0.00, 300.000),
(701, 2, 28, 'Final', 3, '', 1.00, 450.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 450.0000, 450.0000, 1, 0.00, 300.000),
(702, 2, 28, 'Final', 4, '', 1.00, 220.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 220.0000, 220.0000, 1, 0.00, 180.000),
(703, 2, 28, 'Final', 5, '', 1.00, 12.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 12.0000, 12.0000, 1, 0.00, 10.000),
(704, 2, 28, 'Final', 6, '', 1.00, 45.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 45.0000, 45.0000, 1, 0.00, 35.000),
(705, 2, 29, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(706, 2, 29, 'Final', 2, '', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520.0000, 1, 0.00, 300.000),
(707, 2, 29, 'Final', 6, '', 1.00, 45.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 45.0000, 45.0000, 1, 0.00, 35.000),
(708, 2, 29, 'Final', 5, '', 1.00, 12.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 12.0000, 12.0000, 1, 0.00, 10.000),
(709, 2, 30, 'Final', 9, '', 1.00, 500.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 500.0000, 500.0000, 1, 0.00, 400.000),
(710, 2, 30, 'Final', 10, '', 1.00, 500.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 500.0000, 500.0000, 1, 0.00, 400.000),
(711, 2, 30, 'Final', 12, '', 1.00, 30.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 30.0000, 30.0000, 1, 0.00, 20.000),
(712, 2, 30, 'Final', 16, '', 1.00, 1000.0000, 'Inclusive', 150, NULL, 'Fixed', 0.0000, 0.0000, 1000.0000, 1000.0000, 1, 0.00, 1000.000),
(713, 2, 30, 'Final', 3, '', 1.00, 450.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 450.0000, 450.0000, 1, 0.00, 300.000),
(714, 2, 30, 'Final', 2, '', 2.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 1040.0000, 1, 0.00, 300.000),
(715, 2, 30, 'Final', 5, '', 1.00, 12.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 12.0000, 12.0000, 1, 0.00, 10.000),
(716, 2, 30, 'Final', 6, '', 1.00, 45.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 45.0000, 45.0000, 1, 0.00, 35.000),
(717, 2, 30, 'Final', 1, '', 5.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 110000.0000, 1, 0.00, 15000.000),
(718, 2, 31, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(719, 2, 32, 'Final', 16, '', 1.00, 1000.0000, 'Inclusive', 150, NULL, 'Fixed', 0.0000, 0.0000, 1000.0000, 1000.0000, 1, 0.00, 1000.000),
(720, 2, 33, 'Final', 16, '', 1.00, 1000.0000, 'Inclusive', 150, NULL, 'Fixed', 0.0000, 0.0000, 1000.0000, 1000.0000, 1, 0.00, 1000.000),
(721, 2, 34, 'Final', 9, '', 2.00, 500.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 500.0000, 1000.0000, 1, 0.00, 400.000),
(722, 2, 35, 'Final', 3, '', 3.00, 450.0000, 'Inclusive', 150, NULL, 'Percentage', 10.0000, 135.0000, 450.0000, 1215.0000, 1, 0.00, 300.000),
(723, 2, 36, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(724, 2, 37, 'Final', 2, '', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520.0000, 1, 0.00, 300.000),
(725, 2, 37, 'Final', 6, '', 1.00, 45.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 45.0000, 45.0000, 1, 0.00, 35.000),
(726, 2, 38, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(727, 2, 38, 'Final', 2, '', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520.0000, 1, 0.00, 300.000),
(728, 2, 39, 'Final', 3, '', 1.00, 450.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 450.0000, 450.0000, 1, 0.00, 300.000),
(729, 2, 39, 'Final', 2, '', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520.0000, 1, 0.00, 300.000),
(730, 2, 39, 'Final', 18, '', 1.00, 2200.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 2200.0000, 2200.0000, 1, 0.00, 2000.000),
(731, 2, 40, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(732, 2, 40, 'Final', 2, '', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520.0000, 1, 0.00, 300.000),
(733, 2, 41, 'Final', 2, '', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520.0000, 1, 0.00, 300.000),
(734, 2, 42, 'Final', 1, '', 2.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', NULL, 0.0000, 22000.0000, 44000.0000, 1, 0.00, 15000.000),
(735, 2, 42, 'Final', 12, '', 1.00, 30.0000, 'Inclusive', 150, NULL, 'Percentage', NULL, 0.0000, 30.0000, 30.0000, 1, 0.00, 20.000),
(736, 2, 43, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(737, 2, 44, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(738, 2, 45, 'Final', 1, 'Imei Number 144444', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(739, 2, 46, 'Final', 1, 'Imei Number: 44114444', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(740, 2, 47, 'Final', 1, 'Imei number 44111444', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(741, 2, 48, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(742, 2, 49, 'Final', 2, 'kkkk', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520.0000, 1, 0.00, 300.000),
(743, 2, 50, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(744, 2, 51, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(745, 2, 52, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(746, 2, 53, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(747, 2, 54, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(748, 2, 55, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(749, 2, 56, 'Final', 1, '', 2.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 44000.0000, 1, 0.00, 15000.000),
(750, 2, 57, 'Final', 1, 'Imei: 125645884 &amp; 1 yeras Genrunty', 2.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 44000.0000, 1, 0.00, 15000.000),
(751, 2, 58, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(752, 2, 59, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(753, 2, 60, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(754, 2, 61, 'Final', 4, '', 1.00, 220.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 220.0000, 220.0000, 1, 0.00, 180.000),
(755, 2, 62, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(756, 2, 63, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(757, 2, 64, 'Final', 6, '451225554', 1.00, 45.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 45.0000, 45.0000, 1, 0.00, 35.000),
(758, 2, 65, 'Final', 3, '', 1.00, 450.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 450.0000, 450.0000, 1, 0.00, 300.000),
(759, 2, 66, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(760, 2, 67, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(765, 2, 68, 'Final', 1, '1 Years Geruntee (IMEI: 125845577784)', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(766, 2, 69, 'Final', 1, '15545336', 2.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 44000.0000, 1, 0.00, 15000.000),
(767, 2, 70, 'Final', 1, '1155', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(768, 2, 71, 'Final', 1, '4444', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(769, 2, 72, 'Final', 1, '545454', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(770, 2, 73, 'Final', 1, '4454554', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(771, 2, 74, 'Final', 2, '1122121', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520.0000, 1, 0.00, 300.000),
(772, 2, 75, 'Final', 1, '54544554', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(773, 2, 76, 'Final', 1, '545454', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(774, 2, 77, 'Final', 1, '544554', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(775, 2, 78, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(776, 2, 79, 'Final', 1, '1 Years Warrenty (IMEI: 12545887654477)', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(777, 2, 80, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(778, 2, 81, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(779, 2, 82, 'Final', 1, '14555', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(780, 2, 83, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(781, 2, 84, 'Final', 1, '1 years geruntee', 1.00, 22000.0000, 'Exclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(782, 2, 85, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(789, 2, 86, 'Final', 1, '1554444', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(790, 2, 86, 'Final', 2, '', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520.0000, 1, 0.00, 300.000),
(791, 2, 86, 'Final', 6, '', 1.00, 45.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 45.0000, 45.0000, 1, 0.00, 35.000),
(792, 2, 87, 'Final', 1, '', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000),
(793, 2, 88, 'Final', 2, '1 Years Gerunty (IMEI: 1114444)', 1.00, 520.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 520.0000, 520.0000, 1, 0.00, 300.000),
(794, 2, 89, 'Final', 1, '1 yeras warrenty (IMEI: 1144444)', 1.00, 22000.0000, 'Inclusive', 150, NULL, 'Percentage', 0.0000, 0.0000, 22000.0000, 22000.0000, 1, 0.00, 15000.000);

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

--
-- Table structure for table `db_salesitemsreturn`
--

CREATE TABLE `db_salesitemsreturn` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `sales_id` int(11) DEFAULT NULL,
  `return_id` int(11) DEFAULT NULL,
  `return_status` varchar(50) DEFAULT NULL,
  `item_id` int(11) DEFAULT NULL,
  `return_qty` double(20,2) DEFAULT NULL,
  `price_per_unit` double(20,4) DEFAULT NULL,
  `tax_type` varchar(50) DEFAULT NULL,
  `tax_id` int(11) DEFAULT NULL,
  `tax_amt` double(20,4) DEFAULT NULL,
  `discount_input` double(20,4) DEFAULT NULL,
  `discount_amt` double(20,4) DEFAULT NULL,
  `discount_type` varchar(50) DEFAULT NULL,
  `unit_total_cost` double(20,4) DEFAULT NULL,
  `total_cost` double(20,4) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `purchase_price` double(20,3) DEFAULT 0.000
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_salesitemsreturn`
--

INSERT INTO `db_salesitemsreturn` (`id`, `store_id`, `sales_id`, `return_id`, `return_status`, `item_id`, `return_qty`, `price_per_unit`, `tax_type`, `tax_id`, `tax_amt`, `discount_input`, `discount_amt`, `discount_type`, `unit_total_cost`, `total_cost`, `status`, `description`, `purchase_price`) VALUES
(86, 2, NULL, 1, 'Return', 1, 1.00, 22000.0000, 'Inclusive', 150, NULL, NULL, 0.0000, 'Percentage', 22000.0000, 22000.0000, 1, '', 15000.000);

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

--
-- Table structure for table `db_salespayments`
--

CREATE TABLE `db_salespayments` (
  `id` int(11) NOT NULL,
  `count_id` int(11) DEFAULT NULL,
  `payment_code` varchar(50) DEFAULT NULL,
  `store_id` int(11) DEFAULT NULL,
  `sales_id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `payment_type` varchar(50) DEFAULT NULL,
  `payment` double(20,4) DEFAULT NULL,
  `payment_note` text DEFAULT NULL,
  `change_return` double(20,4) DEFAULT NULL COMMENT 'Refunding the greater amount',
  `system_ip` varchar(50) DEFAULT NULL,
  `system_name` varchar(50) DEFAULT NULL,
  `created_time` varchar(50) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `short_code` varchar(50) DEFAULT NULL,
  `advance_adjusted` double(20,4) DEFAULT NULL,
  `cheque_number` varchar(100) DEFAULT NULL,
  `cheque_period` int(11) DEFAULT NULL,
  `cheque_status` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_salespayments`
--

INSERT INTO `db_salespayments` (`id`, `count_id`, `payment_code`, `store_id`, `sales_id`, `payment_date`, `payment_type`, `payment`, `payment_note`, `change_return`, `system_ip`, `system_name`, `created_time`, `created_date`, `created_by`, `status`, `account_id`, `customer_id`, `short_code`, `advance_adjusted`, `cheque_number`, `cheque_period`, `cheque_status`) VALUES
(351, 1, 'SP0001', 2, 1, '2024-07-09', 'CASH', 500.0000, '', 0.0000, '::1', 'DESKTOP-GMFRN98', '02:24:11 am', '2024-07-09', 'admin', 1, 1, 7, NULL, 0.0000, NULL, NULL, NULL),
(352, 2, 'SP0002', 2, 2, '2024-07-09', 'CASH', 800.0000, '', 0.0000, '::1', 'DESKTOP-GMFRN98', '02:25:34 am', '2024-07-09', 'admin', 1, 1, 8, NULL, 0.0000, NULL, NULL, NULL),
(353, 3, 'SP0003', 2, 3, '2024-07-09', 'CASH', 300.0000, '', 0.0000, '::1', 'DESKTOP-GMFRN98', '02:26:53 am', '2024-07-09', 'admin', 1, 1, 9, NULL, 0.0000, NULL, NULL, NULL),
(354, 4, 'SP0004', 2, 4, '2024-07-09', 'CASH', 2265250.0000, '', 0.0000, '::1', 'DESKTOP-GMFRN98', '12:27:43 pm', '2024-07-09', 'admin', 1, 1, 3, NULL, 0.0000, NULL, NULL, NULL),
(357, 5, 'SP0005', 2, 5, '2024-07-09', 'CASH', 23997000.0000, '', 0.0000, '::1', 'DESKTOP-GMFRN98', '12:30:45 pm', '2024-07-09', 'admin', 1, 1, 3, NULL, 0.0000, NULL, NULL, NULL),
(358, 6, 'SP0006', 2, 6, '2024-07-09', 'CASH', 200.0000, '', 0.0000, '::1', 'DESKTOP-GMFRN98', '12:31:34 pm', '2024-07-09', 'admin', 1, 1, 7, NULL, 0.0000, NULL, NULL, NULL),
(359, 7, 'SP0007', 2, 7, '2024-07-09', 'CASH', 300.0000, '', 0.0000, '::1', 'DESKTOP-GMFRN98', '12:32:23 pm', '2024-07-09', 'admin', 1, 1, 8, NULL, 0.0000, NULL, NULL, NULL),
(360, 8, 'SP0008', 2, 8, '2024-07-09', 'CASH', 75.0000, '', 0.0000, '::1', 'DESKTOP-GMFRN98', '12:32:46 pm', '2024-07-09', 'admin', 1, 1, 9, NULL, 0.0000, NULL, NULL, NULL),
(361, 9, 'SP0009', 2, 7, '2024-07-09', 'CASH', 215.0000, '', NULL, '::1', 'DESKTOP-GMFRN98', '12:33:29 pm', '2024-07-09', 'admin', 1, 1, 8, NULL, 0.0000, '', 0, 'Pending'),
(362, 10, 'SP0010', 2, 6, '2024-07-09', 'CASH', 500.0000, '', NULL, '::1', 'DESKTOP-GMFRN98', '12:33:39 pm', '2024-07-09', 'admin', 1, 1, 7, NULL, 0.0000, '', 0, 'Pending'),
(363, 11, 'SP0011', 2, 3, '2024-07-09', 'CASH', 21700.0000, '', NULL, '::1', 'DESKTOP-GMFRN98', '12:33:54 pm', '2024-07-09', 'admin', 1, 1, 9, NULL, 0.0000, '', 0, 'Pending'),
(364, 12, 'SP0012', 2, 1, '2024-07-09', 'CASH', 999.0000, '', NULL, '::1', 'DESKTOP-GMFRN98', '12:34:15 pm', '2024-07-09', 'admin', 1, 1, 7, NULL, 0.0000, '', 0, 'Pending'),
(365, 13, 'SP0013', 2, 1, '2024-07-09', 'CASH', 100.0000, '', NULL, '::1', 'DESKTOP-GMFRN98', '12:34:23 pm', '2024-07-09', 'admin', 1, 1, 7, NULL, 0.0000, '', 0, 'Pending'),
(366, 14, 'SP0014', 2, 6, '2024-07-09', 'CASH', 3000.0000, '', NULL, '::1', 'DESKTOP-GMFRN98', '12:34:43 pm', '2024-07-09', 'admin', 1, 1, 7, NULL, 0.0000, '', 0, 'Pending'),
(367, 15, 'SP0015', 2, 9, '2024-07-09', 'CASH', 100.0000, '', 0.0000, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '01:56:41 pm', '2024-07-09', 'admin', 1, 1, 10, NULL, 0.0000, NULL, NULL, NULL),
(368, 16, 'SP0016', 2, 10, '2024-07-09', 'CASH', 22000.0000, '', 0.0000, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '05:08:32 pm', '2024-07-09', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(369, 17, 'SP0017', 2, 11, '2024-07-10', 'Bkash', 22000.0000, '018708293434', 0.0000, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '12:02:23 pm', '2024-07-10', 'admin', 1, 4, 2, NULL, 0.0000, NULL, NULL, NULL),
(370, 18, 'SP0018', 2, 12, '2024-07-10', 'CASH', 22970.0000, '', 0.0000, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '12:07:41 pm', '2024-07-10', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(371, 19, 'SP0019', 2, 13, '2024-07-10', 'Bkash', 200.0000, '01870829343 ei number theke se pay koreche', 0.0000, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '12:20:25 pm', '2024-07-10', 'admin', 1, 4, 12, NULL, 0.0000, NULL, NULL, NULL),
(372, 20, 'SP0020', 2, 13, '2024-07-10', 'CASH', 800.0000, '', 0.0000, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '12:20:25 pm', '2024-07-10', 'admin', 1, 1, 12, NULL, 0.0000, NULL, NULL, NULL),
(373, 21, 'SP0021', 2, 13, '2024-07-10', 'CASH', 260.0000, '', NULL, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '12:24:08 pm', '2024-07-10', 'admin', 1, 1, 12, NULL, 0.0000, '', 0, 'Pending'),
(374, 22, 'SP0022', 2, 14, '2024-07-11', 'CASH', 20000.0000, '', 0.0000, '103.88.140.78', '103.88.140.78', '10:01:40 pm', '2024-07-11', 'admin', 1, 1, 13, NULL, 0.0000, NULL, NULL, NULL),
(375, 23, 'SP0023', 2, 15, '2024-07-12', 'Cash', 22000.0000, 'Paid By Cash', 0.0000, '103.85.156.81', '103.85.156.81.race.net.bd', '01:45:16 pm', '2024-07-12', 'admin', 1, NULL, 2, NULL, 0.0000, NULL, NULL, NULL),
(376, 24, 'SP0024', 2, 16, '2024-07-13', 'CASH', 200.0000, '', 0.0000, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '12:36:01 am', '2024-07-13', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(377, 25, 'SP0025', 2, 17, '2024-07-14', 'CASH', 22400.0000, '', NULL, '182.48.82.20', '182.48.82.20', '02:09:06 am', '2024-07-14', 'admin', 1, 1, 14, NULL, 0.0000, '', 0, 'Pending'),
(378, 26, 'SP0026', 2, NULL, '2024-07-14', 'CASH', 5.0000, '', NULL, '103.161.66.23', '103.161.66.23', '11:58:30 am', '2024-07-14', 'admin', 1, 1, 14, 'OPENING BALANCE PAID', NULL, NULL, NULL, NULL),
(381, 27, 'SP0027', 2, 18, '2024-07-16', 'CASH', 5200.0000, '', 0.0000, '103.92.153.33', '103.92.153.33', '06:37:50 pm', '2024-07-16', 'admin', 1, 2, 2, NULL, 0.0000, NULL, NULL, NULL),
(382, 28, 'SP0028', 2, 19, '2024-08-01', 'CASH', 100.0000, '', 0.0000, '115.164.210.7', 'UE7.210.digi.net.my', '01:08:04 pm', '2024-08-01', 'admin', 1, 2, 2, NULL, 0.0000, NULL, NULL, NULL),
(383, 29, 'SP0029', 2, 20, '2024-08-02', 'CASH', 22000.0000, '', 0.0000, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '04:15:14 pm', '2024-08-02', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(384, 30, 'SP0030', 2, 24, '2024-08-11', 'Cash', 24200.0000, 'Paid By Cash', 0.0000, '103.197.248.45', '103.197.248-45.eurotelbd.net', '07:14:03 pm', '2024-08-11', 'admin', 1, NULL, 2, NULL, 0.0000, NULL, NULL, NULL),
(385, 31, 'SP0031', 2, 25, '2024-08-18', 'CASH', 8800.0000, '', 0.0000, '118.179.89.119', '118.179.89.119', '12:29:58 am', '2024-08-18', 'admin', 1, 1, 3, NULL, 0.0000, NULL, NULL, NULL),
(386, 32, 'SP0032', 2, 26, '2024-08-19', 'Bkash', 1000.0000, '', 0.0000, '103.59.179.21', '103.59.179.21', '12:33:18 am', '2024-08-19', 'admin', 1, 7, 2, NULL, 0.0000, NULL, NULL, NULL),
(387, 33, 'SP0033', 2, 26, '2024-08-19', 'CASH', 200.0000, '', 0.0000, '103.59.179.21', '103.59.179.21', '12:33:18 am', '2024-08-19', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(388, 34, 'SP0034', 2, 26, '2024-08-19', 'Rocket', 300.0000, '', 0.0000, '103.59.179.21', '103.59.179.21', '12:33:18 am', '2024-08-19', 'admin', 1, 2, 2, NULL, 0.0000, NULL, NULL, NULL),
(389, 35, 'SP0035', 2, 2, '2024-08-19', 'CASH', 21200.0000, '', NULL, '103.59.179.21', '103.59.179.21', '12:56:18 am', '2024-08-19', 'admin', 1, 1, 8, NULL, NULL, NULL, NULL, NULL),
(390, 36, 'SP0036', 2, 1, '2024-08-19', 'CASH', 20401.0000, '', NULL, '103.59.179.21', '103.59.179.21', '12:56:34 am', '2024-08-19', 'admin', 1, 1, 7, NULL, NULL, NULL, NULL, NULL),
(391, 36, 'SP0036', 2, 6, '2024-08-19', 'CASH', 18300.0000, '', NULL, '103.59.179.21', '103.59.179.21', '12:56:34 am', '2024-08-19', 'admin', 1, 1, 7, NULL, NULL, NULL, NULL, NULL),
(392, 37, 'SP0037', 2, 14, '2024-08-13', 'CASH', 2000.0000, '', NULL, '103.59.179.21', '103.59.179.21', '12:57:48 am', '2024-08-19', 'admin', 1, 1, 13, NULL, NULL, NULL, NULL, NULL),
(394, 38, 'SP0038', 2, 27, '2024-08-19', 'CASH', 500.0000, '', 0.0000, '103.59.179.21', '103.59.179.21', '01:38:07 am', '2024-08-19', 'admin', 1, 1, 13, NULL, 0.0000, NULL, NULL, NULL),
(395, 39, 'SP0039', 2, 27, '2024-08-19', 'Rocket', 500.0000, '', 0.0000, '103.59.179.21', '103.59.179.21', '01:38:07 am', '2024-08-19', 'admin', 1, 6, 13, NULL, 0.0000, NULL, NULL, NULL),
(396, 40, 'SP0040', 2, 28, '2024-08-21', 'Cash', 23247.0000, 'Paid By Cash', 0.0000, '103.140.212.171', '103.140.212.171', '01:23:03 am', '2024-08-21', 'admin', 1, NULL, 2, NULL, 0.0000, NULL, NULL, NULL),
(397, 41, 'SP0041', 2, 29, '2024-08-23', 'Cash', 22577.0000, 'Paid By Cash', 0.0000, '103.114.94.37', '103.114.94.37', '12:01:20 am', '2024-08-23', 'admin', 1, NULL, 2, NULL, 0.0000, NULL, NULL, NULL),
(398, 42, 'SP0042', 2, 30, '2024-08-23', 'Cash', 113577.0000, 'Paid By Cash', 0.0000, '103.114.94.37', '103.114.94.37', '12:02:15 am', '2024-08-23', 'admin', 1, NULL, 2, NULL, 0.0000, NULL, NULL, NULL),
(399, 43, 'SP0043', 2, 31, '2024-08-31', 'CASH', 22000.0000, 'Ss', 0.0000, '37.111.237.161', '37.111.237.161', '03:12:21 pm', '2024-08-31', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(400, 44, 'SP0044', 2, 33, '2024-08-31', 'Cash', 1000.0000, 'Paid By Cash', 0.0000, '182.163.115.234', 'IP-115-234.bol-online.com', '05:14:51 pm', '2024-08-31', 'admin', 1, NULL, 2, NULL, 0.0000, NULL, NULL, NULL),
(401, 45, 'SP0045', 2, 34, '2024-08-31', 'Cash', 1000.0000, 'Paid By Cash', 0.0000, '182.163.115.234', 'IP-115-234.bol-online.com', '05:23:51 pm', '2024-08-31', 'admin', 1, NULL, 20, NULL, 0.0000, NULL, NULL, NULL),
(402, 46, 'SP0046', 2, 36, '2024-09-12', 'Cash', 22000.0000, 'Paid By Cash', 0.0000, '43.245.143.54', '43.245.143.54.summitiig.net', '09:55:07 am', '2024-09-12', 'admin', 1, NULL, 2, NULL, 0.0000, NULL, NULL, NULL),
(403, 47, 'SP0047', 2, 38, '2024-09-13', 'Cash', 22520.0000, 'Paid By Cash', 0.0000, '45.118.60.6', '45.118.60.6', '08:23:43 pm', '2024-09-13', 'admin', 1, NULL, 2, NULL, 0.0000, NULL, NULL, NULL),
(404, 48, 'SP0048', 2, 39, '2024-09-16', 'Cash', 3170.0000, 'Paid By Cash', 0.0000, '117.99.20.215', '117.99.20.215', '06:26:34 am', '2024-09-16', 'admin', 1, NULL, 2, NULL, 0.0000, NULL, NULL, NULL),
(405, 49, 'SP0049', 2, 40, '2024-09-19', 'CASH', 22520.0000, '', 480.0000, '103.84.133.206', '103.84.133.206', '11:30:32 pm', '2024-09-19', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(406, 50, 'SP0050', 2, 42, '2024-09-22', 'CASH', 43590.0000, '', NULL, '37.111.212.94', '37.111.212.94', '06:49:01 pm', '2024-09-22', 'admin', 1, 1, 2, NULL, 0.0000, '', 0, 'Pending'),
(407, 51, 'SP0051', 2, 43, '2025-01-29', 'Cash', 22000.0000, 'Paid By Cash', 0.0000, '::1', 'DESKTOP-2JSSNEM', '04:08:16 pm', '2025-01-29', 'admin', 1, NULL, 2, NULL, 0.0000, NULL, NULL, NULL),
(408, 52, 'SP0052', 2, 44, '2025-01-29', 'Cash', 22000.0000, 'Paid By Cash', 0.0000, '::1', 'DESKTOP-2JSSNEM', '04:10:28 pm', '2025-01-29', 'admin', 1, NULL, 2, NULL, 0.0000, NULL, NULL, NULL),
(409, 53, 'SP0053', 2, 45, '2025-01-29', 'CASH', 22000.0000, '', 0.0000, '::1', 'DESKTOP-2JSSNEM', '04:11:04 pm', '2025-01-29', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(410, 54, 'SP0054', 2, 50, '2025-01-29', 'CASH', 22000.0000, '', -22000.0000, '::1', 'DESKTOP-2JSSNEM', '04:21:20 pm', '2025-01-29', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(411, 55, 'SP0055', 2, 57, '2025-01-29', 'CASH', 44000.0000, '', 0.0000, '::1', 'DESKTOP-2JSSNEM', '05:51:47 pm', '2025-01-29', 'admin', 1, 1, 3, NULL, 0.0000, NULL, NULL, NULL),
(412, 56, 'SP0056', 2, 58, '2025-01-29', 'CASH', 22000.0000, '', 0.0000, '::1', 'DESKTOP-2JSSNEM', '05:55:48 pm', '2025-01-29', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(413, 57, 'SP0057', 2, 65, '2025-01-29', 'CASH', 100.0000, '', 0.0000, '::1', 'DESKTOP-2JSSNEM', '06:22:37 pm', '2025-01-29', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(414, 58, 'SP0058', 2, 67, '2025-01-29', 'Cash', 22000.0000, 'Paid By Cash', 0.0000, '::1', 'DESKTOP-2JSSNEM', '06:23:18 pm', '2025-01-29', 'admin', 1, NULL, 3, NULL, 0.0000, NULL, NULL, NULL),
(418, 59, 'SP0059', 2, 78, '2025-01-29', 'Cash', 22000.0000, 'Paid By Cash', 0.0000, '::1', 'DESKTOP-2JSSNEM', '07:50:22 pm', '2025-01-29', 'admin', 1, NULL, 2, NULL, 0.0000, NULL, NULL, NULL),
(419, 60, 'SP0060', 2, 83, '2025-01-29', 'CASH', 2200.0000, '', 0.0000, '::1', 'DESKTOP-2JSSNEM', '11:54:55 pm', '2025-01-29', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(422, 61, 'SP0061', 2, 86, '2025-02-02', 'CASH', 154.0000, '', 0.0000, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '04:35:23 am', '2025-02-02', 'admin', 1, 1, 7, NULL, 0.0000, NULL, NULL, NULL),
(423, 62, 'SP0062', 2, 87, '2025-02-02', 'CASH', 22000.0000, '', 0.0000, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '01:02:06 pm', '2025-02-02', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(424, 63, 'SP0063', 2, 88, '2025-02-03', 'CASH', 300.0000, '', 0.0000, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '04:33:03 pm', '2025-02-03', 'admin', 1, 1, 2, NULL, 0.0000, NULL, NULL, NULL),
(425, 64, 'SP0064', 2, 88, '2025-02-03', 'CASH', 220.0000, '', NULL, '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', '04:34:02 pm', '2025-02-03', 'admin', 1, 1, 2, NULL, 0.0000, '', 0, 'Pending');

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

--
-- Table structure for table `db_salespaymentsreturn`
--

CREATE TABLE `db_salespaymentsreturn` (
  `id` int(11) NOT NULL,
  `count_id` int(11) DEFAULT NULL,
  `payment_code` varchar(50) DEFAULT NULL,
  `store_id` int(11) DEFAULT NULL,
  `sales_id` int(11) DEFAULT NULL,
  `return_id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `payment_type` varchar(50) DEFAULT NULL,
  `payment` double(20,4) DEFAULT NULL,
  `payment_note` text DEFAULT NULL,
  `change_return` double(20,4) DEFAULT NULL COMMENT 'Refunding the greater amount',
  `system_ip` varchar(50) DEFAULT NULL,
  `system_name` varchar(50) DEFAULT NULL,
  `created_time` time DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `short_code` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_salespaymentsreturn`
--

INSERT INTO `db_salespaymentsreturn` (`id`, `count_id`, `payment_code`, `store_id`, `sales_id`, `return_id`, `payment_date`, `payment_type`, `payment`, `payment_note`, `change_return`, `system_ip`, `system_name`, `created_time`, `created_date`, `created_by`, `status`, `account_id`, `customer_id`, `short_code`) VALUES
(46, 1, 'SRP0001', 2, NULL, 1, '2024-07-09', 'CASH', 22000.0000, '', NULL, '::1', 'DESKTOP-GMFRN98', '12:35:58', '2024-07-09', 'admin', 1, 1, 3, NULL);

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

--
-- Table structure for table `db_salesreturn`
--

CREATE TABLE `db_salesreturn` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL COMMENT 'Use to create Sales Return Code',
  `sales_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `return_code` varchar(50) DEFAULT NULL,
  `reference_no` varchar(50) DEFAULT NULL,
  `return_date` date DEFAULT NULL,
  `return_status` varchar(50) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `other_charges_input` double(20,4) DEFAULT NULL,
  `other_charges_tax_id` int(11) DEFAULT NULL,
  `other_charges_amt` double(20,4) DEFAULT NULL,
  `discount_to_all_input` double(20,4) DEFAULT NULL,
  `discount_to_all_type` varchar(50) DEFAULT NULL,
  `tot_discount_to_all_amt` double(20,4) DEFAULT NULL,
  `subtotal` double(20,4) DEFAULT NULL,
  `round_off` double(20,4) DEFAULT NULL,
  `grand_total` double(20,4) DEFAULT NULL,
  `return_note` text DEFAULT NULL,
  `payment_status` varchar(50) DEFAULT NULL,
  `paid_amount` double(20,4) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `system_ip` varchar(100) DEFAULT NULL,
  `system_name` varchar(100) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `pos` int(11) DEFAULT NULL COMMENT '1=yes 0=no',
  `status` int(11) DEFAULT NULL,
  `return_bit` int(11) DEFAULT NULL COMMENT 'Return raised or not 1 or null',
  `coupon_id` int(11) DEFAULT NULL,
  `coupon_amt` double(20,2) DEFAULT 0.00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_salesreturn`
--

INSERT INTO `db_salesreturn` (`id`, `store_id`, `count_id`, `sales_id`, `warehouse_id`, `return_code`, `reference_no`, `return_date`, `return_status`, `customer_id`, `other_charges_input`, `other_charges_tax_id`, `other_charges_amt`, `discount_to_all_input`, `discount_to_all_type`, `tot_discount_to_all_amt`, `subtotal`, `round_off`, `grand_total`, `return_note`, `payment_status`, `paid_amount`, `created_date`, `created_time`, `created_by`, `system_ip`, `system_name`, `company_id`, `pos`, `status`, `return_bit`, `coupon_id`, `coupon_amt`) VALUES
(1, 2, 1, NULL, 2, 'SR0001', '1250', '2024-07-09', 'Return', 3, NULL, 150, NULL, NULL, 'in_percentage', NULL, 22000.0000, NULL, 22000.0000, '', 'Paid', 22000.0000, '2024-07-09', '12:35:58 pm', 'admin', '::1', 'DESKTOP-GMFRN98', NULL, NULL, 1, NULL, NULL, 0.00);

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

--
-- Table structure for table `db_shippingaddress`
--

CREATE TABLE `db_shippingaddress` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `city` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `postcode` varchar(20) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `address` text CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `location_link` text CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_shippingaddress`
--

INSERT INTO `db_shippingaddress` (`id`, `store_id`, `country_id`, `state_id`, `city`, `postcode`, `address`, `status`, `customer_id`, `location_link`) VALUES
(1, 1, 1, NULL, NULL, '', '', 1, 1, NULL),
(2, 2, NULL, NULL, NULL, NULL, NULL, 1, 2, NULL),
(4, 2, 0, 0, '', '', '', 1, 3, ''),
(5, 2, 0, 0, '', '', '', 1, 18, ''),
(6, 2, 210, 66, 'Dhaka', '1202', 'sutrapur\r\njatrabary', 1, 19, ''),
(7, 2, 210, 67, 'Dahak', '1200', 'sutrapur\r\njatrabary', 1, 13, ''),
(8, 2, 0, 0, '', '', '', 1, 20, ''),
(9, 2, 210, 67, 'Jashore ', '7400', 'Hospital get', 1, 21, '');

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

--
-- Table structure for table `db_sitesettings`
--

CREATE TABLE `db_sitesettings` (
  `id` int(11) NOT NULL,
  `version` varchar(10) DEFAULT NULL,
  `site_name` varchar(100) DEFAULT NULL,
  `logo` mediumtext DEFAULT NULL COMMENT 'path',
  `machine_id` text DEFAULT NULL,
  `domain` text DEFAULT NULL,
  `unique_code` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_sitesettings`
--

INSERT INTO `db_sitesettings` (`id`, `version`, `site_name`, `logo`, `machine_id`, `domain`, `unique_code`) VALUES
(1, '3.1', 'মুদিওয়ালা ৮.৮', '/uploads/site/logo.png', '1', 'pointofsale.ozonepos.com', '4kcd2s8v9axrpm6gy1foh7tlqij5nw');

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

--
-- Table structure for table `db_smsapi`
--

CREATE TABLE `db_smsapi` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `info` varchar(150) DEFAULT NULL,
  `key` varchar(600) DEFAULT NULL,
  `key_value` varchar(600) DEFAULT NULL,
  `delete_bit` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_smsapi`
--

INSERT INTO `db_smsapi` (`id`, `store_id`, `info`, `key`, `key_value`, `delete_bit`) VALUES
(29, 1, 'url', 'weblink', 'https://www.example.com/api/mt/SendSMS?', NULL),
(30, 1, 'mobile', 'mobiles', '', NULL),
(31, 1, 'message', 'message', '', NULL),
(32, 2, 'url', 'weblink', 'http://bulksmsbd.net/api/smsapi', NULL),
(33, 2, 'mobile', '+088', '', NULL),
(34, 2, 'message', 'message', '', NULL),
(35, 2, '', 'api_key', 'your_api_key', NULL),
(36, 2, '', 'senderid', 'your_sender_id', NULL);

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

--
-- Table structure for table `db_smstemplates`
--

CREATE TABLE `db_smstemplates` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `template_name` varchar(100) DEFAULT NULL,
  `content` text DEFAULT NULL,
  `variables` text DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `undelete_bit` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_smstemplates`
--

INSERT INTO `db_smstemplates` (`id`, `store_id`, `template_name`, `content`, `variables`, `status`, `undelete_bit`) VALUES
(1, 1, 'GREETING TO CUSTOMER ON SALES', 'Hi {{customer_name}},\r\nYour sales Id is {{sales_id}},\r\nSales Date {{sales_date}},\r\nTotal amount  {{sales_amount}},\r\nYou have paid  {{paid_amt}},\r\nand due amount is  {{due_amt}}\r\nThank you Visit Again', '{{customer_name}}<br>                          \r\n{{sales_id}}<br>\r\n{{sales_date}}<br>\r\n{{sales_amount}}<br>\r\n{{paid_amt}}<br>\r\n{{due_amt}}<br>\r\n{{store_name}}<br>\r\n{{store_mobile}}<br>\r\n{{store_address}}<br>\r\n{{store_website}}<br>\r\n{{store_email}}<br>\r\n', 1, 1),
(2, 1, 'GREETING TO CUSTOMER ON SALES RETURN', 'Hi {{customer_name}},\r\nYour sales return Id is {{return_id}},\r\nReturn Date {{return_date}},\r\nTotal amount  {{return_amount}},\r\nWe paid  {{paid_amt}},\r\nand due amount is  {{due_amt}}\r\nThank you Visit Again', '{{customer_name}}<br>                          \r\n{{return_id}}<br>\r\n{{return_date}}<br>\r\n{{return_amount}}<br>\r\n{{paid_amt}}<br>\r\n{{due_amt}}<br>\r\n{{company_name}}<br>\r\n{{company_mobile}}<br>\r\n{{company_address}}<br>\r\n{{company_website}}<br>\r\n{{company_email}}<br>', 1, 1),
(12, 2, 'GREETING TO CUSTOMER ON SALES', 'Hi {{customer_name}},\r\nYour sales Id is {{sales_id}},\r\nSales Date {{sales_date}},\r\nTotal amount  {{sales_amount}},\r\nYou have paid  {{paid_amt}},\r\nand due amount is  {{due_amt}}\r\nThank you Visit Again', '{{customer_name}}                          \r\n{{sales_id}}\r\n{{sales_date}}\r\n{{sales_amount}}\r\n{{paid_amt}}\r\n{{due_amt}}\r\n{{store_name}}\r\n{{store_mobile}}\r\n{{store_address}}\r\n{{store_website}}\r\n{{store_email}}\r\n', 1, 1),
(13, 2, 'GREETING TO CUSTOMER ON SALES RETURN', 'Hi {{customer_name}},\r\nYour sales return Id is {{return_id}},\r\nReturn Date {{return_date}},\r\nTotal amount  {{return_amount}},\r\nWe paid  {{paid_amt}},\r\nand due amount is  {{due_amt}}\r\nThank you Visit Again', '{{customer_name}}                          \r\n{{return_id}}\r\n{{return_date}}\r\n{{return_amount}}\r\n{{paid_amt}}\r\n{{due_amt}}\r\n{{company_name}}\r\n{{company_mobile}}\r\n{{company_address}}\r\n{{company_website}}\r\n{{company_email}}\r\n', 1, 1);

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

--
-- Table structure for table `db_sobpayments`
--

CREATE TABLE `db_sobpayments` (
  `id` int(11) NOT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `payment_type` varchar(50) DEFAULT NULL,
  `payment` double(10,2) DEFAULT NULL,
  `payment_note` mediumtext DEFAULT NULL,
  `system_ip` varchar(50) DEFAULT NULL,
  `system_name` varchar(50) DEFAULT NULL,
  `created_time` time DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_states`
--

CREATE TABLE `db_states` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `state_code` varchar(10) DEFAULT NULL,
  `state` varchar(4050) DEFAULT NULL,
  `country_code` varchar(15) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `country` varchar(15) DEFAULT NULL,
  `added_on` date DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_states`
--

INSERT INTO `db_states` (`id`, `store_id`, `state_code`, `state`, `country_code`, `country_id`, `country`, `added_on`, `company_id`, `status`) VALUES
(64, 2, NULL, 'Barisal Division', NULL, NULL, 'Bangladesh', NULL, NULL, 1),
(65, 2, NULL, 'Chittagong Division', NULL, NULL, 'Bangladesh', NULL, NULL, 1),
(66, 2, NULL, 'Dhaka Division', NULL, NULL, 'Bangladesh', NULL, NULL, 1),
(67, 2, NULL, 'Khulna Division', NULL, NULL, 'Bangladesh', NULL, NULL, 1),
(68, 2, NULL, 'Rajshahi Division', NULL, NULL, 'Bangladesh', NULL, NULL, 1),
(69, 2, NULL, 'Rangpur Division', NULL, NULL, 'Bangladesh', NULL, NULL, 1),
(70, 2, NULL, 'Sylhet Division', NULL, NULL, 'Bangladesh', NULL, NULL, 1);

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

--
-- Table structure for table `db_stockadjustment`
--

CREATE TABLE `db_stockadjustment` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `reference_no` varchar(50) DEFAULT NULL,
  `adjustment_date` date DEFAULT NULL,
  `adjustment_note` mediumtext DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `system_ip` varchar(100) DEFAULT NULL,
  `system_name` varchar(100) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_stockadjustment`
--

INSERT INTO `db_stockadjustment` (`id`, `store_id`, `warehouse_id`, `reference_no`, `adjustment_date`, `adjustment_note`, `created_date`, `created_time`, `created_by`, `system_ip`, `system_name`, `status`) VALUES
(18, 2, 2, NULL, '2022-08-09', NULL, '2022-08-09', '12:00:19 pm', 'Chris', '37.28.46.147', 'dynamic.isp.ooredoo.om', 1),
(19, 2, 2, '', '2022-08-09', '', '2022-08-09', '01:38:51 pm', 'Chris', '37.28.46.147', 'dynamic.isp.ooredoo.om', 1),
(20, 2, 2, NULL, '2022-08-10', NULL, '2022-08-10', '09:23:28 am', 'Chris', '5.21.237.233', '5.21.237.233', 1),
(21, 2, 2, NULL, '2024-07-09', NULL, '2024-07-09', '01:52:33 am', 'admin', '::1', 'DESKTOP-GMFRN98', 1),
(22, 2, 2, NULL, '2024-07-09', NULL, '2024-07-09', '12:42:05 pm', 'admin', '::1', 'DESKTOP-GMFRN98', 1),
(23, 2, 2, NULL, '2024-07-10', NULL, '2024-07-10', '12:49:08 pm', 'admin', '103.131.145.159', 'client-103.131.145.159.plexuscloud.com.bd', 1),
(24, 2, 87, NULL, '2024-07-14', NULL, '2024-07-14', '10:52:51 am', 'admin', '114.130.189.19', '114.130.189.19', 1),
(25, 2, 2, NULL, '2024-08-11', NULL, '2024-08-11', '07:12:39 pm', 'admin', '103.197.248.45', '103.197.248-45.eurotelbd.net', 1);

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

--
-- Table structure for table `db_stockadjustmentitems`
--

CREATE TABLE `db_stockadjustmentitems` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `adjustment_id` int(11) DEFAULT NULL,
  `item_id` int(11) DEFAULT NULL,
  `adjustment_qty` double(20,2) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_stockadjustmentitems`
--

INSERT INTO `db_stockadjustmentitems` (`id`, `store_id`, `warehouse_id`, `adjustment_id`, `item_id`, `adjustment_qty`, `status`, `description`) VALUES
(366, 2, 2, 21, 1, 20.00, 1, NULL),
(367, 2, 2, 22, 11, 2.00, 1, NULL),
(368, 2, 2, 23, 12, 20.00, 1, NULL),
(369, 2, 87, 24, 14, 10.00, 1, NULL),
(370, 2, 2, 25, 18, 50.00, 1, NULL),
(371, 2, 2, 19, 4, 1.00, 1, '');

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

--
-- Table structure for table `db_stockentry`
--

CREATE TABLE `db_stockentry` (
  `id` int(11) NOT NULL,
  `entry_date` date DEFAULT NULL,
  `item_id` int(11) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_stocktransfer`
--

CREATE TABLE `db_stocktransfer` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL COMMENT 'from store',
  `to_store_id` int(11) DEFAULT NULL COMMENT 'to store transfer',
  `warehouse_from` int(11) DEFAULT NULL,
  `warehouse_to` int(11) DEFAULT NULL,
  `transfer_date` date DEFAULT NULL,
  `note` text CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `created_by` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `system_ip` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `system_name` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_stocktransferitems`
--

CREATE TABLE `db_stocktransferitems` (
  `id` int(11) NOT NULL,
  `stocktransfer_id` int(11) DEFAULT NULL,
  `store_id` int(11) DEFAULT NULL COMMENT 'from store',
  `to_store_id` int(11) DEFAULT NULL COMMENT 'to store',
  `warehouse_from` int(11) DEFAULT NULL COMMENT 'warehouse ids',
  `warehouse_to` int(11) DEFAULT NULL COMMENT 'warehouse ids',
  `item_id` int(11) DEFAULT NULL,
  `transfer_qty` double(20,2) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_store`
--

CREATE TABLE `db_store` (
  `id` int(11) NOT NULL,
  `store_code` varchar(150) DEFAULT NULL,
  `store_name` varchar(150) DEFAULT NULL,
  `store_website` varchar(150) DEFAULT NULL,
  `mobile` varchar(150) DEFAULT NULL,
  `phone` varchar(150) DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `website` varchar(250) DEFAULT NULL,
  `store_logo` text DEFAULT NULL,
  `logo` mediumtext DEFAULT NULL,
  `upi_id` varchar(50) DEFAULT NULL,
  `upi_code` text DEFAULT NULL,
  `country` varchar(150) DEFAULT NULL,
  `state` varchar(150) DEFAULT NULL,
  `city` varchar(100) DEFAULT NULL,
  `address` varchar(300) DEFAULT NULL,
  `postcode` varchar(50) DEFAULT NULL,
  `gst_no` varchar(50) DEFAULT NULL,
  `vat_no` varchar(50) DEFAULT NULL,
  `pan_no` varchar(50) DEFAULT NULL,
  `bank_details` mediumtext DEFAULT NULL,
  `cid` int(11) DEFAULT NULL,
  `category_init` varchar(50) DEFAULT NULL,
  `item_init` varchar(50) DEFAULT NULL COMMENT 'INITAL CODE',
  `supplier_init` varchar(50) DEFAULT NULL COMMENT 'INITAL CODE',
  `purchase_init` varchar(50) DEFAULT NULL COMMENT 'INITAL CODE',
  `purchase_return_init` varchar(50) DEFAULT NULL,
  `customer_init` varchar(50) DEFAULT NULL COMMENT 'INITAL CODE',
  `sales_init` varchar(50) DEFAULT NULL COMMENT 'INITAL CODE',
  `sales_return_init` varchar(50) DEFAULT NULL,
  `expense_init` varchar(50) DEFAULT NULL,
  `accounts_init` varchar(50) DEFAULT NULL,
  `journal_init` varchar(50) DEFAULT NULL,
  `cust_advance_init` varchar(50) DEFAULT NULL,
  `invoice_view` int(11) DEFAULT NULL COMMENT '1=Standard,2=Indian GST',
  `sms_status` int(11) DEFAULT NULL COMMENT '1=Enable 0=Disable',
  `status` int(11) DEFAULT NULL,
  `language_id` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `currency_placement` varchar(50) DEFAULT NULL,
  `timezone` varchar(50) DEFAULT NULL,
  `date_format` varchar(50) DEFAULT NULL,
  `time_format` int(11) DEFAULT NULL,
  `sales_discount` double(20,4) DEFAULT NULL,
  `currencysymbol_id` int(11) DEFAULT NULL,
  `regno_key` varchar(50) DEFAULT NULL,
  `fav_icon` text DEFAULT NULL,
  `purchase_code` text DEFAULT NULL,
  `change_return` int(11) DEFAULT NULL,
  `sales_invoice_format_id` int(11) DEFAULT NULL,
  `pos_invoice_format_id` int(11) DEFAULT NULL,
  `sales_invoice_footer_text` text DEFAULT NULL,
  `round_off` int(11) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `system_ip` varchar(50) DEFAULT NULL,
  `system_name` varchar(50) DEFAULT NULL,
  `quotation_init` varchar(50) DEFAULT NULL,
  `decimals` int(11) DEFAULT 2,
  `money_transfer_init` varchar(50) DEFAULT NULL,
  `sales_payment_init` varchar(50) DEFAULT NULL,
  `sales_return_payment_init` varchar(50) DEFAULT NULL,
  `purchase_payment_init` varchar(50) DEFAULT NULL,
  `purchase_return_payment_init` varchar(50) DEFAULT NULL,
  `expense_payment_init` varchar(50) DEFAULT NULL,
  `current_subscriptionlist_id` int(11) DEFAULT 0,
  `smtp_host` varchar(250) DEFAULT NULL,
  `smtp_port` varchar(250) DEFAULT NULL,
  `smtp_user` varchar(250) DEFAULT NULL,
  `smtp_pass` varchar(250) DEFAULT NULL,
  `smtp_status` int(11) DEFAULT 0,
  `sms_url` text DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `mrp_column` int(11) DEFAULT 0,
  `invoice_terms` text DEFAULT NULL,
  `previous_balance_bit` int(11) DEFAULT 1 COMMENT '1=Show, 0=Hide - Shows on sales invoice',
  `qty_decimals` int(11) DEFAULT 2,
  `signature` text DEFAULT NULL,
  `show_signature` int(11) DEFAULT 0,
  `t_and_c_status` int(11) DEFAULT 1 COMMENT '1=Show, 0=Hide - Shows on sales invoice',
  `t_and_c_status_pos` int(11) DEFAULT 1,
  `number_to_words` varchar(250) DEFAULT 'Default',
  `default_account_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_store`
--

INSERT INTO `db_store` (`id`, `store_code`, `store_name`, `store_website`, `mobile`, `phone`, `email`, `website`, `store_logo`, `logo`, `upi_id`, `upi_code`, `country`, `state`, `city`, `address`, `postcode`, `gst_no`, `vat_no`, `pan_no`, `bank_details`, `cid`, `category_init`, `item_init`, `supplier_init`, `purchase_init`, `purchase_return_init`, `customer_init`, `sales_init`, `sales_return_init`, `expense_init`, `accounts_init`, `journal_init`, `cust_advance_init`, `invoice_view`, `sms_status`, `status`, `language_id`, `currency_id`, `currency_placement`, `timezone`, `date_format`, `time_format`, `sales_discount`, `currencysymbol_id`, `regno_key`, `fav_icon`, `purchase_code`, `change_return`, `sales_invoice_format_id`, `pos_invoice_format_id`, `sales_invoice_footer_text`, `round_off`, `created_date`, `created_time`, `created_by`, `system_ip`, `system_name`, `quotation_init`, `decimals`, `money_transfer_init`, `sales_payment_init`, `sales_return_payment_init`, `purchase_payment_init`, `purchase_return_payment_init`, `expense_payment_init`, `current_subscriptionlist_id`, `smtp_host`, `smtp_port`, `smtp_user`, `smtp_pass`, `smtp_status`, `sms_url`, `user_id`, `mrp_column`, `invoice_terms`, `previous_balance_bit`, `qty_decimals`, `signature`, `show_signature`, `t_and_c_status`, `t_and_c_status_pos`, `number_to_words`, `default_account_id`) VALUES
(1, 'ST0001', 'SAAS ADMIN', '', '+919999999999', '', 'admin@example.com', 'www', 'uploads/store/company_logo.png', NULL, NULL, NULL, 'India', 'Karnataka', 'Bengalore', 'Gandhi Road', '', '', '', '', '', NULL, 'CT/01/', 'IT01', 'SU/01/', 'PU/2020/01', 'PR/2020/01/', 'CU/01/', 'SL/2020/01/', 'SR/2020/01/', 'EX/2020/01/', 'AC/01/', 'JE', 'ADV', 1, 0, 1, 1, 35, 'Left', 'Asia/Kolkata\r\n', 'dd-mm-yyyy', 12, 0.0000, NULL, NULL, NULL, NULL, 1, 3, 1, 'Its Footer, You can change it from Store Settings.', 0, NULL, NULL, NULL, NULL, NULL, 'QT/2020/01/', 2, 'MT/01/', 'SP/2020/01/', 'SRP/2020/01/', 'PP/2020/01/', 'PRP/2020/01/', 'XP/2020/01/', 26, 'ssl://smtp.gmail.com', '465', 'salmanpathanindia@gmail.com', '9632563672', 1, 'http://sms.proware.in/api/sendhttp.php?authkey=248050Asbku6K75bf27efc&amp;mobiles={{MOBILE}}&amp;message={{MESSAGE}}&amp;sender=WBMGIC&amp;route=4', 0, 0, NULL, 1, 2, NULL, 0, 1, 1, 'Default', NULL),
(2, 'ST0002', 'মুদিওয়ালা ৮.৮', 'www.creativedesign.com.nd', '০১৮৪৯৮৩২১৭৮', '০১৮৪৯৮৩২১৭৮', 'info@creativedesign.com.bd', NULL, 'uploads/store/12.png', NULL, NULL, NULL, 'Bangladesh', 'Rangpur Division', ' লালমনির হাট', 'হাউজঃ মুন্সি বাড়ি, নয়ার হাট স্কুল সংলগ্ন, বড়বাড়ি।', '৫৫০০', '', '', '', 'Accounts: 128474444444\r\nHolder: Md Nazrul Islam\r\nBank Name: EBL Bank', NULL, 'CT', 'IT02', 'SU', 'PU', 'PR', 'CU', 'SL', 'SR', 'EX', 'AC', NULL, 'ADV', 1, 1, 1, 1, 60, 'Left', 'Asia/Dhaka\r\n', 'dd-mm-yyyy', 12, 0.0000, NULL, NULL, NULL, NULL, 1, 3, 1, 'সালাত কায়েম করুন, ধন্যবাদ আবার আসবেন।', 1, '2021-02-12', '05:53:37 pm', '', '127.0.0.1', 'LAPTOP-I5OUIM4R', 'QT', 2, 'MT', 'SP', 'SRP', 'PP', 'PRP', 'XP', 28, 'mail.elitedesign.com.bd', '465', '01744594344', 's989989@', 1, NULL, 0, 1, 'ব্রিদ্রঃ বিক্রয়কৃত কোন পণ্য ফেরত নেওয়া হয় না।', 1, 2, 'uploads/signature/signature.png', 1, 1, 1, 'Default', 1);

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

--
-- Table structure for table `db_stripe`
--

CREATE TABLE `db_stripe` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `sandbox` int(11) DEFAULT NULL,
  `publishable_key` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `api_secret` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `updated_at` date DEFAULT NULL,
  `updated_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_stripepayments`
--

CREATE TABLE `db_stripepayments` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `buyer_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `buyer_email` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `paid_amount` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `paid_amount_currency` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `txn_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `payment_status` varchar(25) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `created` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_subscription`
--

CREATE TABLE `db_subscription` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `payment_id` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `package_id` int(11) DEFAULT NULL,
  `package_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `package_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `subscription_date` date DEFAULT NULL,
  `expire_date` date DEFAULT NULL,
  `trial_days` int(11) DEFAULT NULL,
  `max_users` int(11) DEFAULT NULL,
  `max_warehouses` int(11) DEFAULT NULL,
  `max_items` int(11) DEFAULT NULL,
  `max_invoices` int(11) DEFAULT NULL,
  `payment_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `txn_id` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `payment_gross` double(10,2) DEFAULT NULL,
  `currency_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `payer_email` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `payment_status` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `system_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `system_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `package_status` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `payment_type` varchar(250) DEFAULT NULL COMMENT 'manual subscription only',
  `package_count` int(11) DEFAULT NULL COMMENT 'manual subscription only'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_subscription`
--

INSERT INTO `db_subscription` (`id`, `store_id`, `payment_id`, `package_id`, `package_type`, `package_name`, `description`, `subscription_date`, `expire_date`, `trial_days`, `max_users`, `max_warehouses`, `max_items`, `max_invoices`, `payment_by`, `txn_id`, `payment_gross`, `currency_code`, `payer_email`, `payment_status`, `created_date`, `created_time`, `created_by`, `system_ip`, `system_name`, `package_status`, `payment_type`, `package_count`) VALUES
(13, 22, NULL, 2, NULL, 'Regular', 'Test description', '2021-01-25', NULL, 15, 20, 20, 200, 200, 'PayPal', '48R18927X78299709', 250.00, 'USD', 'sb-9fy504805522@business.example.com', 'Pending', '2021-01-25', '01:30:45 pm', 'Tester', '127.0.0.1', 'LAPTOP-I5OUIM4R', NULL, NULL, NULL),
(14, 22, NULL, 2, 'Paid', 'Regular', 'Test description', '2021-01-25', NULL, 15, 20, 20, 200, 200, 'PayPal', '9M838440FH9266015', 250.00, 'USD', 'sb-9fy504805522@business.example.com', 'Pending', '2021-01-25', '01:32:28 pm', 'Tester', '127.0.0.1', 'LAPTOP-I5OUIM4R', NULL, NULL, NULL),
(16, 22, NULL, 2, 'Paid', 'Regular', 'Test description', '2021-01-25', '2021-02-25', 15, 20, 20, 200, 200, 'PayPal', '2PT61144W90213341', 250.00, 'USD', 'sb-9fy504805522@business.example.com', 'Pending', '2021-01-25', '02:00:38 pm', 'Tester', '127.0.0.1', 'LAPTOP-I5OUIM4R', NULL, NULL, NULL),
(26, 1, NULL, 1, 'Free', 'Free', 'Test description', '2021-01-25', '2021-02-04', 10, 2, 2, 20, 20, 'Self', '', 0.00, '', '', '', '2021-01-25', '06:32:32 pm', 'admin', '127.0.0.1', 'LAPTOP-I5OUIM4R', NULL, NULL, NULL),
(27, 24, NULL, 1, 'Free', 'Free', 'Test description', '2021-02-11', '2021-02-21', 10, 2, 2, 20, 20, 'Self', '', 0.00, '', '', '', '2021-02-11', '03:09:47 pm', 'Tester', '127.0.0.1', 'LAPTOP-I5OUIM4R', NULL, NULL, NULL),
(28, 2, NULL, 1, 'Free', 'Free', 'Test description', '2021-02-12', '2021-02-22', 10, 2, 2, 20, 20, 'Self', '', 0.00, '', '', '', '2021-02-12', '06:57:18 pm', 'Tester', '127.0.0.1', 'LAPTOP-I5OUIM4R', NULL, NULL, NULL);

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

--
-- Table structure for table `db_suppliers`
--

CREATE TABLE `db_suppliers` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL COMMENT 'Use to create supplier Code',
  `supplier_code` varchar(20) DEFAULT NULL,
  `supplier_name` varchar(50) DEFAULT NULL,
  `mobile` varchar(15) DEFAULT NULL,
  `phone` varchar(15) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `gstin` varchar(100) DEFAULT NULL,
  `tax_number` varchar(50) DEFAULT NULL,
  `vatin` varchar(100) DEFAULT NULL,
  `opening_balance` double(20,4) DEFAULT NULL,
  `purchase_due` double(20,4) DEFAULT NULL,
  `purchase_return_due` double(20,4) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `city` varchar(50) DEFAULT NULL,
  `postcode` varchar(10) DEFAULT NULL,
  `address` varchar(250) DEFAULT NULL,
  `system_ip` varchar(50) DEFAULT NULL,
  `system_name` varchar(50) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(30) DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_suppliers`
--

INSERT INTO `db_suppliers` (`id`, `store_id`, `count_id`, `supplier_code`, `supplier_name`, `mobile`, `phone`, `email`, `gstin`, `tax_number`, `vatin`, `opening_balance`, `purchase_due`, `purchase_return_due`, `country_id`, `state_id`, `city`, `postcode`, `address`, `system_ip`, `system_name`, `created_date`, `created_time`, `created_by`, `company_id`, `status`) VALUES
(1, 2, 1, 'SU0001', 'Badsha Treaders', '+8801858989397', '', 'badsha@gmail.com', '', '', NULL, 0.0000, 954999500.0000, NULL, 0, 0, '', '', 'Puran Dhaka, Bangladesh', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '11:39:56 am', 'admin', NULL, 1),
(2, 2, 2, 'SU0002', 'Karim Textile', '01775457889', '', 'karim@gmail.com', '', '', NULL, 0.0000, 7340047130.0000, NULL, 0, 0, '', '', 'Mirpur-1', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '11:41:25 am', 'admin', NULL, 1),
(3, 2, 3, 'SU0003', 'AR Group', '+8801870829396', '', 'ar@gmail.com', '', '', NULL, 0.0000, 59999800.0000, NULL, 210, 0, 'Dhaka', '', '35/3/1,B,Section-13', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '11:42:27 am', 'admin', NULL, 1),
(4, 2, 4, 'SU0004', 'Mahmud Jeans', '01954578086', '', 'mahmud@gmail.com', '', '', NULL, 0.0000, 0.0000, NULL, 210, 0, 'Dhaka', '', '35/3/1,B,Section-13', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '11:43:32 am', 'admin', NULL, 1),
(5, 2, 5, 'SU0005', 'Dilu Telicom', '01775457001', '', 'dilu@gmail.com', '', '', NULL, 0.0000, 1499999909000.0000, NULL, 210, 0, 'Dhaka', '1216', 'Mirpu-10', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '11:44:53 am', 'admin', NULL, 1),
(6, 2, 6, 'SU0006', 'Grocer World', '01858989391', '', 'grocer@gmial.com', '', '', NULL, 0.0000, 17999999900.0000, NULL, 210, 0, 'Dhaka', '', '35/3/1,B,Section-13', '::1', 'DESKTOP-GMFRN98', '2024-07-09', '11:46:05 am', 'admin', NULL, 1),
(7, 2, 7, 'SU0007', 'Ali Khadda Bhander', '01854896987', '01965982698', 'info@elitedesign.com.bd', '', '', NULL, 200000.0000, NULL, NULL, 210, 66, 'Dhaka ', '1548', '', '103.59.179.21', '103.59.179.21', '2024-08-19', '01:07:04 am', 'admin', NULL, 1);

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

--
-- Table structure for table `db_supplier_payments`
--

CREATE TABLE `db_supplier_payments` (
  `id` int(11) NOT NULL,
  `purchasepayment_id` int(11) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `payment_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `payment` double(10,2) DEFAULT NULL,
  `payment_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `system_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `system_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_date` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_tax`
--

CREATE TABLE `db_tax` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `tax_name` varchar(50) DEFAULT NULL,
  `tax` double(20,4) DEFAULT NULL,
  `group_bit` int(11) DEFAULT NULL COMMENT '1=Yes, 0=No',
  `subtax_ids` varchar(10) DEFAULT NULL COMMENT 'Tax groups IDs',
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_tax`
--

INSERT INTO `db_tax` (`id`, `store_id`, `tax_name`, `tax`, `group_bit`, `subtax_ids`, `status`) VALUES
(150, 2, 'N/A', 0.0000, NULL, NULL, 1);

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

--
-- Table structure for table `db_timezone`
--

CREATE TABLE `db_timezone` (
  `id` int(11) NOT NULL,
  `timezone` varchar(100) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_timezone`
--

INSERT INTO `db_timezone` (`id`, `timezone`, `status`) VALUES
(1, 'Africa/Abidjan\r', 1),
(2, 'Africa/Accra\r', 1),
(3, 'Africa/Addis_Ababa\r', 1),
(4, 'Africa/Algiers\r', 1),
(5, 'Africa/Asmara\r', 1),
(6, 'Africa/Asmera\r', 1),
(7, 'Africa/Bamako\r', 1),
(8, 'Africa/Bangui\r', 1),
(9, 'Africa/Banjul\r', 1),
(10, 'Africa/Bissau\r', 1),
(11, 'Africa/Blantyre\r', 1),
(12, 'Africa/Brazzaville\r', 1),
(13, 'Africa/Bujumbura\r', 1),
(14, 'Africa/Cairo\r', 1),
(15, 'Africa/Casablanca\r', 1),
(16, 'Africa/Ceuta\r', 1),
(17, 'Africa/Conakry\r', 1),
(18, 'Africa/Dakar\r', 1),
(19, 'Africa/Dar_es_Salaam\r', 1),
(20, 'Africa/Djibouti\r', 1),
(21, 'Africa/Douala\r', 1),
(22, 'Africa/El_Aaiun\r', 1),
(23, 'Africa/Freetown\r', 1),
(24, 'Africa/Gaborone\r', 1),
(25, 'Africa/Harare\r', 1),
(26, 'Africa/Johannesburg\r', 1),
(27, 'Africa/Juba\r', 1),
(28, 'Africa/Kampala\r', 1),
(29, 'Africa/Khartoum\r', 1),
(30, 'Africa/Kigali\r', 1),
(31, 'Africa/Kinshasa\r', 1),
(32, 'Africa/Lagos\r', 1),
(33, 'Africa/Libreville\r', 1),
(34, 'Africa/Lome\r', 1),
(35, 'Africa/Luanda\r', 1),
(36, 'Africa/Lubumbashi\r', 1),
(37, 'Africa/Lusaka\r', 1),
(38, 'Africa/Malabo\r', 1),
(39, 'Africa/Maputo\r', 1),
(40, 'Africa/Maseru\r', 1),
(41, 'Africa/Mbabane\r', 1),
(42, 'Africa/Mogadishu\r', 1),
(43, 'Africa/Monrovia\r', 1),
(44, 'Africa/Nairobi\r', 1),
(45, 'Africa/Ndjamena\r', 1),
(46, 'Africa/Niamey\r', 1),
(47, 'Africa/Nouakchott\r', 1),
(48, 'Africa/Ouagadougou\r', 1),
(49, 'Africa/Porto-Novo\r', 1),
(50, 'Africa/Sao_Tome\r', 1),
(51, 'Africa/Timbuktu\r', 1),
(52, 'Africa/Tripoli\r', 1),
(53, 'Africa/Tunis\r', 1),
(54, 'Africa/Windhoek\r', 1),
(55, 'AKST9AKDT\r', 1),
(56, 'America/Adak\r', 1),
(57, 'America/Anchorage\r', 1),
(58, 'America/Anguilla\r', 1),
(59, 'America/Antigua\r', 1),
(60, 'America/Araguaina\r', 1),
(61, 'America/Argentina/Buenos_Aires\r', 1),
(62, 'America/Argentina/Catamarca\r', 1),
(63, 'America/Argentina/ComodRivadavia\r', 1),
(64, 'America/Argentina/Cordoba\r', 1),
(65, 'America/Argentina/Jujuy\r', 1),
(66, 'America/Argentina/La_Rioja\r', 1),
(67, 'America/Argentina/Mendoza\r', 1),
(68, 'America/Argentina/Rio_Gallegos\r', 1),
(69, 'America/Argentina/Salta\r', 1),
(70, 'America/Argentina/San_Juan\r', 1),
(71, 'America/Argentina/San_Luis\r', 1),
(72, 'America/Argentina/Tucuman\r', 1),
(73, 'America/Argentina/Ushuaia\r', 1),
(74, 'America/Aruba\r', 1),
(75, 'America/Asuncion\r', 1),
(76, 'America/Atikokan\r', 1),
(77, 'America/Atka\r', 1),
(78, 'America/Bahia\r', 1),
(79, 'America/Bahia_Banderas\r', 1),
(80, 'America/Barbados\r', 1),
(81, 'America/Belem\r', 1),
(82, 'America/Belize\r', 1),
(83, 'America/Blanc-Sablon\r', 1),
(84, 'America/Boa_Vista\r', 1),
(85, 'America/Bogota\r', 1),
(86, 'America/Boise\r', 1),
(87, 'America/Buenos_Aires\r', 1),
(88, 'America/Cambridge_Bay\r', 1),
(89, 'America/Campo_Grande\r', 1),
(90, 'America/Cancun\r', 1),
(91, 'America/Caracas\r', 1),
(92, 'America/Catamarca\r', 1),
(93, 'America/Cayenne\r', 1),
(94, 'America/Cayman\r', 1),
(95, 'America/Chicago\r', 1),
(96, 'America/Chihuahua\r', 1),
(97, 'America/Coral_Harbour\r', 1),
(98, 'America/Cordoba\r', 1),
(99, 'America/Costa_Rica\r', 1),
(100, 'America/Creston\r', 1),
(101, 'America/Cuiaba\r', 1),
(102, 'America/Curacao\r', 1),
(103, 'America/Danmarkshavn\r', 1),
(104, 'America/Dawson\r', 1),
(105, 'America/Dawson_Creek\r', 1),
(106, 'America/Denver\r', 1),
(107, 'America/Detroit\r', 1),
(108, 'America/Dominica\r', 1),
(109, 'America/Edmonton\r', 1),
(110, 'America/Eirunepe\r', 1),
(111, 'America/El_Salvador\r', 1),
(112, 'America/Ensenada\r', 1),
(113, 'America/Fort_Wayne\r', 1),
(114, 'America/Fortaleza\r', 1),
(115, 'America/Glace_Bay\r', 1),
(116, 'America/Godthab\r', 1),
(117, 'America/Goose_Bay\r', 1),
(118, 'America/Grand_Turk\r', 1),
(119, 'America/Grenada\r', 1),
(120, 'America/Guadeloupe\r', 1),
(121, 'America/Guatemala\r', 1),
(122, 'America/Guayaquil\r', 1),
(123, 'America/Guyana\r', 1),
(124, 'America/Halifax\r', 1),
(125, 'America/Havana\r', 1),
(126, 'America/Hermosillo\r', 1),
(127, 'America/Indiana/Indianapolis\r', 1),
(128, 'America/Indiana/Knox\r', 1),
(129, 'America/Indiana/Marengo\r', 1),
(130, 'America/Indiana/Petersburg\r', 1),
(131, 'America/Indiana/Tell_City\r', 1),
(132, 'America/Indiana/Vevay\r', 1),
(133, 'America/Indiana/Vincennes\r', 1),
(134, 'America/Indiana/Winamac\r', 1),
(135, 'America/Indianapolis\r', 1),
(136, 'America/Inuvik\r', 1),
(137, 'America/Iqaluit\r', 1),
(138, 'America/Jamaica\r', 1),
(139, 'America/Jujuy\r', 1),
(140, 'America/Juneau\r', 1),
(141, 'America/Kentucky/Louisville\r', 1),
(142, 'America/Kentucky/Monticello\r', 1),
(143, 'America/Knox_IN\r', 1),
(144, 'America/Kralendijk\r', 1),
(145, 'America/La_Paz\r', 1),
(146, 'America/Lima\r', 1),
(147, 'America/Los_Angeles\r', 1),
(148, 'America/Louisville\r', 1),
(149, 'America/Lower_Princes\r', 1),
(150, 'America/Maceio\r', 1),
(151, 'America/Managua\r', 1),
(152, 'America/Manaus\r', 1),
(153, 'America/Marigot\r', 1),
(154, 'America/Martinique\r', 1),
(155, 'America/Matamoros\r', 1),
(156, 'America/Mazatlan\r', 1),
(157, 'America/Mendoza\r', 1),
(158, 'America/Menominee\r', 1),
(159, 'America/Merida\r', 1),
(160, 'America/Metlakatla\r', 1),
(161, 'America/Mexico_City\r', 1),
(162, 'America/Miquelon\r', 1),
(163, 'America/Moncton\r', 1),
(164, 'America/Monterrey\r', 1),
(165, 'America/Montevideo\r', 1),
(166, 'America/Montreal\r', 1),
(167, 'America/Montserrat\r', 1),
(168, 'America/Nassau\r', 1),
(169, 'America/New_York\r', 1),
(170, 'America/Nipigon\r', 1),
(171, 'America/Nome\r', 1),
(172, 'America/Noronha\r', 1),
(173, 'America/North_Dakota/Beulah\r', 1),
(174, 'America/North_Dakota/Center\r', 1),
(175, 'America/North_Dakota/New_Salem\r', 1),
(176, 'America/Ojinaga\r', 1),
(177, 'America/Panama\r', 1),
(178, 'America/Pangnirtung\r', 1),
(179, 'America/Paramaribo\r', 1),
(180, 'America/Phoenix\r', 1),
(181, 'America/Port_of_Spain\r', 1),
(182, 'America/Port-au-Prince\r', 1),
(183, 'America/Porto_Acre\r', 1),
(184, 'America/Porto_Velho\r', 1),
(185, 'America/Puerto_Rico\r', 1),
(186, 'America/Rainy_River\r', 1),
(187, 'America/Rankin_Inlet\r', 1),
(188, 'America/Recife\r', 1),
(189, 'America/Regina\r', 1),
(190, 'America/Resolute\r', 1),
(191, 'America/Rio_Branco\r', 1),
(192, 'America/Rosario\r', 1),
(193, 'America/Santa_Isabel\r', 1),
(194, 'America/Santarem\r', 1),
(195, 'America/Santiago\r', 1),
(196, 'America/Santo_Domingo\r', 1),
(197, 'America/Sao_Paulo\r', 1),
(198, 'America/Scoresbysund\r', 1),
(199, 'America/Shiprock\r', 1),
(200, 'America/Sitka\r', 1),
(201, 'America/St_Barthelemy\r', 1),
(202, 'America/St_Johns\r', 1),
(203, 'America/St_Kitts\r', 1),
(204, 'America/St_Lucia\r', 1),
(205, 'America/St_Thomas\r', 1),
(206, 'America/St_Vincent\r', 1),
(207, 'America/Swift_Current\r', 1),
(208, 'America/Tegucigalpa\r', 1),
(209, 'America/Thule\r', 1),
(210, 'America/Thunder_Bay\r', 1),
(211, 'America/Tijuana\r', 1),
(212, 'America/Toronto\r', 1),
(213, 'America/Tortola\r', 1),
(214, 'America/Vancouver\r', 1),
(215, 'America/Virgin\r', 1),
(216, 'America/Whitehorse\r', 1),
(217, 'America/Winnipeg\r', 1),
(218, 'America/Yakutat\r', 1),
(219, 'America/Yellowknife\r', 1),
(220, 'Antarctica/Casey\r', 1),
(221, 'Antarctica/Davis\r', 1),
(222, 'Antarctica/DumontDUrville\r', 1),
(223, 'Antarctica/Macquarie\r', 1),
(224, 'Antarctica/Mawson\r', 1),
(225, 'Antarctica/McMurdo\r', 1),
(226, 'Antarctica/Palmer\r', 1),
(227, 'Antarctica/Rothera\r', 1),
(228, 'Antarctica/South_Pole\r', 1),
(229, 'Antarctica/Syowa\r', 1),
(230, 'Antarctica/Vostok\r', 1),
(231, 'Arctic/Longyearbyen\r', 1),
(232, 'Asia/Aden\r', 1),
(233, 'Asia/Almaty\r', 1),
(234, 'Asia/Amman\r', 1),
(235, 'Asia/Anadyr\r', 1),
(236, 'Asia/Aqtau\r', 1),
(237, 'Asia/Aqtobe\r', 1),
(238, 'Asia/Ashgabat\r', 1),
(239, 'Asia/Ashkhabad\r', 1),
(240, 'Asia/Baghdad\r', 1),
(241, 'Asia/Bahrain\r', 1),
(242, 'Asia/Baku\r', 1),
(243, 'Asia/Bangkok\r', 1),
(244, 'Asia/Beirut\r', 1),
(245, 'Asia/Bishkek\r', 1),
(246, 'Asia/Brunei\r', 1),
(247, 'Asia/Calcutta\r', 1),
(248, 'Asia/Choibalsan\r', 1),
(249, 'Asia/Chongqing\r', 1),
(250, 'Asia/Chungking\r', 1),
(251, 'Asia/Colombo\r', 1),
(252, 'Asia/Dacca\r', 1),
(253, 'Asia/Damascus\r', 1),
(254, 'Asia/Dhaka\r', 1),
(255, 'Asia/Dili\r', 1),
(256, 'Asia/Dubai\r', 1),
(257, 'Asia/Dushanbe\r', 1),
(258, 'Asia/Gaza\r', 1),
(259, 'Asia/Harbin\r', 1),
(260, 'Asia/Hebron\r', 1),
(261, 'Asia/Ho_Chi_Minh\r', 1),
(262, 'Asia/Hong_Kong\r', 1),
(263, 'Asia/Hovd\r', 1),
(264, 'Asia/Irkutsk\r', 1),
(265, 'Asia/Istanbul\r', 1),
(266, 'Asia/Jakarta\r', 1),
(267, 'Asia/Jayapura\r', 1),
(268, 'Asia/Jerusalem\r', 1),
(269, 'Asia/Kabul\r', 1),
(270, 'Asia/Kamchatka\r', 1),
(271, 'Asia/Karachi\r', 1),
(272, 'Asia/Kashgar\r', 1),
(273, 'Asia/Kathmandu\r', 1),
(274, 'Asia/Katmandu\r', 1),
(275, 'Asia/Kolkata\r', 1),
(276, 'Asia/Krasnoyarsk\r', 1),
(277, 'Asia/Kuala_Lumpur\r', 1),
(278, 'Asia/Kuching\r', 1),
(279, 'Asia/Kuwait\r', 1),
(280, 'Asia/Macao\r', 1),
(281, 'Asia/Macau\r', 1),
(282, 'Asia/Magadan\r', 1),
(283, 'Asia/Makassar\r', 1),
(284, 'Asia/Manila\r', 1),
(285, 'Asia/Muscat\r', 1),
(286, 'Asia/Nicosia\r', 1),
(287, 'Asia/Novokuznetsk\r', 1),
(288, 'Asia/Novosibirsk\r', 1),
(289, 'Asia/Omsk\r', 1),
(290, 'Asia/Oral\r', 1),
(291, 'Asia/Phnom_Penh\r', 1),
(292, 'Asia/Pontianak\r', 1),
(293, 'Asia/Pyongyang\r', 1),
(294, 'Asia/Qatar\r', 1),
(295, 'Asia/Qyzylorda\r', 1),
(296, 'Asia/Rangoon\r', 1),
(297, 'Asia/Riyadh\r', 1),
(298, 'Asia/Saigon\r', 1),
(299, 'Asia/Sakhalin\r', 1),
(300, 'Asia/Samarkand\r', 1),
(301, 'Asia/Seoul\r', 1),
(302, 'Asia/Shanghai\r', 1),
(303, 'Asia/Singapore\r', 1),
(304, 'Asia/Taipei\r', 1),
(305, 'Asia/Tashkent\r', 1),
(306, 'Asia/Tbilisi\r', 1),
(307, 'Asia/Tehran\r', 1),
(308, 'Asia/Tel_Aviv\r', 1),
(309, 'Asia/Thimbu\r', 1),
(310, 'Asia/Thimphu\r', 1),
(311, 'Asia/Tokyo\r', 1),
(312, 'Asia/Ujung_Pandang\r', 1),
(313, 'Asia/Ulaanbaatar\r', 1),
(314, 'Asia/Ulan_Bator\r', 1),
(315, 'Asia/Urumqi\r', 1),
(316, 'Asia/Vientiane\r', 1),
(317, 'Asia/Vladivostok\r', 1),
(318, 'Asia/Yakutsk\r', 1),
(319, 'Asia/Yekaterinburg\r', 1),
(320, 'Asia/Yerevan\r', 1),
(321, 'Atlantic/Azores\r', 1),
(322, 'Atlantic/Bermuda\r', 1),
(323, 'Atlantic/Canary\r', 1),
(324, 'Atlantic/Cape_Verde\r', 1),
(325, 'Atlantic/Faeroe\r', 1),
(326, 'Atlantic/Faroe\r', 1),
(327, 'Atlantic/Jan_Mayen\r', 1),
(328, 'Atlantic/Madeira\r', 1),
(329, 'Atlantic/Reykjavik\r', 1),
(330, 'Atlantic/South_Georgia\r', 1),
(331, 'Atlantic/St_Helena\r', 1),
(332, 'Atlantic/Stanley\r', 1),
(333, 'Australia/ACT\r', 1),
(334, 'Australia/Adelaide\r', 1),
(335, 'Australia/Brisbane\r', 1),
(336, 'Australia/Broken_Hill\r', 1),
(337, 'Australia/Canberra\r', 1),
(338, 'Australia/Currie\r', 1),
(339, 'Australia/Darwin\r', 1),
(340, 'Australia/Eucla\r', 1),
(341, 'Australia/Hobart\r', 1),
(342, 'Australia/LHI\r', 1),
(343, 'Australia/Lindeman\r', 1),
(344, 'Australia/Lord_Howe\r', 1),
(345, 'Australia/Melbourne\r', 1),
(346, 'Australia/North\r', 1),
(347, 'Australia/NSW\r', 1),
(348, 'Australia/Perth\r', 1),
(349, 'Australia/Queensland\r', 1),
(350, 'Australia/South\r', 1),
(351, 'Australia/Sydney\r', 1),
(352, 'Australia/Tasmania\r', 1),
(353, 'Australia/Victoria\r', 1),
(354, 'Australia/West\r', 1),
(355, 'Australia/Yancowinna\r', 1),
(356, 'Brazil/Acre\r', 1),
(357, 'Brazil/DeNoronha\r', 1),
(358, 'Brazil/East\r', 1),
(359, 'Brazil/West\r', 1),
(360, 'Canada/Atlantic\r', 1),
(361, 'Canada/Central\r', 1),
(362, 'Canada/Eastern\r', 1),
(363, 'Canada/East-Saskatchewan\r', 1),
(364, 'Canada/Mountain\r', 1),
(365, 'Canada/Newfoundland\r', 1),
(366, 'Canada/Pacific\r', 1),
(367, 'Canada/Saskatchewan\r', 1),
(368, 'Canada/Yukon\r', 1),
(369, 'CET\r', 1),
(370, 'Chile/Continental\r', 1),
(371, 'Chile/EasterIsland\r', 1),
(372, 'CST6CDT\r', 1),
(373, 'Cuba\r', 1),
(374, 'EET\r', 1),
(375, 'Egypt\r', 1),
(376, 'Eire\r', 1),
(377, 'EST\r', 1),
(378, 'EST5EDT\r', 1),
(379, 'Etc./GMT\r', 1),
(380, 'Etc./GMT+0\r', 1),
(381, 'Etc./UCT\r', 1),
(382, 'Etc./Universal\r', 1),
(383, 'Etc./UTC\r', 1),
(384, 'Etc./Zulu\r', 1),
(385, 'Europe/Amsterdam\r', 1),
(386, 'Europe/Andorra\r', 1),
(387, 'Europe/Athens\r', 1),
(388, 'Europe/Belfast\r', 1),
(389, 'Europe/Belgrade\r', 1),
(390, 'Europe/Berlin\r', 1),
(391, 'Europe/Bratislava\r', 1),
(392, 'Europe/Brussels\r', 1),
(393, 'Europe/Bucharest\r', 1),
(394, 'Europe/Budapest\r', 1),
(395, 'Europe/Chisinau\r', 1),
(396, 'Europe/Copenhagen\r', 1),
(397, 'Europe/Dublin\r', 1),
(398, 'Europe/Gibraltar\r', 1),
(399, 'Europe/Guernsey\r', 1),
(400, 'Europe/Helsinki\r', 1),
(401, 'Europe/Isle_of_Man\r', 1),
(402, 'Europe/Istanbul\r', 1),
(403, 'Europe/Jersey\r', 1),
(404, 'Europe/Kaliningrad\r', 1),
(405, 'Europe/Kiev\r', 1),
(406, 'Europe/Lisbon\r', 1),
(407, 'Europe/Ljubljana\r', 1),
(408, 'Europe/London\r', 1),
(409, 'Europe/Luxembourg\r', 1),
(410, 'Europe/Madrid\r', 1),
(411, 'Europe/Malta\r', 1),
(412, 'Europe/Mariehamn\r', 1),
(413, 'Europe/Minsk\r', 1),
(414, 'Europe/Monaco\r', 1),
(415, 'Europe/Moscow\r', 1),
(416, 'Europe/Nicosia\r', 1),
(417, 'Europe/Oslo\r', 1),
(418, 'Europe/Paris\r', 1),
(419, 'Europe/Podgorica\r', 1),
(420, 'Europe/Prague\r', 1),
(421, 'Europe/Riga\r', 1),
(422, 'Europe/Rome\r', 1),
(423, 'Europe/Samara\r', 1),
(424, 'Europe/San_Marino\r', 1),
(425, 'Europe/Sarajevo\r', 1),
(426, 'Europe/Simferopol\r', 1),
(427, 'Europe/Skopje\r', 1),
(428, 'Europe/Sofia\r', 1),
(429, 'Europe/Stockholm\r', 1),
(430, 'Europe/Tallinn\r', 1),
(431, 'Europe/Tirane\r', 1),
(432, 'Europe/Tiraspol\r', 1),
(433, 'Europe/Uzhgorod\r', 1),
(434, 'Europe/Vaduz\r', 1),
(435, 'Europe/Vatican\r', 1),
(436, 'Europe/Vienna\r', 1),
(437, 'Europe/Vilnius\r', 1),
(438, 'Europe/Volgograd\r', 1),
(439, 'Europe/Warsaw\r', 1),
(440, 'Europe/Zagreb\r', 1),
(441, 'Europe/Zaporozhye\r', 1),
(442, 'Europe/Zurich\r', 1),
(443, 'GB\r', 1),
(444, 'GB-Eire\r', 1),
(445, 'GMT\r', 1),
(446, 'GMT+0\r', 1),
(447, 'GMT0\r', 1),
(448, 'GMT-0\r', 1),
(449, 'Greenwich\r', 1),
(450, 'Hong Kong\r', 1),
(451, 'HST\r', 1),
(452, 'Iceland\r', 1),
(453, 'Indian/Antananarivo\r', 1),
(454, 'Indian/Chagos\r', 1),
(455, 'Indian/Christmas\r', 1),
(456, 'Indian/Cocos\r', 1),
(457, 'Indian/Comoro\r', 1),
(458, 'Indian/Kerguelen\r', 1),
(459, 'Indian/Mahe\r', 1),
(460, 'Indian/Maldives\r', 1),
(461, 'Indian/Mauritius\r', 1),
(462, 'Indian/Mayotte\r', 1),
(463, 'Indian/Reunion\r', 1),
(464, 'Iran\r', 1),
(465, 'Israel\r', 1),
(466, 'Jamaica\r', 1),
(467, 'Japan\r', 1),
(468, 'JST-9\r', 1),
(469, 'Kwajalein\r', 1),
(470, 'Libya\r', 1),
(471, 'MET\r', 1),
(472, 'Mexico/BajaNorte\r', 1),
(473, 'Mexico/BajaSur\r', 1),
(474, 'Mexico/General\r', 1),
(475, 'MST\r', 1),
(476, 'MST7MDT\r', 1),
(477, 'Navajo\r', 1),
(478, 'NZ\r', 1),
(479, 'NZ-CHAT\r', 1),
(480, 'Pacific/Apia\r', 1),
(481, 'Pacific/Auckland\r', 1),
(482, 'Pacific/Chatham\r', 1),
(483, 'Pacific/Chuuk\r', 1),
(484, 'Pacific/Easter\r', 1),
(485, 'Pacific/Efate\r', 1),
(486, 'Pacific/Enderbury\r', 1),
(487, 'Pacific/Fakaofo\r', 1),
(488, 'Pacific/Fiji\r', 1),
(489, 'Pacific/Funafuti\r', 1),
(490, 'Pacific/Galapagos\r', 1),
(491, 'Pacific/Gambier\r', 1),
(492, 'Pacific/Guadalcanal\r', 1),
(493, 'Pacific/Guam\r', 1),
(494, 'Pacific/Honolulu\r', 1),
(495, 'Pacific/Johnston\r', 1),
(496, 'Pacific/Kiritimati\r', 1),
(497, 'Pacific/Kosrae\r', 1),
(498, 'Pacific/Kwajalein\r', 1),
(499, 'Pacific/Majuro\r', 1),
(500, 'Pacific/Marquesas\r', 1),
(501, 'Pacific/Midway\r', 1),
(502, 'Pacific/Nauru\r', 1),
(503, 'Pacific/Niue\r', 1),
(504, 'Pacific/Norfolk\r', 1),
(505, 'Pacific/Noumea\r', 1),
(506, 'Pacific/Pago_Pago\r', 1),
(507, 'Pacific/Palau\r', 1),
(508, 'Pacific/Pitcairn\r', 1),
(509, 'Pacific/Pohnpei\r', 1),
(510, 'Pacific/Ponape\r', 1),
(511, 'Pacific/Port_Moresby\r', 1),
(512, 'Pacific/Rarotonga\r', 1),
(513, 'Pacific/Saipan\r', 1),
(514, 'Pacific/Samoa\r', 1),
(515, 'Pacific/Tahiti\r', 1),
(516, 'Pacific/Tarawa\r', 1),
(517, 'Pacific/Tongatapu\r', 1),
(518, 'Pacific/Truk\r', 1),
(519, 'Pacific/Wake\r', 1),
(520, 'Pacific/Wallis\r', 1),
(521, 'Pacific/Yap\r', 1),
(522, 'Poland\r', 1),
(523, 'Portugal\r', 1),
(524, 'PRC\r', 1),
(525, 'PST8PDT\r', 1),
(526, 'ROC\r', 1),
(527, 'ROK\r', 1),
(528, 'Singapore\r', 1),
(529, 'Turkey\r', 1),
(530, 'UCT\r', 1),
(531, 'Universal\r', 1),
(532, 'US/Alaska\r', 1),
(533, 'US/Aleutian\r', 1),
(534, 'US/Arizona\r', 1),
(535, 'US/Central\r', 1),
(536, 'US/Eastern\r', 1),
(537, 'US/East-Indiana\r', 1),
(538, 'US/Hawaii\r', 1),
(539, 'US/Indiana-Starke\r', 1),
(540, 'US/Michigan\r', 1),
(541, 'US/Mountain\r', 1),
(542, 'US/Pacific\r', 1),
(543, 'US/Pacific-New\r', 1),
(544, 'US/Samoa\r', 1),
(545, 'UTC\r', 1),
(546, 'WET\r', 1),
(547, 'W-SU\r', 1),
(548, 'Zulu\r', 1);

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

--
-- Table structure for table `db_twilio`
--

CREATE TABLE `db_twilio` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `account_sid` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `auth_token` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `twilio_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `status` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_twilio`
--

INSERT INTO `db_twilio` (`id`, `store_id`, `account_sid`, `auth_token`, `twilio_phone`, `status`) VALUES
(1, 1, '', '', '', 0),
(3, 2, '', '', '', 0);

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

--
-- Table structure for table `db_units`
--

CREATE TABLE `db_units` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `unit_name` varchar(50) DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_units`
--

INSERT INTO `db_units` (`id`, `store_id`, `unit_name`, `description`, `company_id`, `status`) VALUES
(61, 2, 'PCS', '', NULL, 1),
(62, 2, 'KG', '', NULL, 1),
(63, 2, 'GM', '', NULL, 1),
(64, 2, 'Liter', '', NULL, 1),
(65, 2, 'PKT', '', NULL, 1);

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

--
-- Table structure for table `db_users`
--

CREATE TABLE `db_users` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `username` varchar(50) DEFAULT NULL,
  `first_name` varchar(100) DEFAULT NULL,
  `last_name` varchar(100) DEFAULT NULL,
  `password` blob DEFAULT NULL,
  `member_of` varchar(50) DEFAULT NULL,
  `firstname` varchar(50) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `mobile` varchar(50) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `photo` blob DEFAULT NULL,
  `gender` varchar(50) DEFAULT NULL,
  `dob` date DEFAULT NULL,
  `country` varchar(50) DEFAULT NULL,
  `state` varchar(50) DEFAULT NULL,
  `city` varchar(50) DEFAULT NULL,
  `address` blob DEFAULT NULL,
  `postcode` varchar(50) DEFAULT NULL,
  `role_name` varchar(50) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `profile_picture` text DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `system_ip` varchar(100) DEFAULT NULL,
  `system_name` varchar(100) DEFAULT NULL,
  `status` double DEFAULT NULL,
  `creater_id` int(11) DEFAULT NULL,
  `updater_id` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `default_warehouse_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_users`
--

INSERT INTO `db_users` (`id`, `store_id`, `username`, `first_name`, `last_name`, `password`, `member_of`, `firstname`, `lastname`, `mobile`, `email`, `photo`, `gender`, `dob`, `country`, `state`, `city`, `address`, `postcode`, `role_name`, `role_id`, `profile_picture`, `created_date`, `created_time`, `created_by`, `system_ip`, `system_name`, `status`, `creater_id`, `updater_id`, `updated_at`, `default_warehouse_id`) VALUES
(1, 1, 'superadmin', 'Creative', 'Design', 0x6531306164633339343962613539616262653536653035376632306638383365, '', NULL, NULL, '', 'super@creativedesign.com.bd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'uploads/users/admin.png', '2018-11-27', '::1', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL),
(2, 2, 'admin', 'Creative', 'Design', 0x3235643535616432383361613430306166343634633736643731336330376164, NULL, NULL, NULL, '+8801849832178', 'info@creativedesign.com.bd', NULL, NULL, NULL, NULL, NULL, NULL, 0x3235643535616432383361613430306166343634633736643731336330376164, NULL, NULL, 2, 'uploads/users/logo.png', '2021-02-12', '05:53:37 pm', '', '127.0.0.1', 'LAPTOP-I5OUIM4R', 1, NULL, NULL, NULL, 0),
(102, 2, 'manager01', 'Matin', 'Mia', 0x3235663965373934333233623435333838356635313831663162363234643062, NULL, NULL, NULL, '01745983657', 'abdcdd@gmail.com', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 32, NULL, '2024-08-19', '12:09:15 am', 'admin', '103.59.179.21', '103.59.179.21', 1, NULL, NULL, NULL, 90),
(103, 2, 'Great Bengal', 'Great', 'Bengal', 0x6631333566623235626135313361313731306464636566343131666230393661, NULL, NULL, NULL, '01971705080', 'SIYAM_ORG@YAHOO.COM', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 32, NULL, '2024-09-07', '11:44:19 pm', 'admin', '103.43.94.71', '103.43.94.71', 1, NULL, NULL, NULL, 0),
(104, 2, 'Robiul1', 'Md', 'Robiul', 0x3731663535303033633961333662343063346130393439303866313166623737, NULL, NULL, NULL, '01825479683', 'Robiul1@gmail.com', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 32, NULL, '2024-09-20', '03:51:21 pm', 'admin', '27.123.253.117', '27-123-253-117-mcnbd.com', 1, NULL, NULL, NULL, 90);

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

--
-- Table structure for table `db_userswarehouses`
--

CREATE TABLE `db_userswarehouses` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_variants`
--

CREATE TABLE `db_variants` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `variant_code` varchar(50) DEFAULT NULL,
  `variant_name` varchar(100) DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `db_warehouse`
--

CREATE TABLE `db_warehouse` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `warehouse_type` varchar(50) DEFAULT NULL,
  `warehouse_name` varchar(50) DEFAULT NULL,
  `mobile` varchar(20) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `created_date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_warehouse`
--

INSERT INTO `db_warehouse` (`id`, `store_id`, `warehouse_type`, `warehouse_name`, `mobile`, `email`, `status`, `created_date`) VALUES
(1, 1, 'System', 'Warehouse-A', '', 'warehouse_a@example.com', 1, NULL),
(2, 2, 'System', 'Shop Store', '01775457008', 'info@elitedesign.com.bd', 1, NULL),
(87, 2, 'Custom', 'Godaount 2', '01775457009', 'godaoun@elitedesign.com.bd', 1, '2024-07-09'),
(88, 2, 'Custom', 'df gsdf', '', '', 1, '2024-07-16'),
(89, 2, 'Custom', 'Av sda fasd', '', '', 1, '2024-07-16'),
(90, 2, 'Custom', 'Test', '017888888878', 'sk@gmail.com', 1, '2024-08-02'),
(91, 2, 'Custom', 'Billal Treaders', '1639720157', 'billal@gmail.com', 1, '2024-08-19');

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

--
-- Table structure for table `db_warehouseitems`
--

CREATE TABLE `db_warehouseitems` (
  `id` int(11) NOT NULL,
  `store_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `item_id` int(11) DEFAULT NULL,
  `available_qty` double(20,2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `db_warehouseitems`
--

INSERT INTO `db_warehouseitems` (`id`, `store_id`, `warehouse_id`, `item_id`, `available_qty`) VALUES
(4299, 2, 87, 14, 10.00),
(4328, 2, 2, 8, 9998993.00),
(4330, 2, 2, 7, 99999008.00),
(4345, 2, 2, 5, 9999999984.00),
(4348, 2, 2, 10, 9998998.00),
(4351, 2, 2, 9, 98996.00),
(4360, 2, 2, 18, 34.00),
(4365, 2, 2, 12, 18.00),
(4384, 2, 2, 4, 99999796.00),
(4388, 2, 2, 3, 1098990.00),
(4421, 2, 2, 6, 999986.00),
(4423, 2, 2, 2, 10098933.00),
(4424, 2, 2, 1, 99998880.00);

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

--
-- Table structure for table `temp_holdinvoice`
--

CREATE TABLE `temp_holdinvoice` (
  `id` int(11) NOT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `invoice_date` date DEFAULT NULL,
  `reference_id` varchar(50) DEFAULT NULL,
  `item_id` int(11) DEFAULT NULL,
  `item_qty` int(11) DEFAULT NULL,
  `item_price` double(10,2) DEFAULT NULL,
  `tax` double(10,2) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_time` varchar(50) DEFAULT NULL,
  `created_by` varchar(50) DEFAULT NULL,
  `system_ip` varchar(50) DEFAULT NULL,
  `system_name` varchar(50) DEFAULT NULL,
  `pos` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `ac_accounts`
--
ALTER TABLE `ac_accounts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `paymenttypes_id` (`paymenttypes_id`),
  ADD KEY `customer_id` (`customer_id`),
  ADD KEY `supplier_id` (`supplier_id`),
  ADD KEY `expense_id` (`expense_id`);

--
-- Indexes for table `ac_moneydeposits`
--
ALTER TABLE `ac_moneydeposits`
  ADD PRIMARY KEY (`id`),
  ADD KEY `from_account_id` (`debit_account_id`),
  ADD KEY `to_account_id` (`credit_account_id`),
  ADD KEY `db_moneydeposits_ibfk_3` (`store_id`);

--
-- Indexes for table `ac_moneytransfer`
--
ALTER TABLE `ac_moneytransfer`
  ADD PRIMARY KEY (`id`),
  ADD KEY `from_account_id` (`debit_account_id`),
  ADD KEY `to_account_id` (`credit_account_id`),
  ADD KEY `db_moneytransfer_ibfk_3` (`store_id`);

--
-- Indexes for table `ac_transactions`
--
ALTER TABLE `ac_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `journal_id` (`transaction_type`),
  ADD KEY `account_id` (`debit_account_id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `ac_accounts_id` (`ref_accounts_id`),
  ADD KEY `ac_moneytransfer_id` (`ref_moneytransfer_id`),
  ADD KEY `ac_moneydeposits_id` (`ref_moneydeposits_id`),
  ADD KEY `customer_id` (`customer_id`),
  ADD KEY `ref_salespayments_id` (`ref_salespayments_id`),
  ADD KEY `ref_purchasepayments_id` (`ref_purchasepayments_id`),
  ADD KEY `ref_purchasepaymentsreturn_id` (`ref_purchasepaymentsreturn_id`),
  ADD KEY `ac_transactions_ibfk_9` (`ref_salespaymentsreturn_id`),
  ADD KEY `supplier_id` (`supplier_id`),
  ADD KEY `ref_expense_id` (`ref_expense_id`);

--
-- Indexes for table `ci_sessions`
--
ALTER TABLE `ci_sessions`
  ADD KEY `ci_sessions_timestamp` (`timestamp`);

--
-- Indexes for table `db_bankdetails`
--
ALTER TABLE `db_bankdetails`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_brands`
--
ALTER TABLE `db_brands`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_category`
--
ALTER TABLE `db_category`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_cobpayments`
--
ALTER TABLE `db_cobpayments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `db_country`
--
ALTER TABLE `db_country`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `db_coupons`
--
ALTER TABLE `db_coupons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_currency`
--
ALTER TABLE `db_currency`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `db_custadvance`
--
ALTER TABLE `db_custadvance`
  ADD PRIMARY KEY (`id`),
  ADD KEY `customer_id` (`customer_id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_customers`
--
ALTER TABLE `db_customers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_customer_coupons`
--
ALTER TABLE `db_customer_coupons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `customer_id` (`customer_id`),
  ADD KEY `coupon_id` (`coupon_id`);

--
-- Indexes for table `db_customer_payments`
--
ALTER TABLE `db_customer_payments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `customer_id` (`customer_id`),
  ADD KEY `salespayment_id` (`salespayment_id`);

--
-- Indexes for table `db_emailtemplates`
--
ALTER TABLE `db_emailtemplates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_expense`
--
ALTER TABLE `db_expense`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `account_id` (`account_id`);

--
-- Indexes for table `db_expense_category`
--
ALTER TABLE `db_expense_category`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_fivemojo`
--
ALTER TABLE `db_fivemojo`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_hold`
--
ALTER TABLE `db_hold`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `customer_id` (`customer_id`),
  ADD KEY `warehouse_id` (`warehouse_id`);

--
-- Indexes for table `db_holditems`
--
ALTER TABLE `db_holditems`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `sales_id` (`hold_id`),
  ADD KEY `item_id` (`item_id`);

--
-- Indexes for table `db_instamojo`
--
ALTER TABLE `db_instamojo`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_instamojopayments`
--
ALTER TABLE `db_instamojopayments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `db_items`
--
ALTER TABLE `db_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_languages`
--
ALTER TABLE `db_languages`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `db_package`
--
ALTER TABLE `db_package`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_paymenttypes`
--
ALTER TABLE `db_paymenttypes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_paypal`
--
ALTER TABLE `db_paypal`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_paypalpaylog`
--
ALTER TABLE `db_paypalpaylog`
  ADD PRIMARY KEY (`payment_id`);

--
-- Indexes for table `db_permissions`
--
ALTER TABLE `db_permissions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_purchase`
--
ALTER TABLE `db_purchase`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `supplier_id` (`supplier_id`);

--
-- Indexes for table `db_purchaseitems`
--
ALTER TABLE `db_purchaseitems`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `purchase_id` (`purchase_id`);

--
-- Indexes for table `db_purchaseitemsreturn`
--
ALTER TABLE `db_purchaseitemsreturn`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `return_id` (`return_id`),
  ADD KEY `purchase_id` (`purchase_id`);

--
-- Indexes for table `db_purchasepayments`
--
ALTER TABLE `db_purchasepayments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `purchase_id` (`purchase_id`),
  ADD KEY `supplier_id` (`supplier_id`);

--
-- Indexes for table `db_purchasepaymentsreturn`
--
ALTER TABLE `db_purchasepaymentsreturn`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `return_id` (`return_id`),
  ADD KEY `supplier_id` (`supplier_id`);

--
-- Indexes for table `db_purchasereturn`
--
ALTER TABLE `db_purchasereturn`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `purchase_id` (`purchase_id`);

--
-- Indexes for table `db_quotation`
--
ALTER TABLE `db_quotation`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `customer_id` (`customer_id`),
  ADD KEY `warehouse_id` (`warehouse_id`);

--
-- Indexes for table `db_quotationitems`
--
ALTER TABLE `db_quotationitems`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `quotation_id` (`quotation_id`);

--
-- Indexes for table `db_roles`
--
ALTER TABLE `db_roles`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_sales`
--
ALTER TABLE `db_sales`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `customer_id` (`customer_id`),
  ADD KEY `warehouse_id` (`warehouse_id`),
  ADD KEY `coupon_id` (`coupon_id`);

--
-- Indexes for table `db_salesitems`
--
ALTER TABLE `db_salesitems`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `sales_id` (`sales_id`);

--
-- Indexes for table `db_salesitemsreturn`
--
ALTER TABLE `db_salesitemsreturn`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `return_id` (`return_id`);

--
-- Indexes for table `db_salespayments`
--
ALTER TABLE `db_salespayments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `sales_id` (`sales_id`),
  ADD KEY `customer_id` (`customer_id`);

--
-- Indexes for table `db_salespaymentsreturn`
--
ALTER TABLE `db_salespaymentsreturn`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `return_id` (`return_id`),
  ADD KEY `db_salespaymentsreturn_ibfk_3` (`customer_id`);

--
-- Indexes for table `db_salesreturn`
--
ALTER TABLE `db_salesreturn`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `sales_id` (`sales_id`),
  ADD KEY `coupon_id` (`coupon_id`);

--
-- Indexes for table `db_shippingaddress`
--
ALTER TABLE `db_shippingaddress`
  ADD KEY `customer_id` (`customer_id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `id` (`id`);

--
-- Indexes for table `db_sitesettings`
--
ALTER TABLE `db_sitesettings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `db_smsapi`
--
ALTER TABLE `db_smsapi`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_smstemplates`
--
ALTER TABLE `db_smstemplates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_sobpayments`
--
ALTER TABLE `db_sobpayments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `db_states`
--
ALTER TABLE `db_states`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_stockadjustment`
--
ALTER TABLE `db_stockadjustment`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_stockadjustmentitems`
--
ALTER TABLE `db_stockadjustmentitems`
  ADD PRIMARY KEY (`id`),
  ADD KEY `purchase_id` (`adjustment_id`),
  ADD KEY `item_id` (`item_id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `warehouse_id` (`warehouse_id`);

--
-- Indexes for table `db_stockentry`
--
ALTER TABLE `db_stockentry`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `db_stocktransfer`
--
ALTER TABLE `db_stocktransfer`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `warehouse_id` (`warehouse_from`),
  ADD KEY `warehouse_to` (`warehouse_to`),
  ADD KEY `db_stocktransfer_ibfk_4` (`to_store_id`);

--
-- Indexes for table `db_stocktransferitems`
--
ALTER TABLE `db_stocktransferitems`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `warehouse_from` (`warehouse_from`),
  ADD KEY `warehouse_to` (`warehouse_to`),
  ADD KEY `stocktranfer_id` (`stocktransfer_id`),
  ADD KEY `item_id` (`item_id`),
  ADD KEY `db_stocktransferitems_ibfk_6` (`to_store_id`);

--
-- Indexes for table `db_store`
--
ALTER TABLE `db_store`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `db_stripe`
--
ALTER TABLE `db_stripe`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_stripepayments`
--
ALTER TABLE `db_stripepayments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `db_subscription`
--
ALTER TABLE `db_subscription`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `db_suppliers`
--
ALTER TABLE `db_suppliers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_supplier_payments`
--
ALTER TABLE `db_supplier_payments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `supplier_id` (`supplier_id`),
  ADD KEY `purchasepayment_id` (`purchasepayment_id`);

--
-- Indexes for table `db_tax`
--
ALTER TABLE `db_tax`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_timezone`
--
ALTER TABLE `db_timezone`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `db_twilio`
--
ALTER TABLE `db_twilio`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_units`
--
ALTER TABLE `db_units`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_users`
--
ALTER TABLE `db_users`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_userswarehouses`
--
ALTER TABLE `db_userswarehouses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `warehouse_id` (`warehouse_id`);

--
-- Indexes for table `db_variants`
--
ALTER TABLE `db_variants`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_warehouse`
--
ALTER TABLE `db_warehouse`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `db_warehouseitems`
--
ALTER TABLE `db_warehouseitems`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_id` (`store_id`),
  ADD KEY `warehouse_id` (`warehouse_id`),
  ADD KEY `item_id` (`item_id`);

--
-- Indexes for table `temp_holdinvoice`
--
ALTER TABLE `temp_holdinvoice`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `ac_accounts`
--
ALTER TABLE `ac_accounts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `ac_moneydeposits`
--
ALTER TABLE `ac_moneydeposits`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `ac_moneytransfer`
--
ALTER TABLE `ac_moneytransfer`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ac_transactions`
--
ALTER TABLE `ac_transactions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=921;

--
-- AUTO_INCREMENT for table `db_bankdetails`
--
ALTER TABLE `db_bankdetails`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `db_brands`
--
ALTER TABLE `db_brands`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=334;

--
-- AUTO_INCREMENT for table `db_category`
--
ALTER TABLE `db_category`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=86;

--
-- AUTO_INCREMENT for table `db_cobpayments`
--
ALTER TABLE `db_cobpayments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `db_country`
--
ALTER TABLE `db_country`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=211;

--
-- AUTO_INCREMENT for table `db_coupons`
--
ALTER TABLE `db_coupons`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=350;

--
-- AUTO_INCREMENT for table `db_currency`
--
ALTER TABLE `db_currency`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61;

--
-- AUTO_INCREMENT for table `db_custadvance`
--
ALTER TABLE `db_custadvance`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `db_customers`
--
ALTER TABLE `db_customers`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT for table `db_customer_coupons`
--
ALTER TABLE `db_customer_coupons`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `db_customer_payments`
--
ALTER TABLE `db_customer_payments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `db_emailtemplates`
--
ALTER TABLE `db_emailtemplates`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `db_expense`
--
ALTER TABLE `db_expense`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;

--
-- AUTO_INCREMENT for table `db_expense_category`
--
ALTER TABLE `db_expense_category`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=63;

--
-- AUTO_INCREMENT for table `db_fivemojo`
--
ALTER TABLE `db_fivemojo`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `db_hold`
--
ALTER TABLE `db_hold`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;

--
-- AUTO_INCREMENT for table `db_holditems`
--
ALTER TABLE `db_holditems`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=394;

--
-- AUTO_INCREMENT for table `db_instamojo`
--
ALTER TABLE `db_instamojo`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `db_instamojopayments`
--
ALTER TABLE `db_instamojopayments`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;

--
-- AUTO_INCREMENT for table `db_items`
--
ALTER TABLE `db_items`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `db_languages`
--
ALTER TABLE `db_languages`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `db_package`
--
ALTER TABLE `db_package`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `db_paymenttypes`
--
ALTER TABLE `db_paymenttypes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;

--
-- AUTO_INCREMENT for table `db_paypal`
--
ALTER TABLE `db_paypal`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `db_paypalpaylog`
--
ALTER TABLE `db_paypalpaylog`
  MODIFY `payment_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `db_permissions`
--
ALTER TABLE `db_permissions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6363;

--
-- AUTO_INCREMENT for table `db_purchase`
--
ALTER TABLE `db_purchase`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `db_purchaseitems`
--
ALTER TABLE `db_purchaseitems`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=218;

--
-- AUTO_INCREMENT for table `db_purchaseitemsreturn`
--
ALTER TABLE `db_purchaseitemsreturn`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61;

--
-- AUTO_INCREMENT for table `db_purchasepayments`
--
ALTER TABLE `db_purchasepayments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=127;

--
-- AUTO_INCREMENT for table `db_purchasepaymentsreturn`
--
ALTER TABLE `db_purchasepaymentsreturn`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=122;

--
-- AUTO_INCREMENT for table `db_purchasereturn`
--
ALTER TABLE `db_purchasereturn`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `db_quotation`
--
ALTER TABLE `db_quotation`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `db_quotationitems`
--
ALTER TABLE `db_quotationitems`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=295;

--
-- AUTO_INCREMENT for table `db_roles`
--
ALTER TABLE `db_roles`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

--
-- AUTO_INCREMENT for table `db_sales`
--
ALTER TABLE `db_sales`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=90;

--
-- AUTO_INCREMENT for table `db_salesitems`
--
ALTER TABLE `db_salesitems`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=795;

--
-- AUTO_INCREMENT for table `db_salesitemsreturn`
--
ALTER TABLE `db_salesitemsreturn`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=87;

--
-- AUTO_INCREMENT for table `db_salespayments`
--
ALTER TABLE `db_salespayments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=426;

--
-- AUTO_INCREMENT for table `db_salespaymentsreturn`
--
ALTER TABLE `db_salespaymentsreturn`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47;

--
-- AUTO_INCREMENT for table `db_salesreturn`
--
ALTER TABLE `db_salesreturn`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `db_shippingaddress`
--
ALTER TABLE `db_shippingaddress`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `db_sitesettings`
--
ALTER TABLE `db_sitesettings`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `db_smsapi`
--
ALTER TABLE `db_smsapi`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;

--
-- AUTO_INCREMENT for table `db_smstemplates`
--
ALTER TABLE `db_smstemplates`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;

--
-- AUTO_INCREMENT for table `db_sobpayments`
--
ALTER TABLE `db_sobpayments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `db_states`
--
ALTER TABLE `db_states`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=71;

--
-- AUTO_INCREMENT for table `db_stockadjustment`
--
ALTER TABLE `db_stockadjustment`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT for table `db_stockadjustmentitems`
--
ALTER TABLE `db_stockadjustmentitems`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=372;

--
-- AUTO_INCREMENT for table `db_stockentry`
--
ALTER TABLE `db_stockentry`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `db_stocktransfer`
--
ALTER TABLE `db_stocktransfer`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `db_stocktransferitems`
--
ALTER TABLE `db_stocktransferitems`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=90;

--
-- AUTO_INCREMENT for table `db_store`
--
ALTER TABLE `db_store`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `db_stripe`
--
ALTER TABLE `db_stripe`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `db_stripepayments`
--
ALTER TABLE `db_stripepayments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `db_subscription`
--
ALTER TABLE `db_subscription`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `db_suppliers`
--
ALTER TABLE `db_suppliers`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `db_supplier_payments`
--
ALTER TABLE `db_supplier_payments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=291;

--
-- AUTO_INCREMENT for table `db_tax`
--
ALTER TABLE `db_tax`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=151;

--
-- AUTO_INCREMENT for table `db_timezone`
--
ALTER TABLE `db_timezone`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=549;

--
-- AUTO_INCREMENT for table `db_twilio`
--
ALTER TABLE `db_twilio`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `db_units`
--
ALTER TABLE `db_units`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=66;

--
-- AUTO_INCREMENT for table `db_users`
--
ALTER TABLE `db_users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=105;

--
-- AUTO_INCREMENT for table `db_userswarehouses`
--
ALTER TABLE `db_userswarehouses`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=77;

--
-- AUTO_INCREMENT for table `db_variants`
--
ALTER TABLE `db_variants`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=259;

--
-- AUTO_INCREMENT for table `db_warehouse`
--
ALTER TABLE `db_warehouse`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=92;

--
-- AUTO_INCREMENT for table `db_warehouseitems`
--
ALTER TABLE `db_warehouseitems`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4425;

--
-- AUTO_INCREMENT for table `temp_holdinvoice`
--
ALTER TABLE `temp_holdinvoice`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `ac_accounts`
--
ALTER TABLE `ac_accounts`
  ADD CONSTRAINT `ac_accounts_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_accounts_ibfk_2` FOREIGN KEY (`paymenttypes_id`) REFERENCES `db_paymenttypes` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_accounts_ibfk_3` FOREIGN KEY (`customer_id`) REFERENCES `db_customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_accounts_ibfk_4` FOREIGN KEY (`supplier_id`) REFERENCES `db_suppliers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_accounts_ibfk_5` FOREIGN KEY (`expense_id`) REFERENCES `db_expense` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ac_moneydeposits`
--
ALTER TABLE `ac_moneydeposits`
  ADD CONSTRAINT `ac_moneydeposits_ibfk_1` FOREIGN KEY (`debit_account_id`) REFERENCES `ac_accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_moneydeposits_ibfk_2` FOREIGN KEY (`credit_account_id`) REFERENCES `ac_accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_moneydeposits_ibfk_3` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ac_moneytransfer`
--
ALTER TABLE `ac_moneytransfer`
  ADD CONSTRAINT `ac_moneytransfer_ibfk_1` FOREIGN KEY (`debit_account_id`) REFERENCES `ac_accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_moneytransfer_ibfk_2` FOREIGN KEY (`credit_account_id`) REFERENCES `ac_accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_moneytransfer_ibfk_3` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ac_transactions`
--
ALTER TABLE `ac_transactions`
  ADD CONSTRAINT `ac_transactions_ibfk_10` FOREIGN KEY (`ref_purchasepayments_id`) REFERENCES `db_purchasepayments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_transactions_ibfk_11` FOREIGN KEY (`ref_purchasepaymentsreturn_id`) REFERENCES `db_purchasepaymentsreturn` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_transactions_ibfk_12` FOREIGN KEY (`supplier_id`) REFERENCES `db_suppliers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_transactions_ibfk_13` FOREIGN KEY (`ref_expense_id`) REFERENCES `db_expense` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_transactions_ibfk_3` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_transactions_ibfk_4` FOREIGN KEY (`ref_accounts_id`) REFERENCES `ac_accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_transactions_ibfk_5` FOREIGN KEY (`ref_moneytransfer_id`) REFERENCES `ac_moneytransfer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_transactions_ibfk_6` FOREIGN KEY (`ref_moneydeposits_id`) REFERENCES `ac_moneydeposits` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_transactions_ibfk_7` FOREIGN KEY (`customer_id`) REFERENCES `db_customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_transactions_ibfk_8` FOREIGN KEY (`ref_salespayments_id`) REFERENCES `db_salespayments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ac_transactions_ibfk_9` FOREIGN KEY (`ref_salespaymentsreturn_id`) REFERENCES `db_salespaymentsreturn` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_bankdetails`
--
ALTER TABLE `db_bankdetails`
  ADD CONSTRAINT `db_bankdetails_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `db_brands`
--
ALTER TABLE `db_brands`
  ADD CONSTRAINT `db_brands_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_brands_ibfk_2` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_category`
--
ALTER TABLE `db_category`
  ADD CONSTRAINT `db_category_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_coupons`
--
ALTER TABLE `db_coupons`
  ADD CONSTRAINT `db_coupons_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_coupons_ibfk_2` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_custadvance`
--
ALTER TABLE `db_custadvance`
  ADD CONSTRAINT `db_custadvance_ibfk_1` FOREIGN KEY (`customer_id`) REFERENCES `db_customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_custadvance_ibfk_2` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_customers`
--
ALTER TABLE `db_customers`
  ADD CONSTRAINT `db_customers_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_customer_coupons`
--
ALTER TABLE `db_customer_coupons`
  ADD CONSTRAINT `db_customer_coupons_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_customer_coupons_ibfk_2` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_customer_coupons_ibfk_3` FOREIGN KEY (`customer_id`) REFERENCES `db_customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_customer_coupons_ibfk_4` FOREIGN KEY (`coupon_id`) REFERENCES `db_coupons` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_customer_payments`
--
ALTER TABLE `db_customer_payments`
  ADD CONSTRAINT `db_customer_payments_ibfk_1` FOREIGN KEY (`customer_id`) REFERENCES `db_customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_customer_payments_ibfk_2` FOREIGN KEY (`salespayment_id`) REFERENCES `db_salespayments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_emailtemplates`
--
ALTER TABLE `db_emailtemplates`
  ADD CONSTRAINT `db_emailtemplates_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_expense`
--
ALTER TABLE `db_expense`
  ADD CONSTRAINT `db_expense_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_expense_ibfk_2` FOREIGN KEY (`account_id`) REFERENCES `ac_accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_expense_category`
--
ALTER TABLE `db_expense_category`
  ADD CONSTRAINT `db_expense_category_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_fivemojo`
--
ALTER TABLE `db_fivemojo`
  ADD CONSTRAINT `db_fivemojo_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_hold`
--
ALTER TABLE `db_hold`
  ADD CONSTRAINT `db_hold_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_hold_ibfk_2` FOREIGN KEY (`customer_id`) REFERENCES `db_customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_hold_ibfk_3` FOREIGN KEY (`warehouse_id`) REFERENCES `db_warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_holditems`
--
ALTER TABLE `db_holditems`
  ADD CONSTRAINT `db_holditems_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_holditems_ibfk_2` FOREIGN KEY (`hold_id`) REFERENCES `db_hold` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_holditems_ibfk_3` FOREIGN KEY (`item_id`) REFERENCES `db_items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_instamojo`
--
ALTER TABLE `db_instamojo`
  ADD CONSTRAINT `db_instamojo_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_items`
--
ALTER TABLE `db_items`
  ADD CONSTRAINT `db_items_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_package`
--
ALTER TABLE `db_package`
  ADD CONSTRAINT `db_package_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_paymenttypes`
--
ALTER TABLE `db_paymenttypes`
  ADD CONSTRAINT `db_paymenttypes_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_paypal`
--
ALTER TABLE `db_paypal`
  ADD CONSTRAINT `db_paypal_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_permissions`
--
ALTER TABLE `db_permissions`
  ADD CONSTRAINT `db_permissions_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_purchase`
--
ALTER TABLE `db_purchase`
  ADD CONSTRAINT `db_purchase_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_purchase_ibfk_2` FOREIGN KEY (`supplier_id`) REFERENCES `db_suppliers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_purchaseitems`
--
ALTER TABLE `db_purchaseitems`
  ADD CONSTRAINT `db_purchaseitems_ibfk_1` FOREIGN KEY (`purchase_id`) REFERENCES `db_purchase` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_purchaseitemsreturn`
--
ALTER TABLE `db_purchaseitemsreturn`
  ADD CONSTRAINT `db_purchaseitemsreturn_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_purchaseitemsreturn_ibfk_2` FOREIGN KEY (`return_id`) REFERENCES `db_purchasereturn` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_purchasepayments`
--
ALTER TABLE `db_purchasepayments`
  ADD CONSTRAINT `db_purchasepayments_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_purchasepayments_ibfk_2` FOREIGN KEY (`purchase_id`) REFERENCES `db_purchase` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_purchasepayments_ibfk_3` FOREIGN KEY (`supplier_id`) REFERENCES `db_suppliers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_purchasepaymentsreturn`
--
ALTER TABLE `db_purchasepaymentsreturn`
  ADD CONSTRAINT `db_purchasepaymentsreturn_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_purchasepaymentsreturn_ibfk_2` FOREIGN KEY (`return_id`) REFERENCES `db_purchasereturn` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_purchasepaymentsreturn_ibfk_3` FOREIGN KEY (`supplier_id`) REFERENCES `db_suppliers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_purchasereturn`
--
ALTER TABLE `db_purchasereturn`
  ADD CONSTRAINT `db_purchasereturn_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_purchasereturn_ibfk_2` FOREIGN KEY (`purchase_id`) REFERENCES `db_purchase` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_quotation`
--
ALTER TABLE `db_quotation`
  ADD CONSTRAINT `db_quotation_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_quotation_ibfk_2` FOREIGN KEY (`customer_id`) REFERENCES `db_customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_quotation_ibfk_3` FOREIGN KEY (`warehouse_id`) REFERENCES `db_warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_quotationitems`
--
ALTER TABLE `db_quotationitems`
  ADD CONSTRAINT `db_quotationitems_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_quotationitems_ibfk_2` FOREIGN KEY (`quotation_id`) REFERENCES `db_quotation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_roles`
--
ALTER TABLE `db_roles`
  ADD CONSTRAINT `db_roles_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_sales`
--
ALTER TABLE `db_sales`
  ADD CONSTRAINT `db_sales_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_sales_ibfk_2` FOREIGN KEY (`customer_id`) REFERENCES `db_customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_sales_ibfk_3` FOREIGN KEY (`warehouse_id`) REFERENCES `db_warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_sales_ibfk_4` FOREIGN KEY (`coupon_id`) REFERENCES `db_customer_coupons` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_salesitems`
--
ALTER TABLE `db_salesitems`
  ADD CONSTRAINT `db_salesitems_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_salesitems_ibfk_2` FOREIGN KEY (`sales_id`) REFERENCES `db_sales` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_salesitemsreturn`
--
ALTER TABLE `db_salesitemsreturn`
  ADD CONSTRAINT `db_salesitemsreturn_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_salesitemsreturn_ibfk_2` FOREIGN KEY (`return_id`) REFERENCES `db_salesreturn` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_salespayments`
--
ALTER TABLE `db_salespayments`
  ADD CONSTRAINT `db_salespayments_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_salespayments_ibfk_2` FOREIGN KEY (`sales_id`) REFERENCES `db_sales` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_salespayments_ibfk_3` FOREIGN KEY (`customer_id`) REFERENCES `db_customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_salespaymentsreturn`
--
ALTER TABLE `db_salespaymentsreturn`
  ADD CONSTRAINT `db_salespaymentsreturn_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_salespaymentsreturn_ibfk_2` FOREIGN KEY (`return_id`) REFERENCES `db_salesreturn` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_salespaymentsreturn_ibfk_3` FOREIGN KEY (`customer_id`) REFERENCES `db_customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_salesreturn`
--
ALTER TABLE `db_salesreturn`
  ADD CONSTRAINT `db_salesreturn_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_salesreturn_ibfk_2` FOREIGN KEY (`sales_id`) REFERENCES `db_sales` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_salesreturn_ibfk_3` FOREIGN KEY (`coupon_id`) REFERENCES `db_customer_coupons` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_shippingaddress`
--
ALTER TABLE `db_shippingaddress`
  ADD CONSTRAINT `db_shippingaddress_ibfk_1` FOREIGN KEY (`customer_id`) REFERENCES `db_customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_shippingaddress_ibfk_2` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_smsapi`
--
ALTER TABLE `db_smsapi`
  ADD CONSTRAINT `db_smsapi_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_smstemplates`
--
ALTER TABLE `db_smstemplates`
  ADD CONSTRAINT `db_smstemplates_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_states`
--
ALTER TABLE `db_states`
  ADD CONSTRAINT `db_states_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_stockadjustment`
--
ALTER TABLE `db_stockadjustment`
  ADD CONSTRAINT `db_stockadjustment_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_stockadjustmentitems`
--
ALTER TABLE `db_stockadjustmentitems`
  ADD CONSTRAINT `db_stockadjustmentitems_ibfk_1` FOREIGN KEY (`adjustment_id`) REFERENCES `db_stockadjustment` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_stockadjustmentitems_ibfk_2` FOREIGN KEY (`item_id`) REFERENCES `db_items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_stockadjustmentitems_ibfk_3` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_stockadjustmentitems_ibfk_4` FOREIGN KEY (`warehouse_id`) REFERENCES `db_warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_stocktransfer`
--
ALTER TABLE `db_stocktransfer`
  ADD CONSTRAINT `db_stocktransfer_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_stocktransfer_ibfk_2` FOREIGN KEY (`warehouse_from`) REFERENCES `db_warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_stocktransfer_ibfk_3` FOREIGN KEY (`warehouse_to`) REFERENCES `db_warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_stocktransfer_ibfk_4` FOREIGN KEY (`to_store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_stocktransferitems`
--
ALTER TABLE `db_stocktransferitems`
  ADD CONSTRAINT `db_stocktransferitems_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_stocktransferitems_ibfk_2` FOREIGN KEY (`warehouse_from`) REFERENCES `db_warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_stocktransferitems_ibfk_3` FOREIGN KEY (`warehouse_to`) REFERENCES `db_warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_stocktransferitems_ibfk_4` FOREIGN KEY (`stocktransfer_id`) REFERENCES `db_stocktransfer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_stocktransferitems_ibfk_5` FOREIGN KEY (`item_id`) REFERENCES `db_items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_stocktransferitems_ibfk_6` FOREIGN KEY (`to_store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_stripe`
--
ALTER TABLE `db_stripe`
  ADD CONSTRAINT `db_stripe_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_suppliers`
--
ALTER TABLE `db_suppliers`
  ADD CONSTRAINT `db_suppliers_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_supplier_payments`
--
ALTER TABLE `db_supplier_payments`
  ADD CONSTRAINT `db_supplier_payments_ibfk_1` FOREIGN KEY (`supplier_id`) REFERENCES `db_suppliers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_supplier_payments_ibfk_2` FOREIGN KEY (`purchasepayment_id`) REFERENCES `db_purchasepayments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_tax`
--
ALTER TABLE `db_tax`
  ADD CONSTRAINT `db_tax_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_twilio`
--
ALTER TABLE `db_twilio`
  ADD CONSTRAINT `db_twilio_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_units`
--
ALTER TABLE `db_units`
  ADD CONSTRAINT `db_units_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_users`
--
ALTER TABLE `db_users`
  ADD CONSTRAINT `db_users_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_userswarehouses`
--
ALTER TABLE `db_userswarehouses`
  ADD CONSTRAINT `db_userswarehouses_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `db_users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_userswarehouses_ibfk_2` FOREIGN KEY (`warehouse_id`) REFERENCES `db_warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_variants`
--
ALTER TABLE `db_variants`
  ADD CONSTRAINT `db_variants_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_variants_ibfk_2` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_warehouse`
--
ALTER TABLE `db_warehouse`
  ADD CONSTRAINT `db_warehouse_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `db_warehouseitems`
--
ALTER TABLE `db_warehouseitems`
  ADD CONSTRAINT `db_warehouseitems_ibfk_1` FOREIGN KEY (`store_id`) REFERENCES `db_store` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_warehouseitems_ibfk_2` FOREIGN KEY (`warehouse_id`) REFERENCES `db_warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `db_warehouseitems_ibfk_3` FOREIGN KEY (`item_id`) REFERENCES `db_items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;

