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

START TRANSACTION;



--
-- Database: `safacursorltd_erp`
--

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

--
-- Table structure for table `accounts_groups`
--

CREATE TABLE `accounts_groups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `inventory_ledger_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cogs_ledger_id` bigint(20) UNSIGNED DEFAULT NULL,
  `acc_dep_ledger_id` bigint(20) UNSIGNED DEFAULT NULL,
  `dep_exp_ledger_id` bigint(20) UNSIGNED DEFAULT NULL,
  `purchase_dis_ledger_id` bigint(20) UNSIGNED DEFAULT NULL,
  `sell_ledger_id` bigint(20) UNSIGNED DEFAULT NULL,
  `sell_dis_ledger_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive = 2',
  `is_orderable` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'active = 1 inactive = 2',
  `warehouse_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `accounts_groups`
--

INSERT INTO `accounts_groups` (`id`, `name`, `inventory_ledger_id`, `cogs_ledger_id`, `acc_dep_ledger_id`, `dep_exp_ledger_id`, `purchase_dis_ledger_id`, `sell_ledger_id`, `sell_dis_ledger_id`, `status`, `is_orderable`, `warehouse_id`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Packages', 22, 21, NULL, NULL, 24, 9991, 32, 1, 0, 1, 0, NULL, NULL, NULL, '2021-09-16 04:48:26', '2021-09-19 01:42:07'),
(2, 'Charges', 22, 21, 0, 0, 24, 9992, 32, 1, 0, 1, 0, NULL, NULL, NULL, '2021-09-19 01:46:31', '2021-09-19 01:46:31'),
(3, 'Facility', 30, 21, 0, 0, 0, 9993, 0, 1, 0, 1, 0, NULL, NULL, NULL, '2021-09-19 01:47:06', '2021-09-19 01:47:06'),
(4, 'Building', 74, 21, 75, 76, 24, 30, 32, 1, 0, 1, 0, NULL, NULL, NULL, '2021-10-04 07:32:29', '2021-10-04 07:32:29');

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

--
-- Table structure for table `accounts_heads`
--

CREATE TABLE `accounts_heads` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `auto_code` bigint(20) UNSIGNED DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `acc_level` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `local_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `remarks` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parent_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '0=ledger,1=Group',
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `accounts_heads`
--

INSERT INTO `accounts_heads` (`id`, `code`, `auto_code`, `note`, `acc_level`, `name`, `local_name`, `remarks`, `parent_id`, `warehouse_id`, `type`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, '100', 100, '1', '1', 'ASSETS', NULL, NULL, NULL, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(2, '200', 200, '2', '1', 'LIABILITIES', NULL, NULL, NULL, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(3, '300', 300, '3', '1', 'EXPENSES', NULL, NULL, NULL, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(4, '400', 400, '4', '1', 'INCOMES', NULL, NULL, NULL, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(5, '10001', 10001, '1', '2', 'FIXED ASSETS', NULL, NULL, 1, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(6, '10002', 10002, '1', '2', 'CURRENT ASSETS', NULL, NULL, 1, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(7, '1000201', 1000201, '1', '2', 'ACCOUNTS RECEIVABLE', NULL, NULL, 6, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(8, '1000202', 1000202, '1', '2', 'INVENTORY', NULL, NULL, 6, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(9, '1000203', 1000203, '1', '2', 'CASH', NULL, NULL, 6, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(10, '1000204', 1000204, '1', '2', 'BANK', NULL, NULL, 6, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(11, '100020101', 100020101, '1', '3', 'WALKING CUSTOMER', NULL, NULL, 7, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(12, '100020201', 100020201, '1', '3', 'STOCK INVENTORY', NULL, NULL, 8, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(13, '20001', 20001, '1', '2', 'OWNER\'S EQUITY', NULL, NULL, 2, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(14, '20002', 20002, '1', '2', 'CURRENT LIABILITIES', NULL, NULL, 2, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(15, '2000201', 2000201, '1', '2', 'ACCOUNTS PAYABLE', NULL, NULL, 14, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(16, '2000202', 2000202, '1', '2', 'ACC. DEPRECIATION', NULL, NULL, 14, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(17, '200020101', 200020101, '1', '3', 'WALKING SUPPLIER', NULL, NULL, 15, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(18, '30001', 30001, '1', '2', 'DIRECT EXPENSES', NULL, NULL, 3, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(19, '30002', 30002, '1', '2', 'OPERATING EXPENSES', NULL, NULL, 3, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(20, '30003', 30003, '1', '2', 'NON-OPERATING EXPENSES', NULL, NULL, 3, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(21, '3000101', 3000101, '1', '3', 'COST OF GOODS SOLD', NULL, NULL, 18, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(22, '3000102', 3000102, '1', '3', 'PURCHASE', NULL, NULL, 18, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(23, '3000103', 3000103, '1', '3', 'PURCHASE RETURN', NULL, NULL, 18, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(24, '3000104', 3000104, '1', '3', 'PURCHASE DISCOUNT', NULL, NULL, 18, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(25, '3000201', 3000201, '1', '3', 'DISCOUNT ON RECEIPT', NULL, NULL, 19, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(26, '40001', 40001, '1', '2', 'DIRECT INCOME', NULL, NULL, 4, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(27, '40002', 40002, '1', '2', 'OPERATING INCOME', NULL, NULL, 4, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(28, '40003', 40003, '1', '2', 'NON-OPERATING INCOME', NULL, NULL, 4, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(29, '4000101', 4000101, '1', '3', 'SERVICE REVENUE', NULL, NULL, 26, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(30, '4000102', 4000102, '1', '3', 'SALES', NULL, NULL, 26, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(31, '4000103', 4000103, '1', '3', 'SALES RETURN', NULL, NULL, 26, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(32, '4000104', 4000104, '1', '3', 'SALES DISCOUNT', NULL, NULL, 26, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(33, '4000201', 4000201, '1', '3', 'DISCOUNT ON PAYMENT', NULL, NULL, 27, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(34, '3000105', 3000105, '1', '3', 'OTHER\'S DIRECT EXPENSES', NULL, NULL, 18, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(35, '100020202', 100020202, '1', '3', 'RAW GOODS', NULL, NULL, 8, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(36, '100020203', 100020203, '1', '3', 'FINISHED GOODS', NULL, NULL, 8, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(37, '100020204', 100020204, '1', '3', 'GOODS WORK IN PROGRESS', NULL, NULL, 8, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(38, '100020205', 100020205, '1', '3', 'GOODS IN TRANSITE', NULL, NULL, 8, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(39, '100020206', 100020206, '1', '3', 'DAMAGE GOODS', NULL, NULL, 8, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(40, '3000202', 3000202, '1', '3', 'MISCELLANEOUS EXP.', NULL, NULL, 19, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(41, '3000203', 3000203, '1', '3', 'PRODUCTION LOSS', NULL, NULL, 19, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(42, '4000202', 4000202, '1', '3', 'PROFIT FROM PRODUCTION', NULL, NULL, 27, NULL, 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(43, '12', 100020102, 'sad', '3', 'sdd', 'asd', NULL, 7, 1, 1, 1, 1, NULL, NULL, NULL, '2021-09-16 04:29:26', '2021-09-16 04:29:26'),
(44, '1', 10002010201, NULL, '4', 'Tasnim Hafij', 'Tasnim Hafij', NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-16 04:31:33', '2021-09-16 04:31:33'),
(45, '2', 10002010202, NULL, '4', 'Mizan', 'Mizan', NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-16 04:32:03', '2021-09-16 04:32:03'),
(46, '100020301', 100020301, '100', '3', 'Cash', 'Cash', NULL, 9, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-19 02:20:49', '2021-09-19 02:20:49'),
(47, '100020401', 100020401, '100', '3', 'SCB Bank', 'SCB Bank', NULL, 10, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-19 02:21:30', '2021-09-19 02:21:30'),
(48, '3', 10002010203, NULL, '4', 'Abdul Aziz/Pakistan', 'Abdul Aziz/Pakistan', NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 05:59:32', '2021-09-22 05:59:32'),
(49, '4', 10002010204, NULL, '4', 'Abdul Majeed / Al Duha', 'Abdul Majeed / Al Duha', NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:00:26', '2021-09-22 06:00:26'),
(50, '5', 10002010205, NULL, '4', 'Abdul Majid', 'Abdul Majid', NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:00:47', '2021-09-22 06:00:47'),
(51, '6', 10002010206, NULL, '4', 'Abdul Malik /Huzaifa', 'Abdul Malik /Huzaifa', NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:01:14', '2021-09-22 06:01:14'),
(52, '7', 10002010207, NULL, '4', 'Abdul Mazid /Personal', 'Abdul Mazid /Personal', NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:01:33', '2021-09-22 06:01:33'),
(53, '8', 10002010208, NULL, '4', 'Abdullah /Hotel Mahbub Al Tayyaba', 'Abdullah /Hotel Mahbub Al Tayyaba', NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:01:50', '2021-09-22 06:01:50'),
(54, '9', 10002010209, NULL, '4', 'Abdullah Al Ghamdi-Malek Boshir', 'Abdullah Al Ghamdi-Malek Boshir', NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:02:32', '2021-09-22 06:02:32'),
(55, '10', 10002010210, NULL, '4', 'Abdur Rashid', 'Abdur Rashid', NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:02:47', '2021-09-22 06:02:47'),
(56, '10', 10002010211, NULL, '4', 'Abdur Rashid Kerala', 'Abdur Rashid Kerala', NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:03:03', '2021-09-22 06:03:03'),
(57, '10', 10002010212, NULL, '4', 'Abrar Air Travels/Sayedur Rahman', 'Abrar Air Travels/Sayedur Rahman', NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:03:23', '2021-09-22 06:03:23'),
(58, 'Common Vendor', 200020102, 'Common Vendor', '3', 'Common Vendor', 'Common Vendor', NULL, 15, 1, 1, 1, 1, NULL, NULL, NULL, '2021-09-22 06:06:39', '2021-09-22 06:06:39'),
(59, '1', 200020103, NULL, '3', 'Badr Est.', 'Badr Est.', NULL, 15, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:08:25', '2021-09-22 06:08:25'),
(60, '2', 200020104, NULL, '3', 'Badr Est.', 'Badr Est.', NULL, 15, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:09:31', '2021-09-22 06:09:31'),
(61, '3', 200020105, NULL, '3', 'Badr Est.', 'Badr Est.', NULL, 15, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:10:13', '2021-09-22 06:10:13'),
(62, '3', 200020106, NULL, '3', 'Badr Est.', 'Badr Est.', NULL, 15, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:12:25', '2021-09-22 06:12:25'),
(63, '3', 200020107, NULL, '3', 'Badr Est.', 'Badr Est.', NULL, 15, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:12:46', '2021-09-22 06:12:46'),
(64, '4', 200020108, NULL, '3', 'S. Alam Group', 'S. Alam Group', NULL, 15, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:14:00', '2021-09-25 06:07:45'),
(65, '5', 200020109, NULL, '3', 'CSDE', 'CSDE', NULL, 15, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 06:56:23', '2021-09-22 06:56:23'),
(66, '6', 200020110, NULL, '3', 'Test', 'test', NULL, 15, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 07:14:35', '2021-09-22 07:14:35'),
(67, '7', 200020111, NULL, '3', 'test 2', 'test 2', NULL, 15, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-22 07:35:30', '2021-09-22 07:35:30'),
(68, '8', 200020112, NULL, '3', 'V TEST', 'V TEST', NULL, 15, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-25 05:28:32', '2021-09-25 05:28:32'),
(69, '10', 10002010213, NULL, '4', 'C TEST', 'C TEST', NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-25 05:29:56', '2021-09-25 05:29:56'),
(70, '10', 10002010214, NULL, '4', 'Tuser', NULL, NULL, 43, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-25 08:21:25', '2021-09-25 08:21:25'),
(71, '9', 200020113, NULL, '3', 'Test vendor', 'Test vendor', NULL, 15, 1, 0, 1, 3, NULL, NULL, NULL, '2021-09-25 13:33:03', '2021-09-25 13:33:44'),
(72, '10', 200020114, NULL, '3', 'Al falah', 'Al falah', NULL, 15, 1, 0, 1, 4, NULL, NULL, NULL, '2021-09-25 14:14:20', '2021-09-25 14:14:20'),
(73, '100020302', 100020302, '100', '3', 'Safa Cashier-1', 'Safa Cashier-1', NULL, 9, 1, 0, 1, 1, NULL, NULL, NULL, '2021-09-28 06:34:03', '2021-09-28 06:34:03'),
(74, NULL, 1000101, NULL, '3', 'BUILDING A', 'BUILDING A', NULL, 5, 4, 0, 1, 1, NULL, NULL, NULL, '2021-10-04 07:28:05', '2021-10-04 07:28:05'),
(75, NULL, 200020201, NULL, '3', 'Acc. BUILDING A', 'Acc. BUILDING A', NULL, 16, 4, 0, 1, 1, NULL, NULL, NULL, '2021-10-04 07:29:58', '2021-10-04 07:29:58'),
(76, NULL, 3000204, NULL, '3', 'DEpreciation Exp', 'DEpreciation Exp', NULL, 19, 4, 0, 1, 1, NULL, NULL, NULL, '2021-10-04 07:30:32', '2021-10-04 07:30:32');

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

--
-- Table structure for table `actions`
--

CREATE TABLE `actions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `module_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `action_step`
--

CREATE TABLE `action_step` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `action_id` bigint(20) UNSIGNED NOT NULL,
  `step_id` bigint(20) UNSIGNED NOT NULL,
  `order_sl` bigint(20) UNSIGNED NOT NULL COMMENT 'asc 1 to 10...',
  `is_required` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `admin_accounthead`
--

CREATE TABLE `admin_accounthead` (
  `admin_id` bigint(20) UNSIGNED NOT NULL,
  `accounthead_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `admin_cashes`
--

CREATE TABLE `admin_cashes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `admin_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cash_ledger_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `admin_costcenter`
--

CREATE TABLE `admin_costcenter` (
  `admin_id` bigint(20) UNSIGNED NOT NULL,
  `cost_center_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `admin_costcenter`
--

INSERT INTO `admin_costcenter` (`admin_id`, `cost_center_id`, `created_at`, `updated_at`) VALUES
(2, 1, NULL, NULL),
(3, 1, NULL, NULL),
(4, 1, NULL, NULL);

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

--
-- Table structure for table `admin_role`
--

CREATE TABLE `admin_role` (
  `admin_id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `admin_role`
--

INSERT INTO `admin_role` (`admin_id`, `role_id`, `created_at`, `updated_at`) VALUES
(1, 1, NULL, NULL),
(2, 3, NULL, NULL),
(3, 4, NULL, NULL),
(4, 4, NULL, NULL);

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

--
-- Table structure for table `admin_warehouse`
--

CREATE TABLE `admin_warehouse` (
  `admin_id` bigint(20) UNSIGNED NOT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `admin_warehouse`
--

INSERT INTO `admin_warehouse` (`admin_id`, `warehouse_id`, `created_at`, `updated_at`) VALUES
(1, 1, NULL, NULL),
(1, 2, NULL, NULL),
(1, 3, NULL, NULL),
(1, 4, NULL, NULL),
(2, 1, NULL, NULL),
(2, 4, NULL, NULL),
(2, 2, NULL, NULL),
(2, 3, NULL, NULL),
(1, 6, NULL, NULL),
(1, 7, NULL, NULL),
(1, 8, NULL, NULL),
(3, 1, NULL, NULL),
(3, 4, NULL, NULL),
(3, 8, NULL, NULL),
(4, 1, NULL, NULL),
(4, 4, NULL, NULL),
(4, 8, NULL, NULL),
(1, 5, NULL, NULL);

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

--
-- Table structure for table `approvals`
--

CREATE TABLE `approvals` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `approvable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `approvable_id` bigint(20) UNSIGNED NOT NULL,
  `action_step_id` bigint(20) UNSIGNED DEFAULT NULL,
  `admin_id` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'Approved or rejected by',
  `status` bigint(20) UNSIGNED NOT NULL COMMENT '0=>Rejected , 1=>Approved ',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `brands`
--

CREATE TABLE `brands` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_eng` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_local` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT 0,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `brands`
--

INSERT INTO `brands` (`id`, `code`, `name_eng`, `name_local`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, '7676', 'Fresh', 'Fresh', 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:25:20', '2021-09-25 04:25:20'),
(2, '23443', 'Dhankhan', 'Dhankhan', 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:25:46', '2021-09-25 04:25:46');

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

--
-- Table structure for table `cake_carts`
--

CREATE TABLE `cake_carts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `order_date` timestamp NULL DEFAULT NULL,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `color_id` bigint(20) UNSIGNED DEFAULT NULL,
  `shape_id` bigint(20) UNSIGNED DEFAULT NULL,
  `weight` double DEFAULT NULL,
  `design` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `heading_id` bigint(20) UNSIGNED DEFAULT NULL,
  `heading_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `delivery_date` timestamp NULL DEFAULT NULL,
  `delivery_time` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `cake_orders`
--

CREATE TABLE `cake_orders` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `transaction_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `invoice_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `ref_invoice` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `net_total` double NOT NULL DEFAULT 0,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` timestamp NULL DEFAULT NULL,
  `approve_status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '0=stand by, 1=Panding, 2=Approve',
  `delivery_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=Panding,1=>REJECTED 2=DELEVERED',
  `cost_center_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `cake_order_details`
--

CREATE TABLE `cake_order_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `cake_order_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_details_id` bigint(20) UNSIGNED DEFAULT NULL,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `color_id` bigint(20) UNSIGNED DEFAULT NULL,
  `shape_id` bigint(20) UNSIGNED DEFAULT NULL,
  `weight` double DEFAULT NULL,
  `design` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `heading_id` bigint(20) UNSIGNED DEFAULT NULL,
  `heading_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `delivery_date` timestamp NULL DEFAULT NULL,
  `delivery_time` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `card_grades`
--

CREATE TABLE `card_grades` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name_eng` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_local` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `percentage` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT 0,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `card_members`
--

CREATE TABLE `card_members` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `customer_id` bigint(20) UNSIGNED NOT NULL,
  `grade` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_number` int(11) NOT NULL,
  `expiry_date` date NOT NULL,
  `note` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `posting_date` date NOT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT 0,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `carts`
--

CREATE TABLE `carts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `barcode` bigint(20) NOT NULL,
  `total_quantity` bigint(20) NOT NULL,
  `vendor_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warrenty_from` date DEFAULT NULL,
  `warrenty_to` date DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `cashier_ledgers`
--

CREATE TABLE `cashier_ledgers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `admin_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cashier_ledger` bigint(20) UNSIGNED DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cashier_ledgers`
--

INSERT INTO `cashier_ledgers` (`id`, `admin_id`, `cashier_ledger`, `status`, `created_at`, `updated_at`) VALUES
(1, 3, 73, 1, '2021-09-28 06:34:36', '2021-09-28 06:34:36');

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

--
-- Table structure for table `cash_banks`
--

CREATE TABLE `cash_banks` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name_eng` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_local` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `account_id` bigint(20) UNSIGNED NOT NULL,
  `type` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'cash =1 bank=2',
  `bank_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `acc_no` int(11) DEFAULT NULL,
  `branch` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cash_banks`
--

INSERT INTO `cash_banks` (`id`, `name_eng`, `name_local`, `account_id`, `type`, `bank_name`, `acc_no`, `branch`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Cash', 'Cash', 46, 1, NULL, NULL, NULL, 1, 1, 0, NULL, NULL, NULL, '2021-09-19 02:20:49', '2021-09-19 02:20:49'),
(2, 'SCB Bank', 'SCB Bank', 47, 2, 'SCB Bank', 123, 'GEC', 1, 1, 0, NULL, NULL, NULL, '2021-09-19 02:21:30', '2021-09-19 02:21:30'),
(3, 'Safa Cashier-1', 'Safa Cashier-1', 73, 1, NULL, NULL, NULL, 1, 1, 0, NULL, NULL, NULL, '2021-09-28 06:34:03', '2021-09-28 06:34:03');

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

--
-- Table structure for table `charts`
--

CREATE TABLE `charts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `chart_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `chart_name_bangla` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model` int(11) NOT NULL DEFAULT 0,
  `trace` int(11) NOT NULL DEFAULT 0,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `charts`
--

INSERT INTO `charts` (`id`, `chart_name`, `chart_name_bangla`, `model`, `trace`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'SECTION A', 'SECTION A', 123456, 0, 1, 1, 1, NULL, NULL, '2021-09-16 04:52:46', '2021-09-16 04:52:46', NULL);

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

--
-- Table structure for table `cheque_details`
--

CREATE TABLE `cheque_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `cheque_id` bigint(20) UNSIGNED NOT NULL,
  `cheque_date` datetime NOT NULL,
  `type` int(11) DEFAULT NULL COMMENT '0 => registered 1 => receive 2 => placed, 3 => dishonoured, 4 => complete',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `cheque_dues`
--

CREATE TABLE `cheque_dues` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `invoice_id` bigint(20) UNSIGNED NOT NULL,
  `type` tinyint(4) NOT NULL COMMENT '1=chq/2=due',
  `amount` double NOT NULL DEFAULT 0,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `bank_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date NOT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ref` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cheque_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_paid` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1=paid, 0=unpaid',
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=on/0=off',
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `cheque_due_collections`
--

CREATE TABLE `cheque_due_collections` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `chq_due_id` bigint(20) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `amount` double NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=on/0=off',
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `color_sizes`
--

CREATE TABLE `color_sizes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `parent_id` bigint(20) UNSIGNED DEFAULT NULL,
  `type` tinyint(4) NOT NULL COMMENT '1=color, 2=size',
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=on/2=off',
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `color_sizes`
--

INSERT INTO `color_sizes` (`id`, `name`, `parent_id`, `type`, `status`, `warehouse_id`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'auto color', 1, 0, 1, NULL, 1, NULL, NULL, NULL, NULL, NULL),
(2, 'Size', NULL, 1, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:27:27', '2021-09-25 04:27:27'),
(3, 'S', 2, 1, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:27:27', '2021-09-25 04:27:27'),
(4, 'M', 2, 1, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:27:27', '2021-09-25 04:27:27'),
(5, 'L', 2, 1, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:27:27', '2021-09-25 04:27:27'),
(6, 'XL', 2, 1, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:27:27', '2021-09-25 04:27:27'),
(7, 'XXL', 2, 1, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:27:27', '2021-09-25 04:27:27'),
(8, 'XXXL', 2, 1, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:27:27', '2021-09-25 04:27:27'),
(9, 'XS', 2, 1, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:27:27', '2021-09-25 04:27:27'),
(10, 'Black', 2, 1, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:28:04', '2021-09-25 04:28:04');

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

--
-- Table structure for table `contracts`
--

CREATE TABLE `contracts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'contact name',
  `for` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'contact for',
  `contract_with` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'contact with',
  `contract_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contract_date` date DEFAULT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `group_id` int(10) UNSIGNED DEFAULT NULL,
  `type_id` int(10) UNSIGNED DEFAULT NULL,
  `sale_purchase_type` tinyint(4) NOT NULL COMMENT '1=purchase/2=sale',
  `invoice_id` bigint(20) UNSIGNED NOT NULL,
  `invoice_amount` double NOT NULL DEFAULT 0 COMMENT 'total invoice net amount',
  `terms1` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `terms2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sign1` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sign2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=pending/2=Running/3=cancelled/4=Completed',
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `contract_expansions`
--

CREATE TABLE `contract_expansions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `contract_id` bigint(20) UNSIGNED NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `desc` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=on/0=off',
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `contract_installments`
--

CREATE TABLE `contract_installments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `contract_id` bigint(20) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `amount` double NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=on/0=off',
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `contract_type_groups`
--

CREATE TABLE `contract_type_groups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` tinyint(4) NOT NULL COMMENT '1=contract type/2=contract group',
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=on/0=off',
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `costcenter_mappings`
--

CREATE TABLE `costcenter_mappings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `action_step_id` bigint(20) UNSIGNED NOT NULL,
  `cost_center_id` bigint(20) UNSIGNED DEFAULT NULL,
  `admin_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `costings`
--

CREATE TABLE `costings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `effect_date` timestamp NULL DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `other_cost` double NOT NULL DEFAULT 0,
  `purchase_commission` double NOT NULL DEFAULT 0,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `cost_centers`
--

CREATE TABLE `cost_centers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_local` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parent_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `default` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'active = 1 inactive =0',
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =0',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cost_centers`
--

INSERT INTO `cost_centers` (`id`, `name`, `name_local`, `parent_id`, `warehouse_id`, `default`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`) VALUES
(1, 'Default Branch', 'Default Branch', NULL, 1, 1, 1, 1, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `countries`
--

CREATE TABLE `countries` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` int(11) NOT NULL,
  `continent_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `continent_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `sort_id` int(11) NOT NULL DEFAULT 5000,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `countries`
--

INSERT INTO `countries` (`id`, `name`, `code`, `continent_code`, `continent_name`, `sort_id`, `status`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Afghanistan', 93, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(2, 'Aland Islands', 358, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(3, 'Albania', 355, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(4, 'Algeria', 213, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(5, 'American Samoa', 1684, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(6, 'Andorra', 376, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(7, 'Angola', 244, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(8, 'Anguilla', 1264, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(9, 'Antarctica', 672, 'AN', 'Antarctica', 5000, 1, NULL, NULL, NULL),
(10, 'Antigua and Barbuda', 1268, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(11, 'Argentina', 54, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(12, 'Armenia', 374, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(13, 'Aruba', 297, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(14, 'Australia', 61, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(15, 'Austria', 43, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(16, 'Azerbaijan', 994, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(17, 'Bahamas', 1242, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(18, 'Bahrain', 973, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(19, 'Bangladesh', 880, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(20, 'Barbados', 1246, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(21, 'Belarus', 375, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(22, 'Belgium', 32, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(23, 'Belize', 501, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(24, 'Benin', 229, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(25, 'Bermuda', 1441, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(26, 'Bhutan', 975, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(27, 'Bolivia', 591, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(28, 'Bonaire, Sint Eustatius and Saba', 599, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(29, 'Bosnia and Herzegovina', 387, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(30, 'Botswana', 267, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(31, 'Bouvet Island', 55, 'AN', 'Antarctica', 5000, 1, NULL, NULL, NULL),
(32, 'Brazil', 55, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(33, 'British Indian Ocean Territory', 246, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(34, 'Brunei Darussalam', 673, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(35, 'Bulgaria', 359, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(36, 'Burkina Faso', 226, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(37, 'Burundi', 257, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(38, 'Cambodia', 855, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(39, 'Cameroon', 237, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(40, 'Canada', 1, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(41, 'Cape Verde', 238, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(42, 'Cayman Islands', 1345, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(43, 'Central African Republic', 236, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(44, 'Chad', 235, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(45, 'Chile', 56, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(46, 'China', 86, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(47, 'Christmas Island', 61, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(48, 'Cocos (Keeling) Islands', 672, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(49, 'Colombia', 57, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(50, 'Comoros', 269, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(51, 'Congo', 242, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(52, 'Congo, Democratic Republic of the Congo', 242, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(53, 'Cook Islands', 682, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(54, 'Costa Rica', 506, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(55, 'Cote D\'Ivoire', 225, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(56, 'Croatia', 385, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(57, 'Cuba', 53, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(58, 'Curacao', 599, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(59, 'Cyprus', 357, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(60, 'Czech Republic', 420, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(61, 'Denmark', 45, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(62, 'Djibouti', 253, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(63, 'Dominica', 1767, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(64, 'Dominican Republic', 1809, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(65, 'Ecuador', 593, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(66, 'Egypt', 20, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(67, 'El Salvador', 503, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(68, 'Equatorial Guinea', 240, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(69, 'Eritrea', 291, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(70, 'Estonia', 372, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(71, 'Ethiopia', 251, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(72, 'Falkland Islands (Malvinas)', 500, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(73, 'Faroe Islands', 298, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(74, 'Fiji', 679, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(75, 'Finland', 358, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(76, 'France', 33, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(77, 'French Guiana', 594, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(78, 'French Polynesia', 689, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(79, 'French Southern Territories', 262, 'AN', 'Antarctica', 5000, 1, NULL, NULL, NULL),
(80, 'Gabon', 241, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(81, 'Gambia', 220, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(82, 'Georgia', 995, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(83, 'Germany', 49, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(84, 'Ghana', 233, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(85, 'Gibraltar', 350, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(86, 'Greece', 30, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(87, 'Greenland', 299, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(88, 'Grenada', 1473, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(89, 'Guadeloupe', 590, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(90, 'Guam', 1671, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(91, 'Guatemala', 502, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(92, 'Guernsey', 44, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(93, 'Guinea', 224, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(94, 'Guinea-Bissau', 245, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(95, 'Guyana', 592, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(96, 'Haiti', 509, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(97, 'Heard Island and Mcdonald Islands', 0, 'AN', 'Antarctica', 5000, 1, NULL, NULL, NULL),
(98, 'Holy See (Vatican City State)', 39, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(99, 'Honduras', 504, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(100, 'Hong Kong', 852, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(101, 'Hungary', 36, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(102, 'Iceland', 354, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(103, 'India', 91, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(104, 'Indonesia', 62, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(105, 'Iran, Islamic Republic of', 98, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(106, 'Iraq', 964, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(107, 'Ireland', 353, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(108, 'Isle of Man', 44, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(109, 'Israel', 972, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(110, 'Italy', 39, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(111, 'Jamaica', 1876, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(112, 'Japan', 81, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(113, 'Jersey', 44, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(114, 'Jordan', 962, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(115, 'Kazakhstan', 7, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(116, 'Kenya', 254, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(117, 'Kiribati', 686, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(118, 'Korea, Democratic People\'s Republic of', 850, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(119, 'Korea, Republic of', 82, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(120, 'Kosovo', 381, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(121, 'Kuwait', 965, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(122, 'Kyrgyzstan', 996, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(123, 'Lao People\'s Democratic Republic', 856, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(124, 'Latvia', 371, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(125, 'Lebanon', 961, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(126, 'Lesotho', 266, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(127, 'Liberia', 231, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(128, 'Libyan Arab Jamahiriya', 218, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(129, 'Liechtenstein', 423, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(130, 'Lithuania', 370, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(131, 'Luxembourg', 352, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(132, 'Macao', 853, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(133, 'Macedonia, the Former Yugoslav Republic of', 389, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(134, 'Madagascar', 261, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(135, 'Malawi', 265, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(136, 'Malaysia', 60, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(137, 'Maldives', 960, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(138, 'Mali', 223, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(139, 'Malta', 356, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(140, 'Marshall Islands', 692, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(141, 'Martinique', 596, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(142, 'Mauritania', 222, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(143, 'Mauritius', 230, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(144, 'Mayotte', 269, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(145, 'Mexico', 52, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(146, 'Micronesia, Federated States of', 691, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(147, 'Moldova, Republic of', 373, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(148, 'Monaco', 377, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(149, 'Mongolia', 976, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(150, 'Montenegro', 382, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(151, 'Montserrat', 1664, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(152, 'Morocco', 212, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(153, 'Mozambique', 258, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(154, 'Myanmar', 95, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(155, 'Namibia', 264, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(156, 'Nauru', 674, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(157, 'Nepal', 977, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(158, 'Netherlands', 31, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(159, 'Netherlands Antilles', 599, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(160, 'New Caledonia', 687, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(161, 'New Zealand', 64, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(162, 'Nicaragua', 505, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(163, 'Niger', 227, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(164, 'Nigeria', 234, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(165, 'Niue', 683, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(166, 'Norfolk Island', 672, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(167, 'Northern Mariana Islands', 1670, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(168, 'Norway', 47, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(169, 'Oman', 968, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(170, 'Pakistan', 92, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(171, 'Palau', 680, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(172, 'Palestinian Territory, Occupied', 970, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(173, 'Panama', 507, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(174, 'Papua New Guinea', 675, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(175, 'Paraguay', 595, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(176, 'Peru', 51, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(177, 'Philippines', 63, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(178, 'Pitcairn', 64, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(179, 'Poland', 48, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(180, 'Portugal', 351, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(181, 'Puerto Rico', 1787, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(182, 'Qatar', 974, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(183, 'Reunion', 262, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(184, 'Romania', 40, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(185, 'Russian Federation', 70, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(186, 'Rwanda', 250, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(187, 'Saint Barthelemy', 590, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(188, 'Saint Helena', 290, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(189, 'Saint Kitts and Nevis', 1869, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(190, 'Saint Lucia', 1758, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(191, 'Saint Martin', 590, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(192, 'Saint Pierre and Miquelon', 508, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(193, 'Saint Vincent and the Grenadines', 1784, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(194, 'Samoa', 684, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(195, 'San Marino', 378, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(196, 'Sao Tome and Principe', 239, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(197, 'Saudi Arabia', 966, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(198, 'Senegal', 221, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(199, 'Serbia', 381, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(200, 'Serbia and Montenegro', 381, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(201, 'Seychelles', 248, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(202, 'Sierra Leone', 232, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(203, 'Singapore', 65, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(204, 'Sint Maarten', 1, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(205, 'Slovakia', 421, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(206, 'Slovenia', 386, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(207, 'Solomon Islands', 677, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(208, 'Somalia', 252, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(209, 'South Africa', 27, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(210, 'South Georgia and the South Sandwich Islands', 500, 'AN', 'Antarctica', 5000, 1, NULL, NULL, NULL),
(211, 'South Sudan', 211, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(212, 'Spain', 34, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(213, 'Sri Lanka', 94, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(214, 'Sudan', 249, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(215, 'Suriname', 597, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(216, 'Svalbard and Jan Mayen', 47, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(217, 'Swaziland', 268, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(218, 'Sweden', 46, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(219, 'Switzerland', 41, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(220, 'Syrian Arab Republic', 963, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(221, 'Taiwan, Province of China', 886, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(222, 'Tajikistan', 992, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(223, 'Tanzania, United Republic of', 255, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(224, 'Thailand', 66, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(225, 'Timor-Leste', 670, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(226, 'Togo', 228, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(227, 'Tokelau', 690, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(228, 'Tonga', 676, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(229, 'Trinidad and Tobago', 1868, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(230, 'Tunisia', 216, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(231, 'Turkey', 90, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(232, 'Turkmenistan', 7370, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(233, 'Turks and Caicos Islands', 1649, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(234, 'Tuvalu', 688, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(235, 'Uganda', 256, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(236, 'Ukraine', 380, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(237, 'United Arab Emirates', 971, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(238, 'United Kingdom', 44, 'EU', 'Europe', 5000, 1, NULL, NULL, NULL),
(239, 'United States', 1, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(240, 'United States Minor Outlying Islands', 1, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(241, 'Uruguay', 598, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(242, 'Uzbekistan', 998, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(243, 'Vanuatu', 678, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(244, 'Venezuela', 58, 'SA', 'South America', 5000, 1, NULL, NULL, NULL),
(245, 'Viet Nam', 84, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(246, 'Virgin Islands, British', 1284, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(247, 'Virgin Islands, U.s.', 1340, 'NA', 'North America', 5000, 1, NULL, NULL, NULL),
(248, 'Wallis and Futuna', 681, 'OC', 'Oceania', 5000, 1, NULL, NULL, NULL),
(249, 'Western Sahara', 212, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(250, 'Yemen', 967, 'AS', 'Asia', 5000, 1, NULL, NULL, NULL),
(251, 'Zambia', 260, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL),
(252, 'Zimbabwe', 263, 'AF', 'Africa', 5000, 1, NULL, NULL, NULL);

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

--
-- Table structure for table `currencies`
--

CREATE TABLE `currencies` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `roe` double NOT NULL COMMENT 'Rate Of Exchange',
  `is_primary` tinyint(1) NOT NULL DEFAULT 0,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `currencies`
--

INSERT INTO `currencies` (`id`, `name`, `roe`, `is_primary`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'BDT', 0.0019372396349930572, 0, 1, 1, NULL, 2, NULL, NULL, NULL, '2021-09-25 04:24:21'),
(2, 'USD', 0.16466536897440986, 0, 1, 1, NULL, 2, NULL, NULL, NULL, '2021-09-25 04:24:07'),
(3, 'SAR', 1, 1, 1, 1, 1, 4, NULL, NULL, '2021-09-25 06:53:56', '2021-09-25 13:58:05');

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

--
-- Table structure for table `customer_shop`
--

CREATE TABLE `customer_shop` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `customer_id` bigint(20) UNSIGNED NOT NULL,
  `shop_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `active` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `damage_transactions`
--

CREATE TABLE `damage_transactions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `invoice_id` bigint(20) UNSIGNED NOT NULL,
  `dr_cr` tinyint(4) NOT NULL COMMENT '1=dr/2=cr',
  `transaction_type` tinyint(4) NOT NULL,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `quantity` double NOT NULL DEFAULT 0,
  `price` double NOT NULL DEFAULT 0,
  `amount` double NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=on/0=off',
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `database_backups`
--

CREATE TABLE `database_backups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `date` datetime NOT NULL,
  `link` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;



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

--
-- Table structure for table `expenses`
--

CREATE TABLE `expenses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `amount` double NOT NULL DEFAULT 0,
  `net_amount` double NOT NULL DEFAULT 0,
  `ledger_id` int(10) UNSIGNED DEFAULT NULL,
  `dr_acc_id` int(10) UNSIGNED DEFAULT NULL,
  `invoice_id` int(10) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=on/0=off',
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fa_cost_details`
--

CREATE TABLE `fa_cost_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fa_details_id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `cost_id` bigint(20) UNSIGNED NOT NULL,
  `amount` decimal(10,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fa_cost_details`
--

INSERT INTO `fa_cost_details` (`id`, `fa_details_id`, `product_id`, `cost_id`, `amount`, `created_at`, `updated_at`) VALUES
(1, 3, 14, 1, 200.00, NULL, NULL);

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

--
-- Table structure for table `fa_details`
--

CREATE TABLE `fa_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fa_invoice_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `item_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fa_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sn` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quantity` int(11) NOT NULL DEFAULT 0,
  `category_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `warranty_from` date DEFAULT NULL,
  `warranty_to` date DEFAULT NULL,
  `amount` decimal(8,2) DEFAULT NULL,
  `installation_cost` decimal(8,2) DEFAULT NULL,
  `cf_cost` decimal(8,2) DEFAULT NULL,
  `insurance_charge` decimal(8,2) DEFAULT NULL,
  `other_charge` decimal(8,2) DEFAULT NULL,
  `other_expense` decimal(8,2) DEFAULT NULL,
  `vat` int(11) NOT NULL DEFAULT 0 COMMENT '% wise',
  `vat_amount` int(11) NOT NULL DEFAULT 0,
  `total_amount_without_vat` double(10,2) DEFAULT NULL,
  `total_amount` double(10,2) DEFAULT NULL,
  `costcenter_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `location_costcenter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `statutory_location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `sub_location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `floor_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `floor_location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `room_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `room_location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `department_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `sub_department` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mode_of_purchase` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `percentage` int(11) DEFAULT NULL,
  `residual_value` int(11) DEFAULT NULL,
  `parent_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `item_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `ware_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'running =1, closed/dipored =2, sale = 3,revaluated =4',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `total_days` double(10,1) NOT NULL DEFAULT 0.0,
  `per_day_rate` double DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fa_details`
--

INSERT INTO `fa_details` (`id`, `fa_invoice_id`, `item_code`, `fa_code`, `description`, `sn`, `quantity`, `category_id`, `warranty_from`, `warranty_to`, `amount`, `installation_cost`, `cf_cost`, `insurance_charge`, `other_charge`, `other_expense`, `vat`, `vat_amount`, `total_amount_without_vat`, `total_amount`, `costcenter_id`, `location_costcenter`, `statutory_location`, `country_id`, `sub_location`, `floor_id`, `floor_location`, `room_id`, `room_location`, `department_id`, `sub_department`, `location`, `mode_of_purchase`, `percentage`, `residual_value`, `parent_id`, `item_id`, `ware_id`, `status`, `created_at`, `updated_at`, `total_days`, `per_day_rate`) VALUES
(3, 3, NULL, '2001341001', 'gg', 'grt', 1, 2, '2021-10-03', '2022-10-03', 1000.00, NULL, NULL, NULL, NULL, NULL, 0, 0, 1200.00, 1200.00, 1, NULL, NULL, 0, NULL, 1, NULL, 1, NULL, 0, NULL, NULL, 'hrt', 20, 200, 0, 14, 1, 3, '2021-10-03 09:53:32', '2021-10-03 10:10:36', 1.0, 3.2786885245902),
(4, 4, NULL, NULL, NULL, NULL, 0, 2, NULL, NULL, 300.00, NULL, NULL, NULL, NULL, NULL, 0, 0, 300.00, 300.00, 1, NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, NULL, NULL, 0, NULL, 3, 14, 1, 0, '2021-10-03 09:55:23', '2021-10-03 09:55:23', 0.0, NULL),
(5, 5, NULL, NULL, NULL, NULL, 0, 2, NULL, NULL, 300.00, NULL, NULL, NULL, NULL, NULL, 0, 0, 300.00, 300.00, 1, NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, NULL, NULL, 0, NULL, 3, 14, 1, 0, '2021-10-03 10:03:46', '2021-10-03 10:03:46', 0.0, NULL),
(6, 6, NULL, NULL, NULL, NULL, 0, 2, NULL, NULL, 300.00, NULL, NULL, NULL, NULL, NULL, 0, 0, 300.00, 300.00, 1, NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, NULL, NULL, 0, NULL, 3, 14, 1, 0, '2021-10-03 10:05:25', '2021-10-03 10:05:25', 0.0, NULL),
(7, 7, NULL, '2006998605', NULL, NULL, 1, 2, '2021-10-04', '2022-10-04', 20000.00, NULL, NULL, NULL, NULL, NULL, 0, 100, 20000.00, 20100.00, 1, NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, NULL, NULL, 10, 300, 0, 17, 1, 0, '2021-10-04 07:59:24', '2021-10-04 07:59:24', 1.0, 54.644808743169),
(8, 8, NULL, '2006999306', NULL, NULL, 1, 2, '2021-10-04', '2022-10-04', 1000.00, NULL, NULL, NULL, NULL, NULL, 0, 0, 1000.00, 1000.00, 1, NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, NULL, NULL, 10, 0, 0, 18, 1, 0, '2021-10-04 08:13:45', '2021-10-04 08:13:45', 1.0, 2.7322404371585);

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

--
-- Table structure for table `fa_fixed_asset_costs`
--

CREATE TABLE `fa_fixed_asset_costs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active=1,inactive =2',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fa_fixed_asset_costs`
--

INSERT INTO `fa_fixed_asset_costs` (`id`, `name`, `status`, `created_at`, `updated_at`) VALUES
(1, 'installation_cost', 1, NULL, NULL),
(2, 'cf_cost', 1, NULL, NULL),
(3, 'insurance_charge', 1, NULL, NULL),
(4, 'other_charge', 1, NULL, NULL),
(5, 'other_expense', 1, NULL, NULL);

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

--
-- Table structure for table `fa_fixed_asset_item_details`
--

CREATE TABLE `fa_fixed_asset_item_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `reference_id` int(11) NOT NULL DEFAULT 0 COMMENT 'id from grn if revalue is 0 else id of this table',
  `grn_no` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `date_of_grn` date NOT NULL,
  `asset_acuired_date` date NOT NULL,
  `insurance_date` date NOT NULL,
  `user_entered_grn` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `vendor_id` int(11) NOT NULL,
  `item_id` int(11) NOT NULL COMMENT 'id of product ledger table',
  `item_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `item_quntity` int(11) NOT NULL DEFAULT 0,
  `item_serial` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `purchase_requisition_no` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `purchase_order_no` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fixed_asset_category_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `accounts_id` int(11) DEFAULT NULL COMMENT 'id of ledger table',
  `total_amount` double(10,2) DEFAULT NULL,
  `total_vat_amount` double(10,2) DEFAULT NULL,
  `total_quantity` double(10,2) NOT NULL,
  `fa_code` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `asset_no` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `capex_no` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tag_no` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `warranty_to` date NOT NULL,
  `warranty_form` date NOT NULL,
  `totalWarantyMonth` int(11) NOT NULL COMMENT 'total day',
  `pecentage` int(11) NOT NULL,
  `residual_value` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cost_center_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `ware_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `model` int(11) NOT NULL DEFAULT 0,
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '1=running,2=close/dispose,3=sale,4=revalued',
  `approve_status` int(11) DEFAULT NULL COMMENT 'is item approve',
  `is_revalued` int(11) DEFAULT 0 COMMENT 'if 1 then item is revalued',
  `date` date DEFAULT NULL,
  `pby` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fa_fixed_asset_transections`
--

CREATE TABLE `fa_fixed_asset_transections` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `invoice_no` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `asset_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `uom` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `floor_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `room_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `department_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `sn` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `item_quntity` int(11) NOT NULL DEFAULT 0,
  `dr_cr_type` int(11) DEFAULT NULL COMMENT '1= debit,2=credit',
  `trans_type` int(11) DEFAULT NULL COMMENT '1=adding,2=adjustment in, 3 = adjustment out, 4=disposal,5=new item',
  `fixed_asset_category_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `country_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `installation_cost` double(10,2) DEFAULT NULL,
  `c_f_cost` double(10,2) DEFAULT NULL,
  `insurances_charges` double(10,2) DEFAULT NULL,
  `other_charges` double(10,2) DEFAULT NULL,
  `other_expenses` double(10,2) NOT NULL,
  `amount` double(10,2) NOT NULL,
  `total_amount_without_vat` double(10,2) DEFAULT NULL,
  `vat_amount` double(10,2) DEFAULT NULL,
  `total_amount` double(10,2) NOT NULL,
  `cost_center_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `location_costcenter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `statutory_location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_location_floor` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_location_room` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_department` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date NOT NULL,
  `ware_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `trace` int(11) NOT NULL DEFAULT 0,
  `pby` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fa_invoices`
--

CREATE TABLE `fa_invoices` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `grn_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reference_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'from store_invoices table',
  `date` date DEFAULT NULL,
  `acuired_date` date DEFAULT NULL,
  `insuarnce_date` date DEFAULT NULL,
  `purchase_requisition_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `invoice_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `purchase_order_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `vendor_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `total_vat` decimal(10,2) DEFAULT NULL,
  `total_amount` decimal(10,2) DEFAULT NULL,
  `total_quantity` decimal(10,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fa_invoices`
--

INSERT INTO `fa_invoices` (`id`, `grn_no`, `reference_id`, `date`, `acuired_date`, `insuarnce_date`, `purchase_requisition_no`, `invoice_no`, `purchase_order_no`, `vendor_id`, `total_vat`, `total_amount`, `total_quantity`, `created_at`, `updated_at`) VALUES
(3, NULL, 1, '2021-10-03', '2021-10-03', '2021-10-03', '234566', 'CentrGrn2106136', '234567', 13, 0.00, 1200.00, 1.00, '2021-10-03 09:53:32', '2021-10-03 09:53:32'),
(4, NULL, 0, '2022-02-27', NULL, NULL, NULL, 'CentrGrn2106137', NULL, 0, 0.00, 300.00, 0.00, '2021-10-03 09:55:23', '2021-10-03 09:55:23'),
(5, NULL, 0, '2022-03-19', NULL, NULL, NULL, 'CentrGrn2106138', NULL, 0, 0.00, 300.00, 0.00, '2021-10-03 10:03:46', '2021-10-03 10:03:46'),
(6, NULL, 0, '2022-03-20', NULL, NULL, NULL, 'CentrGrn2106139', NULL, 0, 0.00, 300.00, 0.00, '2021-10-03 10:05:25', '2021-10-03 10:05:25'),
(7, NULL, 0, NULL, NULL, NULL, NULL, 'CentrGrn2106140', NULL, 13, 100.00, 20100.00, 1.00, '2021-10-04 07:59:24', '2021-10-04 07:59:24'),
(8, NULL, 0, NULL, NULL, NULL, NULL, 'CentrGrn2106141', NULL, 22, 0.00, 1000.00, 1.00, '2021-10-04 08:13:45', '2021-10-04 08:13:45');

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

--
-- Table structure for table `fa_movements`
--

CREATE TABLE `fa_movements` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `previous_move_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `fa_details_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `costcenter_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `department_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `room_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `floor_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `country_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `sub_department` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location_costcenter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `floor_location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `room_location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `statutory_location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `ware_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fa_rates`
--

CREATE TABLE `fa_rates` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `total_value` decimal(10,2) DEFAULT NULL,
  `fa_details_id` bigint(20) UNSIGNED NOT NULL,
  `item_id` bigint(20) UNSIGNED NOT NULL,
  `costcenter_id` bigint(20) UNSIGNED NOT NULL,
  `per_day_rate` decimal(10,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fa_transections`
--

CREATE TABLE `fa_transections` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fa_details_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `fa_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quantity` int(11) NOT NULL DEFAULT 0,
  `amount` double DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `total_days` int(11) NOT NULL DEFAULT 0,
  `item_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `ware_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `per_day_rate` double DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `type` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'adding=1,adjustment in=2,adjustment out=3,disposal =4, depreciation = 5',
  `category_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `costcenter_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `depreciation_types` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Adding Depreciation = 1,AdjustmentOut Depreciation = 2,disposal Depreciation = 3'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fa_transections`
--

INSERT INTO `fa_transections` (`id`, `fa_details_id`, `fa_code`, `quantity`, `amount`, `start_date`, `end_date`, `total_days`, `item_id`, `ware_id`, `per_day_rate`, `created_at`, `updated_at`, `type`, `category_id`, `costcenter_id`, `depreciation_types`) VALUES
(5, 3, '2001341001', 0, 1200, '2021-10-03', NULL, 366, 14, 1, 3.2786885245902, '2021-10-03 09:53:32', '2021-10-03 09:53:32', 1, 2, 1, 0),
(6, 3, '2001341001', 0, 0, NULL, NULL, 0, 14, 1, 3.2786885245902, '2021-10-03 09:53:32', '2021-10-03 09:53:32', 10, 0, 0, 0),
(7, 3, '2001341001', 0, 406.55737704918, '2021-10-03', '2022-02-03', 124, 14, 1, 3.2786885245902, '2021-10-03 09:54:16', '2021-10-03 09:54:16', 5, 2, 1, 0),
(8, 4, '2001341001', 0, 300, '2021-10-03', NULL, 0, 14, 1, 4.6485515382888, '2021-10-03 09:55:23', '2021-10-03 09:55:23', 1, 2, 1, 0),
(9, 4, '2001341001', 0, 0, NULL, NULL, 0, 14, 1, 4.6485515382888, '2021-10-03 09:55:23', '2021-10-03 09:55:23', 10, 0, 0, 0),
(10, 3, '2001341001', 0, 75.409836065575, '2022-02-04', '2022-02-26', 23, 14, 1, 3.2786885245902, '2021-10-03 09:55:23', '2021-10-03 09:55:23', 5, 2, 1, 1),
(11, 3, '2001341001', 0, 74.376824612621, '2022-02-27', '2022-03-14', 16, 14, 1, 4.6485515382888, '2021-10-03 09:59:57', '2021-10-03 09:59:57', 5, 2, 1, 0),
(12, 5, '2001341001', 0, 300, '2021-10-03', NULL, 0, 14, 1, 6.156089226731, '2021-10-03 10:03:46', '2021-10-03 10:03:46', 1, 2, 1, 0),
(13, 5, '2001341001', 0, 0, NULL, NULL, 0, 14, 1, 6.156089226731, '2021-10-03 10:03:46', '2021-10-03 10:03:46', 10, 0, 0, 0),
(14, 3, '2001341001', 0, 18.594206153155, '2022-03-15', '2022-03-18', 4, 14, 1, 4.6485515382888, '2021-10-03 10:03:46', '2021-10-03 10:03:46', 5, 2, 1, 1),
(15, 6, '2001341001', 0, 300, '2021-10-03', NULL, 0, 14, 1, 4.6485515382888, '2021-10-03 10:05:25', '2021-10-03 10:05:25', 3, 2, 1, 0),
(16, 6, '2001341001', 0, 0, NULL, NULL, 0, 14, 1, 4.6485515382888, '2021-10-03 10:05:25', '2021-10-03 10:05:25', 10, 0, 0, 0),
(17, 3, '2001341001', 0, 4.6485515382888, '2022-03-19', '2022-03-19', 1, 14, 1, 4.6485515382888, '2021-10-03 10:05:25', '2021-10-03 10:05:25', 5, 2, 1, 2),
(18, 7, '2006998605', 0, 20000, '2021-10-04', NULL, 366, 17, 1, 54.644808743169, '2021-10-04 07:59:24', '2021-10-04 07:59:24', 1, 2, 1, 0),
(19, 7, '2006998605', 0, 0, NULL, NULL, 0, 17, 1, 54.644808743169, '2021-10-04 07:59:24', '2021-10-04 07:59:24', 10, 0, 0, 0),
(20, 3, '2001341001', 0, 920.41320458118, '2022-03-20', '2022-10-03', 198, 14, 1, 4.6485515382888, '2021-10-04 07:59:48', '2021-10-04 07:59:48', 5, 2, 1, 0),
(21, 7, '2006998605', 0, 20000, '2021-10-04', '2022-10-04', 366, 17, 1, 54.644808743169, '2021-10-04 07:59:48', '2021-10-04 07:59:48', 5, 2, 1, 0),
(22, 8, '2006999306', 0, 1000, '2021-10-04', NULL, 366, 18, 1, 2.7322404371585, '2021-10-04 08:13:45', '2021-10-04 08:13:45', 1, 2, 1, 0),
(23, 8, '2006999306', 0, 0, NULL, NULL, 0, 18, 1, 2.7322404371585, '2021-10-04 08:13:45', '2021-10-04 08:13:45', 10, 0, 0, 0),
(24, 8, '2006999306', 0, 5.464480874317, '2021-10-04', '2021-10-05', 2, 18, 1, 2.7322404371585, '2021-10-04 08:15:41', '2021-10-04 08:15:41', 5, 2, 1, 0);

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

--
-- Table structure for table `fd_add_charges`
--

CREATE TABLE `fd_add_charges` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `room_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `booking_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `checkin_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `total_price` decimal(10,2) NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `remarks` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ware_id` int(11) NOT NULL DEFAULT 0,
  `posted_by` int(11) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_add_charges`
--

INSERT INTO `fd_add_charges` (`id`, `room_id`, `booking_id`, `checkin_id`, `total_price`, `total_amount`, `remarks`, `ware_id`, `posted_by`, `status`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 1, 16.00, 16.00, NULL, 4, 0, 1, NULL, '2021-09-27 11:44:34', '2021-09-27 11:44:34'),
(2, 0, 3, 0, 4.00, 4.00, NULL, 4, 0, 1, NULL, '2021-09-27 12:40:08', '2021-09-27 12:40:08'),
(3, 0, 4, 0, 10.00, 10.00, NULL, 4, 0, 1, NULL, '2021-09-28 05:46:22', '2021-09-28 05:46:22'),
(4, 13, 5, 5, 14.00, 14.00, NULL, 4, 0, 1, NULL, '2021-09-28 06:10:47', '2021-09-28 06:10:47');

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

--
-- Table structure for table `fd_add_charges_details`
--

CREATE TABLE `fd_add_charges_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `add_charges_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `amount` decimal(10,2) NOT NULL,
  `charges_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `ware_id` int(11) NOT NULL DEFAULT 0,
  `posted_by` int(11) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_add_charges_details`
--

INSERT INTO `fd_add_charges_details` (`id`, `add_charges_id`, `amount`, `charges_id`, `ware_id`, `posted_by`, `status`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 10.00, 5, 4, 0, 1, NULL, '2021-09-27 11:44:34', '2021-09-27 11:44:34'),
(2, 1, 6.00, 6, 4, 0, 1, NULL, '2021-09-27 11:44:34', '2021-09-27 11:44:34'),
(3, 2, 4.00, 6, 4, 1, 1, NULL, '2021-09-27 12:40:08', '2021-09-27 12:40:08'),
(4, 3, 10.00, 6, 4, 1, 1, NULL, '2021-09-28 05:46:22', '2021-09-28 05:46:22'),
(5, 4, 10.00, 5, 4, 0, 1, NULL, '2021-09-28 06:10:47', '2021-09-28 06:10:47'),
(6, 4, 4.00, 6, 4, 0, 1, NULL, '2021-09-28 06:10:47', '2021-09-28 06:10:47');

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

--
-- Table structure for table `fd_agent_rates`
--

CREATE TABLE `fd_agent_rates` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `ware_id` bigint(20) UNSIGNED DEFAULT NULL,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `exception_type` int(11) NOT NULL,
  `exception_value` int(11) NOT NULL,
  `room_type` int(11) NOT NULL COMMENT '1=room,2=bed',
  `bed_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '1 bed, 2 bed, etc...',
  `remarks` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '1=pending,2=Accepted',
  `posted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_agent_rates`
--

INSERT INTO `fd_agent_rates` (`id`, `ware_id`, `party_id`, `start_date`, `end_date`, `exception_type`, `exception_value`, `room_type`, `bed_type`, `remarks`, `status`, `posted_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(2, 4, 1, '2021-09-28', '2021-09-30', 1, 2, 1, ',1,2,', NULL, 2, 1, NULL, NULL, '2021-09-28 05:17:02', '2021-09-28 05:17:02');

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

--
-- Table structure for table `fd_allotments`
--

CREATE TABLE `fd_allotments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `gross_amount` double NOT NULL,
  `commission` double NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `agent_id` int(11) NOT NULL DEFAULT 0,
  `ref_booking_id` int(11) NOT NULL DEFAULT 0,
  `inv_date` date NOT NULL,
  `ware_id` int(11) NOT NULL DEFAULT 0,
  `remarks` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `doc_name` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `posted_by` int(11) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fd_allotment_details`
--

CREATE TABLE `fd_allotment_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fd_allotment_id` int(11) NOT NULL DEFAULT 0,
  `room_type_id` smallint(6) NOT NULL DEFAULT 0,
  `agent_id` int(11) NOT NULL DEFAULT 0,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `qty` double(8,2) NOT NULL DEFAULT 0.00,
  `rate` double(8,2) NOT NULL DEFAULT 0.00,
  `total_night` int(11) NOT NULL DEFAULT 0,
  `ware_id` int(11) NOT NULL DEFAULT 0,
  `posted_by` int(11) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fd_allotment_installments`
--

CREATE TABLE `fd_allotment_installments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fd_allotment_id` int(11) NOT NULL DEFAULT 0,
  `agent_id` int(11) NOT NULL DEFAULT 0,
  `date` date NOT NULL,
  `amount` double NOT NULL,
  `ware_id` int(11) NOT NULL DEFAULT 0,
  `posted_by` int(11) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fd_allotment_releases`
--

CREATE TABLE `fd_allotment_releases` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fd_allotment_id` int(11) NOT NULL DEFAULT 0,
  `room_type_id` smallint(6) NOT NULL DEFAULT 0,
  `agent_id` int(11) NOT NULL DEFAULT 0,
  `release_date` date NOT NULL,
  `qty` int(11) NOT NULL,
  `ware_id` int(11) NOT NULL DEFAULT 0,
  `posted_by` int(11) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fd_bookings`
--

CREATE TABLE `fd_bookings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `allotment_id` smallint(6) NOT NULL DEFAULT 0,
  `resv_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `checkin_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `package_id` int(11) NOT NULL DEFAULT 0,
  `type` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=room booking,2=bed booking',
  `date` date NOT NULL,
  `check_in_date` datetime DEFAULT NULL,
  `check_out_date` datetime DEFAULT NULL,
  `company_id` smallint(6) NOT NULL DEFAULT 0,
  `sub_company_id` smallint(6) DEFAULT 0,
  `agent_id` int(11) NOT NULL,
  `adult` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `children` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `confirm_date` datetime DEFAULT NULL,
  `remarks` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `booking_status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=booking,2=check in,3=request for canceled, 4=cancel approved, 5=Need Approval due to rate change, 6= checkout',
  `bill_amount` double(8,2) NOT NULL DEFAULT 0.00,
  `discount` double(8,2) NOT NULL DEFAULT 0.00,
  `cancel_by` bigint(20) UNSIGNED DEFAULT NULL,
  `cancel_date` date DEFAULT NULL,
  `tax_type` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=including,2=excluding',
  `tax_percent` double(8,2) NOT NULL DEFAULT 0.00,
  `ware_id` smallint(6) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `posted_by` smallint(6) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_bookings`
--

INSERT INTO `fd_bookings` (`id`, `allotment_id`, `resv_code`, `checkin_code`, `package_id`, `type`, `date`, `check_in_date`, `check_out_date`, `company_id`, `sub_company_id`, `agent_id`, `adult`, `children`, `confirm_date`, `remarks`, `booking_status`, `bill_amount`, `discount`, `cancel_by`, `cancel_date`, `tax_type`, `tax_percent`, `ware_id`, `status`, `posted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 0, 'resv202109-1', 'chkin2021091', 2, 1, '2021-09-27', '2021-09-27 17:51:46', '2021-09-28 10:40:29', 2, 4, 1, '2', '1', '2021-09-27 00:00:00', NULL, 6, 114.00, 5.00, NULL, NULL, 1, 7.50, 4, 1, 1, NULL, '2021-09-27 11:34:41', '2021-09-28 04:40:29'),
(2, 0, NULL, 'chkin-202109-2', 2, 1, '2021-09-27', '2021-09-27 18:35:29', '2021-09-28 10:40:08', 1, 0, 1, NULL, NULL, '2021-09-27 00:00:00', NULL, 6, 18.00, 0.00, NULL, NULL, 2, 15.00, 4, 1, 1, NULL, '2021-09-27 12:35:29', '2021-09-28 04:40:08'),
(3, 0, 'resv202109-3', NULL, 2, 2, '2021-09-27', NULL, NULL, 1, NULL, 1, '1', '1', NULL, NULL, 4, 10.00, 0.00, 1, '2021-09-27', 2, 22.50, 4, 1, 1, NULL, '2021-09-27 12:37:03', '2021-09-27 12:40:45'),
(4, 0, 'resv202109-4', NULL, 2, 1, '2021-09-28', NULL, NULL, 7, 8, 1, '1', '1', '2021-09-29 12:30:00', NULL, 4, 58.00, 10.00, 1, '2021-09-28', 2, 15.00, 4, 1, 1, NULL, '2021-09-28 05:30:07', '2021-09-28 05:46:59'),
(5, 0, 'resv202109-6', 'chkin2021095', 2, 1, '2021-09-28', '2021-09-28 11:54:11', '2021-09-28 12:19:44', 5, 6, 1, '1', '1', NULL, NULL, 6, 36.00, 5.00, NULL, NULL, 2, 22.50, 4, 1, 1, NULL, '2021-09-28 05:48:47', '2021-09-28 06:19:44'),
(6, 0, NULL, 'chkin-202109-6', 2, 1, '2021-09-28', '2021-09-28 11:59:43', NULL, 7, 0, 1, NULL, NULL, '2021-09-28 00:00:00', NULL, 2, 36.00, 0.00, NULL, NULL, 1, 15.00, 4, 1, 1, NULL, '2021-09-28 05:59:43', '2021-09-28 05:59:43');

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

--
-- Table structure for table `fd_booking_facilities`
--

CREATE TABLE `fd_booking_facilities` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `booking_id` int(11) NOT NULL DEFAULT 0,
  `facility_id` int(11) NOT NULL DEFAULT 0,
  `qty` double(8,2) NOT NULL DEFAULT 0.00,
  `amount` double NOT NULL DEFAULT 0,
  `ware_id` smallint(6) NOT NULL DEFAULT 0,
  `facility_status` int(11) NOT NULL DEFAULT 1 COMMENT '1=with cost,2=without cost',
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `posted_by` smallint(6) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_booking_facilities`
--

INSERT INTO `fd_booking_facilities` (`id`, `booking_id`, `facility_id`, `qty`, `amount`, `ware_id`, `facility_status`, `status`, `posted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 7, 1.00, 200, 4, 1, 1, 1, NULL, '2021-09-27 11:34:41', '2021-09-27 11:51:46'),
(2, 1, 8, 1.00, 100, 4, 2, 1, 1, NULL, '2021-09-27 11:34:41', '2021-09-27 11:51:46'),
(3, 3, 7, 1.00, 10, 4, 1, 1, 1, NULL, '2021-09-27 12:37:55', '2021-09-27 12:37:55'),
(4, 4, 7, 1.00, 200, 4, 1, 1, 1, NULL, '2021-09-28 05:30:07', '2021-09-28 05:30:07'),
(5, 4, 9, 1.00, 200, 4, 2, 1, 1, NULL, '2021-09-28 05:30:07', '2021-09-28 05:30:07'),
(6, 5, 7, 1.00, 100, 4, 1, 1, 1, NULL, '2021-09-28 05:48:47', '2021-09-28 05:54:11'),
(7, 5, 8, 1.00, 100, 4, 2, 1, 1, NULL, '2021-09-28 05:50:45', '2021-09-28 05:54:11');

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

--
-- Table structure for table `fd_booking_room_details`
--

CREATE TABLE `fd_booking_room_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `booking_id` int(11) NOT NULL DEFAULT 0,
  `room_id` int(11) NOT NULL DEFAULT 0,
  `room_type` smallint(6) NOT NULL DEFAULT 0,
  `qty` int(11) NOT NULL DEFAULT 0,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `total_night` int(11) NOT NULL DEFAULT 0,
  `rent` double(8,2) NOT NULL,
  `o_rent` double(8,2) NOT NULL,
  `ware_id` smallint(6) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `posted_by` smallint(6) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_booking_room_details`
--

INSERT INTO `fd_booking_room_details` (`id`, `booking_id`, `room_id`, `room_type`, `qty`, `start_date`, `end_date`, `total_night`, `rent`, `o_rent`, `ware_id`, `status`, `posted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 0, 1, 1, '2021-09-28', '2021-09-30', 2, 18.00, 18.00, 4, 1, 0, NULL, '2021-09-27 11:34:41', '2021-09-27 11:34:41'),
(2, 1, 0, 2, 1, '2021-09-28', '2021-09-29', 1, 30.00, 0.00, 4, 1, 0, NULL, '2021-09-27 11:34:41', '2021-09-27 11:34:41'),
(3, 3, 0, 1, 1, '2021-09-27', '2021-09-28', 1, 10.00, 10.00, 4, 1, 0, NULL, '2021-09-27 12:37:03', '2021-09-27 12:37:03'),
(4, 4, 0, 1, 1, '2021-09-29', '2021-09-30', 1, 18.00, 18.00, 4, 1, 0, NULL, '2021-09-28 05:30:07', '2021-09-28 05:30:07'),
(5, 4, 0, 2, 1, '2021-09-30', '2021-10-01', 1, 40.00, 0.00, 4, 1, 0, NULL, '2021-09-28 05:30:07', '2021-09-28 05:30:07'),
(6, 5, 0, 1, 1, '2021-09-28', '2021-09-30', 2, 18.00, 18.00, 4, 1, 0, NULL, '2021-09-28 05:48:47', '2021-09-28 05:50:45');

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

--
-- Table structure for table `fd_charges`
--

CREATE TABLE `fd_charges` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `group_id` int(10) UNSIGNED NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `local_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `posted_by` smallint(6) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `ware_id` smallint(6) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fd_check_in_room_details`
--

CREATE TABLE `fd_check_in_room_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `booking_id` int(11) NOT NULL DEFAULT 0,
  `allotment_id` smallint(6) NOT NULL DEFAULT 0,
  `room_id` int(11) NOT NULL DEFAULT 0,
  `room_type` smallint(6) NOT NULL DEFAULT 0,
  `bed_id` int(11) NOT NULL DEFAULT 0,
  `voucher_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `qty` int(11) NOT NULL DEFAULT 0 COMMENT 'total night',
  `rent` double(8,2) NOT NULL DEFAULT 0.00,
  `vat` double(8,2) NOT NULL DEFAULT 0.00,
  `start_date_time` datetime DEFAULT NULL,
  `end_date_time` datetime DEFAULT NULL,
  `check_in_time` datetime DEFAULT NULL,
  `check_out_time` datetime DEFAULT NULL,
  `check_in_status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=check_in,2=checkout,canceled',
  `ware_id` smallint(6) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `posted_by` smallint(6) NOT NULL DEFAULT 0,
  `remarks` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_check_in_room_details`
--

INSERT INTO `fd_check_in_room_details` (`id`, `booking_id`, `allotment_id`, `room_id`, `room_type`, `bed_id`, `voucher_no`, `qty`, `rent`, `vat`, `start_date_time`, `end_date_time`, `check_in_time`, `check_out_time`, `check_in_status`, `ware_id`, `status`, `posted_by`, `remarks`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 0, 1, 1, 0, NULL, 3, 16.74, 1.26, '2021-09-27 00:00:00', '2021-09-29 00:00:00', '2021-09-27 00:00:00', '2021-09-27 18:14:13', 2, 4, 1, 1, NULL, NULL, '2021-09-27 11:41:33', '2021-09-27 12:14:13'),
(2, 1, 0, 4, 1, 0, NULL, 1, 27.91, 2.09, '2021-09-27 00:00:00', '2021-09-27 00:00:00', '2021-09-27 00:00:00', '2021-09-28 10:40:29', 2, 4, 1, 1, NULL, NULL, '2021-09-27 11:41:33', '2021-09-28 04:40:29'),
(3, 1, 0, 7, 1, 0, NULL, 1, 16.74, 1.26, '2021-09-27 00:00:00', '2021-09-27 00:00:00', '2021-09-27 18:14:13', '2021-09-27 18:25:46', 2, 4, 1, 1, NULL, NULL, '2021-09-27 12:14:13', '2021-09-27 12:25:46'),
(4, 2, 0, 7, 1, 0, NULL, 1, 18.00, 2.70, '2021-09-27 00:00:00', '2021-09-27 00:00:00', '2021-09-27 00:00:00', '2021-09-28 10:40:08', 2, 4, 1, 1, NULL, NULL, '2021-09-27 12:35:29', '2021-09-28 04:40:08'),
(5, 5, 0, 13, 1, 0, NULL, 0, 18.00, 4.05, '2021-09-28 00:00:00', '2021-09-27 00:00:00', '2021-09-28 00:00:00', '2021-09-28 12:19:44', 2, 4, 1, 1, NULL, NULL, '2021-09-28 05:54:11', '2021-09-28 06:19:44'),
(6, 6, 0, 4, 1, 0, NULL, 1, 15.65, 2.35, '2021-09-28 00:00:00', '2021-09-28 00:00:00', '2021-09-28 00:00:00', '2021-09-28 12:23:25', 2, 4, 1, 1, NULL, NULL, '2021-09-28 05:59:43', '2021-09-28 06:23:25'),
(7, 6, 0, 7, 1, 0, NULL, 1, 15.65, 2.35, '2021-09-28 00:00:00', '2021-09-28 00:00:00', '2021-09-28 00:00:00', NULL, 1, 4, 1, 1, NULL, NULL, '2021-09-28 05:59:43', '2021-09-28 05:59:43'),
(8, 6, 0, 13, 1, 0, NULL, 1, 15.65, 2.35, '2021-09-28 00:00:00', '2021-09-28 00:00:00', '2021-09-28 12:23:25', NULL, 1, 4, 1, 1, NULL, NULL, '2021-09-28 06:23:25', '2021-09-28 06:23:25');

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

--
-- Table structure for table `fd_company_details`
--

CREATE TABLE `fd_company_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `agent_id` int(11) NOT NULL DEFAULT 0,
  `parent_id` int(11) NOT NULL DEFAULT 0,
  `contact_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sort_id` smallint(6) NOT NULL DEFAULT 5000,
  `posted_by` smallint(6) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `ware_id` smallint(6) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_company_details`
--

INSERT INTO `fd_company_details` (`id`, `name`, `agent_id`, `parent_id`, `contact_no`, `email`, `address`, `sort_id`, `posted_by`, `status`, `ware_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Tasnim Ent', 1, 0, '012356', 'ts@gmail.com', 'address', 5000, 0, 1, 0, NULL, '2021-09-27 11:07:11', '2021-09-27 11:07:11'),
(2, 'Tasnim Qrt', 1, 0, '01233', 'ts2@y.com', 'test address', 5000, 0, 1, 0, NULL, '2021-09-27 11:07:45', '2021-09-27 11:07:45'),
(3, 'Tasnim fdw', 1, 0, '0123', 'tsew@gmail.com', 'address', 5000, 0, 1, 0, NULL, '2021-09-27 11:10:46', '2021-09-27 11:10:46'),
(4, 'Sub Tasnim qrt', 1, 2, '01234', 'subts@gmail.com', 'address', 5000, 0, 1, 0, NULL, '2021-09-27 11:12:06', '2021-09-27 11:12:06'),
(5, 'Tasnim Abc', 1, 0, '018433', 'tswer@gmail.com', 'address 23', 5000, 0, 1, 0, NULL, '2021-09-28 04:58:19', '2021-09-28 04:58:36'),
(6, 'Sub tasnim abc', 1, 5, '01256566', 'ts23@gmail.com', 'ret', 5000, 0, 1, 0, NULL, '2021-09-28 04:59:47', '2021-09-28 04:59:47'),
(7, 'Tasnim xyz', 1, 0, '0185665', 'txyz@gmail.com', 'address 565', 5000, 0, 1, 0, NULL, '2021-09-28 05:07:11', '2021-09-28 05:07:32'),
(8, 'sub ts xyz', 1, 7, '7688978', 'ytr@gmail.com', 'address', 5000, 0, 1, 0, NULL, '2021-09-28 05:08:29', '2021-09-28 05:08:45');

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

--
-- Table structure for table `fd_day_adjust_logs`
--

CREATE TABLE `fd_day_adjust_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `booking_id` bigint(20) UNSIGNED NOT NULL,
  `crd_id` bigint(20) UNSIGNED NOT NULL COMMENT 'ID from Check In Room Details ID',
  `type` tinyint(4) NOT NULL,
  `day` int(11) NOT NULL,
  `posted_by` int(11) NOT NULL,
  `remarks` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ware_id` tinyint(4) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fd_day_closes`
--

CREATE TABLE `fd_day_closes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `ware_id` int(10) UNSIGNED DEFAULT NULL,
  `audit_by` int(11) NOT NULL,
  `closing_date` date NOT NULL,
  `remarks` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1="Active",2="Inactive"',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_day_closes`
--

INSERT INTO `fd_day_closes` (`id`, `ware_id`, `audit_by`, `closing_date`, `remarks`, `status`, `created_at`, `updated_at`) VALUES
(1, 4, 1, '2021-09-28', NULL, 1, '2021-09-28 06:39:08', '2021-09-28 06:39:08');

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

--
-- Table structure for table `fd_floors`
--

CREATE TABLE `fd_floors` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `floor_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_id` int(11) NOT NULL DEFAULT 0,
  `ware_id` int(11) NOT NULL DEFAULT 0,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Active =1 Inactive =2',
  `posted_by` int(11) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_floors`
--

INSERT INTO `fd_floors` (`id`, `floor_no`, `user_id`, `ware_id`, `status`, `posted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, '1st Floor', 0, 4, 1, 0, NULL, '2021-09-16 04:00:05', '2021-09-16 04:00:05'),
(2, '2nd floor', 0, 4, 1, 0, NULL, '2021-09-16 04:00:19', '2021-09-16 04:00:19'),
(3, '3rd Floor', 0, 4, 1, 0, NULL, '2021-09-22 06:38:22', '2021-09-22 06:38:22'),
(4, '4th', 0, 4, 1, 0, NULL, '2021-09-27 11:14:14', '2021-09-27 11:14:59'),
(5, '5th Floor', 0, 4, 1, 0, NULL, '2021-09-27 11:15:40', '2021-09-27 11:16:02'),
(6, '6th', 0, 4, 1, 0, NULL, '2021-09-28 05:00:41', '2021-09-28 05:00:41'),
(7, '7th floor', 0, 4, 1, 0, NULL, '2021-09-28 05:09:25', '2021-09-28 05:09:46');

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

--
-- Table structure for table `fd_guest_infos`
--

CREATE TABLE `fd_guest_infos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `booking_id` int(11) NOT NULL DEFAULT 0,
  `room_id` int(11) DEFAULT NULL,
  `voucher_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mobile_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country_id` smallint(6) NOT NULL DEFAULT 0,
  `identity_type_id` smallint(6) NOT NULL DEFAULT 0,
  `identity_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `remarks` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `doc` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ware_id` smallint(6) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `posted_by` smallint(6) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_guest_infos`
--

INSERT INTO `fd_guest_infos` (`id`, `booking_id`, `room_id`, `voucher_no`, `name`, `email`, `mobile_no`, `country_id`, `identity_type_id`, `identity_no`, `address`, `remarks`, `doc`, `ware_id`, `status`, `posted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 4, NULL, 'Amin', 'Amin', '012766776', 19, 1, '567789898', NULL, NULL, '', 4, 1, 1, NULL, NULL, '2021-09-27 11:51:46'),
(2, 2, 7, NULL, 'new guest', NULL, '01445655', 1, 1, NULL, NULL, NULL, '', 4, 1, 1, NULL, '2021-09-27 12:35:29', '2021-09-27 12:35:29'),
(3, 3, NULL, NULL, 'new guest', 'new guest', '015456', 1, 1, NULL, NULL, NULL, '', 4, 1, 0, NULL, NULL, NULL),
(4, 4, NULL, NULL, 'Amin', 'Amin', '786889798', 19, 2, '8685755576', NULL, NULL, '', 4, 1, 0, NULL, NULL, NULL),
(5, 5, 13, NULL, 'new guest', 'new guest', '98768979', 19, 2, '547657685875', NULL, NULL, '', 4, 1, 1, NULL, NULL, '2021-09-28 05:54:11'),
(6, 6, 4, NULL, 'new guest', 'new@gmail.com', '765696989', 156, 2, '576558', NULL, NULL, '', 4, 1, 1, NULL, '2021-09-28 05:59:43', '2021-09-28 05:59:43');

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

--
-- Table structure for table `fd_invoices`
--

CREATE TABLE `fd_invoices` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `refference_id` bigint(20) UNSIGNED DEFAULT NULL,
  `invoice_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` datetime DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reff_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_amount` double NOT NULL,
  `cheque_date` datetime DEFAULT NULL,
  `cheque_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cost_center_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `type` bigint(20) UNSIGNED NOT NULL COMMENT '1=>advance,2=>advance deduction,3=>bill,4=>receive,5=>refund,6=>Transfer',
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `transfer_from` bigint(20) UNSIGNED DEFAULT NULL,
  `transfer_to` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_invoices`
--

INSERT INTO `fd_invoices` (`id`, `refference_id`, `invoice_no`, `date`, `note`, `reff_no`, `transaction_amount`, `cheque_date`, `cheque_number`, `cost_center_id`, `warehouse_id`, `type`, `status`, `created_by`, `transfer_from`, `transfer_to`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, NULL, '1632742481', '2021-09-27 17:34:41', NULL, NULL, 100, NULL, NULL, 0, 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 11:34:41', '2021-09-27 11:34:41'),
(2, NULL, '1632742893', '2021-09-27 17:41:33', NULL, NULL, 266, NULL, NULL, 0, 4, 3, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 11:41:33', '2021-09-27 11:41:33'),
(3, NULL, '1632742893', '2021-09-27 17:41:33', NULL, NULL, 5, NULL, NULL, 0, 4, 4, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 11:41:33', '2021-09-27 11:41:33'),
(4, NULL, '1632743074', '2021-09-27 17:44:34', NULL, NULL, 16, NULL, NULL, 0, 4, 3, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 11:44:34', '2021-09-27 11:44:34'),
(5, NULL, '1632743506', '2021-09-27 17:51:46', NULL, NULL, 0, NULL, NULL, 0, 4, 4, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 11:51:46', '2021-09-27 11:51:46'),
(6, NULL, '1632743768', '2021-09-27 17:56:08', NULL, NULL, 100, NULL, NULL, 0, 4, 2, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 11:56:08', '2021-09-27 11:56:08'),
(7, NULL, '1632743821', '2021-09-27 17:57:01', NULL, NULL, 50, NULL, NULL, 0, 4, 4, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 11:57:01', '2021-09-27 11:57:01'),
(8, NULL, '1632745546', '2021-09-27 18:25:46', NULL, NULL, 33.48, NULL, NULL, 0, 4, 3, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 12:25:46', '2021-09-27 12:25:46'),
(9, NULL, '1632745546', '2021-09-27 18:25:46', NULL, NULL, 0, NULL, NULL, 0, 4, 4, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 12:25:46', '2021-09-27 12:25:46'),
(10, NULL, '1632746129', '2021-09-27 18:35:29', NULL, NULL, 20.7, NULL, NULL, 0, 4, 3, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 12:35:29', '2021-09-27 12:35:29'),
(11, NULL, '1632746129', '2021-09-27 18:35:29', NULL, NULL, 10, NULL, NULL, 0, 4, 4, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 12:35:29', '2021-09-27 12:35:29'),
(12, NULL, '1632746223', '2021-09-27 18:37:03', NULL, NULL, 10, NULL, NULL, 0, 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 12:37:03', '2021-09-27 12:37:03'),
(13, NULL, '1632746408', '2021-09-27 18:40:08', NULL, NULL, 4, NULL, NULL, 0, 4, 3, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 12:40:08', '2021-09-27 12:40:08'),
(14, NULL, '1632746408', '2021-09-27 18:40:08', NULL, NULL, 4, NULL, NULL, 0, 4, 2, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 12:40:08', '2021-09-27 12:40:08'),
(15, NULL, '1632746408', '2021-09-27 18:40:08', NULL, NULL, 6, NULL, NULL, 0, 4, 5, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 12:40:08', '2021-09-27 12:40:08'),
(16, NULL, '1632746493', '2021-09-27 18:41:33', NULL, NULL, 164, NULL, NULL, 0, 4, 6, 2, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-27 12:41:33', '2021-09-27 12:41:33'),
(17, NULL, '1632804008', '2021-09-28 10:40:08', NULL, NULL, 10.7, NULL, NULL, 0, 4, 4, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 04:40:08', '2021-09-28 04:40:08'),
(18, NULL, '1632804029', '2021-09-28 10:40:29', NULL, NULL, 27.91, NULL, NULL, 0, 4, 3, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 04:40:29', '2021-09-28 04:40:29'),
(19, NULL, '1632804029', '2021-09-28 10:40:29', NULL, NULL, 93.52, NULL, NULL, 0, 4, 4, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 04:40:29', '2021-09-28 04:40:29'),
(20, NULL, '1632807007', '2021-09-28 11:30:07', NULL, NULL, 100, NULL, NULL, 0, 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 05:30:07', '2021-09-28 05:30:07'),
(21, NULL, '1632807982', '2021-09-28 11:46:22', NULL, NULL, 10, NULL, NULL, 0, 4, 3, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 05:46:22', '2021-09-28 05:46:22'),
(22, NULL, '1632807982', '2021-09-28 11:46:22', NULL, NULL, 10, NULL, NULL, 0, 4, 2, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 05:46:22', '2021-09-28 05:46:22'),
(23, NULL, '1632808451', '2021-09-28 11:54:11', NULL, NULL, 144.1, NULL, NULL, 0, 4, 3, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 05:54:11', '2021-09-28 05:54:11'),
(24, NULL, '1632808451', '2021-09-28 11:54:11', NULL, NULL, 105, NULL, NULL, 0, 4, 4, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 05:54:11', '2021-09-28 05:54:11'),
(25, NULL, '1632808783', '2021-09-28 11:59:43', NULL, NULL, 36, NULL, NULL, 0, 4, 3, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 05:59:43', '2021-09-28 05:59:43'),
(26, NULL, '1632808783', '2021-09-28 11:59:43', NULL, NULL, 0, NULL, NULL, 0, 4, 4, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 05:59:43', '2021-09-28 05:59:43'),
(27, NULL, '1632809447', '2021-09-28 12:10:47', NULL, NULL, 14, NULL, NULL, 0, 4, 3, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 06:10:47', '2021-09-28 06:10:47'),
(28, NULL, '1632809984', '2021-09-28 12:19:44', NULL, NULL, 44.1, NULL, NULL, 0, 4, 3, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 06:19:44', '2021-09-28 06:19:44'),
(29, NULL, '1632809984', '2021-09-28 12:19:44', NULL, NULL, 0, NULL, NULL, 0, 4, 4, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 06:19:44', '2021-09-28 06:19:44'),
(30, NULL, '1632810580', '2021-09-28 12:29:40', NULL, NULL, 9, NULL, NULL, 0, 4, 2, 1, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 06:29:40', '2021-09-28 06:29:40'),
(31, NULL, '1632810722', '2021-09-28 12:32:02', NULL, NULL, 468.22, NULL, NULL, 0, 4, 6, 2, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 06:32:02', '2021-09-28 06:32:02'),
(32, NULL, '1632810893', '2021-09-28 12:34:53', NULL, NULL, 474.22, NULL, NULL, 0, 4, 8, 2, 1, NULL, NULL, NULL, NULL, NULL, '2021-09-28 06:34:53', '2021-09-28 06:34:53');

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

--
-- Table structure for table `fd_invoice_details`
--

CREATE TABLE `fd_invoice_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fd_invoice_id` bigint(20) UNSIGNED NOT NULL,
  `date` datetime DEFAULT NULL,
  `reservation_id` bigint(20) UNSIGNED DEFAULT NULL,
  `party_id` int(11) DEFAULT NULL,
  `reference_id` bigint(20) UNSIGNED DEFAULT NULL,
  `ledger_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cashier_id` bigint(20) UNSIGNED DEFAULT NULL,
  `type` tinyint(1) DEFAULT NULL COMMENT ' 0 => debit, 1 => credit',
  `voucher_type` tinyint(1) DEFAULT NULL COMMENT '1=>advance,2=>advance deduction,3=>bill,4=>receive,5=>refund,6=>user to user transfer,8=>user to cashier transfer,9=payments',
  `amount` double NOT NULL,
  `voucher_id` int(11) DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reff_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '0="Advance handover to user",fd_invoice_id = when advance deduct and refund',
  `remarks` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cost_center_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '1=handover accepted,2=pending,3=Rejected',
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_invoice_details`
--

INSERT INTO `fd_invoice_details` (`id`, `fd_invoice_id`, `date`, `reservation_id`, `party_id`, `reference_id`, `ledger_id`, `cashier_id`, `type`, `voucher_type`, `amount`, `voucher_id`, `note`, `reff_no`, `remarks`, `cost_center_id`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, '2021-09-27 17:34:41', 1, 1, NULL, 90, 1, 1, 1, 100, NULL, NULL, '0', NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 11:34:41', '2021-09-28 06:34:53'),
(2, 1, '2021-09-27 17:34:41', 1, 1, 68, 46, 1, 0, 1, 100, NULL, NULL, '0', NULL, NULL, 4, 3, 1, NULL, NULL, NULL, '2021-09-27 11:34:41', '2021-09-28 06:34:53'),
(3, 2, '2021-09-27 17:41:33', 1, 1, NULL, 44, 1, 0, 3, 266, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 11:41:33', '2021-09-27 11:41:33'),
(4, 2, '2021-09-27 17:41:33', 1, 1, NULL, 302, 1, 1, 3, 4.6, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 11:41:33', '2021-09-27 11:41:33'),
(5, 2, '2021-09-27 17:41:33', 1, 1, NULL, 9991, 1, 1, 3, 61.4, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 11:41:33', '2021-09-27 11:41:33'),
(6, 2, '2021-09-27 17:41:33', 1, 1, NULL, 9993, 1, 1, 3, 200, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 11:41:33', '2021-09-27 11:41:33'),
(7, 3, '2021-09-27 17:41:33', 1, 1, NULL, 92, 1, 0, 4, 5, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 11:41:33', '2021-09-27 11:41:33'),
(8, 3, '2021-09-27 17:41:33', 1, 1, NULL, 44, 1, 1, 4, 5, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 11:41:33', '2021-09-27 11:41:33'),
(9, 4, '2021-09-27 17:44:34', 1, 1, NULL, 44, 1, 0, 3, 16, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 11:44:34', '2021-09-27 11:44:34'),
(10, 4, '2021-09-27 17:44:34', 1, 1, NULL, 9992, 1, 1, 3, 16, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 11:44:34', '2021-09-27 11:44:34'),
(11, 6, '2021-09-27 17:56:08', 1, 1, NULL, 90, 1, 0, 2, 100, NULL, NULL, '1', NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 11:56:08', '2021-09-27 11:56:08'),
(12, 6, '2021-09-27 17:56:08', 1, 1, NULL, 44, 1, 1, 2, 100, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 11:56:08', '2021-09-27 11:56:08'),
(13, 7, '2021-09-27 17:57:01', 1, 1, 68, 46, 1, 0, 4, 50, NULL, NULL, NULL, NULL, NULL, 4, 3, 1, NULL, NULL, NULL, '2021-09-27 11:57:01', '2021-09-28 06:34:53'),
(14, 7, '2021-09-27 17:57:01', 1, 1, NULL, 44, 1, 1, 4, 50, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 11:57:01', '2021-09-27 11:57:01'),
(15, 8, '2021-09-27 18:25:46', 1, 1, NULL, 44, 1, 1, 3, 33.48, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:25:46', '2021-09-27 12:25:46'),
(16, 8, '2021-09-27 18:25:46', 1, 1, NULL, 302, 1, 0, 3, 2.34, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:25:46', '2021-09-27 12:25:46'),
(17, 8, '2021-09-27 18:25:46', 1, 1, NULL, 9991, 1, 0, 3, 31.14, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:25:46', '2021-09-27 12:25:46'),
(18, 10, '2021-09-27 18:35:29', 2, 1, NULL, 44, 1, 0, 3, 20.7, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:35:29', '2021-09-27 12:35:29'),
(19, 10, '2021-09-27 18:35:29', 2, 1, NULL, 303, 1, 1, 3, 2.7, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:35:29', '2021-09-27 12:35:29'),
(20, 10, '2021-09-27 18:35:29', 2, 1, NULL, 9991, 1, 1, 3, 18, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:35:29', '2021-09-27 12:35:29'),
(21, 11, '2021-09-27 18:35:29', 2, 1, 68, 46, 1, 0, 4, 10, NULL, NULL, NULL, NULL, NULL, 4, 3, 1, NULL, NULL, NULL, '2021-09-27 12:35:29', '2021-09-28 06:34:53'),
(22, 11, '2021-09-27 18:35:29', 2, 1, NULL, 44, 1, 1, 4, 10, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:35:29', '2021-09-27 12:35:29'),
(23, 12, '2021-09-27 18:37:03', 3, 1, NULL, 90, 1, 1, 1, 10, NULL, NULL, '0', NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:37:03', '2021-09-28 06:34:53'),
(24, 12, '2021-09-27 18:37:03', 3, 1, 68, 46, 1, 0, 1, 10, NULL, NULL, '0', NULL, NULL, 4, 3, 1, NULL, NULL, NULL, '2021-09-27 12:37:03', '2021-09-28 06:34:53'),
(25, 13, '2021-09-27 18:40:08', 3, 1, NULL, 44, 1, 0, 3, 4, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:40:08', '2021-09-27 12:40:08'),
(26, 13, '2021-09-27 18:40:08', 3, 1, NULL, 9992, 1, 1, 3, 4, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:40:08', '2021-09-27 12:40:08'),
(27, 14, '2021-09-27 18:40:08', 3, 1, NULL, 90, 1, 0, 2, 4, NULL, NULL, '12', NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:40:08', '2021-09-27 12:40:08'),
(28, 14, '2021-09-27 18:40:08', 3, 1, NULL, 44, 1, 1, 2, 4, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:40:08', '2021-09-27 12:40:08'),
(29, 15, '2021-09-27 18:40:08', 3, 1, NULL, 91, 1, 0, 5, 6, NULL, NULL, '12', NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:40:08', '2021-09-27 12:40:08'),
(30, 15, '2021-09-27 18:40:08', 3, 1, NULL, 46, 1, 1, 5, 6, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-27 12:40:08', '2021-09-27 12:40:08'),
(31, 16, '2021-09-27 18:41:33', NULL, NULL, NULL, 46, 2, 0, 6, 164, NULL, NULL, NULL, NULL, NULL, 4, 4, 1, NULL, NULL, NULL, '2021-09-27 12:41:33', '2021-09-27 12:41:45'),
(32, 16, '2021-09-27 18:41:33', NULL, NULL, NULL, 46, 1, 1, 6, 164, NULL, NULL, NULL, NULL, NULL, 4, 4, 1, NULL, NULL, NULL, '2021-09-27 12:41:33', '2021-09-27 12:41:45'),
(33, 17, '2021-09-28 10:40:08', 2, 1, 68, 46, 1, 0, 4, 10.7, NULL, NULL, NULL, NULL, NULL, 4, 3, 1, NULL, NULL, NULL, '2021-09-28 04:40:08', '2021-09-28 06:34:53'),
(34, 17, '2021-09-28 10:40:08', 2, 1, NULL, 44, 1, 1, 4, 10.7, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 04:40:08', '2021-09-28 04:40:08'),
(35, 18, '2021-09-28 10:40:29', 1, 1, NULL, 44, 1, 1, 3, 27.91, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 04:40:29', '2021-09-28 04:40:29'),
(36, 18, '2021-09-28 10:40:29', 1, 1, NULL, 302, 1, 0, 3, 1.95, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 04:40:29', '2021-09-28 04:40:29'),
(37, 18, '2021-09-28 10:40:29', 1, 1, NULL, 9991, 1, 0, 3, 25.96, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 04:40:29', '2021-09-28 04:40:29'),
(38, 19, '2021-09-28 10:40:29', 1, 1, 68, 46, 1, 0, 4, 93.52000000000004, NULL, NULL, NULL, NULL, NULL, 4, 3, 1, NULL, NULL, NULL, '2021-09-28 04:40:29', '2021-09-28 06:34:53'),
(39, 19, '2021-09-28 10:40:29', 1, 1, NULL, 44, 1, 1, 4, 93.52, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 04:40:29', '2021-09-28 04:40:29'),
(40, 20, '2021-09-28 11:30:07', 4, 1, NULL, 90, 1, 1, 1, 100, NULL, NULL, '0', NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:30:07', '2021-09-28 06:34:53'),
(41, 20, '2021-09-28 11:30:07', 4, 1, 68, 46, 1, 0, 1, 100, NULL, NULL, '0', NULL, NULL, 4, 3, 1, NULL, NULL, NULL, '2021-09-28 05:30:07', '2021-09-28 06:34:53'),
(42, 21, '2021-09-28 11:46:22', 4, 1, NULL, 44, 1, 0, 3, 10, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:46:22', '2021-09-28 05:46:22'),
(43, 21, '2021-09-28 11:46:22', 4, 1, NULL, 9992, 1, 1, 3, 10, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:46:22', '2021-09-28 05:46:22'),
(44, 22, '2021-09-28 11:46:22', 4, 1, NULL, 90, 1, 0, 2, 10, NULL, NULL, '20', NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:46:22', '2021-09-28 05:46:22'),
(45, 22, '2021-09-28 11:46:22', 4, 1, NULL, 44, 1, 1, 2, 10, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:46:22', '2021-09-28 05:46:22'),
(46, 23, '2021-09-28 11:54:11', 5, 1, NULL, 44, 1, 0, 3, 144.1, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:54:11', '2021-09-28 05:54:11'),
(47, 23, '2021-09-28 11:54:11', 5, 1, NULL, 302, 1, 1, 3, 2.7, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:54:11', '2021-09-28 05:54:11'),
(48, 23, '2021-09-28 11:54:11', 5, 1, NULL, 303, 1, 1, 3, 5.4, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:54:11', '2021-09-28 05:54:11'),
(49, 23, '2021-09-28 11:54:11', 5, 1, NULL, 9991, 1, 1, 3, 36, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:54:11', '2021-09-28 05:54:11'),
(50, 23, '2021-09-28 11:54:11', 5, 1, NULL, 9993, 1, 1, 3, 100, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:54:11', '2021-09-28 05:54:11'),
(51, 24, '2021-09-28 11:54:11', 5, 1, 68, 46, 1, 0, 4, 100, NULL, NULL, NULL, NULL, NULL, 4, 3, 1, NULL, NULL, NULL, '2021-09-28 05:54:11', '2021-09-28 06:34:53'),
(52, 24, '2021-09-28 11:54:11', 5, 1, NULL, 92, 1, 0, 4, 5, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:54:11', '2021-09-28 05:54:11'),
(53, 24, '2021-09-28 11:54:11', 5, 1, NULL, 44, 1, 1, 4, 105, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:54:11', '2021-09-28 05:54:11'),
(54, 25, '2021-09-28 11:59:43', 6, 1, NULL, 44, 1, 0, 3, 36, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:59:43', '2021-09-28 05:59:43'),
(55, 25, '2021-09-28 11:59:43', 6, 1, NULL, 303, 1, 1, 3, 4.7, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:59:43', '2021-09-28 05:59:43'),
(56, 25, '2021-09-28 11:59:43', 6, 1, NULL, 9991, 1, 1, 3, 31.3, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 05:59:43', '2021-09-28 05:59:43'),
(57, 27, '2021-09-28 12:10:47', 5, 1, NULL, 44, 1, 0, 3, 14, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 06:10:47', '2021-09-28 06:10:47'),
(58, 27, '2021-09-28 12:10:47', 5, 1, NULL, 9992, 1, 1, 3, 14, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 06:10:47', '2021-09-28 06:10:47'),
(59, 28, '2021-09-28 12:19:44', 5, 1, NULL, 44, 1, 1, 3, 44.1, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 06:19:44', '2021-09-28 06:19:44'),
(60, 28, '2021-09-28 12:19:44', 5, 1, NULL, 302, 1, 0, 3, 2.7, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 06:19:44', '2021-09-28 06:19:44'),
(61, 28, '2021-09-28 12:19:44', 5, 1, NULL, 303, 1, 0, 3, 5.4, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 06:19:44', '2021-09-28 06:19:44'),
(62, 28, '2021-09-28 12:19:44', 5, 1, NULL, 9991, 1, 0, 3, 36, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 06:19:44', '2021-09-28 06:19:44'),
(63, 30, '2021-09-28 12:29:40', 5, 1, NULL, 90, 1, 0, 2, 9, NULL, NULL, '20', NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 06:29:40', '2021-09-28 06:29:40'),
(64, 30, '2021-09-28 12:29:40', 5, 1, NULL, 44, 1, 1, 2, 9, NULL, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-09-28 06:29:40', '2021-09-28 06:29:40'),
(65, 31, '2021-09-28 12:32:02', NULL, NULL, NULL, 46, 3, 0, 6, 468.22, NULL, NULL, NULL, NULL, NULL, 4, 4, 1, NULL, NULL, NULL, '2021-09-28 06:32:02', '2021-09-28 06:32:24'),
(66, 31, '2021-09-28 12:32:02', NULL, NULL, NULL, 46, 1, 1, 6, 468.22, NULL, NULL, NULL, NULL, NULL, 4, 4, 1, NULL, NULL, NULL, '2021-09-28 06:32:02', '2021-09-28 06:32:24'),
(67, 32, '2021-09-28 12:34:53', NULL, NULL, NULL, 73, 3, 0, 8, 474.22, NULL, NULL, NULL, NULL, NULL, 4, 2, 1, NULL, NULL, NULL, '2021-09-28 06:34:53', '2021-09-28 06:34:53'),
(68, 32, '2021-09-28 12:34:53', NULL, NULL, NULL, 46, 1, 1, 8, 474.22, NULL, NULL, NULL, NULL, NULL, 4, 2, 1, NULL, NULL, NULL, '2021-09-28 06:34:53', '2021-09-28 06:34:53');

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

--
-- Table structure for table `fd_invoice_others`
--

CREATE TABLE `fd_invoice_others` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fd_invoice_id` int(10) UNSIGNED NOT NULL,
  `cash_bank_account_id` int(10) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `cheque_or_transaction_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fd_package_types`
--

CREATE TABLE `fd_package_types` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `sort_id` smallint(6) NOT NULL DEFAULT 5000,
  `posted_by` smallint(6) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `ware_id` smallint(6) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fd_rate_change_logs`
--

CREATE TABLE `fd_rate_change_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `type` tinyint(4) NOT NULL COMMENT '1=from reservation,2=from checkin',
  `d_id` bigint(20) UNSIGNED NOT NULL COMMENT 'ID from reservation room details or checkin room details',
  `booking_id` bigint(20) UNSIGNED NOT NULL COMMENT 'ID from booking table',
  `pre_rate` double NOT NULL COMMENT 'Original rate or previous rate',
  `cur_rate` double NOT NULL COMMENT 'Changed rate or new rate',
  `remarks` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `posted_by` int(11) NOT NULL,
  `status` int(11) NOT NULL COMMENT '1=requested,2=accepted,3=rejected',
  `apr_rej_by` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_rate_change_logs`
--

INSERT INTO `fd_rate_change_logs` (`id`, `type`, `d_id`, `booking_id`, `pre_rate`, `cur_rate`, `remarks`, `posted_by`, `status`, `apr_rej_by`, `created_at`, `updated_at`) VALUES
(1, 1, 2, 1, 0, 30, 'rate was not set', 1, 1, NULL, '2021-09-27 11:34:41', '2021-09-27 11:34:41'),
(2, 1, 5, 4, 0, 40, 'rate was not set', 1, 1, NULL, '2021-09-28 05:30:07', '2021-09-28 05:30:07');

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

--
-- Table structure for table `fd_rooms`
--

CREATE TABLE `fd_rooms` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `room_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'room_bed_number',
  `room_type` int(11) NOT NULL DEFAULT 0,
  `room_id` int(11) NOT NULL DEFAULT 0,
  `type` int(11) NOT NULL COMMENT 'room=1,bed =2',
  `remarks` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `floor_id` int(11) NOT NULL DEFAULT 0,
  `ware_id` int(11) NOT NULL DEFAULT 0,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Active =1 Inactive =2',
  `room_clean_status` int(11) NOT NULL DEFAULT 1 COMMENT '1=Ready,>2 =In Used,3=Dirty,4=Out of order',
  `hk_room_status` int(11) NOT NULL DEFAULT 1 COMMENT '1=Ready, 2 =In Used, 3=Dirty, 4=Out of order',
  `room_status` int(11) NOT NULL DEFAULT 0 COMMENT '0=Available, 1=Using as a Room,2=Using as a Bed)',
  `bed_status` int(11) NOT NULL DEFAULT 3 COMMENT '1=Ready,>2 =In Used,3=Dirty,4=Out of order',
  `posted_by` int(11) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_rooms`
--

INSERT INTO `fd_rooms` (`id`, `room_number`, `room_type`, `room_id`, `type`, `remarks`, `floor_id`, `ware_id`, `status`, `room_clean_status`, `hk_room_status`, `room_status`, `bed_status`, `posted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, '105', 1, 0, 1, 'test', 1, 4, 1, 1, 1, 0, 1, 0, NULL, '2021-09-27 11:21:27', '2021-09-27 12:29:25'),
(2, '105-1', 1, 1, 2, NULL, 1, 4, 1, 1, 1, 0, 1, 0, NULL, '2021-09-27 11:21:27', '2021-09-27 11:21:27'),
(3, '105-2', 1, 1, 2, NULL, 1, 4, 1, 1, 1, 0, 1, 0, NULL, '2021-09-27 11:21:27', '2021-09-27 11:21:27'),
(4, '101', 1, 0, 1, 'test', 1, 4, 1, 1, 1, 1, 1, 0, NULL, '2021-09-27 11:22:23', '2021-09-28 06:25:03'),
(5, '101-1', 1, 4, 2, NULL, 1, 4, 1, 1, 1, 0, 1, 0, NULL, '2021-09-27 11:22:23', '2021-09-27 11:22:23'),
(6, '101-2', 1, 4, 2, NULL, 1, 4, 1, 1, 1, 0, 1, 0, NULL, '2021-09-27 11:22:23', '2021-09-27 11:22:23'),
(7, '103', 1, 0, 1, NULL, 1, 4, 1, 2, 2, 1, 1, 0, NULL, '2021-09-27 12:13:33', '2021-09-28 05:59:43'),
(8, '103-1', 1, 7, 2, NULL, 1, 4, 1, 1, 1, 0, 1, 0, NULL, '2021-09-27 12:13:33', '2021-09-27 12:13:33'),
(9, '103-2', 1, 7, 2, NULL, 1, 4, 1, 1, 1, 0, 1, 0, NULL, '2021-09-27 12:13:33', '2021-09-27 12:13:33'),
(10, '106', 1, 0, 1, NULL, 1, 4, 1, 1, 1, 0, 1, 0, NULL, '2021-09-28 04:38:37', '2021-09-28 04:38:37'),
(11, '106-1', 1, 10, 2, NULL, 1, 4, 1, 1, 1, 0, 1, 0, NULL, '2021-09-28 04:38:37', '2021-09-28 04:38:37'),
(12, '106-2', 1, 10, 2, NULL, 1, 4, 1, 1, 1, 0, 1, 0, NULL, '2021-09-28 04:38:37', '2021-09-28 04:38:37'),
(13, '701', 1, 0, 1, 'test', 7, 4, 1, 2, 2, 1, 1, 0, NULL, '2021-09-28 05:11:33', '2021-09-28 06:23:25'),
(14, '701-1', 1, 13, 2, NULL, 7, 4, 1, 1, 1, 0, 1, 0, NULL, '2021-09-28 05:11:33', '2021-09-28 05:11:33'),
(15, '701-2', 1, 13, 2, NULL, 7, 4, 1, 1, 1, 0, 1, 0, NULL, '2021-09-28 05:11:33', '2021-09-28 05:11:33');

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

--
-- Table structure for table `fd_room_bed_change_logs`
--

CREATE TABLE `fd_room_bed_change_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `booking_id` bigint(20) UNSIGNED NOT NULL,
  `from_room` bigint(20) UNSIGNED NOT NULL,
  `to_room` bigint(20) UNSIGNED NOT NULL,
  `maintainance` tinyint(4) NOT NULL COMMENT '0 = Not Required, 1 = Required',
  `type` tinyint(4) NOT NULL COMMENT '1=Room booking, 2 = Bed Booking',
  `remarks` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ware_id` smallint(6) NOT NULL DEFAULT 0,
  `posted_by` smallint(6) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_room_bed_change_logs`
--

INSERT INTO `fd_room_bed_change_logs` (`id`, `booking_id`, `from_room`, `to_room`, `maintainance`, `type`, `remarks`, `ware_id`, `posted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 7, 1, 1, NULL, 4, 1, NULL, '2021-09-27 12:14:13', '2021-09-27 12:14:13'),
(2, 6, 4, 13, 1, 1, NULL, 4, 1, NULL, '2021-09-28 06:23:25', '2021-09-28 06:23:25');

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

--
-- Table structure for table `fd_room_maintenances`
--

CREATE TABLE `fd_room_maintenances` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `room_id` bigint(20) UNSIGNED DEFAULT NULL,
  `indent_id` bigint(20) UNSIGNED DEFAULT NULL,
  `department_id` bigint(20) UNSIGNED DEFAULT NULL,
  `reason` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 4 COMMENT '1=Ready,4=Out of order',
  `indent_status` int(11) NOT NULL DEFAULT 1 COMMENT '1=Pending,2=Issued',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_room_maintenances`
--

INSERT INTO `fd_room_maintenances` (`id`, `room_id`, `indent_id`, `department_id`, `reason`, `status`, `indent_status`, `created_at`, `updated_at`) VALUES
(1, 1, NULL, NULL, 'Fan', 1, 1, '2021-09-27 12:14:13', '2021-09-27 12:29:25'),
(2, 4, NULL, NULL, 'fan is not working', 1, 1, '2021-09-28 06:23:25', '2021-09-28 06:25:03');

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

--
-- Table structure for table `fd_room_rates`
--

CREATE TABLE `fd_room_rates` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `ware_id` bigint(20) UNSIGNED NOT NULL,
  `room_type_id` bigint(20) UNSIGNED NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `week_day_bed_rate` double NOT NULL DEFAULT 0,
  `weekend_bed_rate` double NOT NULL DEFAULT 0,
  `week_day_room_rate` double NOT NULL DEFAULT 0,
  `weekend_room_rate` double NOT NULL DEFAULT 0,
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '1=active,1(inactive)',
  `posted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_room_rates`
--

INSERT INTO `fd_room_rates` (`id`, `ware_id`, `room_type_id`, `start_date`, `end_date`, `week_day_bed_rate`, `weekend_bed_rate`, `week_day_room_rate`, `weekend_room_rate`, `status`, `posted_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(2, 4, 1, '2021-09-28', '2021-10-31', 10, 12, 20, 25, 1, 1, 1, NULL, '2021-09-28 05:14:55', '2021-09-28 05:15:33');

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

--
-- Table structure for table `fd_room_types`
--

CREATE TABLE `fd_room_types` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `user_id` int(11) NOT NULL DEFAULT 0,
  `ware_id` int(11) NOT NULL DEFAULT 0,
  `posted_by` int(11) NOT NULL DEFAULT 0,
  `deleted_by` int(11) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_room_types`
--

INSERT INTO `fd_room_types` (`id`, `name`, `status`, `user_id`, `ware_id`, `posted_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, '2 Bed', 1, 0, 0, 0, 0, NULL, NULL, NULL),
(2, '4 Bed', 1, 0, 0, 0, 0, NULL, NULL, NULL),
(3, '6 Bed', 1, 0, 0, 0, 0, NULL, NULL, NULL),
(4, '8 Bed', 1, 0, 0, 0, 0, NULL, NULL, NULL),
(5, '10 Bed', 1, 0, 0, 0, 0, NULL, NULL, NULL),
(6, '12 Bed', 1, 0, 0, 0, 0, NULL, NULL, NULL),
(7, '14 Bed', 1, 0, 0, 0, 0, NULL, NULL, NULL),
(8, '16 Bed', 1, 0, 0, 0, 0, NULL, NULL, NULL),
(9, '18 Bed', 1, 0, 0, 0, 0, NULL, NULL, NULL);

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

--
-- Table structure for table `fd_types`
--

CREATE TABLE `fd_types` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type_id` smallint(6) NOT NULL DEFAULT 0 COMMENT '1=guest_indentity',
  `sort_id` smallint(6) NOT NULL DEFAULT 5000,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `posted_by` int(11) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_types`
--

INSERT INTO `fd_types` (`id`, `name`, `type_id`, `sort_id`, `status`, `posted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'NID', 1, 5000, 1, 0, NULL, NULL, NULL),
(2, 'Passport', 1, 5000, 1, 0, NULL, NULL, NULL),
(3, 'Visa', 1, 5000, 1, 0, NULL, NULL, NULL);

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

--
-- Table structure for table `fd_vat_tax_transactions`
--

CREATE TABLE `fd_vat_tax_transactions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `vat_tax_type` smallint(6) NOT NULL DEFAULT 1 COMMENT '2=excluding,1=including',
  `tax_id` double(8,2) NOT NULL DEFAULT 0.00,
  `tax_percent` double(8,2) NOT NULL DEFAULT 0.00,
  `ref_id` int(11) NOT NULL DEFAULT 0 COMMENT 'from fd_booking,allotment',
  `ware_id` smallint(6) NOT NULL DEFAULT 0,
  `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '1=active,2=inactive',
  `posted_by` smallint(6) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fd_vat_tax_transactions`
--

INSERT INTO `fd_vat_tax_transactions` (`id`, `vat_tax_type`, `tax_id`, `tax_percent`, `ref_id`, `ware_id`, `status`, `posted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(2, 1, 2.00, 7.50, 1, 4, 1, 0, NULL, NULL, NULL),
(3, 2, 3.00, 15.00, 2, 4, 1, 0, NULL, NULL, NULL),
(6, 2, 2.00, 7.50, 3, 4, 1, 0, NULL, NULL, NULL),
(7, 2, 3.00, 15.00, 3, 4, 1, 0, NULL, NULL, NULL),
(8, 2, 3.00, 15.00, 4, 4, 1, 0, NULL, NULL, NULL),
(11, 2, 2.00, 7.50, 5, 4, 1, 0, NULL, NULL, NULL),
(12, 2, 3.00, 15.00, 5, 4, 1, 0, NULL, NULL, NULL),
(13, 1, 3.00, 15.00, 6, 4, 1, 0, NULL, NULL, NULL);

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

--
-- Table structure for table `fgstore_invoices`
--

CREATE TABLE `fgstore_invoices` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `transaction_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `invoice_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `ref_invoice` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `voucher_id` bigint(20) UNSIGNED DEFAULT NULL,
  `net_total` double NOT NULL DEFAULT 0,
  `grand_total` double NOT NULL DEFAULT 0,
  `cash_amount` double NOT NULL DEFAULT 0,
  `dc_amount` double NOT NULL DEFAULT 0,
  `dc_percentage` double(8,2) NOT NULL DEFAULT 0.00,
  `other_charge` double NOT NULL DEFAULT 0,
  `issue_type_note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '1=direct, 2=production/ also use for other_charge note',
  `batch_qty` double NOT NULL DEFAULT 1,
  `attachment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sell_type` tinyint(4) DEFAULT NULL,
  `salesman_id` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'salesman pos',
  `date` timestamp NULL DEFAULT NULL,
  `transfer_to` bigint(20) UNSIGNED DEFAULT NULL,
  `currency_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `roe` double NOT NULL DEFAULT 1,
  `remarks` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pay_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=unpaid, 1=partial paid, 2=paid',
  `approve_status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '0=stand by, 1= Panding, 2=Approve',
  `use_status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '0=No, 1=Yes',
  `pay_type` tinyint(4) DEFAULT NULL,
  `cash_bank_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cost_center_id` bigint(20) UNSIGNED DEFAULT NULL,
  `store_from` bigint(20) UNSIGNED DEFAULT NULL,
  `store_to` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fgstore_transactions`
--

CREATE TABLE `fgstore_transactions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `transaction_type` int(11) DEFAULT NULL COMMENT 'P-1, PR-2, S-3, SR-4, Adj in-5, Adj Out-6, Damage-7',
  `remarks` int(11) DEFAULT NULL COMMENT 'P-1, PR-2, S-3, SR-4, Adj in-5, Adj Out-6, Damage-7',
  `approve_status` int(11) DEFAULT 1 COMMENT '0=stand by/ 1= Panding/ 2=Approve',
  `autocode_before_bill` int(11) DEFAULT NULL,
  `dr_cr` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `fgstore_invoice_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_invoice_id` bigint(20) UNSIGNED DEFAULT NULL,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_qty` double NOT NULL DEFAULT 0,
  `allocated_qty` double NOT NULL DEFAULT 0,
  `unit_qty` double NOT NULL DEFAULT 1,
  `quantity` double NOT NULL,
  `price` double DEFAULT NULL,
  `order_price` double DEFAULT NULL,
  `dc_price` double(8,2) NOT NULL DEFAULT 0.00 COMMENT '%',
  `manual_dc` double(8,2) NOT NULL DEFAULT 0.00 COMMENT 'taka',
  `avg_price` double NOT NULL DEFAULT 0,
  `ref_invoice` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `promotion_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `warrenty_from` date DEFAULT NULL,
  `warrenty_to` date DEFAULT NULL,
  `store_from` bigint(20) UNSIGNED DEFAULT NULL,
  `store_to` bigint(20) UNSIGNED DEFAULT NULL,
  `date` timestamp NULL DEFAULT NULL,
  `cost_center_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `financial_report_setups`
--

CREATE TABLE `financial_report_setups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `report_type` tinyint(1) NOT NULL COMMENT '1=>Income StateMent,2=>Balance Sheet',
  `report_group_id` tinyint(4) NOT NULL,
  `sort_type` int(11) DEFAULT NULL,
  `operator` tinyint(4) NOT NULL COMMENT '1=Add/0=Less',
  `data_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '1=>beginning,2 =>dr,3=>cr,4=>balance,5=>closing',
  `codes` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=on/0=off',
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `groups`
--

CREATE TABLE `groups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_eng` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_local` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `note` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` tinyint(4) NOT NULL COMMENT 'supplier =1 and customer =2',
  `ledger_id` bigint(20) UNSIGNED NOT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `groups`
--

INSERT INTO `groups` (`id`, `code`, `name_eng`, `name_local`, `note`, `type`, `ledger_id`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, '2345', 'Nokia', '1', '1', 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL),
(2, '12', 'Common', 'Common', 'cmn', 2, 43, 1, 1, 1, 1, NULL, NULL, '2021-09-16 04:29:26', '2021-09-22 05:52:14'),
(3, 'Common Vendor', 'Common Vendor', 'Common Vendor', 'Common Vendor', 1, 58, 1, 1, 1, 4, NULL, NULL, '2021-09-22 06:06:39', '2021-09-25 14:12:07');

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

--
-- Table structure for table `indentdetails`
--

CREATE TABLE `indentdetails` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `indent_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'rawGoodsId',
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quantity` double NOT NULL,
  `waste_quantity` double NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `indents`
--

CREATE TABLE `indents` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `recipe_id` bigint(20) UNSIGNED DEFAULT NULL,
  `indent_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reference_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'finishedGoodsId',
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `indent_qty` double NOT NULL DEFAULT 1,
  `total_quantity` double NOT NULL DEFAULT 1,
  `finished_qty` double DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `store_id` bigint(20) UNSIGNED DEFAULT NULL,
  `approve_status` tinyint(1) NOT NULL DEFAULT 1,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=>pending,2=>requested for issue,3=>issued,4=>accept issue,5=>production finished',
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `initial_accounts_set_ups`
--

CREATE TABLE `initial_accounts_set_ups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `key_word` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `key_num` bigint(20) UNSIGNED DEFAULT NULL,
  `group_id` bigint(20) UNSIGNED DEFAULT NULL,
  `group_code` bigint(20) UNSIGNED DEFAULT NULL,
  `ledger_id` bigint(20) UNSIGNED DEFAULT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `initial_accounts_set_ups`
--

INSERT INTO `initial_accounts_set_ups` (`id`, `key_word`, `key_num`, `group_id`, `group_code`, `ledger_id`, `title`, `status`, `warehouse_id`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES
(1, 'raw_inventory', 1, 8, 1000202, 12, 'RAW INVENTORY', 1, 1, NULL, NULL, NULL, NULL),
(2, 'purchase', 2, 18, 30001, 22, 'Purchase', 1, 1, NULL, NULL, NULL, NULL),
(3, 'purchase_return', 3, 18, 30001, 23, 'Purchase Return', 1, 1, NULL, NULL, NULL, NULL),
(4, 'purchase_discount', 4, 18, 30001, 24, 'Purchase DISCOUNT', 1, 1, NULL, NULL, NULL, NULL),
(5, 'sales', 5, 26, 40001, 30, 'Sales', 1, 1, NULL, NULL, NULL, NULL),
(6, 'sales_return', 6, 26, 40001, 31, 'Sales Return', 1, 1, NULL, NULL, NULL, NULL),
(7, 'sales_discount', 7, 26, 40001, 32, 'Sales Discount', 1, 1, NULL, NULL, NULL, NULL),
(8, 'cogs', 8, 18, 30001, 21, 'COST OF GOODS SOLD', 1, 1, NULL, NULL, NULL, NULL),
(9, 'cash', 9, 9, 1000203, 9, 'CASH GROUP', 1, 1, NULL, NULL, NULL, NULL),
(10, 'bank', 10, 10, 1000203, 10, 'Bank GROUP', 1, 1, NULL, NULL, NULL, NULL),
(11, 'other_exp', 11, 18, 30001, 34, 'Other Expenses', 1, 1, NULL, NULL, NULL, NULL),
(12, 'ar', 12, 7, 1000201, 11, 'CUSTOMER GROUP', 1, 1, NULL, NULL, NULL, NULL),
(13, 'ap', 13, 15, 2000201, 17, 'VENDOR GROUP', 1, 1, NULL, NULL, NULL, NULL),
(14, 'git_inventory', 14, 8, 1000202, 38, 'GOODS IN TRANSITE INVENTORY', 1, 1, NULL, NULL, NULL, NULL),
(15, 'finished_inventory', 15, 8, 1000202, 36, 'FINISHED INVENTORY', 1, 1, NULL, NULL, NULL, NULL),
(16, 'wip', 16, 8, 1000202, 37, 'WORK IN PROGRESS INVENTORY', 1, 1, NULL, NULL, NULL, NULL),
(17, 'production_profit', 17, 8, 1000202, 42, 'PRODUCTION PROFIT', 1, 1, NULL, NULL, NULL, NULL),
(18, 'production_loss', 18, 8, 1000202, 41, 'PRODUCTION LOSS', 1, 1, NULL, NULL, NULL, NULL),
(19, 'damage', 19, 8, 1000202, 39, 'DAMAGE LOSS', 1, 1, NULL, NULL, NULL, NULL),
(20, 'miscellaneous', 20, 8, 30002, 40, 'Miscellaneous', 1, 1, NULL, NULL, NULL, NULL),
(21, 'equity', 21, 2, 200, 13, 'Equity', 1, 1, NULL, NULL, NULL, NULL),
(22, 'charge', 17, 8, 1000202, 42, 'SERVICE discount', 1, 1, NULL, NULL, NULL, NULL),
(23, 'disposal_profit', 17, 8, 1000202, 42, 'DISPOSAL PROFIT', 1, 1, NULL, NULL, NULL, NULL),
(24, 'disposal_loss', 18, 8, 1000202, 41, 'DISPOSAL LOSS', 1, 1, NULL, NULL, NULL, NULL),
(25, 'advance', 17, 8, 1000202, 90, 'SERVICE REVENUE', 1, 1, NULL, NULL, NULL, NULL),
(26, 'refund', 17, 8, 1000202, 91, 'SERVICE refund', 1, 1, NULL, NULL, NULL, NULL),
(27, 'commission', 17, 8, 1000202, 92, 'SERVICE commission', 1, 1, NULL, NULL, NULL, NULL),
(28, 'discount', 17, 8, 1000202, 93, 'SERVICE discount', 1, 1, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `invoice_parameters`
--

CREATE TABLE `invoice_parameters` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `invoice_prefix` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `range` int(11) DEFAULT NULL,
  `cake_product_id` int(11) DEFAULT NULL,
  `cat_codes` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'codes comma separated',
  `skip_cat_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'ids comma separeted',
  `invoice_gen_type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=manual/0=auto',
  `attachment_type` tinyint(1) DEFAULT NULL COMMENT '1=required/0=not required',
  `back_date_allow_type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=yes/0=no',
  `days` int(11) NOT NULL DEFAULT 0,
  `transaction_to` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1-Store/0-FgStore',
  `ref_no_type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=required/0=not required',
  `payment_type` tinyint(1) DEFAULT NULL COMMENT '1=cradit/0=cash',
  `product_show_type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=vendor/0=all',
  `vendor_invoice_type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=required/0=not required',
  `party_wise_price` tinyint(1) DEFAULT 0 COMMENT '1-yes / 2-no',
  `invoice_des_type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=required/0=not required',
  `invoice_reason_type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=required/0=not required',
  `print_view` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=full/0=pos',
  `print_head` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Html with php',
  `print_foot` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Html with php',
  `field_show` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `field_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fixed_price` tinyint(1) DEFAULT NULL COMMENT '1-yes/0-no',
  `dual_currency` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1-yes/0-no',
  `unit_qty` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1-Customize/0-Fixed',
  `init_invoice_field` int(11) NOT NULL DEFAULT 5 COMMENT 'Transaction Fields in invoice',
  `send_mail` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1-yes / 2-no',
  `fraction_type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1= 2digit, 2-round',
  `show_balance` tinyint(1) NOT NULL DEFAULT 1 COMMENT '0= Dont show, 1-show',
  `type` tinyint(4) NOT NULL,
  `style_css` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `invoice_parameters`
--

INSERT INTO `invoice_parameters` (`id`, `name`, `invoice_prefix`, `range`, `cake_product_id`, `cat_codes`, `skip_cat_id`, `invoice_gen_type`, `attachment_type`, `back_date_allow_type`, `days`, `transaction_to`, `ref_no_type`, `payment_type`, `product_show_type`, `vendor_invoice_type`, `party_wise_price`, `invoice_des_type`, `invoice_reason_type`, `print_view`, `print_head`, `print_foot`, `field_show`, `field_name`, `fixed_price`, `dual_currency`, `unit_qty`, `init_invoice_field`, `send_mail`, `fraction_type`, `show_balance`, `type`, `style_css`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Purchase', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, '<div style=\"text-align:center;font-size:18px\"> Purchase Invoice </div>\r\n<div class=\"row\"> \r\n	<div class=\"col-6\" style=\"font-size:14px\">\r\n      Invoice no: {{ $printData[\"invoice\"]->invoice_no }} \r\n      <br>Invoice date: {{  date(\"d/m/Y h:i A\", strtotime($printData[\"invoice\"]->date)) }}\r\n      <br> Party Name: {{ $printData[\"invoice\"]->party->name_eng }}\r\n      <br> Payment Type: {{ getPaymentType($printData[\"invoice\"]->pay_type) }}\r\n      <br> Note: {{ $printData[\"invoice\"]->note }} \r\n      <br> Reference: {{ $printData[\"invoice\"]->ref_invoice}}\r\n    </div>\r\n    <div class=\"col-3\"></div>\r\n    <div class=\"col-3\">\r\n      Purchased By: {{ $printData[\"invoice\"]->issuedBy->name }}\r\n      <br> Printed By: {{ Auth::guard(get_guard())->user()->name }}\r\n	  <br> Printed From: CURSOR ERP\r\n	</div>\r\n</div>', NULL, '1,3,4,5,6,7,8,9,10,11,12', 'Product Name,Product Name (Local),Note,Quantity,Price,Discount,Net Total,Total,In Wards,Unit,Other Charge,Grand Total,Total', NULL, 0, 0, 5, 0, 0, 0, 1, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-25 09:03:56'),
(2, 'Purchase Return', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, '<div style=\"text-align:center;font-size:18px\"> Purchase Return Invoice </div>\r\n<div class=\"row\"> \r\n	<div class=\"col-6\" style=\"font-size:14px\">\r\n      Invoice no: {{ $printData[\"invoice\"]->invoice_no }} \r\n      <br>Invoice date: {{  date(\"d/m/Y h:i A\", strtotime($printData[\"invoice\"]->date)) }}\r\n      <br> Party Name: {{ $printData[\"invoice\"]->party->name_eng }}\r\n      <br> Payment Type: {{ getPaymentType($printData[\"invoice\"]->pay_type) }}\r\n      <br> Note: {{ $printData[\"invoice\"]->note }} \r\n      <br> Reference: {{ $printData[\"invoice\"]->ref_invoice}}\r\n    </div>\r\n    <div class=\"col-3\"></div>\r\n    <div class=\"col-3\">\r\n      Cost Center: {{ $printData[\"invoice\"]->costCenter->name }}\r\n      <br> Purchased By: {{ $printData[\"invoice\"]->issuedBy->name }}\r\n      <br> Printed By: {{ Auth::guard(get_guard())->user()->name }}\r\n	  <br> Printed From: CURSOR ERP\r\n	</div>\r\n</div>', NULL, '1,3,4,5,7,8,9,10,11,12', 'Product Name,Product Name (Local),Note,Quantity,Price,Discount,Net Total,Total,In Wards,Unit,Other Charge,Grand Total,Total', NULL, 0, 0, 5, 0, 1, 0, 2, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-25 06:00:43'),
(3, 'Sell', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, '<div style=\"width: 100%; display: flex;\">\r\n                               <div style=\"width: 43.33%; float: left;\">\r\n		<img src=\"{{ asset(\'assets/logo/sa_logo.jpg\') }}\" style=\"width: 200px;margin-bottom: -49px;\" alt=\"\">\r\n	</div>\r\n		<div style=\"width: fit-content; border: 1px solid black; border-radius: 10px; padding: 5px 15px; text-align: center; justify-content: center;\">\r\n          <h4 style=\"margin: 0 !important;\">INVOICE</h4>\r\n		</div>\r\n            \r\n            \r\n            \r\n            \r\n	</div>\r\n	<div style=\"width: 100%; display: flex; justify-content: center;\">\r\n		<div>\r\n			<h1 style=\"margin-top: 5px; margin-bottom: 5px; text-align: center;\">AL-SAFA</h1>\r\n		</div>\r\n	</div>\r\n	<div style=\"width: 100%; display: flex; justify-content: center;\">\r\n		<div>\r\n			<h5 style=\"margin-top: 0px; margin-bottom: 5px; text-align: center; text-transform: uppercase;\"><u>Hotel</u></h5>\r\n		</div>\r\n	</div>\r\n	<div style=\"width: 100%; display: flex; justify-content: center; font-size: 20px !important;\">\r\n		<div>\r\n      <p style=\"margin-top: 2px; margin-bottom: 5px; text-align: center;\">Address: xyz</p>\r\n		</div>\r\n	</div>\r\n	<div style=\"width: 100%; display: flex; justify-content: center;\">\r\n		<div>\r\n			<p style=\"margin-top: 2px; margin-bottom: 5px; text-align: center; font-size: 20px !important;\">Mobile: 01577777777.</p>\r\n		</div>\r\n	</div>\r\n	<div style=\"width: 100%; display: flex; justify-content: center; margin-top: 10px; font-size: 20px !important;\">\r\n		<div style=\"width: 34%; float: left;\">\r\n			<div style=\"width:fit-content; border: 1px solid black; border-radius: 5px; padding: 5px 15px;\">\r\n              <p style=\"margin: 0;\"><b>No:</b> {{ $printData[\"invoice\"]->invoice_no }} </p>\r\n			</div>\r\n		</div>\r\n		<div style=\"width: 32%; float: left;\">\r\n			 \r\n		</div>\r\n		<div style=\"width: 34%; display: flex; justify-content: flex-end;\">\r\n			<div style=\"width:fit-content; border: 1px solid black; border-radius: 5px; padding: 5px 15px; \">\r\n				<p style=\"margin: 0;\"><b>Date:</b> {{  date(\"d/m/Y h:i A\", strtotime($printData[\"invoice\"]->date)) }}</p>\r\n			</div>\r\n		</div>\r\n	</div>\r\n	<div style=\"width: 100%; margin-top: 10px; font-size: 20px !important;\">\r\n		<div style=\"border: 1px solid black; border-radius: 5px; padding: 5px 15px;\">\r\n			<p style=\"margin: 0;\"><b>Name:</b> {{ $printData[\"invoice\"]->party->name_eng }}</p>\r\n		</div>\r\n	</div>\r\n	<div style=\"width: 100%; margin-top: 10px; font-size: 20px !important;\">\r\n		<div style=\"border: 1px solid black; border-radius: 5px; padding: 5px 15px;\">\r\n			<p style=\"margin: 0;\"><b>Address:</b> {{ $printData[\"invoice\"]->party->address }}</p>\r\n		</div>\r\n	</div>', 'Note : {{ $printData[\"invoice\"]->note }}\r\n\r\n<section class=\"\" style=\"margin-top: 100px;\">\r\n                <div class=\"col-12\">\r\n                    <div class=\"row text-center\">\r\n                        <div class=\"col-3\">\r\n                         <!-- <img src=\"{{ asset(\'assets/logo/signature.jpeg\') }}\" style=\"width: 90%;\" alt=\"\"> -->\r\n                            <p style=\"border-top: 1px solid black; font-size: 20px;\">Safa</p>\r\n                        </div>\r\n                        <div class=\"col-6\">\r\n                             \r\n                        </div>\r\n                        <div class=\"col-3\">\r\n                            <p style=\"border-top: 1px solid black; font-size: 20px;\">Received By</p>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </section>\r\n                            \r\n                            <div style=\"text-align:center\"> Thanks for business with us <div>\r\n                        </div></div>', '1,3,4,5,7,8,9,10,11,12', 'Product Name,Product Name (Local),Note,Quantity,Price,Discount,Net Total,Total,In Wards,Unit,Other Charge,Grand Total,Total', NULL, 0, 0, 5, 0, 1, 0, 3, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-25 05:53:47'),
(4, 'Sell Return', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, '<div style=\"width: 100%; display: flex;\">\r\n                               <div style=\"width: 43.33%; float: left;\">\r\n		<img src=\"{{ asset(\'assets/logo/sa_logo.jpg\') }}\" style=\"width: 200px;margin-bottom: -49px;\" alt=\"\">\r\n	</div>\r\n		<div style=\"width: fit-content; border: 1px solid black; border-radius: 10px; padding: 5px 15px; text-align: center; justify-content: center;\">\r\n          <h4 style=\"margin: 0 !important;\">INVOICE</h4>\r\n		</div>\r\n            \r\n            \r\n            \r\n            \r\n	</div>\r\n	<div style=\"width: 100%; display: flex; justify-content: center;\">\r\n		<div>\r\n			<h1 style=\"margin-top: 5px; margin-bottom: 5px; text-align: center;\">AL-SAFA</h1>\r\n		</div>\r\n	</div>\r\n	<div style=\"width: 100%; display: flex; justify-content: center;\">\r\n		<div>\r\n			<h5 style=\"margin-top: 0px; margin-bottom: 5px; text-align: center; text-transform: uppercase;\"><u>Hotel</u></h5>\r\n		</div>\r\n	</div>\r\n	<div style=\"width: 100%; display: flex; justify-content: center; font-size: 20px !important;\">\r\n		<div>\r\n      <p style=\"margin-top: 2px; margin-bottom: 5px; text-align: center;\">Address: xyz</p>\r\n		</div>\r\n	</div>\r\n	<div style=\"width: 100%; display: flex; justify-content: center;\">\r\n		<div>\r\n			<p style=\"margin-top: 2px; margin-bottom: 5px; text-align: center; font-size: 20px !important;\">Mobile: 01577777777.</p>\r\n		</div>\r\n	</div>\r\n	<div style=\"width: 100%; display: flex; justify-content: center; margin-top: 10px; font-size: 20px !important;\">\r\n		<div style=\"width: 34%; float: left;\">\r\n			<div style=\"width:fit-content; border: 1px solid black; border-radius: 5px; padding: 5px 15px;\">\r\n              <p style=\"margin: 0;\"><b>No:</b> {{ $printData[\"invoice\"]->invoice_no }} </p>\r\n			</div>\r\n		</div>\r\n		<div style=\"width: 32%; float: left;\">\r\n			 \r\n		</div>\r\n		<div style=\"width: 34%; display: flex; justify-content: flex-end;\">\r\n			<div style=\"width:fit-content; border: 1px solid black; border-radius: 5px; padding: 5px 15px; \">\r\n				<p style=\"margin: 0;\"><b>Date:</b> {{  date(\"d/m/Y h:i A\", strtotime($printData[\"invoice\"]->date)) }}</p>\r\n			</div>\r\n		</div>\r\n	</div>\r\n	<div style=\"width: 100%; margin-top: 10px; font-size: 20px !important;\">\r\n		<div style=\"border: 1px solid black; border-radius: 5px; padding: 5px 15px;\">\r\n			<p style=\"margin: 0;\"><b>Name:</b> {{ $printData[\"invoice\"]->party->name_eng }}</p>\r\n		</div>\r\n	</div>\r\n	<div style=\"width: 100%; margin-top: 10px; font-size: 20px !important;\">\r\n		<div style=\"border: 1px solid black; border-radius: 5px; padding: 5px 15px;\">\r\n			<p style=\"margin: 0;\"><b>Address:</b> {{ $printData[\"invoice\"]->party->address }}</p>\r\n		</div>\r\n	</div>', NULL, '1,2,3,4,5,7,8,9,10,12', 'Product Name,Product Name (Local),Note,Quantity,Price,Discount,Net Total,Total,In Wards,Unit,Other Charge,Grand Total,Total', NULL, 0, 0, 5, 0, 1, 1, 4, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-25 06:03:06'),
(5, 'Adjustment In', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, '1,3,4,10,11', 'Product Name,Product Name (Local),Note,Quantity,Price,Discount,Net Total,Total,In Wards,Unit,Other Charge,Grand Total,Total', NULL, 0, 0, 5, 0, 1, 0, 5, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-25 08:40:34'),
(6, 'Adjustment Out', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, '1,3,4,10,11', 'Product Name,Product Name (Local),Note,Quantity,Price,Discount,Net Total,Total,In Wards,Unit,Other Charge,Grand Total,Total', NULL, 0, 0, 5, 0, 1, 0, 6, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-25 08:37:30'),
(7, 'Damage', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, '1,4,10', 'Product Name,Product Name (Local),Note,Quantity,Price,Discount,Net Total,Total,In Wards,Unit,Other Charge,Grand Total,Total', NULL, 0, 0, 5, 0, 1, 0, 7, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-25 08:44:20'),
(8, 'Issue', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, '1,3,4,9,10', 'Product Name,Product Name (Local),Note,Quantity,Price,Discount,Net Total,Total,In Wards,Unit,Other Charge,Grand Total,Total', NULL, 0, 0, 5, 0, 1, 0, 8, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-25 05:56:10'),
(9, 'Issue Return', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, '1,3,4,9,10', 'Product Name,Product Name (Local),Note,Quantity,Price,Discount,Net Total,Total,In Wards,Unit,Other Charge,Grand Total,Total', NULL, 0, 0, 5, 0, 1, 0, 9, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-25 05:56:42'),
(10, 'Store Transfer', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, '1,3,4,9,10,11', 'Product Name,Product Name (Local),Note,Quantity,Price,Discount,Net Total,Total,In Wards,Unit,Other Charge,Grand Total,Total', NULL, 0, 0, 5, 0, 1, 0, 10, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-25 05:57:09'),
(11, 'Store Receive', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 11, '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(12, 'Production', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 12, '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(13, 'Opening', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, '1,3,4,5,9,10,11', 'Product Name,Product Name (Local),Note,Quantity,Price,Discount,Net Total,Total,In Wards,Unit,Other Charge,Grand Total,Total', NULL, 0, 0, 5, 0, 1, 0, 13, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-25 05:58:01'),
(14, 'Order', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 14, '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(15, 'Order Return', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 15, '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(16, 'RECIPE', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 25, '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(17, 'INDENT', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 26, '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(18, 'CASH PAYMENT VOUCHER', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 27, '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(19, 'BANK PAYMENT VOUCHER', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 28, '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(20, 'BANK RECEIVE VOUCHER', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 29, '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(21, 'CASH RECEIVE VOUCHER', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 30, '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(22, 'JOURNAL VOUCHER', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 31, '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(23, 'REQUISITION', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 32, '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(24, 'QUOTATION', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, '1,3,4,5,7,8,9,10,11,12', 'Product Name,Product Name (Local),Note,Quantity,Price,Discount,Net Total,Total,In Wards,Unit,Other Charge,Grand Total,Total', NULL, 0, 0, 5, 0, 1, 0, 33, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-25 05:58:52'),
(25, 'PURCHASE ORDER', NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 0, 1, 1, NULL, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 34, '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(26, 'Packages', NULL, NULL, NULL, '10212161', NULL, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 5, 0, 1, 1, 71, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-16 04:54:23'),
(27, 'Facilities', NULL, NULL, NULL, '12909212', NULL, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 5, 0, 1, 1, 72, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-19 02:03:04'),
(28, 'Charges', NULL, NULL, NULL, '1010101', NULL, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 5, 0, 1, 1, 73, '', 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-19 02:03:17');

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

--
-- Table structure for table `invoice_transportations`
--

CREATE TABLE `invoice_transportations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `vehicle_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `store_invoice_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `invoice_types`
--

CREATE TABLE `invoice_types` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `inv_taxes`
--

CREATE TABLE `inv_taxes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `vat_tax_id` int(10) UNSIGNED NOT NULL,
  `store_transaction_id` bigint(20) UNSIGNED NOT NULL,
  `entry_type` tinyint(4) NOT NULL COMMENT '1=transaction/2=FgTransaction/3=expense',
  `in_percent` double(8,2) NOT NULL DEFAULT 0.00 COMMENT 'percent %',
  `amount` double(8,2) NOT NULL DEFAULT 0.00 COMMENT 'Total',
  `tax_type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=excluding,0=including',
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `item_groups`
--

CREATE TABLE `item_groups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_consumable` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1=yes/0=no',
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive = 2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_groups`
--

INSERT INTO `item_groups` (`id`, `name`, `is_consumable`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Consumeable', 1, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL),
(2, 'Service', 0, 1, 1, 1, NULL, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `journal_transactions`
--

CREATE TABLE `journal_transactions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `voucher_id` bigint(20) UNSIGNED NOT NULL,
  `date` datetime DEFAULT NULL,
  `ledger_id` bigint(20) UNSIGNED DEFAULT NULL,
  `type` tinyint(1) DEFAULT NULL COMMENT ' 0 => debit, 1 => credit',
  `amount` double NOT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reff_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `remarks` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cost_center_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `journal_transactions`
--

INSERT INTO `journal_transactions` (`id`, `voucher_id`, `date`, `ledger_id`, `type`, `amount`, `note`, `reff_no`, `remarks`, `cost_center_id`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, '2021-10-03 14:13:35', 22, 0, 2000, NULL, NULL, '2000', 0, 4, 1, 1, NULL, NULL, NULL, '2021-10-03 08:13:35', '2021-10-03 08:13:35'),
(2, 1, '2021-10-03 14:13:35', 60, 1, 2000, NULL, NULL, '2000', 0, 4, 1, 1, NULL, NULL, NULL, '2021-10-03 08:13:35', '2021-10-03 08:13:35'),
(3, 2, '2021-10-03 16:10:36', 22, 1, 1500, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-10-03 10:10:36', '2021-10-03 10:10:36'),
(4, 2, '2021-10-03 16:10:36', 0, 0, 580, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-10-03 10:10:36', '2021-10-03 10:10:36'),
(5, 2, '2021-10-03 16:10:36', 57, 0, 500, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-10-03 10:10:36', '2021-10-03 10:10:36'),
(6, 2, '2021-10-03 16:10:36', 46, 0, 500, NULL, NULL, NULL, NULL, 4, 1, 1, NULL, NULL, NULL, '2021-10-03 10:10:36', '2021-10-03 10:10:36');

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

--
-- Table structure for table `logs`
--

CREATE TABLE `logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `laggable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `laggable_id` bigint(20) UNSIGNED NOT NULL,
  `log_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`log_data`)),
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =0',
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `logs`
--

INSERT INTO `logs` (`id`, `laggable_type`, `laggable_id`, `log_data`, `status`, `created_by`, `created_at`, `updated_at`) VALUES
(1, 'App\\Models\\Inventory\\Product', 1, '{\"id\":1,\"barcode\":\"1\",\"category_id\":\"3\",\"sub_category_id\":null,\"sub_sub_category_id\":null,\"cat_code\":\"10212161\",\"name_eng\":\"Local\",\"name_local\":null,\"serial\":\"14\",\"unit\":\"1\",\"secondary_unit\":null,\"unit_quantity\":\"1\",\"module_no\":null,\"brand_id\":null,\"desc\":null,\"buy_price\":\"0\",\"buy_price_code\":null,\"sell_price_code\":null,\"sell_price\":\"0\",\"retail_sell_price\":null,\"whole_sell_price\":null,\"flash_sell_price\":null,\"cbm\":null,\"vendor_id\":null,\"color_id\":null,\"size_id\":null,\"reorder_level\":null,\"section_id\":\"1\",\"item_group_id\":\"1\",\"acc_group_id\":\"1\",\"sellable\":\"1\",\"serialized_product\":\"0\",\"expiarable_product\":\"0\",\"manufacture_code\":\"0\",\"image\":null,\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"1\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-16T07:53:43.000000Z\",\"updated_at\":\"2021-09-16T08:14:27.000000Z\"}', 1, 0, '2021-09-25 05:26:57', '2021-09-25 05:26:57'),
(2, 'App\\Models\\Inventory\\Product', 14, '{\"id\":14,\"barcode\":\"15\",\"category_id\":\"11\",\"sub_category_id\":\"12\",\"sub_sub_category_id\":\"13\",\"cat_code\":\"70010101\",\"name_eng\":\"TEST PRODUCT\",\"name_local\":\"TEST PRODUCT\",\"serial\":null,\"unit\":\"1\",\"secondary_unit\":\"2\",\"unit_quantity\":null,\"module_no\":null,\"brand_id\":null,\"desc\":null,\"buy_price\":\"1\",\"buy_price_code\":null,\"sell_price_code\":null,\"sell_price\":null,\"retail_sell_price\":null,\"whole_sell_price\":null,\"flash_sell_price\":null,\"cbm\":null,\"vendor_id\":null,\"color_id\":null,\"size_id\":null,\"reorder_level\":null,\"section_id\":null,\"item_group_id\":\"1\",\"acc_group_id\":\"1\",\"sellable\":\"1\",\"serialized_product\":\"0\",\"expiarable_product\":\"0\",\"manufacture_code\":\"0\",\"image\":null,\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"1\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-25T08:26:34.000000Z\",\"updated_at\":\"2021-09-25T08:26:34.000000Z\"}', 1, 0, '2021-09-25 06:07:42', '2021-09-25 06:07:42'),
(3, 'App\\Models\\Inventory\\Vendor', 18, '{\"id\":18,\"group_id\":\"3\",\"account_id\":\"64\",\"store_id\":\"0\",\"code\":\"4\",\"user_name\":null,\"email\":null,\"showroom_name\":null,\"password\":null,\"name_eng\":\"Badr Est.\",\"name_local\":\"Badr Est.\",\"cost_center\":\"0\",\"party_type\":\"1\",\"mobile\":null,\"address\":null,\"bank_name\":null,\"swift_code\":null,\"acc_name\":null,\"acc_number\":null,\"commission\":\"0\",\"commission_type\":\"2\",\"credit_limit_amount\":null,\"credit_limit_day\":null,\"limit_apply\":\"2\",\"status\":\"1\",\"warehouse_id\":\"4\",\"created_by\":\"1\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-22T09:14:00.000000Z\",\"updated_at\":\"2021-09-22T09:14:00.000000Z\"}', 1, 0, '2021-09-25 06:07:45', '2021-09-25 06:07:45'),
(4, 'App\\Models\\Inventory\\Product', 10, '{\"id\":10,\"barcode\":\"11\",\"category_id\":\"7\",\"sub_category_id\":\"9\",\"sub_sub_category_id\":\"10\",\"cat_code\":\"12220101\",\"name_eng\":\"Design Cake:2020\",\"name_local\":\"Design Cake:2020\",\"serial\":null,\"unit\":\"1\",\"secondary_unit\":\"2\",\"unit_quantity\":null,\"module_no\":null,\"brand_id\":null,\"desc\":null,\"buy_price\":\"220\",\"buy_price_code\":null,\"sell_price_code\":\"220\",\"sell_price\":null,\"retail_sell_price\":null,\"whole_sell_price\":null,\"flash_sell_price\":null,\"cbm\":null,\"vendor_id\":null,\"color_id\":null,\"size_id\":null,\"reorder_level\":null,\"section_id\":\"1\",\"item_group_id\":\"1\",\"acc_group_id\":\"3\",\"sellable\":\"1\",\"serialized_product\":\"0\",\"expiarable_product\":\"0\",\"manufacture_code\":\"0\",\"image\":null,\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"2\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-23T11:26:44.000000Z\",\"updated_at\":\"2021-09-23T11:26:44.000000Z\"}', 1, 0, '2021-09-25 07:34:59', '2021-09-25 07:34:59'),
(5, 'App\\Models\\Inventory\\Product', 1, '{\"id\":1,\"barcode\":\"1\",\"category_id\":\"3\",\"sub_category_id\":null,\"sub_sub_category_id\":null,\"cat_code\":\"10212161\",\"name_eng\":\"Local P\",\"name_local\":null,\"serial\":\"14\",\"unit\":\"1\",\"secondary_unit\":\"2\",\"unit_quantity\":\"1\",\"module_no\":null,\"brand_id\":null,\"desc\":null,\"buy_price\":\"0\",\"buy_price_code\":null,\"sell_price_code\":null,\"sell_price\":\"0\",\"retail_sell_price\":null,\"whole_sell_price\":null,\"flash_sell_price\":null,\"cbm\":null,\"vendor_id\":null,\"color_id\":null,\"size_id\":null,\"reorder_level\":null,\"section_id\":\"1\",\"item_group_id\":\"1\",\"acc_group_id\":\"1\",\"sellable\":\"1\",\"serialized_product\":\"0\",\"expiarable_product\":\"0\",\"manufacture_code\":\"0\",\"image\":null,\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"1\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-16T07:53:43.000000Z\",\"updated_at\":\"2021-09-25T08:26:57.000000Z\"}', 1, 0, '2021-09-25 08:23:54', '2021-09-25 08:23:54'),
(6, 'App\\Models\\Inventory\\Product', 3, '{\"id\":3,\"barcode\":\"3\",\"category_id\":\"3\",\"sub_category_id\":null,\"sub_sub_category_id\":null,\"cat_code\":\"10212161\",\"name_eng\":\"Omra\",\"name_local\":null,\"serial\":null,\"unit\":\"1\",\"secondary_unit\":null,\"unit_quantity\":\"1\",\"module_no\":null,\"brand_id\":null,\"desc\":null,\"buy_price\":\"0\",\"buy_price_code\":null,\"sell_price_code\":null,\"sell_price\":\"0\",\"retail_sell_price\":null,\"whole_sell_price\":null,\"flash_sell_price\":null,\"cbm\":null,\"vendor_id\":null,\"color_id\":null,\"size_id\":null,\"reorder_level\":null,\"section_id\":\"1\",\"item_group_id\":\"1\",\"acc_group_id\":\"1\",\"sellable\":\"1\",\"serialized_product\":\"0\",\"expiarable_product\":\"0\",\"manufacture_code\":\"0\",\"image\":null,\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"1\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-16T08:16:00.000000Z\",\"updated_at\":\"2021-09-16T08:16:00.000000Z\"}', 1, 0, '2021-09-25 08:24:30', '2021-09-25 08:24:30'),
(7, 'App\\Models\\Inventory\\Product', 2, '{\"id\":2,\"barcode\":\"2\",\"category_id\":\"3\",\"sub_category_id\":null,\"sub_sub_category_id\":null,\"cat_code\":\"10212161\",\"name_eng\":\"Hajj\",\"name_local\":null,\"serial\":null,\"unit\":\"1\",\"secondary_unit\":null,\"unit_quantity\":\"1\",\"module_no\":null,\"brand_id\":null,\"desc\":null,\"buy_price\":\"0\",\"buy_price_code\":null,\"sell_price_code\":null,\"sell_price\":\"0\",\"retail_sell_price\":null,\"whole_sell_price\":null,\"flash_sell_price\":null,\"cbm\":null,\"vendor_id\":null,\"color_id\":null,\"size_id\":null,\"reorder_level\":null,\"section_id\":\"1\",\"item_group_id\":\"1\",\"acc_group_id\":\"1\",\"sellable\":\"1\",\"serialized_product\":\"0\",\"expiarable_product\":\"0\",\"manufacture_code\":\"0\",\"image\":null,\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"1\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-16T08:15:20.000000Z\",\"updated_at\":\"2021-09-16T08:15:20.000000Z\"}', 1, 0, '2021-09-25 08:24:58', '2021-09-25 08:24:58'),
(8, 'App\\Models\\Inventory\\Product', 1, '{\"id\":1,\"barcode\":\"1\",\"category_id\":\"3\",\"sub_category_id\":null,\"sub_sub_category_id\":null,\"cat_code\":\"10212161\",\"name_eng\":\"Local P\",\"name_local\":null,\"serial\":\"14\",\"unit\":\"5\",\"secondary_unit\":\"2\",\"unit_quantity\":\"1\",\"module_no\":null,\"brand_id\":null,\"desc\":null,\"buy_price\":\"0\",\"buy_price_code\":null,\"sell_price_code\":null,\"sell_price\":\"0\",\"retail_sell_price\":null,\"whole_sell_price\":null,\"flash_sell_price\":null,\"cbm\":null,\"vendor_id\":null,\"color_id\":null,\"size_id\":null,\"reorder_level\":null,\"section_id\":\"1\",\"item_group_id\":\"1\",\"acc_group_id\":\"1\",\"sellable\":\"1\",\"serialized_product\":\"0\",\"expiarable_product\":\"0\",\"manufacture_code\":\"0\",\"image\":null,\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"1\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-16T07:53:43.000000Z\",\"updated_at\":\"2021-09-25T11:23:54.000000Z\"}', 1, 0, '2021-09-25 08:25:08', '2021-09-25 08:25:08'),
(9, 'App\\Models\\Inventory\\StoreInvoice', 16, '{\"id\":16,\"transaction_type\":\"1\",\"party_id\":\"22\",\"invoice_no\":\"5\",\"ref_invoice\":null,\"ref_type\":null,\"voucher_id\":\"9\",\"net_total\":\"100\",\"grand_total\":\"0\",\"cash_amount\":\"0\",\"bank_amount\":\"0\",\"dc_amount\":\"0\",\"dc_percentage\":\"0.00\",\"other_charge\":\"0\",\"issue_type_note\":null,\"batch_qty\":\"1\",\"currency_id\":\"1\",\"roe\":\"1\",\"attachment\":null,\"note\":null,\"asist_dms\":null,\"route_name\":null,\"sell_type\":null,\"pay_status\":\"1\",\"approve_status\":\"1\",\"use_status\":\"1\",\"pay_type\":\"1\",\"salesman_id\":null,\"date\":\"2021-09-25T11:58:28.000000Z\",\"remarks\":\"1\",\"track_distribution\":null,\"transfer_to\":null,\"store_from\":null,\"store_to\":null,\"cash_bank_id\":\"1\",\"cost_center_id\":\"0\",\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"3\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-25T11:58:28.000000Z\",\"updated_at\":\"2021-09-25T11:58:28.000000Z\",\"voucher\":{\"id\":9,\"voucher_no\":\"VCR9\",\"date\":\"2021-09-25 14:58:28\",\"bill_no\":null,\"bill_date\":null,\"preparation_date\":null,\"note\":null,\"reff_no\":\"5\",\"transaction_amount\":\"100\",\"due\":\"0\",\"cheque_date\":null,\"cheque_number\":null,\"warehouse_id\":\"4\",\"type\":\"5\",\"status\":\"1\",\"approve_status\":\"0\",\"created_by\":\"3\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-25T11:58:28.000000Z\",\"updated_at\":\"2021-09-25T11:58:28.000000Z\"},\"transactions\":[{\"id\":15,\"product_id\":\"14\",\"transaction_type\":\"1\",\"approve_status\":\"1\",\"autocode_before_bill\":null,\"dr_cr\":\"1\",\"store_invoice_id\":\"16\",\"order_invoice_id\":null,\"party_id\":\"22\",\"order_qty\":\"0\",\"allocated_qty\":\"0\",\"quantity\":\"100.00\",\"price\":\"1\",\"order_price\":null,\"dc_price\":\"0.00\",\"manual_dc\":\"0.00\",\"avg_price\":\"1\",\"unit_qty\":\"1\",\"date\":\"2021-09-25T11:58:28.000000Z\",\"remarks\":\"1\",\"ref_invoice\":null,\"promotion_type\":null,\"description\":null,\"warrenty_from\":null,\"warrenty_to\":null,\"store_from\":null,\"store_to\":null,\"cost_center_id\":\"0\",\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"3\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-25T11:58:28.000000Z\",\"updated_at\":\"2021-09-25T11:58:28.000000Z\",\"vats\":[]}],\"expenses\":[],\"transport\":null}', 1, 0, '2021-09-25 08:59:25', '2021-09-25 08:59:25'),
(10, 'App\\Models\\Inventory\\Product', 15, '{\"id\":15,\"barcode\":\"16\",\"category_id\":\"21\",\"sub_category_id\":\"22\",\"sub_sub_category_id\":\"23\",\"cat_code\":\"100010101\",\"name_eng\":\"Product one\",\"name_local\":\"Product one\",\"serial\":null,\"unit\":\"5\",\"secondary_unit\":\"2\",\"unit_quantity\":\"1\",\"module_no\":null,\"brand_id\":null,\"desc\":null,\"buy_price\":\"100\",\"buy_price_code\":null,\"sell_price_code\":null,\"sell_price\":null,\"retail_sell_price\":null,\"whole_sell_price\":null,\"flash_sell_price\":null,\"cbm\":null,\"vendor_id\":null,\"color_id\":null,\"size_id\":null,\"reorder_level\":null,\"section_id\":null,\"item_group_id\":\"1\",\"acc_group_id\":\"1\",\"sellable\":\"1\",\"serialized_product\":\"0\",\"expiarable_product\":\"0\",\"manufacture_code\":\"0\",\"image\":null,\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"3\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-25T13:29:19.000000Z\",\"updated_at\":\"2021-09-25T13:29:19.000000Z\"}', 1, 0, '2021-09-25 13:30:03', '2021-09-25 13:30:03'),
(11, 'App\\Models\\Inventory\\Vendor', 25, '{\"id\":25,\"group_id\":\"3\",\"account_id\":\"71\",\"store_id\":\"0\",\"code\":\"9\",\"user_name\":null,\"email\":null,\"showroom_name\":null,\"password\":null,\"name_eng\":\"test vendor\",\"name_local\":\"test vendor\",\"cost_center\":\"0\",\"party_type\":\"1\",\"mobile\":null,\"address\":null,\"bank_name\":null,\"swift_code\":null,\"acc_name\":null,\"acc_number\":null,\"commission\":\"0\",\"commission_type\":\"2\",\"credit_limit_amount\":null,\"credit_limit_day\":null,\"limit_apply\":\"2\",\"status\":\"1\",\"warehouse_id\":\"4\",\"created_by\":\"1\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-25T13:33:03.000000Z\",\"updated_at\":\"2021-09-25T13:33:03.000000Z\"}', 1, 0, '2021-09-25 13:33:44', '2021-09-25 13:33:44'),
(12, 'App\\Models\\Inventory\\StoreInvoice', 17, '{\"id\":17,\"transaction_type\":\"1\",\"party_id\":\"25\",\"invoice_no\":\"6\",\"ref_invoice\":null,\"ref_type\":null,\"voucher_id\":\"10\",\"net_total\":\"10100\",\"grand_total\":\"0\",\"cash_amount\":\"0\",\"bank_amount\":\"0\",\"dc_amount\":\"0\",\"dc_percentage\":\"0.00\",\"other_charge\":\"0\",\"issue_type_note\":null,\"batch_qty\":\"1\",\"currency_id\":\"1\",\"roe\":\"1\",\"attachment\":null,\"note\":null,\"asist_dms\":null,\"route_name\":null,\"sell_type\":null,\"pay_status\":\"1\",\"approve_status\":\"1\",\"use_status\":\"1\",\"pay_type\":\"1\",\"salesman_id\":null,\"date\":\"2021-09-25T13:36:28.000000Z\",\"remarks\":\"1\",\"track_distribution\":null,\"transfer_to\":null,\"store_from\":null,\"store_to\":null,\"cash_bank_id\":\"1\",\"cost_center_id\":\"0\",\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"3\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-25T13:36:28.000000Z\",\"updated_at\":\"2021-09-25T13:36:28.000000Z\",\"voucher\":{\"id\":10,\"voucher_no\":\"VCR10\",\"date\":\"2021-09-25 19:36:28\",\"bill_no\":null,\"bill_date\":null,\"preparation_date\":null,\"note\":null,\"reff_no\":\"6\",\"transaction_amount\":\"10100\",\"due\":\"0\",\"cheque_date\":null,\"cheque_number\":null,\"warehouse_id\":\"4\",\"type\":\"5\",\"status\":\"1\",\"approve_status\":\"0\",\"created_by\":\"3\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-25T13:36:28.000000Z\",\"updated_at\":\"2021-09-25T13:36:28.000000Z\"},\"transactions\":[{\"id\":16,\"product_id\":\"15\",\"transaction_type\":\"1\",\"approve_status\":\"1\",\"autocode_before_bill\":null,\"dr_cr\":\"1\",\"store_invoice_id\":\"17\",\"order_invoice_id\":null,\"party_id\":\"25\",\"order_qty\":\"0\",\"allocated_qty\":\"0\",\"quantity\":\"100.00\",\"price\":\"100\",\"order_price\":null,\"dc_price\":\"0.00\",\"manual_dc\":\"0.00\",\"avg_price\":\"100\",\"unit_qty\":\"1\",\"date\":\"2021-09-25T13:36:28.000000Z\",\"remarks\":\"1\",\"ref_invoice\":null,\"promotion_type\":null,\"description\":null,\"warrenty_from\":null,\"warrenty_to\":null,\"store_from\":null,\"store_to\":null,\"cost_center_id\":\"0\",\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"3\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-25T13:36:28.000000Z\",\"updated_at\":\"2021-09-25T13:36:28.000000Z\",\"vats\":[]},{\"id\":17,\"product_id\":\"14\",\"transaction_type\":\"1\",\"approve_status\":\"1\",\"autocode_before_bill\":null,\"dr_cr\":\"1\",\"store_invoice_id\":\"17\",\"order_invoice_id\":null,\"party_id\":\"25\",\"order_qty\":\"0\",\"allocated_qty\":\"0\",\"quantity\":\"100.00\",\"price\":\"1\",\"order_price\":null,\"dc_price\":\"0.00\",\"manual_dc\":\"0.00\",\"avg_price\":\"1\",\"unit_qty\":\"1\",\"date\":\"2021-09-25T13:36:28.000000Z\",\"remarks\":\"1\",\"ref_invoice\":null,\"promotion_type\":null,\"description\":null,\"warrenty_from\":null,\"warrenty_to\":null,\"store_from\":null,\"store_to\":null,\"cost_center_id\":\"0\",\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"3\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-25T13:36:28.000000Z\",\"updated_at\":\"2021-09-25T13:36:28.000000Z\",\"vats\":[]}],\"expenses\":[],\"transport\":null}', 1, 0, '2021-09-25 13:37:29', '2021-09-25 13:37:29'),
(13, 'App\\Models\\Inventory\\Product', 16, '{\"id\":16,\"barcode\":\"17\",\"category_id\":\"24\",\"sub_category_id\":\"25\",\"sub_sub_category_id\":\"26\",\"cat_code\":\"2020101\",\"name_eng\":\"Product one\",\"name_local\":\"Product one\",\"serial\":null,\"unit\":\"5\",\"secondary_unit\":\"2\",\"unit_quantity\":\"1\",\"module_no\":null,\"brand_id\":null,\"desc\":null,\"buy_price\":\"100\",\"buy_price_code\":null,\"sell_price_code\":null,\"sell_price\":null,\"retail_sell_price\":null,\"whole_sell_price\":null,\"flash_sell_price\":null,\"cbm\":null,\"vendor_id\":null,\"color_id\":null,\"size_id\":null,\"reorder_level\":null,\"section_id\":null,\"item_group_id\":\"1\",\"acc_group_id\":\"1\",\"sellable\":\"1\",\"serialized_product\":\"0\",\"expiarable_product\":\"0\",\"manufacture_code\":\"0\",\"image\":null,\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"4\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-09-25T14:09:03.000000Z\",\"updated_at\":\"2021-09-25T14:09:03.000000Z\"}', 1, 0, '2021-09-25 14:09:49', '2021-09-25 14:09:49'),
(14, 'App\\Models\\Inventory\\StoreInvoice', 25, '{\"id\":25,\"transaction_type\":\"1\",\"party_id\":\"14\",\"invoice_no\":\"11\",\"ref_invoice\":\"2003\",\"ref_type\":null,\"voucher_id\":\"1\",\"net_total\":\"2000\",\"grand_total\":\"0\",\"cash_amount\":\"0\",\"bank_amount\":\"0\",\"dc_amount\":\"0\",\"dc_percentage\":\"0.00\",\"other_charge\":\"0\",\"issue_type_note\":null,\"batch_qty\":\"1\",\"currency_id\":\"1\",\"roe\":\"1\",\"attachment\":null,\"note\":\"100\",\"asist_dms\":null,\"route_name\":null,\"sell_type\":null,\"pay_status\":\"0\",\"approve_status\":\"1\",\"use_status\":\"1\",\"pay_type\":\"4\",\"salesman_id\":null,\"date\":\"2021-10-03T08:13:35.000000Z\",\"remarks\":\"1\",\"track_distribution\":null,\"transfer_to\":null,\"store_from\":null,\"store_to\":null,\"cash_bank_id\":\"3\",\"cost_center_id\":\"0\",\"exist_fa_item\":\"0\",\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"1\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-10-03T08:13:35.000000Z\",\"updated_at\":\"2021-10-03T08:13:35.000000Z\",\"voucher\":{\"id\":1,\"voucher_no\":\"VCR1\",\"date\":\"2021-10-03 14:13:35\",\"bill_no\":null,\"bill_date\":null,\"preparation_date\":null,\"note\":\"100\",\"reff_no\":\"11\",\"transaction_amount\":\"2000\",\"due\":\"0\",\"cheque_date\":null,\"cheque_number\":null,\"warehouse_id\":\"4\",\"type\":\"5\",\"status\":\"1\",\"approve_status\":\"0\",\"created_by\":\"1\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-10-03T08:13:35.000000Z\",\"updated_at\":\"2021-10-03T08:13:35.000000Z\"},\"transactions\":[{\"id\":27,\"product_id\":\"2\",\"transaction_type\":\"1\",\"approve_status\":\"1\",\"autocode_before_bill\":null,\"dr_cr\":\"1\",\"store_invoice_id\":\"25\",\"order_invoice_id\":null,\"party_id\":\"14\",\"order_qty\":\"0\",\"allocated_qty\":\"0\",\"quantity\":\"1.00\",\"price\":\"2000\",\"order_price\":null,\"dc_price\":\"0.00\",\"manual_dc\":\"0.00\",\"avg_price\":\"2000\",\"unit_qty\":\"1\",\"date\":\"2021-10-03T08:13:35.000000Z\",\"remarks\":\"1\",\"ref_invoice\":null,\"promotion_type\":null,\"description\":\"hello\",\"warrenty_from\":null,\"warrenty_to\":null,\"store_from\":null,\"store_to\":null,\"cost_center_id\":\"0\",\"warehouse_id\":\"4\",\"status\":\"1\",\"created_by\":\"1\",\"updated_by\":null,\"deleted_by\":null,\"deleted_at\":null,\"created_at\":\"2021-10-03T08:13:35.000000Z\",\"updated_at\":\"2021-10-03T08:13:35.000000Z\",\"vats\":[]}],\"expenses\":[],\"transport\":null}', 1, 1, '2021-10-03 08:17:48', '2021-10-03 08:17:48');

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

--
-- Table structure for table `manage_checkbooks`
--

CREATE TABLE `manage_checkbooks` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `voucher_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bank_id` bigint(20) UNSIGNED NOT NULL,
  `voucher_id` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'if null it is available',
  `ledger_id` bigint(20) UNSIGNED DEFAULT NULL,
  `check_to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `voucher_ids` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'comma separated multiple voucher id',
  `transaction_id` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'if null it is available',
  `check_book_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'collected',
  `check_number` int(11) NOT NULL,
  `amount` double DEFAULT NULL,
  `check_status` tinyint(1) NOT NULL DEFAULT 0,
  `preparation_date` datetime DEFAULT NULL,
  `check_date` datetime DEFAULT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `marketing_admins`
--

CREATE TABLE `marketing_admins` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `parent_id` bigint(20) UNSIGNED DEFAULT NULL,
  `office_level_id` bigint(20) UNSIGNED DEFAULT NULL,
  `admin_id` bigint(20) UNSIGNED NOT NULL,
  `group_ids` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'keep comma separated customer group ids',
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=on/0=off',
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(2, '2013_02_16_082341_create_admins_table', 1),
(4, '2014_01_04_094000_create_modules_table', 1),
(5, '2014_01_04_095651_create_module_wise_tables_table', 1),
(6, '2014_01_04_095751_create_accounts_heads_table', 1),
(7, '2014_10_12_000000_create_users_table', 1),
(8, '2014_10_12_100000_create_password_resets_table', 1),
(9, '2019_08_19_000000_create_failed_jobs_table', 1),
(10, '2020_12_20_093515_create_roles_table', 1),
(11, '2020_12_20_094104_create_permissions_table', 1),
(12, '2020_12_20_101009_permission_role', 1),
(13, '2020_12_22_072012_create_invoice_types_table', 1),
(14, '2020_12_22_072020_create_invoice_parameters_table', 1),
(15, '2020_12_22_100521_module_role', 1),
(16, '2020_12_27_042415_module_warehouse', 1),
(17, '2020_12_27_070938_create_types_table', 1),
(18, '2020_12_27_071341_create_settings_table', 1),
(19, '2020_12_28_050100_create_groups_table', 1),
(20, '2020_12_28_055402_create_vendors_table', 1),
(21, '2020_12_28_071741_create_product_settings_table', 1),
(22, '2020_12_28_080559_create_color_sizes_table', 1),
(23, '2020_12_30_093300_create_product_categories_table', 1),
(24, '2020_12_31_093000_create_brands_table', 1),
(25, '2020_12_31_101410_create_products_table', 1),
(26, '2021_01_03_090140_create_card_grades_table', 1),
(27, '2021_01_04_043930_create_card_members_table', 1),
(28, '2021_01_04_055528_create_cash_banks_table', 1),
(29, '2021_01_06_111923_create_initial_accounts_set_ups_table', 1),
(30, '2021_01_07_073013_create_carts_table', 1),
(31, '2021_01_07_073223_create_product_serial_carts_table', 1),
(32, '2021_01_09_052134_create_vouchers_table', 1),
(33, '2021_01_10_045233_create_manage_checkbooks_table', 1),
(34, '2021_01_10_055346_create_journal_transactions_table', 1),
(35, '2021_01_12_105223_create_cost_centers_table', 1),
(36, '2021_01_13_110223_create_store_invoices_table', 1),
(37, '2021_01_13_110708_create_store_transactions_table', 1),
(38, '2021_01_13_110937_create_store_serial_carts_table', 1),
(39, '2021_01_19_062018_create_store_product_promotions_table', 1),
(40, '2021_01_23_075714_create_cheque_details_table', 1),
(41, '2021_01_26_042211_create_invoice_transportations_table', 1),
(42, '2021_02_01_105425_create_recipes_table', 1),
(43, '2021_02_01_105932_create_reciperawproducts_table', 1),
(44, '2021_02_04_052830_create_indents_table', 1),
(45, '2021_02_04_054936_create_indentdetails_table', 1),
(46, '2021_02_08_061844_create_pay_departments_table', 1),
(47, '2021_02_10_064232_create_fgstore_invoices_table', 1),
(48, '2021_02_10_064257_create_fgstore_transactions_table', 1),
(49, '2021_02_10_112725_create_order_carts_table', 1),
(50, '2021_02_16_091416_admin_role', 1),
(51, '2021_02_23_113650_create_requisitions_table', 1),
(52, '2021_02_23_113842_create_requisition_details_table', 1),
(53, '2021_02_23_113955_create_quotations_table', 1),
(54, '2021_02_23_114043_create_quotation_details_table', 1),
(55, '2021_03_01_065402_create_actions_table', 1),
(56, '2021_03_01_065701_create_steps_table', 1),
(57, '2021_03_01_065815_action_step', 1),
(58, '2021_03_01_065851_create_role_mappings_table', 1),
(59, '2021_03_02_094925_create_approvals_table', 1),
(60, '2021_03_07_100644_admin_accounthead', 1),
(61, '2021_03_07_154558_create_stock_ledgers_table', 1),
(62, '2021_03_13_161930_create_party_wise_product_prices_table', 1),
(63, '2021_03_14_163351_create_currencies_table', 1),
(64, '2021_03_16_112755_create_order_invoices_table', 1),
(65, '2021_03_16_150113_create_product_groups_table', 1),
(66, '2021_03_21_121636_create_purchase_orders_table', 1),
(67, '2021_03_21_141949_create_po_details_table', 1),
(68, '2021_03_25_172659_create_cake_orders_table', 1),
(69, '2021_03_25_173104_create_cake_order_details_table', 1),
(70, '2021_03_25_183059_create_cake_carts_table', 1),
(71, '2021_03_27_163401_create_units_table', 1),
(72, '2021_04_05_105146_create_step_settings_table', 1),
(73, '2021_04_05_154824_create_quick_accesses_table', 1),
(74, '2021_04_05_173245_admin_costcenter', 1),
(75, '2021_04_05_174135_create_costcenter_mappings_table', 1),
(76, '2021_04_21_132410_create_logs_table', 1),
(77, '2021_05_02_132247_create_item_groups_table', 1),
(78, '2021_05_02_151542_create_accounts_groups_table', 1),
(79, '2021_05_08_140922_create_parties_table', 1),
(80, '2021_05_08_141553_create_product_sell_prices_table', 1),
(81, '2021_05_08_155054_create_costings_table', 1),
(82, '2021_05_09_152025_create_sell_quotations_table', 1),
(83, '2021_05_09_152626_create_sell_quotation_details_table', 1),
(84, '2021_05_10_154543_create_work_orders_table', 1),
(85, '2021_05_10_155217_create_work_order_details_table', 1),
(86, '2021_05_25_162023_create_charts_table', 1),
(87, '2021_06_05_132230_create_shops_table', 1),
(88, '2021_06_05_140036_customer_shop', 1),
(89, '2021_06_07_145628_create_order_details_table', 1),
(90, '2021_06_14_152402_create_report_print_set_ups_table', 1),
(91, '2021_06_17_113759_create_fd_room_types_table', 1),
(92, '2021_06_17_120517_create_fd_room_rates_table', 1),
(93, '2021_06_17_124316_create_fd_bookings_table', 1),
(94, '2021_06_17_125011_create_fd_floors_table', 1),
(95, '2021_06_17_130126_create_fd_guest_infos_table', 1),
(96, '2021_06_17_130641_create_fd_booking_facilities_table', 1),
(97, '2021_06_17_131021_create_fd_booking_room_details_table', 1),
(98, '2021_06_17_140619_create_fd_check_in_room_details_table', 1),
(99, '2021_06_17_151546_create_fd_rooms_table', 1),
(100, '2021_06_19_133606_add_status_to_fd_room_types', 1),
(101, '2021_06_20_172213_create_fd_agent_rates_table', 1),
(102, '2021_06_20_173230_create_fd_package_types_table', 1),
(103, '2021_06_20_175133_create_fd_company_details_table', 1),
(104, '2021_06_21_113921_create_countries_table', 1),
(105, '2021_06_22_050820_create_fd_types_table', 1),
(106, '2021_06_22_103732_add_room_status_to_fd_rooms', 1),
(107, '2021_06_23_091650_add_hk_room_status_to_fd_rooms_table', 1),
(108, '2021_06_24_041659_create_vat_taxes_table', 1),
(109, '2021_06_24_051036_add_bed_status_to_fd_rooms', 1),
(110, '2021_06_24_084558_alter_status_column_to_fd_room_rates_table', 1),
(111, '2021_06_24_085922_create_fd_allotments_table', 1),
(112, '2021_06_24_090239_alter_bed_type_column_to_fd_agent_rates_table', 1),
(113, '2021_06_24_091354_create_fd_allotment_details_table', 1),
(114, '2021_06_24_094210_create_fd_allotment_releases_table', 1),
(115, '2021_06_24_094452_create_fd_allotment_installments_table', 1),
(116, '2021_06_24_120140_create_fd_charges_table', 1),
(117, '2021_06_26_070034_create_inv_taxes_table', 1),
(118, '2021_06_26_122007_alter_room_status_column_to_fd_rooms_table', 1),
(119, '2021_06_27_045303_add_column_room_clean_status_to_fd_rooms_table', 1),
(120, '2021_06_27_103719_create_fd_invoices_table', 1),
(121, '2021_06_27_103821_create_fd_invoice_details_table', 1),
(122, '2021_06_28_054356_create_fd_vat_tax_transactions_table', 1),
(123, '2021_06_29_105306_create_fd_add_charges_table', 1),
(124, '2021_06_29_105359_create_fd_add_charges_details_table', 1),
(125, '2021_06_30_062910_create_fd_room_bed_change_logs_table', 1),
(126, '2021_07_01_071041_create_fd_room_maintenances_table', 1),
(127, '2021_07_07_180054_create_fa_fixed_asset_item_details_table', 1),
(128, '2021_07_07_190834_create_fa_fixed_asset_transections_table', 1),
(129, '2021_07_08_061530_add_two_columns_in_fd_bookings_table', 1),
(130, '2021_07_10_031618_create_fd_day_adjust_logs_table', 1),
(131, '2021_07_10_053237_add_room_id_to_fd_guest_infos_table', 1),
(132, '2021_07_10_180413_create_contracts_table', 1),
(133, '2021_07_10_180640_create_contract_installments_table', 1),
(134, '2021_07_10_180732_create_contract_expansions_table', 1),
(135, '2021_07_11_174405_add_mode_of_purchase_to_fa_fixed_asset_item_details', 1),
(136, '2021_07_14_113415_create_contract_type_groups_table', 1),
(138, '2021_07_17_142701_create_fa_details_table', 1),
(139, '2021_07_17_204629_create_expenses_table', 1),
(140, '2021_07_18_061530_add_cancel_columns_in_fd_bookings_table', 1),
(141, '2021_07_19_151554_create_fa_movements_table', 1),
(142, '2021_07_26_121716_create_fa_fixed_asset_costs_table', 1),
(143, '2021_07_27_144235_create_admin_cashes_table', 1),
(144, '2021_07_28_174823_create_cheque_dues_table', 1),
(145, '2021_07_28_174932_create_cheque_due_collections_table', 1),
(146, '2021_07_28_180747_create_damage_transactions_table', 1),
(147, '2021_07_29_162754_create_fa_rates_table', 1),
(148, '2021_07_29_164011_add_total_days_fa_details_table', 1),
(149, '2021_08_03_123433_create_fa_cost_details_table', 1),
(150, '2021_08_03_124045_create_fa_transections_table', 1),
(151, '2021_08_03_150954_add_type_to_transection_table', 1),
(152, '2021_08_08_101759_create_fd_rate_change_logs_table', 1),
(153, '2021_08_08_124014_create_fd_invoice_others_table', 1),
(154, '2021_08_09_123732_create_marketing_admins_table', 1),
(155, '2021_08_14_162122_add_column_cost_fd_booking_facilities_table', 1),
(156, '2021_08_16_111542_add_column_fd_booking_facilities_table', 1),
(157, '2021_08_19_103453_create_report_groups_table', 1),
(158, '2021_08_19_104132_create_financial_report_setups_table', 1),
(159, '2021_08_21_111314_create_fd_day_closes_table', 1),
(160, '2021_08_22_120230_create_database_backups_table', 1),
(161, '2021_08_22_120740_create_database_credentials_table', 1),
(162, '2021_08_26_113153_add_column_party_id_to_fd_invoice_details_table', 1),
(163, '2021_08_29_142200_create_cashier_ledgers_table', 1),
(164, '2021_09_05_145611_create_salesmen_table', 1),
(165, '2021_09_06_143541_add_column_voucher_id_to_fd_invoice_details', 1),
(166, '2021_09_13_132310_create_report_layout_set_ups_table', 1),
(167, '2021_09_14_121613_alter_extrafield_to_fa_transections', 2),
(170, '2013_01_23_105832_create_warehouses_table', 3),
(171, '2013_02_17_070310_admin_warehouse', 3),
(172, '2021_02_09_053227_create_pay_weekend_holidays_table', 4),
(173, '2021_07_17_135937_create_fa_invoices_table', 5);

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

--
-- Table structure for table `modules`
--

CREATE TABLE `modules` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `parent_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `modules`
--

INSERT INTO `modules` (`id`, `name`, `parent_id`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES
(1, 'Setting', NULL, 1, 1, NULL, NULL, NULL),
(2, 'Purchase', NULL, 1, 1, NULL, NULL, NULL),
(3, 'Inventory', NULL, 1, 1, NULL, NULL, NULL),
(4, 'Production', NULL, 1, 1, NULL, NULL, NULL),
(5, 'Accounts', NULL, 1, 1, NULL, NULL, NULL),
(6, 'Showroom', NULL, 1, 1, NULL, NULL, NULL),
(7, 'Frontdesk', NULL, 1, 1, NULL, NULL, NULL),
(8, 'HK', NULL, 1, 1, NULL, NULL, NULL),
(9, 'Internal Audit', NULL, 1, 1, NULL, NULL, NULL),
(10, 'Maintenance', NULL, 1, 1, NULL, NULL, NULL),
(11, 'Cashier', NULL, 1, 1, NULL, NULL, NULL),
(12, 'Fixed Assets', NULL, 1, 1, NULL, NULL, NULL);

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

--
-- Table structure for table `module_role`
--

CREATE TABLE `module_role` (
  `module_id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `module_wise_tables`
--

CREATE TABLE `module_wise_tables` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `table_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `module_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `module_wise_tables`
--

INSERT INTO `module_wise_tables` (`id`, `table_name`, `module_id`, `status`, `created_at`, `updated_at`) VALUES
(1, 'accounts_heads', 1, 1, NULL, NULL),
(2, 'admin_accounthead', 1, 1, NULL, NULL),
(3, 'invoice_types', 1, 1, NULL, NULL),
(4, 'invoice_parameters', 1, 1, NULL, NULL),
(5, 'types', 1, 1, NULL, NULL),
(6, 'settings', 1, 1, NULL, NULL),
(7, 'groups', 1, 1, NULL, NULL),
(8, 'vendors', 1, 1, NULL, NULL),
(9, 'product_settings', 1, 1, NULL, NULL),
(10, 'color_sizes', 1, 1, NULL, NULL),
(11, 'customers', 1, 1, NULL, NULL),
(12, 'product_categories', 1, 1, NULL, NULL),
(13, 'brands', 1, 1, NULL, NULL),
(14, 'products', 1, 1, NULL, NULL),
(15, 'card_grades', 1, 1, NULL, NULL),
(16, 'card_members', 1, 1, NULL, NULL),
(17, 'cash_banks', 1, 1, NULL, NULL),
(18, 'initial_accounts_set_ups', 1, 1, NULL, NULL),
(19, 'carts', 1, 1, NULL, NULL),
(20, 'product_serial_carts', 1, 1, NULL, NULL),
(21, 'vouchers', 1, 1, NULL, NULL),
(22, 'manage_checkbooks', 1, 1, NULL, NULL),
(23, 'journal_transactions', 1, 1, NULL, NULL),
(24, 'cost_centers', 1, 1, NULL, NULL),
(25, 'store_invoices', 1, 1, NULL, NULL),
(26, 'store_transactions', 1, 1, NULL, NULL),
(27, 'store_serial_carts', 1, 1, NULL, NULL),
(28, 'store_product_promotions', 1, 1, NULL, NULL),
(29, 'cheque_details', 1, 1, NULL, NULL),
(30, 'invoice_transportations', 1, 1, NULL, NULL),
(31, 'recipes', 1, 1, NULL, NULL),
(32, 'reciperawproducts', 1, 1, NULL, NULL),
(33, 'indents', 1, 1, NULL, NULL),
(34, 'indentdetails', 1, 1, NULL, NULL),
(35, 'fgstore_invoices', 1, 1, NULL, NULL),
(36, 'fgstore_transactions', 1, 1, NULL, NULL),
(37, 'order_carts', 1, 1, NULL, NULL),
(38, 'requisitions', 1, 1, NULL, NULL),
(39, 'requisition_details', 1, 1, NULL, NULL),
(40, 'quotations', 1, 1, NULL, NULL),
(41, 'quotation_details', 1, 1, NULL, NULL),
(42, 'actions', 1, 1, NULL, NULL),
(43, 'steps', 1, 1, NULL, NULL),
(44, 'action_step', 1, 1, NULL, NULL),
(45, 'role_mappings', 1, 1, NULL, NULL),
(46, 'costcenter_mappings', 1, 1, NULL, NULL),
(47, 'approvals', 1, 1, NULL, NULL),
(48, 'stock_ledgers', 1, 1, NULL, NULL),
(49, 'party_wise_product_prices', 1, 1, NULL, NULL),
(50, 'currencies', 1, 1, NULL, NULL),
(51, 'order_invoices', 1, 1, NULL, NULL),
(52, 'product_groups', 1, 1, NULL, NULL),
(53, 'purchase_orders', 1, 1, NULL, NULL),
(54, 'po_details', 1, 1, NULL, NULL),
(55, 'cake_orders', 1, 1, NULL, NULL),
(56, 'cake_order_details', 1, 1, NULL, NULL),
(57, 'cake_carts', 1, 1, NULL, NULL),
(58, 'units', 1, 1, NULL, NULL),
(59, 'step_settings', 1, 1, NULL, NULL),
(60, 'quick_accesses', 1, 1, NULL, NULL),
(61, 'admin_costcenter', 1, 1, NULL, NULL);

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

--
-- Table structure for table `order_carts`
--

CREATE TABLE `order_carts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `type` tinyint(1) NOT NULL DEFAULT 0,
  `group` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=>all',
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `quantity` double NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `order_details`
--

CREATE TABLE `order_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `transaction_type` int(11) DEFAULT NULL COMMENT 'P-1, PR-2, S-3, SR-4, Adj in-5, Adj Out-6, Damage-7',
  `remarks` int(11) DEFAULT NULL COMMENT 'P-1, PR-2, S-3, SR-4, Adj in-5, Adj Out-6, Damage-7',
  `approve_status` int(11) DEFAULT 1 COMMENT '0=stand by/ 1= Panding/ 2=Approve',
  `autocode_before_bill` int(11) DEFAULT NULL,
  `dr_cr` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `transaction_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_invoice_id` bigint(20) UNSIGNED DEFAULT NULL,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_qty` double NOT NULL DEFAULT 0,
  `allocated_qty` double NOT NULL DEFAULT 0,
  `unit_qty` double NOT NULL DEFAULT 1,
  `quantity` double NOT NULL,
  `price` double DEFAULT NULL,
  `order_price` double DEFAULT NULL,
  `dc_price` double(8,2) NOT NULL DEFAULT 0.00,
  `avg_price` double NOT NULL DEFAULT 0,
  `ref_invoice` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `promotion_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` timestamp NULL DEFAULT NULL,
  `cost_center_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `order_invoices`
--

CREATE TABLE `order_invoices` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `transaction_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `shop_id` bigint(20) UNSIGNED DEFAULT NULL,
  `special` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'special = 1 normal =0',
  `group` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '0=>all, rest= accgroup',
  `invoice_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `ref_invoice` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `net_total` double NOT NULL DEFAULT 0,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` timestamp NULL DEFAULT NULL,
  `approve_status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '0=stand by, 1=Panding, 2=Approve',
  `delivery_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=Panding,1=>REJECTED 2=DELEVERED',
  `cost_center_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `party_wise_product_prices`
--

CREATE TABLE `party_wise_product_prices` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `type` tinyint(4) NOT NULL COMMENT '1=vendor, 2=customer',
  `product_id` int(10) UNSIGNED NOT NULL,
  `party_id` bigint(20) UNSIGNED NOT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `start_range` int(11) DEFAULT NULL COMMENT 'start quantity range ',
  `end_range` int(11) DEFAULT NULL COMMENT 'end quantity range ',
  `price` double NOT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `password_resets`
--

CREATE TABLE `password_resets` (
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `pay_departments`
--

CREATE TABLE `pay_departments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `parent_dept` int(11) NOT NULL DEFAULT 0,
  `name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=active,2=Inactive',
  `attendance_type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=auto attendance,2=manual attendance',
  `user_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `ware_id` int(11) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `pay_weekend_holidays`
--

CREATE TABLE `pay_weekend_holidays` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `policy` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `weekend` int(11) NOT NULL,
  `type` tinyint(4) NOT NULL COMMENT 'full =1 half =2',
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Active =1 Inactive =2',
  `user_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `ware_id` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pay_weekend_holidays`
--

INSERT INTO `pay_weekend_holidays` (`id`, `policy`, `weekend`, `type`, `status`, `user_id`, `ware_id`, `created_at`, `updated_at`) VALUES
(1, 'weekend', 5, 1, 1, 0, 4, NULL, NULL);

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

--
-- Table structure for table `permissions`
--

CREATE TABLE `permissions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `code` bigint(20) UNSIGNED DEFAULT 1 COMMENT 'this field is used to combine group',
  `sorting_index` bigint(20) UNSIGNED DEFAULT NULL,
  `task` bigint(20) UNSIGNED DEFAULT NULL,
  `parent_id` int(4) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `route_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `group_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `module_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `type` tinyint(1) NOT NULL COMMENT '1=show,hide=2',
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `permissions`
--

INSERT INTO `permissions` (`id`, `code`, `sorting_index`, `task`, `parent_id`, `name`, `route_name`, `group_name`, `module_id`, `status`, `type`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, NULL, NULL, 5, NULL, 'HEALTHCHECK', 'ignition.healthCheck', 'ignition', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(2, 13, 13001, 5, NULL, 'EXECUTESOLUTION', 'ignition.executeSolution', 'accounts_report', 5, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(3, 12, 12010, 5, NULL, 'SHAREREPORT', 'ignition.shareReport', 'voucher', 5, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(4, 10, 10010, 5, NULL, 'SCRIPTS', 'ignition.scripts', 'supply', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(5, 5, 5000, 0, NULL, 'STYLES', 'ignition.styles', 'inventory_report', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(6, NULL, NULL, 5, NULL, 'HOME', 'home', 'default', 1, 0, 2, 1, NULL, NULL, NULL, NULL, NULL),
(7, 1, 10101, 5, NULL, 'LOGIN', 'admin.login', 'user', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(8, 1, 10102, 5, NULL, 'LOGIN ATTEMPT', 'admin.login_attempt', 'user', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(9, 1, 10103, 2, NULL, 'REGISTER UPDATE', 'admin.register_update', 'user', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(10, NULL, NULL, 5, NULL, 'REGISTER UPDATE STATUS', 'admin.register_update_status', 'admin', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(11, NULL, NULL, 5, NULL, 'PROFILE', 'admin.profile', 'admin', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(12, 1, 1010, 0, NULL, 'user-management', 'admin.register_index', 'user', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(13, 1, 10103, 1, NULL, 'REGISTER STORE', 'admin.register_store', 'user', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(14, NULL, NULL, 6, NULL, 'LOGOUT', 'admin.logout', 'admin', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(15, NULL, NULL, 5, NULL, 'PERMISSION SYNC', 'default.permission_sync', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(16, NULL, NULL, 6, NULL, 'WRITE PERMISSION', 'default.write_permission', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(17, 1, NULL, 0, NULL, 'INDEX', 'stepsettings.index', 'step_settings', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(18, 1, NULL, 2, NULL, 'STORE', 'stepsettings.store', 'step_settings', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(19, 1, NULL, 3, NULL, 'EDIT', 'stepsettings.edit', 'step_settings', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(20, NULL, NULL, 0, NULL, 'INDEX', 'quickaccess.index', 'quickaccess', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(21, NULL, NULL, 2, NULL, 'STORE', 'quickaccess.store', 'quickaccess', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(22, NULL, NULL, 3, NULL, 'EDIT', 'quickaccess.edit', 'quickaccess', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(23, NULL, NULL, 0, NULL, 'INDEX', 'dashboard.index', 'dashboard', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(24, 2, 2010, 0, NULL, 'INDEX', 'branch.index', 'branch', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(25, 2, NULL, 1, NULL, 'STORE', 'branch.store', 'branch', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(26, 2, NULL, 2, NULL, 'EDIT', 'branch.edit', 'branch', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(27, 2, NULL, 5, NULL, 'GETALLBRANCH', 'branch.getAllBranch', 'branch', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(28, 2, NULL, 5, NULL, 'CHANGESTATUS', 'branch.changeStatus', 'branch', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(29, 2, 2011, 0, NULL, 'INDEX', 'warehouse.index', 'warehouse', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(30, 2, NULL, 1, NULL, 'STORE', 'warehouse.store', 'warehouse', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(31, 2, NULL, 2, NULL, 'EDIT', 'warehouse.edit', 'warehouse', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(32, 2, NULL, 5, NULL, 'CHANGESTATUS', 'warehouse.changeStatus', 'warehouse', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(33, NULL, NULL, 6, NULL, 'SETTINGS', 'company.settings', 'company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(34, NULL, NULL, 2, NULL, 'STORE', 'company.store', 'company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(35, 2, 2012, 0, NULL, 'list', 'store.index', 'store', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(36, 2, NULL, 1, NULL, 'STORE', 'store.store', 'store', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(37, 2, NULL, 2, NULL, 'EDIT', 'store.edit', 'store', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(38, 2, NULL, 5, NULL, 'CHANGESTATUS', 'store.changeStatus', 'store', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(39, NULL, NULL, 0, NULL, 'INDEX', 'module.index', 'module', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(40, NULL, NULL, 1, NULL, 'STORE', 'module.store', 'module', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(41, 1, 1021, 0, NULL, 'list', 'role.index', 'role', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(42, 1, 1020, 1, NULL, 'new', 'role.create', 'role', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(43, 1, 1020, 2, NULL, 'EDIT', 'role.edit', 'role', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(44, 1, 10202, 1, NULL, 'STORE', 'role.store', 'role', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(45, 1, 10203, 2, NULL, 'UPDATE', 'role.update', 'role', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(46, 1, 10204, 3, NULL, 'DESTROY', 'role.destroy', 'role', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(47, 1, 1031, 0, NULL, 'list', 'permission.index', 'permission', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(48, 1, 1030, 1, NULL, 'new', 'permission.create', 'permission', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(49, 1, 1030, 2, NULL, 'EDIT', 'permission.edit', 'permission', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(50, 1, 10301, 1, NULL, 'STORE', 'permission.store', 'permission', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(51, 1, 10302, 2, NULL, 'UPDATE', 'permission.update', 'permission', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(52, 1, 10303, 3, NULL, 'DESTROY', 'permission.destroy', 'permission', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(53, NULL, NULL, 5, NULL, 'PERMISSION BY SUBMODULE', 'default.permission_by_submodule', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(54, NULL, NULL, 5, NULL, 'SET ACTIVE WAREHOUSE', 'default.set_active_warehouse', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(55, NULL, NULL, 5, NULL, 'SET ACTIVE STORE', 'default.set_active_store', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(56, NULL, NULL, 5, NULL, 'SET SIDE BAR', 'default.set_side_bar', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(57, NULL, NULL, 5, NULL, 'SET CONFIG FILE', 'default.set_config_file', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(58, NULL, NULL, 0, NULL, 'INDEX', 'costcenter.index', 'costcenter', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(59, NULL, NULL, 2, NULL, 'STORE', 'costcenter.store', 'costcenter', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(60, NULL, NULL, 3, NULL, 'EDIT', 'costcenter.edit', 'costcenter', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(61, 1, 14012, 0, NULL, 'INDEX', 'role_mapping.index', 'role_mapping', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(62, 1, 14012, 1, NULL, 'CREATE', 'role_mapping.create', 'role_mapping', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(63, 1, 14012, 1, NULL, 'STORE', 'role_mapping.store', 'role_mapping', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(64, 1, 14012, 2, NULL, 'EDIT', 'role_mapping.edit', 'role_mapping', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(65, NULL, NULL, 4, NULL, 'UPDATE', 'role_mapping.update', 'role_mapping', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(66, 1, 14012, 5, NULL, 'UPDATE APPROVAL LOG', 'role_mapping.update_approval_log', 'role_mapping', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(67, NULL, NULL, 0, NULL, 'INDEX', 'costcenter_mapping.index', 'costcenter_mapping', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(68, NULL, NULL, 1, NULL, 'CREATE', 'costcenter_mapping.create', 'costcenter_mapping', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(69, NULL, NULL, 2, NULL, 'STORE', 'costcenter_mapping.store', 'costcenter_mapping', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(70, NULL, NULL, 3, NULL, 'EDIT', 'costcenter_mapping.edit', 'costcenter_mapping', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(71, NULL, NULL, 4, NULL, 'UPDATE', 'costcenter_mapping.update', 'costcenter_mapping', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(72, NULL, NULL, 5, NULL, 'UPDATE APPROVAL LOG', 'costcenter_mapping.update_approval_log', 'costcenter_mapping', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(73, NULL, NULL, 5, NULL, 'CHECK APPROVALS', 'costcenter_mapping.check_approvals', 'costcenter_mapping', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(74, NULL, NULL, 5, NULL, 'BILL', 'mail.bill', 'mail', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(75, 6, 6001, 5, NULL, 'LOGIN', 'customer.login', 'Showroom', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(76, NULL, NULL, 5, NULL, 'CUSTOM LOGOUT', 'custom_logout', 'default', 1, 0, 2, 1, NULL, NULL, NULL, NULL, NULL),
(77, 6, 60002, 5, NULL, 'LOGIN ATTEMPT', 'customer.login_attempt', 'Showroom', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(78, 6, 60003, 2, NULL, 'EDIT', 'customer.edit', 'Showroom', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(79, 6, 60004, 2, NULL, 'UPDATE', 'customer.update', 'Showroom', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(80, 8, NULL, 0, NULL, 'SHORT STOCK LIST', 'prepurchase.short_stock_list', 'requisition', 2, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(81, 8, 14012, 0, NULL, 'REQUISITION INDEX', 'prepurchase.requisition_index', 'requisition', 2, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(82, 8, NULL, 1, NULL, 'REQUISITION CREATE', 'prepurchase.requisition_create', 'requisition', 2, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(83, 8, NULL, 5, NULL, 'REQUISITION STORE', 'prepurchase.requisition_store', 'requisition', 2, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(84, 8, 14012, 0, NULL, 'COMPARATIVE STATEMENT', 'prepurchase.comparative_statement', 'quotation', 2, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(85, 8, 14012, 0, NULL, 'QUOTATION INDEX', 'prepurchase.quotation_index', 'quotation', 2, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(86, 8, 14012, 1, NULL, 'QUOTATION CREATE', 'prepurchase.quotation_create', 'quotation', 2, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(87, 8, 14012, 5, NULL, 'QUOTATION STORE', 'prepurchase.quotation_store', 'quotation', 2, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(88, 8, 14012, 0, NULL, 'PURCHASE ORDER INDEX', 'prepurchase.po_index', 'purchase_order', 2, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(89, 8, 14012, 1, NULL, 'PURCHASE ORDER CREATE', 'prepurchase.po_create', 'purchase_order', 2, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(90, 8, 14012, 5, NULL, 'PURCHASE ORDER STORE', 'prepurchase.po_store', 'purchase_order', 2, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(91, 8, 14012, 4, NULL, 'PRINT', 'prepurchase.print', 'purchase_order', 2, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(92, 8, 14012, 2, NULL, 'EDIT', 'prepurchase.edit', 'purchase_order', 2, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(93, 8, 14012, 2, NULL, 'EDIT', 'prepurchase.update', 'purchase_order', 2, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(94, NULL, NULL, 1, NULL, 'CREATE', 'po-by-vendor.create', 'po-by-vendor', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(95, NULL, NULL, 2, NULL, 'STORE', 'po-by-vendor.store', 'po-by-vendor', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(96, NULL, NULL, 6, NULL, 'COSTING CREATE', 'pre_sells.costing_create', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(97, NULL, NULL, 6, NULL, 'COSTING SEARCH', 'pre_sells.costing_search', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(98, NULL, NULL, 6, NULL, 'COSTING INDEX', 'pre_sells.costing_index', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(99, NULL, NULL, 6, NULL, 'COSTING STORE', 'pre_sells.costing_store', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(100, NULL, NULL, 6, NULL, 'QUOTATION INDEX', 'pre_sells.quotation_index', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(101, NULL, NULL, 6, NULL, 'QUOTATION CREATE', 'pre_sells.quotation_create', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(102, NULL, NULL, 6, NULL, 'QUOTATION STORE', 'pre_sells.quotation_store', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(103, NULL, NULL, 6, NULL, 'QUOTATION EDIT', 'pre_sells.quotation_edit', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(104, NULL, NULL, 6, NULL, 'QUOTATION PRINT', 'pre_sells.quotation_print', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(105, NULL, NULL, 6, NULL, 'QUOTATION MAIL', 'pre_sells.quotation_mail', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(106, NULL, NULL, 6, NULL, 'WO INDEX', 'pre_sells.wo_index', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(107, NULL, NULL, 6, NULL, 'WO CREATE', 'pre_sells.wo_create', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(108, NULL, NULL, 6, NULL, 'WO STORE', 'pre_sells.wo_store', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(109, NULL, NULL, 6, NULL, 'WO PRINT', 'pre_sells.wo_print', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(110, NULL, NULL, 6, NULL, 'REPORTS', 'invoice-parameter.reports', 'invoice-parameter', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(111, NULL, NULL, 6, NULL, 'REPORTS UPDATE', 'invoice-parameter.reports_update', 'invoice-parameter', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(112, 2, 2050, 0, NULL, 'list', 'invoice-parameter.index', 'invoice-parameter', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(113, NULL, NULL, 5, NULL, 'UPDATEPRINTHTML', 'invoice-parameter.updatePrintHtml', 'invoice-parameter', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(114, NULL, NULL, 5, NULL, 'SETTINGS', 'invoice-parameter.settings', 'invoice-parameter', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(115, 2, NULL, 2, NULL, 'UPDATE', 'invoice-parameter.update', 'invoice-parameter', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(116, NULL, NULL, 0, NULL, 'INDEX', 'shop.index', 'shop', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(117, NULL, NULL, 2, NULL, 'STORE', 'shop.store', 'shop', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(118, NULL, NULL, 3, NULL, 'EDIT', 'shop.edit', 'shop', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(119, NULL, NULL, 0, NULL, 'INDEX', 'officer.index', 'officer', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(120, NULL, NULL, 2, NULL, 'STORE', 'officer.store', 'officer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(121, NULL, NULL, 3, NULL, 'EDIT', 'officer.edit', 'officer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(122, NULL, NULL, 6, NULL, 'LEVEL INDEX', 'officer.level_index', 'officer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(123, 2, 2020, 0, NULL, 'list', 'color-size.index', 'color-size', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(124, 2, NULL, 1, NULL, 'STORE', 'color-size.store', 'color-size', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(125, 2, NULL, 2, NULL, 'EDIT', 'color-size.edit', 'color-size', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(126, 2, NULL, 5, NULL, 'COLORSIZE', 'color-size.colorSize', 'color-size', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(127, 2, NULL, 5, NULL, 'CHILDBYID', 'color-size.childById', 'color-size', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(128, 2, 2040, 0, NULL, 'setting', 'product-setting.index', 'product-setting', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(129, 2, NULL, 2, NULL, 'UPDATE', 'product-setting.update', 'product-setting', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(130, 3, 3011, 0, NULL, 'list', 'product-category.index', 'product-category', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(131, 3, NULL, 1, NULL, 'STORE', 'product-category.store', 'product-category', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(132, 3, NULL, 2, NULL, 'EDIT', 'product-category.edit', 'product-category', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(133, 3, NULL, 5, NULL, 'CHANGESTATUS', 'product-category.changeStatus', 'product-category', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(134, 3, NULL, 5, NULL, 'CODEGENERATOR', 'product-category.codeGenerator', 'product-category', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(135, 3, NULL, 5, NULL, 'SUB CATEGORY', 'product-category.sub_category', 'product-category', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(136, 3, 3021, 0, NULL, 'list', 'product.index', 'product', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(137, 3, NULL, 1, NULL, 'STORE', 'product.store', 'product', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(138, 3, 3020, 1, NULL, 'new', 'product.create', 'product', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(139, 14, 14012, 2, NULL, 'EDIT', 'product.edit', 'product', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(140, NULL, NULL, 6, NULL, 'CHANGE-STATUS', 'product.change-status', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(141, 14, 14012, 5, NULL, 'PRODUCT FILTER', 'api.product.product-filter', 'api.product', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(142, 14, 14012, 5, NULL, 'CREATE TEXTBOX', 'api.product.createTextbox', 'api.product', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(143, 14, 14012, 5, NULL, 'ProductDD', 'api.product.ProductDD', 'api.product', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(144, NULL, NULL, 6, NULL, 'BARCODE', 'api.product.barcode', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(145, 14, 14012, 5, NULL, 'LIVE SEARCH', 'api.product.liveSearch', 'api.product', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(146, NULL, NULL, 5, NULL, 'EXCEL', 'dashboard.excel', 'dashboard', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(147, NULL, NULL, 6, NULL, 'EXCEL-STORE', 'dashboard.excel-store', 'dashboard', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(148, NULL, NULL, 6, NULL, 'STOCK-AVG', 'product.stock-avg', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(149, NULL, NULL, 6, NULL, 'STOCK-AVG-DETAILS', 'product.stock-avg-details', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(150, 3, 14013, 0, NULL, 'VENDOR wise PRICE list', 'partywise-product-price.vendor-price', 'Party wise price', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(151, 3, 14012, 0, NULL, 'CUSTOMER wise PRICE list', 'partywise-product-price.customer-price', 'Party wise price', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(152, 3, 14012, 1, NULL, 'VENDOR wise PRICE add', 'partywise-product-price.createVendorPrice', 'Party wise price', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(153, 3, 14013, 1, NULL, 'Customer wise price add', 'partywise-product-price.createCustomerPrice', 'Party wise price', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(154, 3, 14012, 1, NULL, 'STORE VENDOR PRICE', 'partywise-product-price.store-vendor-price', 'Party wise price', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(155, 3, 14012, 1, NULL, 'STORE CUSTOMER PRICE', 'partywise-product-price.store-customer-price', 'Party wise price', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(156, 3, 14012, 2, NULL, 'EDIT VENDOR PRICE', 'partywise-product-price.edit-vendor-price', 'Party wise price', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(157, 14, 14012, 5, NULL, 'GET', 'partywise-product-price.get-price', 'api', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(158, NULL, NULL, 5, NULL, 'EDIT-PARTY-WISE-PRICE', 'partywise-product-price.edit-party-wise-price', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(159, NULL, NULL, 5, NULL, 'UPDATE-PARTY-WISE-PRICE', 'partywise-product-price.update-party-wise-price', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(160, NULL, NULL, 5, NULL, 'UPDATE-INSTANT-PARTYWISEPRICE', 'partywise-product-price.update-instant-partywiseprice', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(161, NULL, NULL, 5, NULL, 'FILTER-PARTY-PRICE', 'partywise-product-price.filter-party-price', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(162, 3, 3040, 0, NULL, 'INDEX', 'cart.index', 'cart', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(163, 3, NULL, 1, NULL, 'STORE', 'cart.store', 'cart', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(164, 3, NULL, 2, NULL, 'EDIT', 'cart.edit', 'cart', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(165, 3, NULL, 5, NULL, 'CONFIRMCART', 'cart.confirmCart', 'cart', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(166, 3, NULL, 5, NULL, 'PRODUCT-SERIAL', 'cart.product-serial', 'cart', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(167, 3, NULL, 5, NULL, 'VENDOR-CART', 'cart.vendor-cart', 'cart', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(168, 2, NULL, 5, NULL, 'COLORSIZEDD', 'color-size.colorSizeDD', 'color-size', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(169, 3, NULL, 1, NULL, 'STORE', 'product-serial-cart.store', 'product-serial-cart', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(170, 3, NULL, 2, NULL, 'EDIT', 'product-serial-cart.edit', 'product-serial-cart', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(171, 3, 3030, 0, NULL, 'list', 'store-product-promotion.index', 'store-product-promotion', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(172, 3, NULL, 1, NULL, 'STORE', 'store-product-promotion.store', 'store-product-promotion', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(173, 3, NULL, 2, NULL, 'EDIT', 'store-product-promotion.edit', 'store-product-promotion', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(174, 3, NULL, 5, NULL, 'FILTER', 'store-product-promotion.filter', 'store-product-promotion', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(175, NULL, NULL, 6, NULL, 'LIVESEARCH', 'api.invoice.liveSearch', 'invoice', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(176, NULL, NULL, 2, NULL, 'EDIT', 'store-transaction.edit', 'store-transaction', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(177, NULL, NULL, 2, NULL, 'UPDATE', 'store-transaction.update', 'store-transaction', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(178, 14, 14012, 2, NULL, 'EDIT', 'fg-store-transaction.edit', 'fg-store-transaction', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(179, 14, 14012, 2, NULL, 'UPDATE', 'fg-store-transaction.update', 'fg-store-transaction', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(180, 4, 4011, 0, NULL, 'list', 'purchase.index', 'purchase', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(181, 4, 4010, 1, NULL, 'new', 'purchase.create', 'purchase', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(182, 4, 4012, 1, NULL, 'return', 'purchase.return', 'purchase Return', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(183, 4, NULL, 2, NULL, 'EDIT', 'purchase.edit', 'purchase', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(184, NULL, NULL, 3, NULL, 'EDIT', 'purchase-return.edit', 'purchase-return', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(185, 4, NULL, 2, NULL, 'UPDATE', 'purchase.update', 'purchase', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(186, 4, NULL, 1, NULL, 'STORE', 'purchase.store', 'purchase', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(187, 14, 14012, 1, NULL, 'STORE', 'purchase-return.store', 'purchase-return', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(188, 4, NULL, 5, NULL, 'FILTER', 'purchase.filter', 'purchase', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(189, 4, NULL, 5, NULL, 'FILTER', 'purchase.filter-grn', 'purchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(190, 4, NULL, 5, NULL, 'INVOICE', 'purchase.invoice', 'purchase', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(191, 4, NULL, 5, NULL, 'INVOICE-TRANSACTION', 'purchase.invoice-transaction', 'purchase', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(192, 4, NULL, 5, NULL, 'AVAIL-QTY', 'purchase.avail-qty', 'purchase', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(193, 14, 14012, 4, NULL, 'PRINT', 'purchase.print', 'purchase', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(194, NULL, NULL, 6, NULL, 'CREATE-TEXTBOX', 'store-serial-cart.create-textbox', 'store-serial-cart', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(195, NULL, NULL, 6, NULL, 'CHECK-SERIAL-NO', 'store-serial-cart.check-serial-no', 'store-serial-cart', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(196, 4, 4021, 0, NULL, 'INDEX', 'sell.index', 'sell', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(197, 4, 4020, 1, NULL, 'CREATE', 'sell.create', 'sell', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(198, 4, 4022, 1, NULL, 'RETURN', 'sell.return', 'sell Return', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(199, 14, 14012, 1, NULL, 'STORE', 'sell.store', 'sell', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(200, NULL, NULL, 2, NULL, 'STORE', 'sell-return.store', 'sell-return', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(201, 4, NULL, 2, NULL, 'EDIT', 'sell.edit', 'sell', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(202, NULL, NULL, 3, NULL, 'EDIT', 'sell-return.edit', 'sell-return', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(203, 14, 14012, 2, NULL, 'UPDATE', 'sell.update', 'sell', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(204, NULL, NULL, 5, NULL, 'FILTER', 'sell.filter', 'sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(205, 14, 14012, 5, NULL, 'INVOICE TRANSECTION', 'sell.invoice-transaction', 'sell', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(206, 14, 14012, 5, NULL, 'AVAIL QTY', 'sell.avail-qty', 'sell', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(207, 14, 14012, 4, NULL, 'PRINT', 'sell.print', 'sell', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(208, NULL, NULL, 1, NULL, 'CREATE', 'sell-pos.create', 'sell-pos', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(209, NULL, NULL, 2, NULL, 'STORE', 'sell-pos.store', 'sell-pos', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(210, NULL, NULL, 1, NULL, 'CREATE', 'quick-sell.create', 'quick-sell', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(211, NULL, NULL, 1, NULL, 'CREATE', 'distribution-sell.create', 'distribution-sell', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(212, NULL, NULL, 3, NULL, 'EDIT', 'distribution-sell.edit', 'distribution-sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(213, NULL, NULL, 2, NULL, 'STORE', 'distribution-sell.store', 'distribution-sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(214, NULL, NULL, 4, NULL, 'UPDATE', 'distribution-sell.update', 'distribution-sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(215, NULL, NULL, 6, NULL, 'PRINT', 'distribution-sell.print', 'distribution-sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(216, NULL, NULL, 0, NULL, 'INDEX', 'purchase-contract.index', 'purchase-contract', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(217, NULL, NULL, 1, NULL, 'CREATE', 'purchase-contract.create', 'purchase-contract', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(218, NULL, NULL, 2, NULL, 'STORE', 'purchase-contract.store', 'purchase-contract', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(219, NULL, NULL, 3, NULL, 'EDIT', 'purchase-contract.edit', 'purchase-contract', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(220, NULL, NULL, 4, NULL, 'UPDATE', 'purchase-contract.update', 'purchase-contract', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(221, NULL, NULL, 0, NULL, 'INDEX', 'sales-contract.index', 'sales-contract', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(222, NULL, NULL, 1, NULL, 'CREATE', 'sales-contract.create', 'sales-contract', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(223, NULL, NULL, 2, NULL, 'STORE', 'sales-contract.store', 'sales-contract', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(224, NULL, NULL, 3, NULL, 'EDIT', 'sales-contract.edit', 'sales-contract', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(225, NULL, NULL, 4, NULL, 'UPDATE', 'sales-contract.update', 'sales-contract', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(226, 4, 4020, 1, NULL, 'CREATE', 'delivery.create', 'delivery', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(227, 4, 4020, 1, NULL, 'CREATE', 'delivery.add', 'delivery', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(228, 14, 14012, 1, NULL, 'STORE', 'delivery.store', 'delivery', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(229, NULL, NULL, 5, NULL, 'ORDER-LIST', 'delivery.order-list', 'delivery', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(230, NULL, NULL, 5, NULL, 'ORDER-TRANSACTION', 'delivery.order-transaction', 'delivery', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(231, 4, 4031, 0, NULL, 'INDEX', 'issue.index', 'issue', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(232, 4, 4030, 1, NULL, 'CREATE', 'issue.create', 'issue', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(233, 4, 4032, 5, NULL, 'RETURN', 'issue.return', 'issue', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(234, 14, 14012, 1, NULL, 'STORE', 'issue.store', 'issue', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(235, 14, 14012, 1, NULL, 'ISSUE RETURN STORE', 'issue-return.store', 'issue', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(236, 4, NULL, 2, NULL, 'EDIT', 'issue.edit', 'issue', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(237, NULL, NULL, 3, NULL, 'EDIT', 'issue-return.edit', 'issue-return', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(238, 14, 14012, 2, NULL, 'UPDATE', 'issue.update', 'issue', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(239, NULL, NULL, 5, NULL, 'ISSUE-FILTER', 'issue-filter', 'default', 1, 0, 2, 1, NULL, NULL, NULL, NULL, NULL),
(240, 4, NULL, 5, NULL, 'ISSUE-PRODUCT-DATA', 'issue.issue-product-data', 'issue', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(241, 14, 14012, 4, NULL, 'PRINT', 'issue.print', 'issue', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(242, 4, 14014, 7, NULL, 'DISTRIBUTION List', 'issue.distribution-index', 'issue', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(243, 4, 14013, 7, NULL, 'DISTRIBUTION', 'issue.distribution', 'issue', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(244, 4, NULL, 7, NULL, 'DISTRIBUTION-STORE', 'issue.distribution-store', 'issue', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(245, NULL, NULL, 6, NULL, 'DISTRIBUTION-FILTER', 'issue.distribution-filter', 'issue', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(246, 4, NULL, 7, NULL, 'DISTRIBUTION-REPORT', 'issue.distribution-report', 'issue', 3, 2, 2, 1, NULL, NULL, NULL, NULL, NULL),
(247, 4, 4051, 0, NULL, 'INDEX', 'adjustment.index', 'adjustment', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(248, 4, 4050, 1, NULL, 'CREATE', 'adjustment.create', 'adjustment', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(249, 14, 14012, 1, NULL, 'STORE', 'adjustment.store', 'adjustment', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(250, 4, NULL, 2, NULL, 'EDIT', 'adjustment.edit', 'adjustment', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(251, 14, 14012, 2, NULL, 'UPDATE', 'adjustment.update', 'adjustment', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(252, 14, 14012, 4, NULL, 'PRINT', 'adjustment.print', 'adjustment', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(253, 4, 4050, 1, NULL, 'IN OUT', 'adjustment.in_out', 'adjustment', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(254, NULL, NULL, 6, NULL, 'IN OUT STORE', 'adjustment.in_out_store', 'adjustment', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(255, NULL, NULL, 6, NULL, 'IN OUT UPDATE', 'adjustment.in_out_update', 'adjustment', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(256, 14, 14010, 1, NULL, 'CREATE', 'opening.create', 'opening', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(257, 14, 14012, 1, NULL, 'STORE', 'opening.store', 'opening', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(258, 14, 14012, 5, NULL, 'PRINT', 'opening.print', 'purchase', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(259, 9, NULL, 0, NULL, 'INDEX', 'production.index', 'production', 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(260, 9, 14012, 1, NULL, 'CREATE', 'production.create', 'production', 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(261, 9, 14010, 1, NULL, 'CREATE', 'production.add', 'production', 4, 2, 1, 1, NULL, NULL, NULL, NULL, NULL),
(262, 9, NULL, 3, NULL, 'EDIT', 'production.edit', 'production', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(263, NULL, NULL, 4, NULL, 'UPDATE', 'production.update', 'production', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(264, 9, 14012, 1, NULL, 'STORE', 'production.store', 'production', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(265, 9, 14012, 4, NULL, 'PRINT', 'production.print', 'production', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(266, NULL, NULL, 6, NULL, 'GET-CHEQUE-DUE', 'api.get-cheque-due', 'api', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(267, NULL, NULL, 6, NULL, 'CHEQUE-DUE-COL-STORE', 'api.cheque-due-col-store', 'api', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(268, NULL, NULL, 0, NULL, 'INDEX', 'manage-type.index', 'manage-type', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(269, NULL, NULL, 1, NULL, 'CREATE', 'add-type.create', 'add-type', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(270, NULL, NULL, 1, NULL, 'STORE', 'save-type.store', 'save-type', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(271, 9, 9011, 0, NULL, 'INDEX', 'recipe.index', 'recipe', 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(272, 9, 9010, 1, NULL, 'CREATE', 'recipe.create', 'recipe', 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(273, 14, 14012, 4, NULL, 'PRINT', 'recipe.print', 'recipe', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(274, 9, NULL, 1, NULL, 'STORE', 'recipe.store', 'recipe', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(275, 9, NULL, 2, NULL, 'UPDATE', 'recipe.update', 'recipe', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(276, 9, NULL, 5, NULL, 'RECIPE SEARCH', 'recipe.recipe_search', 'recipe', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(277, 4, 4041, 0, NULL, 'INDEX', 'store_transfer.index', 'store_transfer', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(278, 4, 4040, 1, NULL, 'CREATE', 'store_transfer.create', 'store_transfer', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(279, 14, 14012, 4, NULL, 'PRINT', 'store_transfer.print', 'store_transfer', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(280, 4, NULL, 1, NULL, 'STORE', 'store_transfer.store', 'store_transfer', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(281, 4, NULL, 2, NULL, 'UPDATE', 'store_transfer.update', 'store_transfer', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(282, 4, NULL, 5, NULL, 'REQUEST TO SUBMIT', 'store_transfer.request_to_submit', 'store_transfer', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(283, 9, 4021, 0, NULL, 'INDEX', 'indent.index', 'indent', 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(284, 9, 4020, 1, NULL, 'CREATE', 'indent.create', 'indent', 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(285, NULL, NULL, 6, NULL, 'SELF CREATE', 'indent.self_create', 'indent', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(286, 14, 14012, 4, NULL, 'PRINT', 'indent.print', 'indent.print', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(287, 9, NULL, 5, NULL, 'REQUEST TO SUBMIT', 'indent.request_to_submit', 'indent', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(288, 9, NULL, 1, NULL, 'STORE', 'indent.store', 'indent', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(289, 9, NULL, 2, NULL, 'UPDATE', 'indent.update', 'indent', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(290, 5, 5001, 7, NULL, 'STOCK-SUMMERY-QTY', 'reports.stock-summery-qty', 'inventory_report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(291, NULL, NULL, 6, NULL, 'NEW-STOCK-SUMMERY-QTY', 'reports.new-stock-summery-qty', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(292, 5, 5001, 7, NULL, 'STOCK-SUMMERY-VALUE', 'reports.stock-summery-value', 'inventory_report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(293, NULL, NULL, 5, NULL, 'STOCK-SUMMERY-REPORT', 'api.stock-summery-report', 'api', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(294, 5, 5023, 7, NULL, 'SUPPLY STOCK SUMMERY', 'reports.supply-stock-summery', 'inventory_report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(295, 14, 14012, 5, NULL, 'SUPPLY STOCK SUMMERY REPORT', 'api.supply-stock-summery-report', 'api', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(296, 5, 50023, 7, NULL, 'PRODUCT LEDGER', 'reports.product-ledger', 'inventory_report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(297, 14, 14012, 5, NULL, 'PRODUCT LEDGER REPORT', 'api.product-ledger-report', 'api', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(298, 5, 5001, 7, NULL, 'indent-vs-issue', 'reports.indent-issue', 'inventory_report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(299, 14, 14012, 5, NULL, 'INDENT ISSUE REPORT', 'api.indent-issue-report', 'api', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(300, 5, 50023, 7, NULL, 'FG INDENT ISSUE', 'reports.fg-indent-issue', 'inventory_report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(301, 14, 14012, 5, NULL, 'FG INDENT ISSUE REPORT', 'api.fg-indent-issue-report', 'api', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(302, 3, 5001, 5, NULL, 'Product report', 'reports.product', 'product', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(303, NULL, NULL, 5, NULL, 'PRODUCT-REPORT', 'api.product-report', 'api', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(304, 5, NULL, 7, NULL, 'DAILY-REPORT', 'reports.daily-report', 'inventory_report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(305, NULL, NULL, 6, NULL, 'DAILY-REPORT-FILTER', 'reports.daily-report-filter', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(306, NULL, NULL, 6, NULL, 'MIS-REPORT', 'reports.mis-report', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(307, NULL, NULL, 6, NULL, 'MIS-REPORT-FILTER', 'reports.mis-report-filter', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(308, NULL, NULL, 6, NULL, 'SALES-BY-SALESMAN-REPORT', 'reports.sales-by-salesman-report', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(309, NULL, NULL, 6, NULL, 'SALES-BY-SALESMAN-REPORT-FILTER', 'reports.sales-by-salesman-report-filter', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(310, NULL, NULL, 6, NULL, 'OUTLET-REPORT', 'reports.outlet-report', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(311, NULL, NULL, 6, NULL, 'OUTLET-REPORT-FILTER', 'reports.outlet-report-filter', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(312, NULL, NULL, 6, NULL, 'INVOICE-PROFIT-REPORT', 'reports.invoice-profit-report', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(313, NULL, NULL, 6, NULL, 'INVOICE-PROFIT-REPORT-FILTER', 'reports.invoice-profit-report-filter', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(314, NULL, NULL, 0, NULL, 'INDEX', 'barcode.index', 'barcode', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(315, NULL, NULL, 0, NULL, 'INDEX', 'db.index', 'db', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(316, NULL, NULL, 5, NULL, 'DESTROY', 'db.destroy', 'db', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(317, 7, 7011, 0, NULL, 'INDEX', 'vendor.index', 'vendor', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(318, 7, 7010, 1, NULL, 'CREATE', 'vendor.create', 'vendor', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(319, 7, NULL, 1, NULL, 'STORE', 'vendor.store', 'vendor', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(320, NULL, NULL, 4, NULL, 'UPDATE', 'vendor.update', 'vendor', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(321, NULL, NULL, 3, NULL, 'EDIT', 'vendor.edit', 'vendor', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(322, 7, NULL, 5, NULL, 'LIVESEARCH', 'api.vendor.liveSearch', 'vendor', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(323, NULL, NULL, 0, NULL, 'INDEX', 'type.index', 'type', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(324, NULL, NULL, 1, NULL, 'CREATE', 'add-setting.create', 'add-setting', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(325, NULL, NULL, 1, NULL, 'STORE', 'save-setting.store', 'save-setting', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(326, NULL, NULL, 2, NULL, 'EDIT', 'edit-setting.edit', 'edit-setting', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(327, NULL, NULL, 2, NULL, 'UPDATE', 'update-setting.update', 'update-setting', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(328, NULL, NULL, 0, NULL, 'INDEX', 'manage-group.index', 'manage-group', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(329, NULL, NULL, 1, NULL, 'CREATE', 'save-group.create', 'save-group', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(330, NULL, NULL, 2, NULL, 'EDIT', 'edit-group.edit', 'edit-group', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(331, NULL, NULL, 2, NULL, 'UPDATE', 'update-group.update', 'update-group', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(332, 6, 6011, 0, NULL, 'INDEX', 'customer.index', 'Showroom', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(333, 6, 6010, 1, NULL, 'CREATE', 'customer.create', 'Showroom', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(334, 6, 60005, 1, NULL, 'STORE', 'customer.store', 'Showroom', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(335, 6, NULL, 5, NULL, 'LIVESEARCH', 'api.customer.liveSearch', 'Showroom', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(336, NULL, NULL, 6, NULL, 'FILTER', 'customer.filter', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(337, NULL, NULL, 6, NULL, 'CHANGE-STATUS', 'customer.change-status', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(338, NULL, NULL, 1, NULL, 'STORE', 'save-brand.store', 'save-brand', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(339, 2, 2030, 0, NULL, 'INDEX', 'manage-brand.index', 'manage-brand', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(340, NULL, NULL, 2, NULL, 'EDIT', 'edit-brand.edit', 'edit-brand', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(341, NULL, NULL, 2, NULL, 'UPDATE', 'update-brand.update', 'update-brand', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(342, 2, 14012, 0, NULL, 'CURRENCY', 'currency.index', 'currency', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(343, 2, 14012, 1, NULL, 'CURRENCY STORE', 'currency.store', 'currency', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(344, 2, 14012, 2, NULL, 'CURRENCY EDIT', 'currency.edit', 'currency', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(345, 6, NULL, 1, NULL, 'CREATE', 'save-cartgrade.create', 'save-cartgrade', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(346, 6, 6020, 0, NULL, 'INDEX', 'manage-cardgrade.index', 'manage-cardgrade', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(347, NULL, NULL, 2, NULL, 'EDIT', 'edit-cardgrade.edit', 'edit-cardgrade', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(348, NULL, NULL, 2, NULL, 'UPDATE', 'update-cartgrade.update', 'update-cartgrade', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(349, 6, 6030, 1, NULL, 'CREATE', 'save-cardmember.create', 'save-cardmember', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(350, 6, 6031, 0, NULL, 'INDEX', 'manage-cardmember.index', 'manage-cardmember', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(351, NULL, NULL, 2, NULL, 'EDIT', 'edit-card-member.edit', 'edit-card-member', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(352, NULL, NULL, 2, NULL, 'UPDATE', 'update-cardmember.update', 'update-cardmember', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(353, 11, 11040, 0, NULL, 'INDEX', 'manage-checkbook.index', 'manage-checkbook', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(354, NULL, 11041, 1, NULL, 'STORE', 'save-check-book.store', 'save-check-book', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(355, NULL, NULL, 5, NULL, 'SEARCH', 'cheque_book.search', 'cheque_book', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(356, 10, 10011, 4, NULL, 'ALLOCATION', 'order.allocation', 'supply', 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(357, 10, 14013, 5, NULL, 'STORE ALLOCATION', 'order.store_allocation', 'supply', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(358, 10, 14013, 5, NULL, 'MASS ALLOCATION STORE', 'order.mass_allocation_store', 'supply', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(359, 10, 10013, 4, NULL, 'ORDER LIST', 'order.delivery_list', 'supply', 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(360, 10, 1, 0, NULL, 'order-return-list', 'order_back.delivery_list', 'supply', 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(361, 10, 14013, 5, NULL, 'DELIVERY STORE', 'order.delivery_store', 'supply', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(362, 14, 14012, 2, NULL, 'EDIT', 'order.edit', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(363, 14, 14012, 4, NULL, 'PRINT', 'order.print', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(364, 14, 14012, 2, NULL, 'UPDATE', 'order.update', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(365, 10, 14012, 5, NULL, 'CAKE LIST', 'order.cake_list', 'supply', 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(366, 14, 14012, 5, NULL, 'CAKE Edit', 'order.cake_edit', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(367, 14, 14012, 5, NULL, 'CAKE Print', 'order.cake_print', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(368, 14, 14012, 5, NULL, 'CAKE UPDATE', 'order.cake_update', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(369, 5, 14013, 7, NULL, 'Order Summery (PCW)', 'order.showroom_wise_product', 'order', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(370, 5, 14013, 7, NULL, 'Order Summery (SW)', 'order.showroom_wise_order', 'order', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(371, 5, NULL, 7, NULL, 'SECTION WISE ORDER REPORT', 'order.section_wise_order', 'Sales-Report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(372, 5, 14013, 7, NULL, 'PRODUCT WISE ORDER', 'order.product_wise_order', 'order', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(373, 5, 14014, 7, NULL, 'SHOWROOM WISE INDIVIDUAL SALES', 'order.showroom_wise_individual_sales', 'Sales-Report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(374, 5, 1212, 7, NULL, 'Sales Summery (SW)', 'order.showroom_wise_sales', 'Sales-Report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(375, NULL, NULL, 6, NULL, 'SALES SUMMERY', 'order.sales_summery', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(376, 5, NULL, 7, NULL, 'SHOWROOM WISE SALES RETURN', 'order.showroom_wise_sales_return', 'Sales-Report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(377, 5, 14012, 7, NULL, 'Sales Summery (PCW)', 'order.showroom_wise_product_sales', 'Sales-Report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(378, 5, 14012, 7, NULL, 'showroom-wise-product-sales-return', 'order.showroom_wise_product_sales_return', 'Sales-Report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(379, 5, 14012, 7, NULL, 'ITEM WISE PRODUCT SALES', 'order.item_wise_product_sales', 'Sales-Report', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(380, NULL, NULL, 5, NULL, 'ChequeNo', 'cheque-no-dd.cheque-no', 'ChequeNo', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(381, NULL, NULL, 0, NULL, 'INDEX', 'item_group.index', 'item_group', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(382, NULL, NULL, 2, NULL, 'STORE', 'item_group.store', 'item_group', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(383, NULL, NULL, 3, NULL, 'EDIT', 'item_group.edit', 'item_group', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(384, 2, NULL, 0, NULL, 'INDEX', 'accounts_group.index', 'accounts_group', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(385, 2, NULL, 2, NULL, 'STORE', 'accounts_group.store', 'accounts_group', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(386, 2, NULL, 3, NULL, 'EDIT', 'accounts_group.edit', 'accounts_group', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(387, NULL, NULL, 6, NULL, 'CART CREATE', 'admin_order.cart_create', 'admin_order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(388, NULL, NULL, 6, NULL, 'CART STORE', 'admin_order.cart_store', 'admin_order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(389, NULL, NULL, 6, NULL, 'CART UPDATE', 'admin_order.cart_update', 'admin_order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(390, NULL, NULL, 1, NULL, 'CREATE', 'admin_order.create', 'admin_order', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(391, NULL, NULL, 2, NULL, 'STORE', 'admin_order.store', 'admin_order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(392, NULL, NULL, 6, NULL, 'CART REMOVE', 'admin_order.cart_remove', 'admin_order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(393, NULL, NULL, 6, NULL, 'LIST', 'admin_order.list', 'admin_order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(394, NULL, NULL, 6, NULL, 'CART CREATE', 'order_back.cart_create', 'order_back', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(395, NULL, NULL, 6, NULL, 'CART STORE', 'admin_order_back.cart_store', 'admin_order_back', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(396, NULL, NULL, 6, NULL, 'CART UPDATE', 'order_back.cart_update', 'order_back', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(397, NULL, NULL, 1, NULL, 'CREATE', 'order_back.create', 'order_back', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(398, NULL, NULL, 2, NULL, 'STORE', 'order_back.store', 'order_back', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(399, 10, NULL, 0, NULL, 'LIST', 'order_back.list', 'supply', 4, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(400, 14, 14012, 5, NULL, 'CAKE ORDER CART CREATE', 'order.cake_cart_create', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(401, 14, 14012, 5, NULL, 'CAKE ORDER CART STORE', 'order.cake_cart_store', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(402, 14, 14012, 5, NULL, 'CAKE ORDER CREATE', 'order.cake_order_create', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(403, 14, 14012, 5, NULL, 'CAKE ORDER CART REMOVE', 'order.cake_cart_remove', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(404, 14, 14012, 5, NULL, 'CAKE ORDER CART UPDATE', 'order.cake_cart_update', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(405, 14, 14012, 5, NULL, 'CAKE ORDER STORE', 'order.cake_order_store', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(406, 14, 14000, 5, NULL, 'CART CREATE', 'order.cart_create', 'order', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(407, 14, 14011, 5, NULL, 'CART STORE', 'order.cart_store', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(408, 14, 14012, 5, NULL, 'UPDATE', 'order.cart_update', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(409, 14, 14010, 1, NULL, 'CREATE', 'order.create', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(410, 14, NULL, 1, NULL, 'STORE', 'order.store', 'order', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(411, 14, NULL, 5, NULL, 'CART REMOVE', 'order.cart_remove', 'order', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(412, 14, 14012, 5, NULL, 'LIST', 'order.list', 'order', 6, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(413, NULL, NULL, 6, NULL, 'CART STORE', 'order_back.cart_store', 'order_back', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(414, 14, 14012, 5, NULL, 'CAKE ORDER LIST', 'order.cake_list_by_customer', 'order', 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(415, NULL, NULL, 6, NULL, 'CLIENT CAKE PRINT', 'order.client_cake_print', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(416, NULL, NULL, 6, NULL, 'PROFILE', 'customer.profile', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(417, NULL, NULL, 6, NULL, 'PROFILE UPDATE', 'customer.profile_update', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(418, NULL, NULL, 6, NULL, 'CLIENT PRINT', 'order.client_print', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(419, NULL, NULL, 6, NULL, 'CLIENT PRINT', 'sell.client_print', 'sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(420, NULL, NULL, 0, NULL, 'INDEX', 'unit.index', 'unit', 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `permissions` (`id`, `code`, `sorting_index`, `task`, `parent_id`, `name`, `route_name`, `group_name`, `module_id`, `status`, `type`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(421, NULL, NULL, 2, NULL, 'STORE', 'unit.store', 'unit', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(422, NULL, NULL, 3, NULL, 'EDIT', 'unit.edit', 'unit', 3, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(423, NULL, NULL, 1, NULL, 'CREATE', 'product_sales_price.create', 'product_sales_price', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(424, NULL, NULL, 2, NULL, 'STORE', 'product_sales_price.store', 'product_sales_price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(425, NULL, NULL, 0, NULL, 'INDEX', 'product_sales_price.index', 'product_sales_price', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(426, NULL, NULL, 4, NULL, 'UPDATE', 'product_sales_price.update', 'product_sales_price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(427, NULL, NULL, 6, NULL, 'CATEGORY PRODUCT', 'product_sales_price.category_product', 'product_sales_price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(428, NULL, NULL, 6, NULL, 'FILTER', 'product_sales_price.filter', 'product_sales_price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(429, NULL, NULL, 0, NULL, 'INDEX', 'charts.index', 'charts', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(430, NULL, NULL, 2, NULL, 'STORE', 'charts.store', 'charts', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(431, NULL, NULL, 3, NULL, 'EDIT', 'charts.edit', 'charts', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(432, 11, 11030, 1, NULL, 'CREATE', 'save-cashbank.create', 'save-cashbank', 5, 1, 2, 1, NULL, NULL, NULL, NULL, '2021-09-19 02:20:13'),
(433, 11, 11031, 0, NULL, 'INDEX', 'manage-cashbank.index', 'manage-cashbank', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(434, NULL, NULL, 2, NULL, 'EDIT', 'edit-cashbank.edit', 'edit-cashbank', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(435, NULL, NULL, 2, NULL, 'UPDATE', 'update-cashbank.update', 'update-cashbank', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(436, NULL, NULL, 5, NULL, 'CASHBANKDD', 'cash-bank-dd.cashBankDD', 'cash-bank-dd', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(437, 11, 11011, 0, NULL, 'INDEX', 'accounts_head.index', 'accounts_head', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(438, 11, 11010, 1, NULL, 'CREATE', 'accounts_head.create', 'accounts_head', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(439, 11, NULL, 1, NULL, 'STORE', 'accounts_head.store', 'accounts_head', 5, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(440, 11, NULL, 2, NULL, 'UPDATE', 'accounts_head.update', 'accounts_head', 5, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(441, 11, 11021, 0, NULL, 'INDEX', 'accounts_settings.index', 'accounts_settings', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(442, 11, 11022, 1, NULL, 'CREATE', 'accounts_settings.create', 'accounts_settings', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(443, 11, NULL, 1, NULL, 'STORE', 'accounts_settings.store', 'accounts_settings', 5, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(444, 11, NULL, 2, NULL, 'UPDATE', 'accounts_settings.update', 'accounts_settings', 5, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(445, 11, NULL, 5, NULL, 'LEDGER SEARCH', 'accounts_settings.ledger_search', 'accounts_settings', 5, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(446, 12, 12010, 5, NULL, 'CASH PAYMENT VOUCHERS', 'voucher.cash_payment_vouchers', 'voucher', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(447, 12, 12013, 5, NULL, 'BANK PAYMENT VOUCHERS', 'voucher.bank_payment_vouchers', 'voucher', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(448, 12, 12012, 5, NULL, 'CASH RECEIVE VOUCHERS', 'voucher.cash_receive_vouchers', 'voucher', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(449, 12, 12014, 5, NULL, 'BANK RECEIVE VOUCHERS', 'voucher.bank_receive_vouchers', 'voucher', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(450, 12, 12015, 5, NULL, 'JOURNAL VOUCHERS', 'voucher.journal_vouchers', 'voucher', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(451, NULL, NULL, 6, NULL, 'BILL', 'voucher.bill', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(452, NULL, NULL, 6, NULL, 'SET PREPARATION DATE', 'voucher.set_preparation_date', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(453, NULL, NULL, 6, NULL, 'ALLOTED CHEQUE LIST', 'voucher.alloted_cheque_list', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(454, NULL, NULL, 6, NULL, 'CHEQUE ALLOTMENT', 'voucher.cheque_allotment', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(455, NULL, NULL, 6, NULL, 'CHEQUE VOUCHER DETAILS', 'voucher.cheque_voucher_details', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(456, NULL, NULL, 6, NULL, 'BANK STATEMENT', 'voucher.bank_statement', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(457, NULL, NULL, 6, NULL, 'CHEQUE STATEMENT', 'voucher.cheque_statement', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(458, NULL, NULL, 6, NULL, 'CHEQUE PRINT', 'voucher.cheque_print', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(459, NULL, NULL, 6, NULL, 'CHEQUE STATUS', 'voucher.cheque_status', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(460, NULL, NULL, 6, NULL, 'CHECK OUT BILL', 'voucher.check_out_bill', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(461, 12, 12001, 5, NULL, 'cash-payment', 'voucher.cash_payment_voucher', 'voucher', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(462, 12, 12002, 5, NULL, 'bank-payment', 'voucher.bank_payment_voucher', 'voucher', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(463, 12, 12003, 5, NULL, 'cash-receive', 'voucher.cash_receive_voucher', 'voucher', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(464, 12, 12004, 5, NULL, 'bank-receive', 'voucher.bank_receive_voucher', 'voucher', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(465, 12, 12005, 5, NULL, 'journal', 'voucher.journal_voucher', 'voucher', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(466, 12, NULL, 5, NULL, 'VOUCHER SEARCH', 'voucher.voucher_search', 'voucher', 5, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(467, 12, NULL, 1, NULL, 'STORE', 'voucher.store', 'voucher', 5, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(468, 12, NULL, 5, NULL, 'VOUCHER DETAILS', 'voucher.voucher_details', 'voucher', 5, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(469, 12, NULL, 5, NULL, 'JOURNAL VOUCHER STORE', 'voucher.journal_voucher_store', 'voucher', 5, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(470, 12, NULL, 5, NULL, 'JOURNAL VOUCHER UPDATE', 'voucher.journal_voucher_update', 'voucher', 5, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(471, NULL, NULL, 5, NULL, 'INVOICE SEARCH', 'voucher.invoice_search', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(472, 12, NULL, 5, NULL, 'VENDOR PAYMENT VOUCHER', 'voucher.vendor_payment_voucher', 'voucher', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(473, 12, NULL, 5, NULL, 'CUSTOMER RECEIVE VOUCHER', 'voucher.customer_receive_voucher', 'voucher', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(474, NULL, NULL, 5, NULL, 'PAYMENT STORE', 'voucher.payment_store', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(475, 13, 13002, 5, NULL, 'CHART OF ACCOUNTS', 'reports.chart_of_accounts', 'accounts_report', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(476, 13, 13003, 5, NULL, 'LEDGER VIEW', 'reports.ledger_view', 'accounts_report', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(477, 13, 13003, 5, NULL, 'Journal Statement', 'reports.journal_view', 'accounts_report', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(478, 13, 13004, 5, NULL, 'GROUP LEDGER VIEW', 'reports.group_ledger_view', 'accounts_report', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(479, NULL, NULL, 5, NULL, 'GROUP LEGDER DETAILS', 'reports.group_legder_details', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(480, 13, 13005, 5, NULL, 'RECEIPT PAYMENT STATEMENT', 'reports.receipt_payment_statement', 'accounts_report', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(481, 13, 13006, 5, NULL, 'TRAIL BALANCE STATEMENT', 'reports.trail_balance_statement', 'accounts_report', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(482, 13, 13007, 5, NULL, 'TRAIL BALANCE GROUP BY', 'reports.trail_balance_group_by', 'accounts_report', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(483, 13, 13008, 5, NULL, 'INCOME STATEMENT', 'reports.income_statement', 'accounts_report', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(484, NULL, NULL, 6, NULL, 'CUSTOM INCOME STATEMENT', 'reports.custom_income_statement', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(485, NULL, NULL, 6, NULL, 'CUSTOM REPORT API', 'reports.custom_report_api', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(486, 13, 13009, 5, NULL, 'BALANCE SHEET', 'reports.balance_sheet', 'accounts_report', 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(522, 101, NULL, 0, NULL, 'Room/Bed Rate List', 'frontdesk.room_rates.index', 'Room/Bed Rate', 7, 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-14 07:02:14'),
(523, 101, NULL, 1, NULL, 'Room/Bed Rate Create', 'frontdesk.room_rates.create', 'Room/Bed Rate', 7, 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-14 06:59:42'),
(524, 101, NULL, 1, NULL, 'STORE', 'frontdesk.room_rates.store', 'Room/Bed Rate', 7, 1, 2, 1, NULL, NULL, NULL, NULL, '2021-09-14 06:59:42'),
(525, 101, NULL, 2, NULL, 'EDIT', 'frontdesk.room_rates.edit', 'Room/Bed Rate', 7, 1, 2, 1, NULL, NULL, NULL, NULL, '2021-09-14 06:59:42'),
(526, 101, NULL, 2, NULL, 'UPDATE', 'frontdesk.room_rates.update', 'Room/Bed Rate', 7, 1, 2, 1, NULL, NULL, NULL, NULL, '2021-09-14 06:59:42'),
(527, 101, NULL, 6, NULL, 'GET ROOM ALLOCATION', 'frontdesk.room_rates.get_room_allocation', 'Room/Bed Rate', 7, 1, 2, 1, NULL, NULL, NULL, NULL, '2021-09-14 06:59:42'),
(528, 101, NULL, 7, NULL, 'Room/Bed Rate Report', 'frontdesk.room_rates.report', 'Room/Bed Rate', 7, 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-14 06:59:42'),
(529, 101, NULL, 5, NULL, 'STATUS', 'frontdesk.room_rates.status', 'Room/Bed Rate', 7, 1, 2, 1, NULL, NULL, NULL, NULL, '2021-09-14 06:59:42'),
(530, 101, NULL, 6, NULL, 'ADVANCE STORE', 'frontdesk.fdvoucher.advance_store', 'fdvoucher', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(531, 101, NULL, 6, NULL, 'ADVANCE RECEIVE', 'frontdesk.fdvoucher.advance_receive', 'fdvoucher', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(532, 101, NULL, 6, NULL, 'AGENT ROOM RATES', 'frontdesk.api.agent_room_rates.index', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(533, 101, 1, 0, NULL, 'Agent Rate List', 'frontdesk.agent_rates.index', 'Agent Rate', 7, 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-14 07:00:34'),
(534, 101, 1, 1, NULL, 'Agent Rate Create', 'frontdesk.agent_rates.create', 'Agent Rate', 7, 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-14 07:00:53'),
(535, 101, NULL, 1, NULL, 'STORE', 'frontdesk.agent_rates.store', 'Agent Rate', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(536, 101, NULL, 2, NULL, 'EDIT', 'frontdesk.agent_rates.edit', 'Agent Rate', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(537, 101, NULL, 2, NULL, 'UPDATE', 'frontdesk.agent_rates.update', 'Agent Rate', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(538, 101, NULL, 7, NULL, 'Agent Rate Report', 'frontdesk.agent_rates.report', 'Agent Rate', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(539, 101, NULL, 6, NULL, 'INFO', 'frontdesk.agent_rates.info', 'Agent Rate', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(540, NULL, NULL, 6, NULL, 'CONTRACT', 'frontdesk.sales.contract', 'sales', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(541, 101, NULL, 0, NULL, 'Room Clean Status', 'frontdesk.room_clean.status', 'Room/Bed Cleaning', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(542, 101, NULL, 6, NULL, 'STATUS', 'frontdesk.room_clean.status.update', 'Room/Bed Cleaning', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(543, 101, NULL, 6, NULL, 'ROOM CLEAN', 'frontdesk.accept.room_clean.status', 'Room/Bed Cleaning', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(544, 101, NULL, 0, NULL, 'Bed Clean Status', 'frontdesk.bed_clean.status', 'Room/Bed Cleaning', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(545, 101, NULL, 6, NULL, 'STATUS', 'frontdesk.bed_clean.status.update', 'Room/Bed Cleaning', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(546, 101, NULL, 6, NULL, 'BED CLEAN', 'frontdesk.accept.bed_clean.status', 'Room/Bed Cleaning', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(547, 101, NULL, 6, NULL, 'API', 'frontdesk.booking.api.create', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(548, 101, NULL, 1, NULL, 'By Room', 'frontdesk.room_booking.create', 'Booking', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(549, 101, NULL, 1, NULL, 'By Bed', 'frontdesk.bed_booking.create', 'Booking', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(550, 101, NULL, 6, NULL, 'ROOM-SEARCH', 'frontdesk.room-search', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(551, 101, NULL, 6, NULL, 'RESV-NO-SEARCH', 'frontdesk.resv-no-search', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(552, 101, NULL, 6, NULL, 'CHECKIN NO SEARCH', 'frontdesk.checkin_no_search', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(553, 101, NULL, 6, NULL, 'PRINT', 'frontdesk.booking.print', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(554, 101, NULL, 0, NULL, 'Booking List', 'frontdesk.booking.reservation.list', 'Booking', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(555, 101, NULL, 2, NULL, 'EDIT', 'frontdesk.booking.edit', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(556, 101, NULL, 6, NULL, 'REQUEST FOR RATE CHANGE', 'frontdesk.booking.request_for_rate_change', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(557, 106, NULL, 0, NULL, 'List', 'frontdesk.booking.reservation.rate_change.list', 'Rate Change', 9, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(558, 106, NULL, 6, NULL, 'RESERVATION', 'frontdesk.booking.reservation.get_booking_details_info', 'Booking Cancel', 9, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(559, 106, NULL, 5, NULL, 'Approve', 'frontdesk.booking.cancel_request.approve', 'Booking Cancel', 9, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(560, 101, NULL, 6, NULL, '', 'frontdesk.', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(561, 101, NULL, 6, NULL, 'RESERVATION', 'frontdesk.booking.reservation.report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(562, 101, NULL, 6, NULL, 'ROOM RESERVATION BY DATE', 'frontdesk.report.room_reservation_by_date', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(563, 101, NULL, 6, NULL, 'ROOM RESERVATION BY DATE PRINT', 'frontdesk.report.room_reservation_by_date_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(564, 101, NULL, 6, NULL, 'ROOM RESERVATION BY RATE', 'frontdesk.report.room_reservation_by_rate', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(565, 101, NULL, 6, NULL, 'ROOM RESERVATION BY RATE PRINT', 'frontdesk.report.room_reservation_by_rate_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(566, 101, NULL, 6, NULL, 'VACANT ROOM SUMMERY', 'frontdesk.report.vacant_room_summery', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(567, 101, NULL, 6, NULL, 'VACANT ROOM SUMMERY PRINT', 'frontdesk.report.vacant_room_summery_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(568, 101, NULL, 6, NULL, 'RESERVATION CANCEL REPORT', 'frontdesk.report.reservation_cancel_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(569, 101, NULL, 6, NULL, 'RESERVATION CANCEL REPORT PRINT', 'frontdesk.report.reservation_cancel_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(570, 101, NULL, 6, NULL, 'CHANGED ROOM BED REPORT', 'frontdesk.report.changed_room_bed_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(571, 101, NULL, 6, NULL, 'CHANGED ROOM BED REPORT PRINT', 'frontdesk.report.changed_room_bed_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(572, 101, NULL, 6, NULL, 'GUEST REPORT', 'frontdesk.report.guest_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(573, 101, NULL, 6, NULL, 'GUEST REPORT PRINT', 'frontdesk.report.guest_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(574, 101, NULL, 6, NULL, 'ROOM REPORT BY AGENT', 'frontdesk.report.room_report_by_agent', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(575, 101, NULL, 6, NULL, 'ROOM REPORT BY AGENT PRINT', 'frontdesk.report.room_report_by_agent_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(576, 101, NULL, 6, NULL, 'VACANT ROOM REPORT', 'frontdesk.report.vacant_room_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(577, 101, NULL, 6, NULL, 'VACANT ROOM REPORT PRINT', 'frontdesk.report.vacant_room_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(578, 101, NULL, 6, NULL, 'ROOM STATUS REPORT', 'frontdesk.report.room_status_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(579, 101, NULL, 6, NULL, 'ROOM STATUS REPORT PRINT', 'frontdesk.report.room_status_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(580, 101, NULL, 6, NULL, 'RESERVATION', 'frontdesk.booking.reservation.resv_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(581, 101, NULL, 6, NULL, 'RESERVATION', 'frontdesk.booking.reservation.resv_report_print_without_rent', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(582, 101, NULL, 6, NULL, 'CHECK IN OUT DETAILS', 'frontdesk.report.check_in_out_details', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(583, 101, NULL, 6, NULL, 'CHECK IN OUT DETAILS PRINT', 'frontdesk.report.check_in_out_details_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(584, 101, NULL, 6, NULL, 'RECEIPT PRINT', 'frontdesk.report.receipt_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(585, 101, NULL, 6, NULL, 'CHECK IN OUT REPORT BY RATE', 'frontdesk.report.check_in_out_report_by_rate', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(586, 101, NULL, 6, NULL, 'CHECK IN OUT REPORT BY RATE PRINT', 'frontdesk.report.check_in_out_report_by_rate_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(587, 101, NULL, 6, NULL, 'CHECK IN WISE DUE REPORT', 'frontdesk.report.check_in_wise_due_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(588, 101, NULL, 6, NULL, 'CHECK IN WISE DUE REPORT PRINT', 'frontdesk.report.check_in_wise_due_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(589, 101, NULL, 6, NULL, 'ROOM REVENUE REPORT', 'frontdesk.report.room_revenue_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(590, 101, NULL, 6, NULL, 'ROOM REVENUE REPORT PRINT', 'frontdesk.report.room_revenue_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(591, 101, NULL, 6, NULL, 'EXPECTED CHECKIN REPORT', 'frontdesk.report.expected_checkin_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(592, 101, NULL, 6, NULL, 'EXPECTED CHECKIN REPORT PRINT', 'frontdesk.report.expected_checkin_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(593, 101, NULL, 6, NULL, 'EXPECTED CHECKOUT REPORT', 'frontdesk.report.expected_checkout_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(594, 101, NULL, 6, NULL, 'EXPECTED CHECKOUT REPORT PRINT', 'frontdesk.report.expected_checkout_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(595, 101, NULL, 6, NULL, 'ROOM STATUS REPORT BY DATE', 'frontdesk.report.room_status_report_by_date', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(596, 101, NULL, 6, NULL, 'ROOM STATUS REPORT BY DATE PRINT', 'frontdesk.report.room_status_report_by_date_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(597, 101, NULL, 6, NULL, 'BED STATUS REPORT', 'frontdesk.report.bed_status_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(598, 101, NULL, 6, NULL, 'BED STATUS REPORT PRINT', 'frontdesk.report.bed_status_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(599, 101, NULL, 6, NULL, 'GUEST COMPLAIN LIST', 'frontdesk.report.guest_complain_list', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(600, 101, NULL, 6, NULL, 'GUEST COMPLAIN LIST PRINT', 'frontdesk.report.guest_complain_list_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(601, 101, NULL, 6, NULL, 'GUEST COMPLAIN REPORT', 'frontdesk.report.guest_complain_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(602, 101, NULL, 6, NULL, 'GUEST COMPLAIN REPORT PRINT', 'frontdesk.report.guest_complain_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(603, 101, NULL, 6, NULL, 'OCCUPIED ROOM REPORT', 'frontdesk.report.occupied_room_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(604, 101, NULL, 6, NULL, 'OCCUPIED ROOM REPORT PRINT', 'frontdesk.report.occupied_room_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(605, 101, NULL, 6, NULL, 'VACANT BED REPORT', 'frontdesk.report.vacant_bed_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(606, 101, NULL, 6, NULL, 'VACANT BED REPORT PRINT', 'frontdesk.report.vacant_bed_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(607, 101, NULL, 6, NULL, 'DEBIT AGING REPORT', 'frontdesk.report.debit_aging_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(608, 101, NULL, 6, NULL, 'DEBIT AGING REPORT PRINT', 'frontdesk.report.debit_aging_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(609, 101, NULL, 6, NULL, 'ACCOUNT STATEMENT DETAILS', 'frontdesk.report.account_statement_details', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(610, 101, NULL, 6, NULL, 'ACCOUNT STATEMENT DETAILS PRINT', 'frontdesk.report.account_statement_details_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(611, 101, NULL, 6, NULL, 'CUSTOMER STATEMENT SUMMERY', 'frontdesk.report.customer_statement_summery', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(612, 101, NULL, 6, NULL, 'CUSTOMER STATEMENT SUMMERY PRINT', 'frontdesk.report.customer_statement_summery_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(613, 101, NULL, 6, NULL, 'DAILY BILL BOOK SUMMERY', 'frontdesk.report.daily_bill_book_summery', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(614, 101, NULL, 6, NULL, 'DAILY BILL BOOK SUMMERY PRINT', 'frontdesk.report.daily_bill_book_summery_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(615, 101, NULL, 6, NULL, 'VOUCHER WISE AGENT RECEIVE REPORT', 'frontdesk.report.voucher_wise_agent_receive_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(616, 101, NULL, 6, NULL, 'VOUCHER WISE AGENT RECEIVE REPORT PRINT', 'frontdesk.report.voucher_wise_agent_receive_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(617, 101, NULL, 6, NULL, 'AGENT BALANCE SUMMERY', 'frontdesk.report.agent_balance_summery', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(618, 101, NULL, 6, NULL, 'AGENT BALANCE SUMMERY PRINT', 'frontdesk.report.agent_balance_summery_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(619, 101, NULL, 6, NULL, 'AGENT WISE DUE REPORT', 'frontdesk.report.agent_wise_due_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(620, 101, NULL, 6, NULL, 'AGENT WISE DUE REPORT PRINT', 'frontdesk.report.agent_wise_due_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(621, 101, NULL, 6, NULL, 'AGENT WISE DUE SUMMERY', 'frontdesk.report.agent_wise_due_summery', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(622, 101, NULL, 6, NULL, 'AGENT WISE DUE SUMMERY PRINT', 'frontdesk.report.agent_wise_due_summery_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(623, 101, NULL, 6, NULL, 'FUND TRANSACTION', 'frontdesk.report.fund_transaction', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(624, 101, NULL, 6, NULL, 'RESERVATION', 'frontdesk.booking.reservation.get_booking_info', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(625, 101, NULL, 6, NULL, 'CANCEL REQUEST SEND', 'frontdesk.booking.cancel_request_send', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(626, 106, NULL, 0, NULL, 'List', 'frontdesk.booking.cancel_request_list', 'Booking Cancel', 9, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(627, 101, NULL, 1, NULL, 'Change Room', 'frontdesk.change.room.view', 'Editing', 7, 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-14 06:50:17'),
(628, 101, NULL, 6, NULL, 'Save', 'frontdesk.change.room.post', 'Editing', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(629, 101, NULL, 1, NULL, 'Change Bed', 'frontdesk.change.bed.view', 'Editing', 7, 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-14 06:50:29'),
(630, 101, NULL, 0, NULL, 'Change Room List', 'frontdesk.change.room.list', 'Editing', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(631, 101, NULL, 0, NULL, 'Change Bed List', 'frontdesk.change.bed.list', 'Editing', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(632, 101, NULL, 1, NULL, 'Direct Checkin By Room', 'frontdesk.checkin.by_room.create', 'Checkin', 7, 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-14 06:42:56'),
(633, 101, NULL, 6, NULL, 'STORE', 'frontdesk.checkin.store', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(634, 101, NULL, 1, NULL, 'Direct Checkin By Bed', 'frontdesk.checkin.by_bed.create', 'Checkin', 7, 1, 1, 1, NULL, NULL, NULL, NULL, '2021-09-14 06:43:43'),
(635, 101, NULL, 0, NULL, 'CheckIn List', 'frontdesk.checkin.list', 'Checkin', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(636, 101, NULL, 5, NULL, 'Checkin From Booking', 'frontdesk.check_in.by_room.from_booking', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(637, 101, NULL, 6, NULL, 'Checkin From Booking', 'frontdesk.checkin_from_booking.store', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(638, 101, NULL, 0, NULL, 'INDEX', 'frontdesk.day_adjust.index', 'day_adjust', 7, 1, 2, 1, NULL, NULL, NULL, NULL, '2021-09-14 06:57:13'),
(639, 101, NULL, 6, NULL, 'STORE', 'frontdesk.day_adjust.store', 'day_adjust', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(640, 101, NULL, 2, NULL, 'EDIT', 'frontdesk.checkin.edit', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(641, 101, NULL, 0, NULL, 'INDEX', 'frontdesk.check_out.index', 'check_out', 7, 1, 2, 1, NULL, NULL, NULL, NULL, '2021-09-14 06:02:43'),
(642, 101, NULL, 6, NULL, 'STORE', 'frontdesk.check_out.store', 'check_out', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(643, 101, NULL, 6, NULL, 'HISTORY', 'frontdesk.reservation.history', 'check_out', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(644, 101, NULL, 6, NULL, 'AGENT-SEARCH', 'frontdesk.agent-search', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(645, 102, NULL, 0, NULL, 'Floor', 'frontdesk.floor.index', 'Floor', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(646, 102, NULL, 1, NULL, 'STORE', 'frontdesk.floor.store', 'Floor', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(647, 102, NULL, 6, NULL, 'SEARCH', 'frontdesk.floor.search', 'Floor', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(648, 102, NULL, 2, NULL, 'EDIT', 'frontdesk.floor.edit', 'Floor', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(649, 102, NULL, 0, NULL, 'Room', 'frontdesk.room.index', 'Room', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(650, 102, NULL, 1, NULL, 'STORE', 'frontdesk.room.store', 'Room', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(651, 102, NULL, 6, NULL, 'FLOORDD', 'frontdesk.room.floordd', 'Room', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(652, 102, NULL, 6, NULL, 'ROOMDD', 'frontdesk.room.roomdd', 'Room', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(653, 102, NULL, 6, NULL, 'SEARCH', 'frontdesk.room.search', 'Room', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(654, 102, NULL, 2, NULL, 'EDIT', 'frontdesk.room.edit', 'Room', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(655, 102, NULL, 0, NULL, 'INDEX', 'frontdesk.bed.index', 'Bed', 1, 1, 2, 1, NULL, NULL, NULL, NULL, '2021-09-14 07:33:22'),
(656, 102, NULL, 1, NULL, 'STORE', 'frontdesk.bed.store', 'Bed', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(657, 102, NULL, 6, NULL, 'FLOOR ROOMDD', 'frontdesk.bed.floor_roomdd', 'Bed', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(658, 102, NULL, 6, NULL, 'SEARCH', 'frontdesk.bed.search', 'Bed', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(659, 102, NULL, 2, NULL, 'EDIT', 'frontdesk.bed.edit', 'Bed', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(660, 102, NULL, 0, NULL, 'Company', 'frontdesk.company.index', 'Company', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(661, 102, NULL, 1, NULL, 'STORE', 'frontdesk.company.store', 'Company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(662, 102, NULL, 2, NULL, 'EDIT', 'frontdesk.company.edit', 'Company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(663, 102, NULL, 0, NULL, 'Sub Company', 'frontdesk.subcompany.index', 'Sub Company', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(664, 102, NULL, 1, NULL, 'STORE', 'frontdesk.subcompany.store', 'Sub Company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(665, 102, NULL, 2, NULL, 'EDIT', 'frontdesk.sub_company.edit', 'Sub Company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(666, 102, NULL, 6, NULL, 'GET-PARENT', 'frontdesk.subcompany.get-parent', 'Sub Company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(671, 101, NULL, 0, NULL, 'List', 'frontdesk.add_charges.index', 'Add Charges', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(672, 101, NULL, 1, NULL, 'Create', 'frontdesk.add_charges.create', 'Add Charges', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(673, 101, NULL, 1, NULL, 'STORE', 'frontdesk.add_charges.store', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(674, 101, NULL, 6, NULL, 'GET', 'frontdesk.add_charges.get', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(675, 101, NULL, 6, NULL, 'FILTER', 'frontdesk.add_charges.filter', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(676, 101, NULL, 6, NULL, 'DATAFILTER', 'frontdesk.add_charges.datafilter', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(677, 101, NULL, 6, NULL, 'EDIT', 'frontdesk.add_charges.edit', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(678, 101, NULL, 2, NULL, 'EDIT CHARGES', 'frontdesk.add_charges.edit_charges', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(679, 101, NULL, 6, NULL, 'UPDATE CHARGES', 'frontdesk.add_charges.update_charges', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(680, 101, NULL, 6, NULL, 'GET AGENT INFO', 'frontdesk.get_agent_info', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(681, 101, NULL, 5, NULL, 'User Amount Handover', 'frontdesk.receipt.user.amount', 'receipt', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(682, 101, NULL, 6, NULL, 'USER', 'frontdesk.receipt.user.amount.transfer', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(683, 101, NULL, 6, NULL, 'ACCEPT HANOVER', 'frontdesk.receipt.accept_hanover', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(684, 101, NULL, 6, NULL, 'REJECT HANOVER', 'frontdesk.receipt.reject_hanover', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(685, 101, NULL, 0, NULL, 'Receive Agent/Local', 'frontdesk.receipt.receive', 'receipt', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(686, 101, NULL, 6, NULL, 'STORE', 'frontdesk.receipt.store', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(687, 101, NULL, 7, NULL, 'Receipt List', 'frontdesk.receipt.list', 'receipt', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(688, 101, NULL, 6, NULL, 'EDIT', 'frontdesk.receipt.edit', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(689, 101, NULL, 6, NULL, 'UPDATE', 'frontdesk.receipt.update', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(690, 101, NULL, 7, NULL, 'Advance Adjust List', 'frontdesk.receipt.advance_adjust_list', 'receipt', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(691, 101, NULL, 6, NULL, 'ADVANCE ADJUST DETAILS', 'frontdesk.receipt.advance_adjust_details', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(692, 101, NULL, 7, NULL, 'Agent Advance List', 'frontdesk.receipt.agent_advance_list', 'receipt', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(693, 101, NULL, 6, NULL, 'AGENT ADVANCE DETAILS', 'frontdesk.receipt.agent_advance_details', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(694, 101, NULL, 0, NULL, 'Payment Voucher', 'frontdesk.payment_voucher', 'Payment', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(695, 101, NULL, 1, NULL, 'CREATE', 'frontdesk.payment_voucher.create', 'Payment', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(696, 101, NULL, 1, NULL, 'STORE', 'frontdesk.payment_voucher.store', 'Payment', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(697, 101, NULL, 5, NULL, 'Cashier Handover', 'frontdesk.cashier.receive', 'Cashier', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(698, 101, NULL, 6, NULL, 'TRANSFER', 'frontdesk.cashier.transfer', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(699, 101, NULL, 6, NULL, 'HANDOVER DETAILS', 'frontdesk.cashier.handover_details', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(700, 101, NULL, 6, NULL, 'ACCEPT', 'frontdesk.cashier.accept', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(701, 101, NULL, 6, NULL, 'REJECT', 'frontdesk.cashier.reject', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(702, 105, NULL, 0, NULL, 'Accept List', 'frontdesk.cashier.accept_list', 'Cashier', 11, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(703, 101, NULL, 6, NULL, 'TRANSFER TO ACCOUNTS', 'frontdesk.cashier.transfer_to_accounts', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(704, 101, NULL, 0, NULL, 'Ledger', 'frontdesk.cashier_ledger.create', 'Cashier', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(705, 101, NULL, 6, NULL, 'STORE', 'frontdesk.cashier_ledger.store', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(706, 101, NULL, 6, NULL, 'EDIT', 'frontdesk.cashier_ledger.edit', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(707, 101, NULL, 6, NULL, 'UPDATE', 'frontdesk.cashier_ledger.update', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(708, 103, NULL, 0, NULL, 'Room Clean Status', 'housekeeping.room_clean.status', 'House Keeping', 8, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(709, 103, NULL, 2, NULL, 'Room Status Update', 'housekeeping.room_clean.status.update', 'House Keeping', 8, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(710, 103, NULL, 0, NULL, 'Bed Clean Status', 'housekeeping.bed_clean.status', 'House Keeping', 8, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(711, 103, NULL, 2, NULL, 'Bed Status Update', 'housekeeping.bed_clean.status.update', 'House Keeping', 8, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(712, 106, NULL, 0, NULL, 'Summary', 'night_audit', 'Night Audit', 9, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(713, 106, NULL, 1, NULL, 'Day Close', 'day_close', 'Day Close', 9, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(714, 106, NULL, 0, NULL, 'Day Close List', 'day_close_list', 'Day Close', 9, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(715, NULL, NULL, 1, NULL, 'CREATE', 'accounts_receivable.sales_contract.create', 'sales_contract', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(716, 104, NULL, 0, NULL, 'Room', 'maintenance.room', 'Maintenance', 10, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(717, 104, NULL, 0, NULL, 'Bed', 'maintenance.bed', 'Maintenance', 10, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(718, NULL, NULL, 6, NULL, 'REQUEST', 'maintenance.indent.request', 'indent', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(719, 104, NULL, 2, NULL, 'UPDATE', 'maintenance.room_maintenance.update', 'Maintenance', 10, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(720, 104, NULL, 6, NULL, 'ROOM', 'maintenance.update.room.status', 'Maintenance', 10, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(721, 106, NULL, 5, NULL, 'Approve', 'frontdesk.rate_change.approve', 'Rate Change', 9, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(722, NULL, NULL, 0, NULL, 'INDEX', 'frontdesk.charges.index', 'charges', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(723, NULL, NULL, 2, NULL, 'STORE', 'frontdesk.charges.store', 'charges', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(724, NULL, NULL, 3, NULL, 'EDIT', 'frontdesk.charges.edit', 'charges', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(725, NULL, NULL, 6, NULL, 'FILTER', 'frontdesk.charges.filter', 'charges', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1452, 107, NULL, 1, NULL, 'CREATE', 'fixed_asset.item.create', 'item', 12, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(1453, 107, NULL, 6, NULL, 'PRODUCT', 'fixed_asset.item.product', 'item', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1454, 107, NULL, 6, NULL, 'PRODUCTINFO', 'fixed_asset.item.productinfo', 'item', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1455, 107, NULL, 1, NULL, 'STORE', 'fixed_asset.item.store', 'item', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1456, 107, NULL, 0, NULL, 'INDEX', 'fixed_asset.item.index', 'item', 12, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(1457, 107, NULL, 2, NULL, 'EDIT', 'fixed_asset.item.edit', 'item', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1458, 107, NULL, 2, NULL, 'UPDATE', 'fixed_asset.item.update', 'item', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1459, 107, NULL, 6, NULL, 'AUTO FACODE', 'fixed_asset.item.auto_facode', 'item', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1460, 107, NULL, 6, NULL, 'REPORT', 'fixed_asset.item.report', 'item', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1461, 107, NULL, 6, NULL, 'REPORT FILTER', 'fixed_asset.item.report_filter', 'item', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1462, 107, NULL, 6, NULL, 'VENDOR INFO', 'fixed_asset.item.vendor_info', 'item', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1463, 107, NULL, 0, NULL, 'INDEX', 'fixed_asset.cost.index', 'cost', 12, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(1464, 107, NULL, 1, NULL, 'STORE', 'fixed_asset.cost.store', 'cost', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1465, 107, NULL, 2, NULL, 'EDIT', 'fixed_asset.cost.edit', 'cost', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1466, 107, NULL, 2, NULL, 'UPDATE', 'fixed_asset.cost.update', 'cost', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1467, 107, NULL, 1, NULL, 'CREATE', 'fixed_asset.adding.create', 'adding', 12, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(1468, 107, NULL, 6, NULL, 'GET DATA', 'fixed_asset.adding.get_data', 'adding', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1469, 107, NULL, 1, NULL, 'STORE', 'fixed_asset.adding.store', 'adding', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1470, 107, NULL, 0, NULL, 'List', 'fixed_asset.adding.index', 'adding', 12, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(1471, 107, NULL, 1, NULL, 'CREATE', 'fixed_asset.disposal.create', 'disposal', 12, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(1472, 107, NULL, 6, NULL, 'GET DATA', 'fixed_asset.disposal.get_data', 'disposal', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1473, 107, NULL, 1, NULL, 'STORE', 'fixed_asset.disposal.store', 'disposal', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1474, 107, NULL, 1, NULL, 'CREATE', 'fixed_asset.movement.create', 'movement', 12, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(1475, 107, NULL, 6, NULL, 'ASSET-TRACK', 'fixed_asset.movement.asset-track', 'movement', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1476, 107, NULL, 1, NULL, 'STORE', 'fixed_asset.movement.store', 'movement', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1477, 107, NULL, 6, NULL, 'REPORT', 'fixed_asset.movement.report', 'movement', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1478, 107, NULL, 6, NULL, 'REPORT RESULT', 'fixed_asset.movement.report_result', 'movement', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1479, 107, NULL, 1, NULL, 'CREATE', 'fixed_asset.depreciation.create', 'depreciation', 12, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(1480, 107, NULL, 2, NULL, 'STORE', 'fixed_asset.depreciation.store', 'depreciation', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1481, 107, NULL, 1, NULL, 'CREATE', 'fixed_asset.adjustmentout.create', 'adjustmentout', 12, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(1482, 107, NULL, 1, NULL, 'STORE', 'fixed_asset.adjustmentout.store', 'adjustmentout', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1484, 107, NULL, 7, NULL, 'DISPOSAL REPORT', 'fixed_asset.report.disposal_report', 'report', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1485, 107, NULL, 7, NULL, 'DISPOSAL REPORT FILTER', 'fixed_asset.report.disposal_report_filter', 'report', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1486, 107, NULL, 7, NULL, 'REPORT SUMMARY', 'fixed_asset.report.report_summary', 'report', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1487, 107, NULL, 7, NULL, 'REPORT SUMMARY FILTER', 'fixed_asset.report.report_summary_filter', 'report', 12, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1489, NULL, NULL, 0, NULL, 'INDEX', 'log.index', 'log', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(1490, NULL, NULL, 6, NULL, 'STATUS UPDATE', 'save-check-book.status_update', 'save-check-book', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1491, NULL, NULL, 6, NULL, 'SET APPROVAL OF BILL', 'voucher.set_approval_of_bill', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1492, NULL, NULL, 6, NULL, 'CHEQUE APPROVAL UPDATE', 'voucher.cheque_approval_update', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1493, NULL, NULL, 6, NULL, 'CHEQUE ALLOTMENT EDIT', 'voucher.cheque_allotment_edit', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1494, NULL, NULL, 6, NULL, 'CASH FLOW STATEMENT', 'reports.cash_flow_statement', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1495, NULL, NULL, 6, NULL, 'COST OF GOODS SOLD STATEMENT', 'reports.cost_of_goods_sold_statement', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1496, NULL, NULL, 6, NULL, 'FIXED ASSET STATEMENT', 'reports.fixed_asset_statement', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1497, NULL, NULL, 6, NULL, 'CAPITAL STATEMENT', 'reports.capital_statement', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1498, NULL, NULL, 6, NULL, 'GENERATE', 'frontdesk.auto_bill.generate', 'auto_bill', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1499, 101, 1, 0, NULL, 'Frontdesk Dashboard', 'frontdesk.fr_dashboard.index', 'dashboard', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(1500, 101, 1, 6, NULL, 'CHECKIN SET', 'frontdesk.fr_dashboard.checkin_set', 'dashboard', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1501, 101, 1, 6, NULL, 'CHECKOUT SET', 'frontdesk.fr_dashboard.checkout_set', 'dashboard', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1502, NULL, NULL, 6, NULL, 'MANAGE ALLOTMENT', 'frontdesk.view.manage_allotment', 'view', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1503, NULL, NULL, 6, NULL, 'MANAGE ALLOTMENT', 'frontdesk.manage_allotment', 'frontdesk', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1504, NULL, NULL, 1, NULL, 'CREATE', 'frontdesk.manage_allotment.create', 'manage_allotment', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(1505, NULL, NULL, 3, NULL, 'EDIT', 'frontdesk.manage_allotment.edit', 'manage_allotment', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1506, NULL, NULL, 4, NULL, 'UPDATE', 'frontdesk.manage_allotment.update', 'manage_allotment', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1507, NULL, NULL, 6, NULL, 'DELETE', 'frontdesk.manage_allotment.delete', 'manage_allotment', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(1508, NULL, NULL, 6, NULL, 'ALLOTMENT', 'frontdesk.show.allotment.by.date', 'show', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `permission_role`
--

CREATE TABLE `permission_role` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `permission_role`
--

INSERT INTO `permission_role` (`permission_id`, `role_id`, `created_at`, `updated_at`) VALUES
(1, 1, NULL, NULL),
(2, 1, NULL, NULL),
(2, 3, NULL, NULL),
(2, 4, NULL, NULL),
(3, 1, NULL, NULL),
(3, 3, NULL, NULL),
(3, 4, NULL, NULL),
(4, 1, NULL, NULL),
(4, 3, NULL, NULL),
(5, 1, NULL, NULL),
(5, 3, NULL, NULL),
(5, 4, NULL, NULL),
(5, 5, NULL, NULL),
(6, 1, NULL, NULL),
(7, 1, NULL, NULL),
(7, 3, NULL, NULL),
(7, 4, NULL, NULL),
(8, 1, NULL, NULL),
(8, 3, NULL, NULL),
(8, 4, NULL, NULL),
(9, 1, NULL, NULL),
(9, 3, NULL, NULL),
(9, 4, NULL, NULL),
(10, 1, NULL, NULL),
(11, 1, NULL, NULL),
(12, 1, NULL, NULL),
(12, 3, NULL, NULL),
(12, 4, NULL, NULL),
(13, 1, NULL, NULL),
(13, 3, NULL, NULL),
(13, 4, NULL, NULL),
(14, 1, NULL, NULL),
(15, 1, NULL, NULL),
(16, 1, NULL, NULL),
(17, 1, NULL, NULL),
(17, 3, NULL, NULL),
(18, 1, NULL, NULL),
(18, 3, NULL, NULL),
(19, 1, NULL, NULL),
(19, 3, NULL, NULL),
(20, 1, NULL, NULL),
(21, 1, NULL, NULL),
(22, 1, NULL, NULL),
(23, 1, NULL, NULL),
(24, 1, NULL, NULL),
(24, 3, NULL, NULL),
(25, 1, NULL, NULL),
(25, 3, NULL, NULL),
(26, 1, NULL, NULL),
(26, 3, NULL, NULL),
(27, 1, NULL, NULL),
(27, 3, NULL, NULL),
(28, 1, NULL, NULL),
(28, 3, NULL, NULL),
(29, 1, NULL, NULL),
(29, 3, NULL, NULL),
(30, 1, NULL, NULL),
(30, 3, NULL, NULL),
(31, 1, NULL, NULL),
(31, 3, NULL, NULL),
(32, 1, NULL, NULL),
(32, 3, NULL, NULL),
(33, 1, NULL, NULL),
(34, 1, NULL, NULL),
(35, 1, NULL, NULL),
(35, 3, NULL, NULL),
(36, 1, NULL, NULL),
(36, 3, NULL, NULL),
(37, 1, NULL, NULL),
(37, 3, NULL, NULL),
(38, 1, NULL, NULL),
(38, 3, NULL, NULL),
(39, 1, NULL, NULL),
(40, 1, NULL, NULL),
(41, 1, NULL, NULL),
(41, 3, NULL, NULL),
(41, 4, NULL, NULL),
(42, 1, NULL, NULL),
(42, 3, NULL, NULL),
(42, 4, NULL, NULL),
(43, 1, NULL, NULL),
(43, 3, NULL, NULL),
(43, 4, NULL, NULL),
(44, 1, NULL, NULL),
(44, 3, NULL, NULL),
(44, 4, NULL, NULL),
(45, 1, NULL, NULL),
(45, 3, NULL, NULL),
(45, 4, NULL, NULL),
(46, 1, NULL, NULL),
(46, 3, NULL, NULL),
(46, 4, NULL, NULL),
(47, 1, NULL, NULL),
(47, 3, NULL, NULL),
(48, 1, NULL, NULL),
(48, 3, NULL, NULL),
(49, 1, NULL, NULL),
(49, 3, NULL, NULL),
(50, 1, NULL, NULL),
(50, 3, NULL, NULL),
(51, 1, NULL, NULL),
(51, 3, NULL, NULL),
(52, 1, NULL, NULL),
(52, 3, NULL, NULL),
(53, 1, NULL, NULL),
(54, 1, NULL, NULL),
(55, 1, NULL, NULL),
(56, 1, NULL, NULL),
(57, 1, NULL, NULL),
(58, 1, NULL, NULL),
(59, 1, NULL, NULL),
(60, 1, NULL, NULL),
(61, 1, NULL, NULL),
(61, 3, NULL, NULL),
(62, 1, NULL, NULL),
(62, 3, NULL, NULL),
(63, 1, NULL, NULL),
(63, 3, NULL, NULL),
(64, 1, NULL, NULL),
(64, 3, NULL, NULL),
(65, 1, NULL, NULL),
(66, 1, NULL, NULL),
(66, 3, NULL, NULL),
(67, 1, NULL, NULL),
(68, 1, NULL, NULL),
(69, 1, NULL, NULL),
(70, 1, NULL, NULL),
(71, 1, NULL, NULL),
(72, 1, NULL, NULL),
(73, 1, NULL, NULL),
(74, 1, NULL, NULL),
(75, 1, NULL, NULL),
(75, 3, NULL, NULL),
(75, 4, NULL, NULL),
(75, 5, NULL, NULL),
(76, 1, NULL, NULL),
(77, 1, NULL, NULL),
(77, 3, NULL, NULL),
(77, 4, NULL, NULL),
(77, 5, NULL, NULL),
(78, 1, NULL, NULL),
(78, 3, NULL, NULL),
(78, 4, NULL, NULL),
(78, 5, NULL, NULL),
(79, 1, NULL, NULL),
(79, 3, NULL, NULL),
(79, 4, NULL, NULL),
(79, 5, NULL, NULL),
(80, 1, NULL, NULL),
(80, 3, NULL, NULL),
(80, 4, NULL, NULL),
(80, 5, NULL, NULL),
(81, 1, NULL, NULL),
(81, 3, NULL, NULL),
(81, 4, NULL, NULL),
(81, 5, NULL, NULL),
(82, 1, NULL, NULL),
(82, 3, NULL, NULL),
(82, 4, NULL, NULL),
(82, 5, NULL, NULL),
(83, 1, NULL, NULL),
(83, 3, NULL, NULL),
(83, 4, NULL, NULL),
(83, 5, NULL, NULL),
(84, 1, NULL, NULL),
(84, 3, NULL, NULL),
(84, 4, NULL, NULL),
(84, 5, NULL, NULL),
(85, 1, NULL, NULL),
(85, 3, NULL, NULL),
(85, 4, NULL, NULL),
(85, 5, NULL, NULL),
(86, 1, NULL, NULL),
(86, 3, NULL, NULL),
(86, 4, NULL, NULL),
(86, 5, NULL, NULL),
(87, 1, NULL, NULL),
(87, 3, NULL, NULL),
(87, 4, NULL, NULL),
(87, 5, NULL, NULL),
(88, 1, NULL, NULL),
(88, 3, NULL, NULL),
(88, 4, NULL, NULL),
(88, 5, NULL, NULL),
(89, 1, NULL, NULL),
(89, 3, NULL, NULL),
(89, 4, NULL, NULL),
(89, 5, NULL, NULL),
(90, 1, NULL, NULL),
(90, 3, NULL, NULL),
(90, 4, NULL, NULL),
(90, 5, NULL, NULL),
(91, 1, NULL, NULL),
(91, 3, NULL, NULL),
(91, 4, NULL, NULL),
(91, 5, NULL, NULL),
(92, 1, NULL, NULL),
(92, 3, NULL, NULL),
(92, 4, NULL, NULL),
(92, 5, NULL, NULL),
(93, 1, NULL, NULL),
(93, 3, NULL, NULL),
(93, 4, NULL, NULL),
(93, 5, NULL, NULL),
(94, 1, NULL, NULL),
(95, 1, NULL, NULL),
(96, 1, NULL, NULL),
(97, 1, NULL, NULL),
(98, 1, NULL, NULL),
(99, 1, NULL, NULL),
(100, 1, NULL, NULL),
(101, 1, NULL, NULL),
(102, 1, NULL, NULL),
(103, 1, NULL, NULL),
(104, 1, NULL, NULL),
(105, 1, NULL, NULL),
(106, 1, NULL, NULL),
(107, 1, NULL, NULL),
(108, 1, NULL, NULL),
(109, 1, NULL, NULL),
(110, 1, NULL, NULL),
(111, 1, NULL, NULL),
(112, 1, NULL, NULL),
(112, 3, NULL, NULL),
(113, 1, NULL, NULL),
(114, 1, NULL, NULL),
(115, 1, NULL, NULL),
(115, 3, NULL, NULL),
(116, 1, NULL, NULL),
(117, 1, NULL, NULL),
(118, 1, NULL, NULL),
(119, 1, NULL, NULL),
(120, 1, NULL, NULL),
(121, 1, NULL, NULL),
(122, 1, NULL, NULL),
(123, 1, NULL, NULL),
(123, 3, NULL, NULL),
(124, 1, NULL, NULL),
(124, 3, NULL, NULL),
(125, 1, NULL, NULL),
(125, 3, NULL, NULL),
(126, 1, NULL, NULL),
(126, 3, NULL, NULL),
(127, 1, NULL, NULL),
(127, 3, NULL, NULL),
(128, 1, NULL, NULL),
(128, 3, NULL, NULL),
(129, 1, NULL, NULL),
(129, 3, NULL, NULL),
(130, 1, NULL, NULL),
(130, 3, NULL, NULL),
(130, 4, NULL, NULL),
(130, 5, NULL, NULL),
(131, 1, NULL, NULL),
(131, 3, NULL, NULL),
(131, 4, NULL, NULL),
(131, 5, NULL, NULL),
(132, 1, NULL, NULL),
(132, 3, NULL, NULL),
(132, 4, NULL, NULL),
(132, 5, NULL, NULL),
(133, 1, NULL, NULL),
(133, 3, NULL, NULL),
(133, 4, NULL, NULL),
(133, 5, NULL, NULL),
(134, 1, NULL, NULL),
(134, 3, NULL, NULL),
(134, 4, NULL, NULL),
(134, 5, NULL, NULL),
(135, 1, NULL, NULL),
(135, 3, NULL, NULL),
(135, 4, NULL, NULL),
(135, 5, NULL, NULL),
(136, 1, NULL, NULL),
(136, 3, NULL, NULL),
(136, 4, NULL, NULL),
(136, 5, NULL, NULL),
(137, 1, NULL, NULL),
(137, 3, NULL, NULL),
(137, 4, NULL, NULL),
(137, 5, NULL, NULL),
(138, 1, NULL, NULL),
(138, 3, NULL, NULL),
(138, 4, NULL, NULL),
(138, 5, NULL, NULL),
(139, 1, NULL, NULL),
(139, 3, NULL, NULL),
(140, 1, NULL, NULL),
(141, 1, NULL, NULL),
(142, 1, NULL, NULL),
(142, 3, NULL, NULL),
(143, 1, NULL, NULL),
(144, 1, NULL, NULL),
(145, 1, NULL, NULL),
(146, 1, NULL, NULL),
(147, 1, NULL, NULL),
(148, 1, NULL, NULL),
(149, 1, NULL, NULL),
(150, 1, NULL, NULL),
(151, 1, NULL, NULL),
(151, 3, NULL, NULL),
(152, 1, NULL, NULL),
(153, 1, NULL, NULL),
(153, 3, NULL, NULL),
(154, 1, NULL, NULL),
(154, 3, NULL, NULL),
(155, 1, NULL, NULL),
(156, 1, NULL, NULL),
(156, 3, NULL, NULL),
(157, 1, NULL, NULL),
(157, 3, NULL, NULL),
(158, 1, NULL, NULL),
(159, 1, NULL, NULL),
(160, 1, NULL, NULL),
(161, 1, NULL, NULL),
(162, 1, NULL, NULL),
(162, 3, NULL, NULL),
(163, 1, NULL, NULL),
(163, 3, NULL, NULL),
(164, 1, NULL, NULL),
(164, 3, NULL, NULL),
(165, 1, NULL, NULL),
(165, 3, NULL, NULL),
(166, 1, NULL, NULL),
(166, 3, NULL, NULL),
(167, 1, NULL, NULL),
(167, 3, NULL, NULL),
(168, 1, NULL, NULL),
(168, 3, NULL, NULL),
(169, 1, NULL, NULL),
(170, 1, NULL, NULL),
(171, 1, NULL, NULL),
(171, 3, NULL, NULL),
(172, 1, NULL, NULL),
(172, 3, NULL, NULL),
(173, 1, NULL, NULL),
(173, 3, NULL, NULL),
(174, 1, NULL, NULL),
(174, 3, NULL, NULL),
(175, 1, NULL, NULL),
(176, 1, NULL, NULL),
(177, 1, NULL, NULL),
(178, 1, NULL, NULL),
(178, 3, NULL, NULL),
(179, 1, NULL, NULL),
(179, 3, NULL, NULL),
(180, 1, NULL, NULL),
(180, 3, NULL, NULL),
(180, 4, NULL, NULL),
(180, 5, NULL, NULL),
(181, 1, NULL, NULL),
(181, 3, NULL, NULL),
(181, 4, NULL, NULL),
(181, 5, NULL, NULL),
(182, 1, NULL, NULL),
(182, 3, NULL, NULL),
(182, 4, NULL, NULL),
(182, 5, NULL, NULL),
(183, 1, NULL, NULL),
(183, 3, NULL, NULL),
(183, 4, NULL, NULL),
(183, 5, NULL, NULL),
(184, 1, NULL, NULL),
(185, 1, NULL, NULL),
(185, 3, NULL, NULL),
(185, 4, NULL, NULL),
(185, 5, NULL, NULL),
(186, 1, NULL, NULL),
(186, 3, NULL, NULL),
(186, 4, NULL, NULL),
(186, 5, NULL, NULL),
(187, 1, NULL, NULL),
(187, 3, NULL, NULL),
(188, 1, NULL, NULL),
(188, 3, NULL, NULL),
(188, 4, NULL, NULL),
(188, 5, NULL, NULL),
(189, 1, NULL, NULL),
(189, 3, NULL, NULL),
(189, 4, NULL, NULL),
(189, 5, NULL, NULL),
(190, 1, NULL, NULL),
(190, 3, NULL, NULL),
(190, 4, NULL, NULL),
(190, 5, NULL, NULL),
(191, 1, NULL, NULL),
(191, 3, NULL, NULL),
(191, 4, NULL, NULL),
(191, 5, NULL, NULL),
(192, 1, NULL, NULL),
(192, 3, NULL, NULL),
(192, 4, NULL, NULL),
(192, 5, NULL, NULL),
(193, 1, NULL, NULL),
(193, 3, NULL, NULL),
(194, 1, NULL, NULL),
(195, 1, NULL, NULL),
(196, 1, NULL, NULL),
(196, 3, NULL, NULL),
(197, 1, NULL, NULL),
(197, 3, NULL, NULL),
(198, 1, NULL, NULL),
(198, 3, NULL, NULL),
(199, 1, NULL, NULL),
(199, 3, NULL, NULL),
(200, 1, NULL, NULL),
(201, 1, NULL, NULL),
(201, 3, NULL, NULL),
(202, 1, NULL, NULL),
(203, 1, NULL, NULL),
(203, 3, NULL, NULL),
(204, 1, NULL, NULL),
(205, 1, NULL, NULL),
(205, 3, NULL, NULL),
(206, 1, NULL, NULL),
(206, 3, NULL, NULL),
(207, 1, NULL, NULL),
(207, 3, NULL, NULL),
(208, 1, NULL, NULL),
(209, 1, NULL, NULL),
(210, 1, NULL, NULL),
(211, 1, NULL, NULL),
(212, 1, NULL, NULL),
(213, 1, NULL, NULL),
(214, 1, NULL, NULL),
(215, 1, NULL, NULL),
(216, 1, NULL, NULL),
(217, 1, NULL, NULL),
(218, 1, NULL, NULL),
(219, 1, NULL, NULL),
(220, 1, NULL, NULL),
(221, 1, NULL, NULL),
(222, 1, NULL, NULL),
(223, 1, NULL, NULL),
(224, 1, NULL, NULL),
(225, 1, NULL, NULL),
(226, 1, NULL, NULL),
(226, 3, NULL, NULL),
(227, 1, NULL, NULL),
(227, 3, NULL, NULL),
(228, 1, NULL, NULL),
(228, 3, NULL, NULL),
(229, 1, NULL, NULL),
(230, 1, NULL, NULL),
(231, 1, NULL, NULL),
(231, 3, NULL, NULL),
(231, 4, NULL, NULL),
(231, 5, NULL, NULL),
(232, 1, NULL, NULL),
(232, 3, NULL, NULL),
(232, 4, NULL, NULL),
(232, 5, NULL, NULL),
(233, 1, NULL, NULL),
(233, 3, NULL, NULL),
(233, 4, NULL, NULL),
(233, 5, NULL, NULL),
(234, 1, NULL, NULL),
(234, 3, NULL, NULL),
(235, 1, NULL, NULL),
(235, 3, NULL, NULL),
(236, 1, NULL, NULL),
(236, 3, NULL, NULL),
(236, 4, NULL, NULL),
(236, 5, NULL, NULL),
(237, 1, NULL, NULL),
(238, 1, NULL, NULL),
(238, 3, NULL, NULL),
(239, 1, NULL, NULL),
(240, 1, NULL, NULL),
(240, 3, NULL, NULL),
(240, 4, NULL, NULL),
(240, 5, NULL, NULL),
(241, 1, NULL, NULL),
(241, 3, NULL, NULL),
(242, 1, NULL, NULL),
(243, 1, NULL, NULL),
(244, 1, NULL, NULL),
(245, 1, NULL, NULL),
(246, 1, NULL, NULL),
(247, 1, NULL, NULL),
(247, 3, NULL, NULL),
(247, 4, NULL, NULL),
(247, 5, NULL, NULL),
(248, 1, NULL, NULL),
(248, 3, NULL, NULL),
(248, 4, NULL, NULL),
(248, 5, NULL, NULL),
(249, 1, NULL, NULL),
(249, 3, NULL, NULL),
(250, 1, NULL, NULL),
(250, 3, NULL, NULL),
(250, 4, NULL, NULL),
(250, 5, NULL, NULL),
(251, 1, NULL, NULL),
(251, 3, NULL, NULL),
(252, 1, NULL, NULL),
(252, 3, NULL, NULL),
(253, 1, NULL, NULL),
(253, 3, NULL, NULL),
(253, 4, NULL, NULL),
(253, 5, NULL, NULL),
(254, 1, NULL, NULL),
(255, 1, NULL, NULL),
(256, 1, NULL, NULL),
(256, 3, NULL, NULL),
(257, 1, NULL, NULL),
(257, 3, NULL, NULL),
(258, 1, NULL, NULL),
(258, 3, NULL, NULL),
(259, 1, NULL, NULL),
(259, 3, NULL, NULL),
(260, 1, NULL, NULL),
(260, 3, NULL, NULL),
(261, 1, NULL, NULL),
(261, 3, NULL, NULL),
(262, 1, NULL, NULL),
(262, 3, NULL, NULL),
(263, 1, NULL, NULL),
(264, 1, NULL, NULL),
(264, 3, NULL, NULL),
(265, 1, NULL, NULL),
(265, 3, NULL, NULL),
(266, 1, NULL, NULL),
(267, 1, NULL, NULL),
(268, 1, NULL, NULL),
(269, 1, NULL, NULL),
(270, 1, NULL, NULL),
(271, 1, NULL, NULL),
(271, 3, NULL, NULL),
(272, 1, NULL, NULL),
(272, 3, NULL, NULL),
(273, 1, NULL, NULL),
(273, 3, NULL, NULL),
(274, 1, NULL, NULL),
(274, 3, NULL, NULL),
(275, 1, NULL, NULL),
(275, 3, NULL, NULL),
(276, 1, NULL, NULL),
(276, 3, NULL, NULL),
(277, 1, NULL, NULL),
(277, 3, NULL, NULL),
(277, 4, NULL, NULL),
(277, 5, NULL, NULL),
(278, 1, NULL, NULL),
(278, 3, NULL, NULL),
(278, 4, NULL, NULL),
(278, 5, NULL, NULL),
(279, 1, NULL, NULL),
(279, 3, NULL, NULL),
(280, 1, NULL, NULL),
(280, 3, NULL, NULL),
(280, 4, NULL, NULL),
(280, 5, NULL, NULL),
(281, 1, NULL, NULL),
(281, 3, NULL, NULL),
(281, 4, NULL, NULL),
(281, 5, NULL, NULL),
(282, 1, NULL, NULL),
(282, 3, NULL, NULL),
(282, 4, NULL, NULL),
(282, 5, NULL, NULL),
(283, 1, NULL, NULL),
(283, 3, NULL, NULL),
(284, 1, NULL, NULL),
(284, 3, NULL, NULL),
(285, 1, NULL, NULL),
(286, 1, NULL, NULL),
(286, 3, NULL, NULL),
(287, 1, NULL, NULL),
(287, 3, NULL, NULL),
(288, 1, NULL, NULL),
(288, 3, NULL, NULL),
(289, 1, NULL, NULL),
(289, 3, NULL, NULL),
(290, 1, NULL, NULL),
(290, 4, NULL, NULL),
(290, 5, NULL, NULL),
(291, 1, NULL, NULL),
(292, 1, NULL, NULL),
(292, 4, NULL, NULL),
(292, 5, NULL, NULL),
(293, 1, NULL, NULL),
(294, 1, NULL, NULL),
(294, 5, NULL, NULL),
(295, 1, NULL, NULL),
(295, 3, NULL, NULL),
(296, 1, NULL, NULL),
(296, 4, NULL, NULL),
(296, 5, NULL, NULL),
(297, 1, NULL, NULL),
(297, 3, NULL, NULL),
(298, 1, NULL, NULL),
(298, 4, NULL, NULL),
(299, 1, NULL, NULL),
(299, 3, NULL, NULL),
(300, 1, NULL, NULL),
(301, 1, NULL, NULL),
(301, 3, NULL, NULL),
(302, 1, NULL, NULL),
(302, 3, NULL, NULL),
(302, 4, NULL, NULL),
(302, 5, NULL, NULL),
(303, 1, NULL, NULL),
(304, 1, NULL, NULL),
(304, 4, NULL, NULL),
(304, 5, NULL, NULL),
(305, 1, NULL, NULL),
(306, 1, NULL, NULL),
(307, 1, NULL, NULL),
(308, 1, NULL, NULL),
(309, 1, NULL, NULL),
(310, 1, NULL, NULL),
(311, 1, NULL, NULL),
(312, 1, NULL, NULL),
(313, 1, NULL, NULL),
(314, 1, NULL, NULL),
(315, 1, NULL, NULL),
(316, 1, NULL, NULL),
(317, 1, NULL, NULL),
(317, 3, NULL, NULL),
(317, 4, NULL, NULL),
(317, 5, NULL, NULL),
(318, 1, NULL, NULL),
(318, 3, NULL, NULL),
(318, 4, NULL, NULL),
(318, 5, NULL, NULL),
(319, 1, NULL, NULL),
(319, 3, NULL, NULL),
(319, 4, NULL, NULL),
(319, 5, NULL, NULL),
(320, 1, NULL, NULL),
(321, 1, NULL, NULL),
(322, 1, NULL, NULL),
(322, 3, NULL, NULL),
(322, 4, NULL, NULL),
(322, 5, NULL, NULL),
(323, 1, NULL, NULL),
(324, 1, NULL, NULL),
(325, 1, NULL, NULL),
(326, 1, NULL, NULL),
(327, 1, NULL, NULL),
(328, 1, NULL, NULL),
(329, 1, NULL, NULL),
(330, 1, NULL, NULL),
(331, 1, NULL, NULL),
(332, 1, NULL, NULL),
(332, 3, NULL, NULL),
(332, 4, NULL, NULL),
(332, 5, NULL, NULL),
(333, 1, NULL, NULL),
(333, 3, NULL, NULL),
(333, 4, NULL, NULL),
(333, 5, NULL, NULL),
(334, 1, NULL, NULL),
(334, 3, NULL, NULL),
(334, 4, NULL, NULL),
(334, 5, NULL, NULL),
(335, 1, NULL, NULL),
(335, 3, NULL, NULL),
(335, 4, NULL, NULL),
(335, 5, NULL, NULL),
(336, 1, NULL, NULL),
(337, 1, NULL, NULL),
(338, 1, NULL, NULL),
(339, 1, NULL, NULL),
(339, 3, NULL, NULL),
(340, 1, NULL, NULL),
(341, 1, NULL, NULL),
(342, 1, NULL, NULL),
(342, 3, NULL, NULL),
(343, 1, NULL, NULL),
(343, 3, NULL, NULL),
(344, 1, NULL, NULL),
(344, 3, NULL, NULL),
(345, 1, NULL, NULL),
(345, 3, NULL, NULL),
(346, 1, NULL, NULL),
(346, 3, NULL, NULL),
(347, 1, NULL, NULL),
(348, 1, NULL, NULL),
(349, 1, NULL, NULL),
(349, 3, NULL, NULL),
(350, 1, NULL, NULL),
(350, 3, NULL, NULL),
(351, 1, NULL, NULL),
(352, 1, NULL, NULL),
(353, 1, NULL, NULL),
(353, 3, NULL, NULL),
(353, 4, NULL, NULL),
(354, 1, NULL, NULL),
(355, 1, NULL, NULL),
(356, 1, NULL, NULL),
(356, 3, NULL, NULL),
(357, 1, NULL, NULL),
(357, 3, NULL, NULL),
(358, 1, NULL, NULL),
(358, 3, NULL, NULL),
(359, 1, NULL, NULL),
(359, 3, NULL, NULL),
(360, 1, NULL, NULL),
(360, 3, NULL, NULL),
(361, 1, NULL, NULL),
(361, 3, NULL, NULL),
(362, 1, NULL, NULL),
(362, 3, NULL, NULL),
(363, 1, NULL, NULL),
(363, 3, NULL, NULL),
(364, 1, NULL, NULL),
(364, 3, NULL, NULL),
(365, 1, NULL, NULL),
(365, 3, NULL, NULL),
(366, 1, NULL, NULL),
(366, 3, NULL, NULL),
(367, 1, NULL, NULL),
(367, 3, NULL, NULL),
(368, 1, NULL, NULL),
(368, 3, NULL, NULL),
(369, 1, NULL, NULL),
(370, 1, NULL, NULL),
(371, 1, NULL, NULL),
(372, 1, NULL, NULL),
(373, 1, NULL, NULL),
(373, 4, NULL, NULL),
(374, 1, NULL, NULL),
(374, 4, NULL, NULL),
(375, 1, NULL, NULL),
(376, 1, NULL, NULL),
(376, 4, NULL, NULL),
(377, 1, NULL, NULL),
(377, 4, NULL, NULL),
(378, 1, NULL, NULL),
(378, 4, NULL, NULL),
(379, 1, NULL, NULL),
(379, 4, NULL, NULL),
(380, 1, NULL, NULL),
(381, 1, NULL, NULL),
(382, 1, NULL, NULL),
(383, 1, NULL, NULL),
(384, 1, NULL, NULL),
(384, 3, NULL, NULL),
(385, 1, NULL, NULL),
(385, 3, NULL, NULL),
(386, 1, NULL, NULL),
(386, 3, NULL, NULL),
(387, 1, NULL, NULL),
(388, 1, NULL, NULL),
(389, 1, NULL, NULL),
(390, 1, NULL, NULL),
(391, 1, NULL, NULL),
(392, 1, NULL, NULL),
(393, 1, NULL, NULL),
(394, 1, NULL, NULL),
(395, 1, NULL, NULL),
(396, 1, NULL, NULL),
(397, 1, NULL, NULL),
(398, 1, NULL, NULL),
(399, 1, NULL, NULL),
(399, 3, NULL, NULL),
(400, 1, NULL, NULL),
(400, 3, NULL, NULL),
(401, 1, NULL, NULL),
(401, 3, NULL, NULL),
(402, 1, NULL, NULL),
(402, 3, NULL, NULL),
(403, 1, NULL, NULL),
(403, 3, NULL, NULL),
(404, 1, NULL, NULL),
(404, 3, NULL, NULL),
(405, 1, NULL, NULL),
(405, 3, NULL, NULL),
(406, 1, NULL, NULL),
(406, 3, NULL, NULL),
(407, 1, NULL, NULL),
(407, 3, NULL, NULL),
(408, 1, NULL, NULL),
(408, 3, NULL, NULL),
(409, 1, NULL, NULL),
(409, 3, NULL, NULL),
(410, 1, NULL, NULL),
(410, 3, NULL, NULL),
(411, 1, NULL, NULL),
(411, 3, NULL, NULL),
(412, 1, NULL, NULL),
(412, 3, NULL, NULL),
(413, 1, NULL, NULL),
(414, 1, NULL, NULL),
(414, 3, NULL, NULL),
(415, 1, NULL, NULL),
(416, 1, NULL, NULL),
(417, 1, NULL, NULL),
(418, 1, NULL, NULL),
(419, 1, NULL, NULL),
(420, 1, NULL, NULL),
(421, 1, NULL, NULL),
(422, 1, NULL, NULL),
(423, 1, NULL, NULL),
(424, 1, NULL, NULL),
(425, 1, NULL, NULL),
(426, 1, NULL, NULL),
(427, 1, NULL, NULL),
(428, 1, NULL, NULL),
(429, 1, NULL, NULL),
(430, 1, NULL, NULL),
(431, 1, NULL, NULL),
(432, 1, NULL, NULL),
(432, 3, NULL, NULL),
(433, 1, NULL, NULL),
(433, 3, NULL, NULL),
(433, 4, NULL, NULL),
(434, 1, NULL, NULL),
(435, 1, NULL, NULL),
(436, 1, NULL, NULL),
(437, 1, NULL, NULL),
(437, 3, NULL, NULL),
(437, 4, NULL, NULL),
(438, 1, NULL, NULL),
(438, 3, NULL, NULL),
(438, 4, NULL, NULL),
(439, 1, NULL, NULL),
(439, 3, NULL, NULL),
(439, 4, NULL, NULL),
(440, 1, NULL, NULL),
(440, 3, NULL, NULL),
(440, 4, NULL, NULL),
(441, 1, NULL, NULL),
(441, 3, NULL, NULL),
(441, 4, NULL, NULL),
(442, 1, NULL, NULL),
(442, 3, NULL, NULL),
(442, 4, NULL, NULL),
(443, 1, NULL, NULL),
(443, 3, NULL, NULL),
(443, 4, NULL, NULL),
(444, 1, NULL, NULL),
(444, 3, NULL, NULL),
(444, 4, NULL, NULL),
(445, 1, NULL, NULL),
(445, 3, NULL, NULL),
(445, 4, NULL, NULL),
(446, 1, NULL, NULL),
(446, 3, NULL, NULL),
(446, 4, NULL, NULL),
(447, 1, NULL, NULL),
(447, 3, NULL, NULL),
(447, 4, NULL, NULL),
(448, 1, NULL, NULL),
(448, 3, NULL, NULL),
(448, 4, NULL, NULL),
(449, 1, NULL, NULL),
(449, 3, NULL, NULL),
(449, 4, NULL, NULL),
(450, 1, NULL, NULL),
(450, 3, NULL, NULL),
(450, 4, NULL, NULL),
(451, 1, NULL, NULL),
(452, 1, NULL, NULL),
(453, 1, NULL, NULL),
(454, 1, NULL, NULL),
(455, 1, NULL, NULL),
(456, 1, NULL, NULL),
(457, 1, NULL, NULL),
(458, 1, NULL, NULL),
(459, 1, NULL, NULL),
(460, 1, NULL, NULL),
(461, 1, NULL, NULL),
(461, 3, NULL, NULL),
(461, 4, NULL, NULL),
(462, 1, NULL, NULL),
(462, 3, NULL, NULL),
(462, 4, NULL, NULL),
(463, 1, NULL, NULL),
(463, 3, NULL, NULL),
(463, 4, NULL, NULL),
(464, 1, NULL, NULL),
(464, 3, NULL, NULL),
(464, 4, NULL, NULL),
(465, 1, NULL, NULL),
(465, 3, NULL, NULL),
(465, 4, NULL, NULL),
(466, 1, NULL, NULL),
(466, 3, NULL, NULL),
(466, 4, NULL, NULL),
(467, 1, NULL, NULL),
(467, 3, NULL, NULL),
(467, 4, NULL, NULL),
(468, 1, NULL, NULL),
(468, 3, NULL, NULL),
(468, 4, NULL, NULL),
(469, 1, NULL, NULL),
(469, 3, NULL, NULL),
(469, 4, NULL, NULL),
(470, 1, NULL, NULL),
(470, 3, NULL, NULL),
(470, 4, NULL, NULL),
(471, 1, NULL, NULL),
(472, 1, NULL, NULL),
(472, 4, NULL, NULL),
(473, 1, NULL, NULL),
(473, 4, NULL, NULL),
(474, 1, NULL, NULL),
(475, 1, NULL, NULL),
(475, 3, NULL, NULL),
(475, 4, NULL, NULL),
(476, 1, NULL, NULL),
(476, 3, NULL, NULL),
(476, 4, NULL, NULL),
(477, 1, NULL, NULL),
(477, 3, NULL, NULL),
(477, 4, NULL, NULL),
(478, 1, NULL, NULL),
(478, 3, NULL, NULL),
(478, 4, NULL, NULL),
(479, 1, NULL, NULL),
(480, 1, NULL, NULL),
(480, 3, NULL, NULL),
(480, 4, NULL, NULL),
(481, 1, NULL, NULL),
(481, 3, NULL, NULL),
(481, 4, NULL, NULL),
(482, 1, NULL, NULL),
(482, 3, NULL, NULL),
(482, 4, NULL, NULL),
(483, 1, NULL, NULL),
(483, 3, NULL, NULL),
(483, 4, NULL, NULL),
(484, 1, NULL, NULL),
(485, 1, NULL, NULL),
(486, 1, NULL, NULL),
(486, 3, NULL, NULL),
(486, 4, NULL, NULL),
(522, 1, NULL, NULL),
(522, 3, NULL, NULL),
(523, 1, NULL, NULL),
(523, 3, NULL, NULL),
(524, 1, NULL, NULL),
(525, 1, NULL, NULL),
(526, 1, NULL, NULL),
(526, 3, NULL, NULL),
(527, 1, NULL, NULL),
(528, 1, NULL, NULL),
(529, 1, NULL, NULL),
(529, 3, NULL, NULL),
(530, 1, NULL, NULL),
(531, 1, NULL, NULL),
(532, 1, NULL, NULL),
(533, 1, NULL, NULL),
(533, 3, NULL, NULL),
(534, 1, NULL, NULL),
(534, 3, NULL, NULL),
(535, 1, NULL, NULL),
(536, 1, NULL, NULL),
(536, 3, NULL, NULL),
(537, 1, NULL, NULL),
(537, 3, NULL, NULL),
(538, 1, NULL, NULL),
(539, 1, NULL, NULL),
(540, 1, NULL, NULL),
(541, 1, NULL, NULL),
(542, 1, NULL, NULL),
(543, 1, NULL, NULL),
(544, 1, NULL, NULL),
(544, 3, NULL, NULL),
(545, 1, NULL, NULL),
(546, 1, NULL, NULL),
(547, 1, NULL, NULL),
(548, 1, NULL, NULL),
(548, 3, NULL, NULL),
(549, 1, NULL, NULL),
(549, 3, NULL, NULL),
(550, 1, NULL, NULL),
(551, 1, NULL, NULL),
(552, 1, NULL, NULL),
(553, 1, NULL, NULL),
(554, 1, NULL, NULL),
(554, 3, NULL, NULL),
(555, 1, NULL, NULL),
(555, 3, NULL, NULL),
(556, 1, NULL, NULL),
(557, 1, NULL, NULL),
(557, 3, NULL, NULL),
(558, 1, NULL, NULL),
(559, 1, NULL, NULL),
(559, 3, NULL, NULL),
(560, 1, NULL, NULL),
(561, 1, NULL, NULL),
(562, 1, NULL, NULL),
(563, 1, NULL, NULL),
(564, 1, NULL, NULL),
(565, 1, NULL, NULL),
(566, 1, NULL, NULL),
(567, 1, NULL, NULL),
(568, 1, NULL, NULL),
(569, 1, NULL, NULL),
(570, 1, NULL, NULL),
(571, 1, NULL, NULL),
(572, 1, NULL, NULL),
(573, 1, NULL, NULL),
(574, 1, NULL, NULL),
(575, 1, NULL, NULL),
(576, 1, NULL, NULL),
(577, 1, NULL, NULL),
(578, 1, NULL, NULL),
(579, 1, NULL, NULL),
(580, 1, NULL, NULL),
(581, 1, NULL, NULL),
(582, 1, NULL, NULL),
(583, 1, NULL, NULL),
(584, 1, NULL, NULL),
(585, 1, NULL, NULL),
(586, 1, NULL, NULL),
(587, 1, NULL, NULL),
(588, 1, NULL, NULL),
(589, 1, NULL, NULL),
(590, 1, NULL, NULL),
(591, 1, NULL, NULL),
(592, 1, NULL, NULL),
(593, 1, NULL, NULL),
(594, 1, NULL, NULL),
(595, 1, NULL, NULL),
(596, 1, NULL, NULL),
(597, 1, NULL, NULL),
(598, 1, NULL, NULL),
(599, 1, NULL, NULL),
(600, 1, NULL, NULL),
(601, 1, NULL, NULL),
(602, 1, NULL, NULL),
(603, 1, NULL, NULL),
(604, 1, NULL, NULL),
(605, 1, NULL, NULL),
(606, 1, NULL, NULL),
(607, 1, NULL, NULL),
(608, 1, NULL, NULL),
(609, 1, NULL, NULL),
(610, 1, NULL, NULL),
(611, 1, NULL, NULL),
(612, 1, NULL, NULL),
(613, 1, NULL, NULL),
(614, 1, NULL, NULL),
(615, 1, NULL, NULL),
(616, 1, NULL, NULL),
(617, 1, NULL, NULL),
(618, 1, NULL, NULL),
(619, 1, NULL, NULL),
(620, 1, NULL, NULL),
(621, 1, NULL, NULL),
(622, 1, NULL, NULL),
(623, 1, NULL, NULL),
(624, 1, NULL, NULL),
(625, 1, NULL, NULL),
(626, 1, NULL, NULL),
(626, 3, NULL, NULL),
(627, 1, NULL, NULL),
(627, 3, NULL, NULL),
(628, 1, NULL, NULL),
(629, 1, NULL, NULL),
(629, 3, NULL, NULL),
(630, 1, NULL, NULL),
(630, 3, NULL, NULL),
(631, 1, NULL, NULL),
(631, 3, NULL, NULL),
(632, 1, NULL, NULL),
(632, 3, NULL, NULL),
(633, 1, NULL, NULL),
(634, 1, NULL, NULL),
(634, 3, NULL, NULL),
(635, 1, NULL, NULL),
(635, 3, NULL, NULL),
(636, 1, NULL, NULL),
(636, 3, NULL, NULL),
(637, 1, NULL, NULL),
(638, 1, NULL, NULL),
(638, 3, NULL, NULL),
(639, 1, NULL, NULL),
(640, 1, NULL, NULL),
(640, 3, NULL, NULL),
(641, 1, NULL, NULL),
(641, 3, NULL, NULL),
(642, 1, NULL, NULL),
(643, 1, NULL, NULL),
(644, 1, NULL, NULL),
(645, 1, NULL, NULL),
(645, 3, NULL, NULL),
(646, 1, NULL, NULL),
(646, 3, NULL, NULL),
(647, 1, NULL, NULL),
(648, 1, NULL, NULL),
(648, 3, NULL, NULL),
(649, 1, NULL, NULL),
(649, 3, NULL, NULL),
(650, 1, NULL, NULL),
(650, 3, NULL, NULL),
(651, 1, NULL, NULL),
(652, 1, NULL, NULL),
(653, 1, NULL, NULL),
(654, 1, NULL, NULL),
(654, 3, NULL, NULL),
(655, 1, NULL, NULL),
(655, 3, NULL, NULL),
(656, 1, NULL, NULL),
(656, 3, NULL, NULL),
(657, 1, NULL, NULL),
(658, 1, NULL, NULL),
(659, 1, NULL, NULL),
(659, 3, NULL, NULL),
(660, 1, NULL, NULL),
(660, 3, NULL, NULL),
(661, 1, NULL, NULL),
(661, 3, NULL, NULL),
(662, 1, NULL, NULL),
(662, 3, NULL, NULL),
(663, 1, NULL, NULL),
(663, 3, NULL, NULL),
(664, 1, NULL, NULL),
(664, 3, NULL, NULL),
(665, 1, NULL, NULL),
(665, 3, NULL, NULL),
(666, 1, NULL, NULL),
(671, 1, NULL, NULL),
(671, 3, NULL, NULL),
(672, 1, NULL, NULL),
(672, 3, NULL, NULL),
(673, 1, NULL, NULL),
(674, 1, NULL, NULL),
(675, 1, NULL, NULL),
(676, 1, NULL, NULL),
(677, 1, NULL, NULL),
(678, 1, NULL, NULL),
(678, 3, NULL, NULL),
(679, 1, NULL, NULL),
(680, 1, NULL, NULL),
(681, 1, NULL, NULL),
(681, 3, NULL, NULL),
(682, 1, NULL, NULL),
(683, 1, NULL, NULL),
(684, 1, NULL, NULL),
(685, 1, NULL, NULL),
(685, 3, NULL, NULL),
(686, 1, NULL, NULL),
(687, 1, NULL, NULL),
(688, 1, NULL, NULL),
(689, 1, NULL, NULL),
(690, 1, NULL, NULL),
(691, 1, NULL, NULL),
(692, 1, NULL, NULL),
(693, 1, NULL, NULL),
(694, 1, NULL, NULL),
(694, 3, NULL, NULL),
(695, 1, NULL, NULL),
(695, 3, NULL, NULL),
(696, 1, NULL, NULL),
(696, 3, NULL, NULL),
(697, 1, NULL, NULL),
(697, 3, NULL, NULL),
(698, 1, NULL, NULL),
(699, 1, NULL, NULL),
(700, 1, NULL, NULL),
(701, 1, NULL, NULL),
(702, 1, NULL, NULL),
(702, 3, NULL, NULL),
(703, 1, NULL, NULL),
(704, 1, NULL, NULL),
(704, 3, NULL, NULL),
(705, 1, NULL, NULL),
(706, 1, NULL, NULL),
(707, 1, NULL, NULL),
(708, 1, NULL, NULL),
(708, 3, NULL, NULL),
(709, 1, NULL, NULL),
(709, 3, NULL, NULL),
(710, 1, NULL, NULL),
(710, 3, NULL, NULL),
(711, 1, NULL, NULL),
(711, 3, NULL, NULL),
(712, 1, NULL, NULL),
(712, 3, NULL, NULL),
(713, 1, NULL, NULL),
(713, 3, NULL, NULL),
(714, 1, NULL, NULL),
(714, 3, NULL, NULL),
(715, 1, NULL, NULL),
(716, 1, NULL, NULL),
(716, 3, NULL, NULL),
(717, 1, NULL, NULL),
(717, 3, NULL, NULL),
(718, 1, NULL, NULL),
(719, 1, NULL, NULL),
(719, 3, NULL, NULL),
(720, 1, NULL, NULL),
(721, 1, NULL, NULL),
(721, 3, NULL, NULL),
(722, 1, NULL, NULL),
(723, 1, NULL, NULL),
(724, 1, NULL, NULL),
(725, 1, NULL, NULL),
(1452, 1, NULL, NULL),
(1452, 3, NULL, NULL),
(1453, 1, NULL, NULL),
(1454, 1, NULL, NULL),
(1455, 1, NULL, NULL),
(1455, 3, NULL, NULL),
(1456, 1, NULL, NULL),
(1456, 3, NULL, NULL),
(1457, 1, NULL, NULL),
(1457, 3, NULL, NULL),
(1458, 1, NULL, NULL),
(1458, 3, NULL, NULL),
(1459, 1, NULL, NULL),
(1460, 1, NULL, NULL),
(1461, 1, NULL, NULL),
(1462, 1, NULL, NULL),
(1463, 1, NULL, NULL),
(1463, 3, NULL, NULL),
(1464, 1, NULL, NULL),
(1464, 3, NULL, NULL),
(1465, 1, NULL, NULL),
(1465, 3, NULL, NULL),
(1466, 1, NULL, NULL),
(1466, 3, NULL, NULL),
(1467, 1, NULL, NULL),
(1467, 3, NULL, NULL),
(1468, 1, NULL, NULL),
(1469, 1, NULL, NULL),
(1469, 3, NULL, NULL),
(1470, 1, NULL, NULL),
(1470, 3, NULL, NULL),
(1471, 1, NULL, NULL),
(1471, 3, NULL, NULL),
(1472, 1, NULL, NULL),
(1473, 1, NULL, NULL),
(1473, 3, NULL, NULL),
(1474, 1, NULL, NULL),
(1474, 3, NULL, NULL),
(1475, 1, NULL, NULL),
(1476, 1, NULL, NULL),
(1476, 3, NULL, NULL),
(1477, 1, NULL, NULL),
(1478, 1, NULL, NULL),
(1479, 1, NULL, NULL),
(1479, 3, NULL, NULL),
(1480, 1, NULL, NULL),
(1480, 3, NULL, NULL),
(1481, 1, NULL, NULL),
(1481, 3, NULL, NULL),
(1482, 1, NULL, NULL),
(1482, 3, NULL, NULL),
(1484, 1, NULL, NULL),
(1485, 1, NULL, NULL),
(1486, 1, NULL, NULL),
(1487, 1, NULL, NULL),
(1489, 1, NULL, NULL),
(1490, 1, NULL, NULL),
(1491, 1, NULL, NULL),
(1492, 1, NULL, NULL),
(1493, 1, NULL, NULL),
(1494, 1, NULL, NULL),
(1495, 1, NULL, NULL),
(1496, 1, NULL, NULL),
(1497, 1, NULL, NULL),
(1498, 1, NULL, NULL),
(1499, 1, NULL, NULL),
(1500, 1, NULL, NULL),
(1501, 1, NULL, NULL),
(1502, 1, NULL, NULL),
(1503, 1, NULL, NULL),
(1504, 1, NULL, NULL),
(1505, 1, NULL, NULL),
(1506, 1, NULL, NULL),
(1507, 1, NULL, NULL),
(1508, 1, NULL, NULL);

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

--
-- Table structure for table `po_details`
--

CREATE TABLE `po_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `purchase_detail_id` bigint(20) UNSIGNED DEFAULT NULL,
  `quotation_detail_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `unit_size` double DEFAULT 1,
  `quotation_qty` double DEFAULT 0,
  `quotation_rate` double DEFAULT 0,
  `quantity` double NOT NULL,
  `rate` double NOT NULL DEFAULT 0,
  `ordered` tinyint(1) NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `po_details`
--

INSERT INTO `po_details` (`id`, `purchase_detail_id`, `quotation_detail_id`, `product_id`, `warehouse_id`, `note`, `unit_size`, `quotation_qty`, `quotation_rate`, `quantity`, `rate`, `ordered`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, NULL, 14, 4, NULL, 1, 100, 100, 100, 100, 0, 1, 1, NULL, NULL, '2021-09-25 06:24:01', NULL, NULL),
(2, 2, NULL, 1, 4, NULL, 1, 5, 10, 5, 10, 0, 1, 2, NULL, NULL, '2021-09-25 06:34:19', NULL, NULL),
(3, 2, NULL, 2, 4, NULL, 1, 4, 10, 4, 10, 0, 1, 2, NULL, NULL, '2021-09-25 06:34:19', NULL, NULL),
(4, 2, NULL, 10, 4, NULL, 1, 2, 10, 2, 10, 0, 1, 2, NULL, NULL, '2021-09-25 06:34:19', NULL, NULL),
(5, 3, NULL, 3, 4, NULL, 1, 4, 9, 4, 9, 0, 1, 2, NULL, NULL, '2021-09-25 07:27:50', NULL, NULL),
(6, 3, NULL, 4, 4, NULL, 1, 4, 8, 4, 8, 0, 1, 2, NULL, NULL, '2021-09-25 07:27:50', NULL, NULL),
(7, 3, NULL, 5, 4, NULL, 1, 4, 8, 4, 8, 0, 1, 2, NULL, NULL, '2021-09-25 07:27:50', NULL, NULL),
(8, 3, NULL, 6, 4, NULL, 1, 4, 7, 4, 7, 0, 1, 2, NULL, NULL, '2021-09-25 07:27:50', NULL, NULL),
(9, 4, NULL, 14, 4, NULL, 1, 100, 100, 100, 100, 0, 1, 1, NULL, NULL, '2021-09-25 08:28:26', NULL, NULL),
(10, 4, NULL, 1, 4, NULL, 1, 100, 100, 100, 100, 0, 1, 1, NULL, NULL, '2021-09-25 08:28:26', NULL, NULL),
(11, 4, NULL, 3, 4, NULL, 1, 100, 100, 100, 100, 0, 1, 1, NULL, NULL, '2021-09-25 08:28:26', NULL, NULL),
(12, 4, NULL, 2, 4, NULL, 1, 100, 100, 100, 100, 0, 1, 1, NULL, NULL, '2021-09-25 08:28:26', NULL, NULL),
(13, 5, NULL, 16, 4, NULL, 1, 100, 100, 100, 100, 0, 1, 4, NULL, NULL, '2021-09-25 14:30:54', NULL, NULL),
(14, 5, NULL, 14, 4, NULL, 1, 100, 100, 100, 100, 0, 1, 4, NULL, NULL, '2021-09-25 14:30:54', NULL, NULL);

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

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

CREATE TABLE `products` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `barcode` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `category_id` bigint(20) UNSIGNED NOT NULL,
  `sub_category_id` bigint(20) UNSIGNED DEFAULT NULL,
  `sub_sub_category_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cat_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_eng` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_local` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `serial` int(11) DEFAULT NULL,
  `unit` int(10) UNSIGNED DEFAULT NULL,
  `secondary_unit` int(10) UNSIGNED DEFAULT NULL,
  `unit_quantity` double DEFAULT 1,
  `module_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `brand_id` bigint(20) UNSIGNED DEFAULT NULL,
  `desc` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `buy_price` double DEFAULT NULL,
  `buy_price_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sell_price_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sell_price` double DEFAULT NULL,
  `retail_sell_price` double DEFAULT NULL,
  `whole_sell_price` double DEFAULT NULL,
  `flash_sell_price` double DEFAULT NULL,
  `cbm` double DEFAULT NULL,
  `vendor_id` bigint(20) UNSIGNED DEFAULT NULL,
  `color_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'comma separeted',
  `size_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'comma separeted',
  `reorder_level` int(11) DEFAULT NULL,
  `section_id` int(11) DEFAULT NULL,
  `item_group_id` bigint(20) NOT NULL,
  `acc_group_id` bigint(20) NOT NULL,
  `sellable` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1/0',
  `serialized_product` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1/0',
  `expiarable_product` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1/0',
  `manufacture_code` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1/0',
  `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '1/0',
  `is_consumable` tinyint(1) NOT NULL COMMENT '1=yes/0=no',
  `item_type` int(11) NOT NULL DEFAULT 0 COMMENT '0=neutral, 6=Restaurant, 7=FA',
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `products` (`id`, `barcode`, `category_id`, `sub_category_id`, `sub_sub_category_id`, `cat_code`, `name_eng`, `name_local`, `serial`, `unit`, `secondary_unit`, `unit_quantity`, `module_no`, `brand_id`, `desc`, `buy_price`, `buy_price_code`, `sell_price_code`, `sell_price`, `retail_sell_price`, `whole_sell_price`, `flash_sell_price`, `cbm`, `vendor_id`, `color_id`, `size_id`, `reorder_level`, `section_id`, `item_group_id`, `acc_group_id`, `sellable`, `serialized_product`, `expiarable_product`, `manufacture_code`, `image`, `is_consumable`, `item_type`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, '1', 3, NULL, NULL, '10212161', 'Local P', NULL, 14, 5, 2, 1, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-16 04:53:43', '2021-09-25 08:23:54'),
(2, '2', 3, NULL, NULL, '10212161', 'Hajj', NULL, NULL, 5, 2, 1, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-16 05:15:20', '2021-09-25 08:24:58'),
(3, '3', 3, NULL, NULL, '10212161', 'Omra', NULL, NULL, 5, 2, 1, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-16 05:16:00', '2021-09-25 08:24:30'),
(4, '4', 3, NULL, NULL, '10212161', 'Group', NULL, NULL, 1, NULL, 1, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-16 05:16:21', '2021-09-16 05:16:21'),
(5, '5', 4, NULL, NULL, '1010101', 'Electricity', NULL, NULL, 1, NULL, 1, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 2, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-16 05:19:13', '2021-09-19 01:53:58'),
(6, '6', 4, NULL, NULL, '1010101', 'Water Bill', NULL, NULL, 1, NULL, 1, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 2, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-16 05:19:39', '2021-09-19 01:54:13'),
(7, '7', 5, NULL, NULL, '12909212', 'Swimming', NULL, NULL, 1, NULL, 1, NULL, NULL, NULL, 0, NULL, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 3, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-19 01:55:53', '2021-09-19 01:55:53'),
(8, '9', 5, NULL, NULL, '12909212', 'Gym', NULL, NULL, 1, NULL, 1, NULL, NULL, NULL, 0, NULL, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 3, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-19 01:59:17', '2021-09-19 01:59:17'),
(9, '10', 5, NULL, NULL, '12909212', 'Parking', NULL, NULL, 1, NULL, 1, NULL, NULL, NULL, 0, NULL, NULL, 200, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 3, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-19 02:00:19', '2021-09-19 02:00:19'),
(10, '11', 7, 9, 10, '12220101', 'Design Cake:2020', 'Design Cake:2020', NULL, 1, 2, 1, NULL, NULL, NULL, 220, NULL, '220', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 3, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 2, NULL, NULL, NULL, '2021-09-23 08:26:44', '2021-09-25 07:34:59'),
(11, '12', 7, 9, 10, '12220101', 'Cake 2343', 'Cake 2343', NULL, 1, 2, 1, NULL, NULL, NULL, 233, NULL, NULL, 233, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 2, NULL, NULL, NULL, '2021-09-23 08:32:34', '2021-09-23 08:32:34'),
(12, '13', 16, 17, 19, '10101013', 'Water', 'Water', NULL, 1, 2, 12, NULL, 1, NULL, 15, NULL, NULL, 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 2, NULL, NULL, NULL, '2021-09-25 04:30:47', '2021-09-25 04:30:47'),
(13, '14', 16, 18, 20, '1010201', 'Milk', 'Milk', NULL, 3, 4, 4, NULL, NULL, NULL, 20, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 0, NULL, 1, 0, 4, 1, 2, NULL, NULL, NULL, '2021-09-25 04:33:02', '2021-09-25 04:33:02'),
(14, '15', 11, 12, 13, '70010101', 'TEST PRODUCT', 'TEST PRODUCT', NULL, 5, 4, 1, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, NULL, 1, 7, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 05:26:34', '2021-09-25 06:07:42'),
(15, '16', 21, 22, 23, '100010101', 'Product 1', 'Product 1', NULL, 5, 2, 1, NULL, NULL, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 3, NULL, NULL, NULL, '2021-09-25 13:29:19', '2021-09-25 13:30:03'),
(16, '17', 24, 25, 26, '2020101', 'P one', 'P one', NULL, 5, 2, 1, NULL, NULL, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, NULL, 1, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:09:03', '2021-09-25 14:09:49'),
(17, '18', 2, NULL, NULL, '200', 'Fixed Asset Items-Computer', 'Fixed Asset Items-Computer', NULL, 5, 2, NULL, NULL, NULL, NULL, 20000, NULL, NULL, 20000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 2, 4, 1, 0, 0, 0, NULL, 0, 7, 4, 1, 1, NULL, NULL, NULL, '2021-10-04 07:49:03', '2021-10-04 07:49:03'),
(18, '19', 2, NULL, NULL, '200', 'Fixed Asset Items-Fan', NULL, NULL, 5, 2, NULL, NULL, NULL, NULL, 1000, '1000', NULL, 1000, NULL, NULL, NULL, NULL, 14, NULL, NULL, NULL, 1, 2, 4, 1, 0, 0, 0, NULL, 0, 7, 4, 1, 1, NULL, NULL, NULL, '2021-10-04 08:10:36', '2021-10-04 08:10:36');

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

--
-- Table structure for table `product_categories`
--

CREATE TABLE `product_categories` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `code` int(11) NOT NULL,
  `serial` int(11) DEFAULT NULL,
  `name_eng` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_local` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parent_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=on/2=off',
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `product_categories`
--

INSERT INTO `product_categories` (`id`, `code`, `serial`, `name_eng`, `name_local`, `parent_id`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 100, NULL, 'Cat - 1', 'cat-1', NULL, 1, 2, 1, 2, NULL, NULL, NULL, '2021-09-23 08:20:04'),
(2, 200, NULL, 'Fixed Asset Items', 'Fixed Asset Items', NULL, 1, 1, 1, 1, NULL, NULL, NULL, '2021-10-04 07:46:26'),
(3, 10212161, 1254, 'Packages', 'Packages', NULL, 1, 1, 1, 1, NULL, NULL, '2021-09-16 04:49:35', '2021-09-16 05:13:50'),
(4, 1010101, NULL, 'Charges', 'Charges', NULL, 1, 1, 1, NULL, NULL, NULL, '2021-09-16 05:17:31', '2021-09-16 05:17:31'),
(5, 12909212, NULL, 'Facility', 'Facility', NULL, 1, 1, 1, NULL, NULL, NULL, '2021-09-16 05:17:47', '2021-09-16 05:17:47'),
(6, 0, 233, 'Supply', 'সাপ্লাই', NULL, 1, 1, 2, NULL, NULL, NULL, '2021-09-23 08:16:21', '2021-09-23 08:16:21'),
(7, 1222, 231, 'Production', 'প্রোডাকশন', NULL, 1, 1, 2, NULL, NULL, NULL, '2021-09-23 08:17:58', '2021-09-23 08:17:58'),
(8, 1223, 1234, 'Production_1', 'প্রোডাকশন_1', NULL, 1, 1, 2, 2, NULL, NULL, '2021-09-23 08:18:58', '2021-09-23 08:19:10'),
(9, 122201, NULL, 'Production_22', 'Production_22', 7, 1, 1, 2, NULL, NULL, NULL, '2021-09-23 08:23:52', '2021-09-23 08:23:52'),
(10, 12220101, 45, 'Cake', 'Cake', 9, 1, 1, 2, NULL, NULL, NULL, '2021-09-23 08:24:55', '2021-09-23 08:24:55'),
(11, 7001, 1, 'FINISHED GOODS', 'FINISHED GOODS', NULL, 1, 1, 1, NULL, NULL, NULL, '2021-09-25 01:45:24', '2021-09-25 01:45:24'),
(12, 700101, 1, 'SPECIAL', 'SPECIAL', 11, 1, 1, 1, NULL, NULL, NULL, '2021-09-25 01:46:48', '2021-09-25 01:46:48'),
(13, 70010101, 1, 'LESS', 'LESS', 12, 1, 1, 1, NULL, NULL, NULL, '2021-09-25 01:47:23', '2021-09-25 01:47:23'),
(14, 70010102, 1, 'ABOVE', 'ABOVE', 12, 1, 1, 1, NULL, NULL, NULL, '2021-09-25 01:48:08', '2021-09-25 01:48:08'),
(15, 70010103, NULL, 'Dhoi', 'দই', 12, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 03:55:12', '2021-09-25 03:55:12'),
(16, 101, NULL, 'Raw', 'Raw', NULL, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:19:24', '2021-09-25 04:19:24'),
(17, 10101, NULL, 'Consumable Raw', 'Consumable Raw', 16, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:20:08', '2021-09-25 04:20:08'),
(18, 10102, NULL, 'Fixed Raw', 'Fixed Raw', 16, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:20:26', '2021-09-25 04:20:26'),
(19, 10101013, NULL, 'Accessories', 'Accessories', 17, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:21:25', '2021-09-25 04:21:25'),
(20, 1010201, NULL, 'Fixed Product', 'Fixed Product', 18, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 04:22:06', '2021-09-25 04:22:06'),
(21, 10001, 1, 'xyz', 'xyz', NULL, 1, 1, 3, 3, NULL, NULL, '2021-09-25 13:22:58', '2021-09-25 13:23:42'),
(22, 1000101, 1, 'sub xyz', 'sub xyz', 21, 1, 1, 3, NULL, NULL, NULL, '2021-09-25 13:24:27', '2021-09-25 13:24:27'),
(23, 100010101, 1, 'sub sub xyz', 'sub sub xyz', 22, 1, 1, 3, NULL, NULL, NULL, '2021-09-25 13:25:02', '2021-09-25 13:25:02'),
(24, 202, 1, 'category 1', 'category 1', NULL, 1, 1, 4, NULL, NULL, NULL, '2021-09-25 14:02:29', '2021-09-25 14:02:29'),
(25, 20201, 1, 'sub category', 'sub category', 24, 1, 1, 4, NULL, NULL, NULL, '2021-09-25 14:03:29', '2021-09-25 14:03:29'),
(26, 2020101, 1, 'sub sub category', 'sub sub category', 25, 1, 1, 4, NULL, NULL, NULL, '2021-09-25 14:04:43', '2021-09-25 14:04:43');

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

--
-- Table structure for table `product_groups`
--

CREATE TABLE `product_groups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `product_groups`
--

INSERT INTO `product_groups` (`id`, `name`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'SP', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(2, 'CP', 1, NULL, NULL, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `product_sell_prices`
--

CREATE TABLE `product_sell_prices` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `sell_price` double DEFAULT NULL,
  `retail_sell_price` double DEFAULT NULL,
  `whole_sell_price` double DEFAULT NULL,
  `flash_sell_price` double DEFAULT NULL,
  `store_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'active = 1/ inactive = 0',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `product_serial_carts`
--

CREATE TABLE `product_serial_carts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `cart_id` bigint(20) UNSIGNED DEFAULT NULL,
  `size_id` bigint(20) UNSIGNED DEFAULT NULL,
  `color_id` bigint(20) UNSIGNED DEFAULT NULL,
  `quantity` double(12,2) NOT NULL,
  `serial_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `product_settings`
--

CREATE TABLE `product_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `auto_purchase` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1=yes/0=no',
  `multi_color` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1=yes/0=no',
  `multi_size` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1=yes/0=no',
  `product_color` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'auto/manual',
  `supplier_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'required|/ " "',
  `brand_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'required|/ " "',
  `model_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'required|/ " "',
  `projected_item` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=yes/0=no',
  `dual_unit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'required|/" "',
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=on/2=off',
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `product_settings`
--

INSERT INTO `product_settings` (`id`, `auto_purchase`, `multi_color`, `multi_size`, `product_color`, `supplier_type`, `brand_type`, `model_type`, `projected_item`, `dual_unit`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 0, 0, 0, NULL, NULL, NULL, NULL, 1, 'required|', 1, 1, 1, 1, NULL, NULL, NULL, '2021-09-22 06:19:46');

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

--
-- Table structure for table `purchase_orders`
--

CREATE TABLE `purchase_orders` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `po_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total_amount` double NOT NULL DEFAULT 0,
  `total_qty` double NOT NULL DEFAULT 0,
  `discount` double NOT NULL DEFAULT 0,
  `quotation_id` bigint(20) UNSIGNED DEFAULT NULL,
  `type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1=>preSells',
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reference` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `store_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '0=>pending',
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_orders`
--

INSERT INTO `purchase_orders` (`id`, `po_no`, `total_amount`, `total_qty`, `discount`, `quotation_id`, `type`, `party_id`, `note`, `reference`, `warehouse_id`, `store_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'PO1', 10000, 0, 1, 2, 0, 22, NULL, NULL, 4, NULL, 1, 1, NULL, NULL, '2021-09-25 06:24:01', '2021-09-25 06:27:22', NULL),
(2, 'PO2', 110, 0, 0, 1, 0, 18, NULL, NULL, 4, NULL, 1, 2, NULL, NULL, '2021-09-25 06:34:19', '2021-09-25 06:35:28', NULL),
(3, 'PO3', 128, 0, 0, 8, 0, 19, NULL, NULL, 4, NULL, 1, 2, NULL, NULL, '2021-09-25 07:27:50', '2021-09-25 07:28:19', NULL),
(4, 'PO4', 40000, 0, 2, 10, 0, 20, NULL, NULL, 4, NULL, 1, 1, NULL, NULL, '2021-09-25 08:28:26', '2021-09-25 08:28:42', NULL),
(5, 'PO5', 20000, 0, 1, 11, 0, 26, NULL, NULL, 4, NULL, 1, 4, NULL, NULL, '2021-09-25 14:30:54', '2021-09-25 14:31:13', NULL);

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

--
-- Table structure for table `quick_accesses`
--

CREATE TABLE `quick_accesses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `link` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `sorting` int(11) NOT NULL DEFAULT 0,
  `module_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `warehouse_id` bigint(20) UNSIGNED DEFAULT 0,
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `quotations`
--

CREATE TABLE `quotations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `quotation_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total_amount` double NOT NULL DEFAULT 0,
  `discount` double NOT NULL DEFAULT 0,
  `requisition_id` bigint(20) UNSIGNED DEFAULT NULL,
  `supplier_id` bigint(20) UNSIGNED DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `store_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '0=>pending',
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `quotations`
--

INSERT INTO `quotations` (`id`, `quotation_no`, `total_amount`, `discount`, `requisition_id`, `supplier_id`, `note`, `warehouse_id`, `store_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'QUT1', 110, 0, 1, 18, NULL, 4, NULL, 1, 2, NULL, NULL, '2021-09-25 06:09:43', '2021-09-25 06:34:13', NULL),
(2, 'QUT2', 10000, 1, 2, 22, NULL, 4, NULL, 1, 1, NULL, NULL, '2021-09-25 06:10:00', '2021-09-25 06:12:31', NULL),
(3, 'QUT3', 100, 0, 1, 19, NULL, 4, NULL, 0, 2, NULL, NULL, '2021-09-25 06:10:29', '2021-09-25 06:33:44', NULL),
(4, 'QUT4', 10000, 0, 2, 20, NULL, 4, NULL, 0, 1, NULL, NULL, '2021-09-25 06:11:42', '2021-09-25 06:12:31', NULL),
(5, 'QUT5', 99, 0, 1, 22, NULL, 4, NULL, 1, 2, NULL, NULL, '2021-09-25 06:30:13', '2021-09-25 06:33:44', NULL),
(6, 'QUT6', 72, 0, 3, 18, NULL, 4, NULL, 0, 2, NULL, NULL, '2021-09-25 07:25:20', '2021-09-25 07:27:32', NULL),
(7, 'QUT7', 81, 0, 3, 22, NULL, 4, NULL, 0, 2, NULL, NULL, '2021-09-25 07:25:56', '2021-09-25 07:27:32', NULL),
(8, 'QUT8', 128, 0, 3, 19, NULL, 4, NULL, 1, 2, NULL, NULL, '2021-09-25 07:26:20', '2021-09-25 07:27:32', NULL),
(9, 'QUT9', 40000, 1, 4, 22, NULL, 4, NULL, 0, 1, NULL, NULL, '2021-09-25 08:27:21', '2021-09-25 08:28:08', NULL),
(10, 'QUT10', 40000, 2, 4, 20, NULL, 4, NULL, 1, 1, NULL, NULL, '2021-09-25 08:27:47', '2021-09-25 08:28:08', NULL),
(11, 'QUT11', 20000, 1, 5, 26, NULL, 4, NULL, 1, 4, NULL, NULL, '2021-09-25 14:26:07', '2021-09-25 14:29:44', NULL),
(12, 'QUT12', 20000, 0, 5, 25, 'xyz', 4, NULL, 0, 4, NULL, NULL, '2021-09-25 14:28:25', '2021-09-25 14:29:44', NULL);

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

--
-- Table structure for table `quotation_details`
--

CREATE TABLE `quotation_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `quotation_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `requisition_qty` double DEFAULT 0,
  `quantity` double NOT NULL,
  `rate` double NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `quotation_details`
--

INSERT INTO `quotation_details` (`id`, `quotation_id`, `product_id`, `warehouse_id`, `note`, `requisition_qty`, `quantity`, `rate`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, 1, 4, NULL, 2, 5, 10, 1, 2, NULL, NULL, '2021-09-25 06:09:43', NULL, NULL),
(2, 1, 2, 4, NULL, 2, 4, 10, 1, 2, NULL, NULL, '2021-09-25 06:09:43', NULL, NULL),
(3, 1, 10, 4, NULL, 3, 2, 10, 1, 2, NULL, NULL, '2021-09-25 06:09:43', NULL, NULL),
(4, 2, 14, 4, NULL, 100, 100, 100, 1, 1, NULL, NULL, '2021-09-25 06:10:00', NULL, NULL),
(5, 3, 1, 4, NULL, 2, 6, 10, 1, 2, NULL, NULL, '2021-09-25 06:10:29', NULL, NULL),
(6, 3, 2, 4, NULL, 2, 0, 0, 1, 2, NULL, NULL, '2021-09-25 06:10:29', NULL, NULL),
(7, 3, 10, 4, NULL, 3, 2, 20, 1, 2, NULL, NULL, '2021-09-25 06:10:29', NULL, NULL),
(8, 4, 14, 4, NULL, 100, 100, 100, 1, 1, NULL, NULL, '2021-09-25 06:11:42', NULL, NULL),
(9, 5, 1, 4, NULL, 2, 2, 15, 1, 2, NULL, NULL, '2021-09-25 06:30:13', NULL, NULL),
(10, 5, 2, 4, NULL, 2, 2, 12, 1, 2, NULL, NULL, '2021-09-25 06:30:13', NULL, NULL),
(11, 5, 10, 4, NULL, 3, 3, 15, 1, 2, NULL, NULL, '2021-09-25 06:30:13', NULL, NULL),
(12, 6, 3, 4, NULL, 4, 4, 5, 1, 2, NULL, NULL, '2021-09-25 07:25:20', NULL, NULL),
(13, 6, 4, 4, NULL, 4, 4, 5, 1, 2, NULL, NULL, '2021-09-25 07:25:20', NULL, NULL),
(14, 6, 5, 4, NULL, 4, 4, 2, 1, 2, NULL, NULL, '2021-09-25 07:25:20', NULL, NULL),
(15, 6, 6, 4, NULL, 4, 4, 6, 1, 2, NULL, NULL, '2021-09-25 07:25:20', NULL, NULL),
(16, 7, 3, 4, NULL, 4, 3, 5, 1, 2, NULL, NULL, '2021-09-25 07:25:56', NULL, NULL),
(17, 7, 4, 4, NULL, 4, 5, 6, 1, 2, NULL, NULL, '2021-09-25 07:25:56', NULL, NULL),
(18, 7, 5, 4, NULL, 4, 4, 9, 1, 2, NULL, NULL, '2021-09-25 07:25:56', NULL, NULL),
(19, 7, 6, 4, NULL, 4, 0, 0, 1, 2, NULL, NULL, '2021-09-25 07:25:56', NULL, NULL),
(20, 8, 3, 4, NULL, 4, 4, 9, 1, 2, NULL, NULL, '2021-09-25 07:26:20', NULL, NULL),
(21, 8, 4, 4, NULL, 4, 4, 8, 1, 2, NULL, NULL, '2021-09-25 07:26:20', NULL, NULL),
(22, 8, 5, 4, NULL, 4, 4, 8, 1, 2, NULL, NULL, '2021-09-25 07:26:20', NULL, NULL),
(23, 8, 6, 4, NULL, 4, 4, 7, 1, 2, NULL, NULL, '2021-09-25 07:26:20', NULL, NULL),
(24, 9, 14, 4, NULL, 100, 100, 100, 1, 1, NULL, NULL, '2021-09-25 08:27:21', NULL, NULL),
(25, 9, 1, 4, NULL, 100, 100, 100, 1, 1, NULL, NULL, '2021-09-25 08:27:21', NULL, NULL),
(26, 9, 3, 4, NULL, 100, 100, 100, 1, 1, NULL, NULL, '2021-09-25 08:27:21', NULL, NULL),
(27, 9, 2, 4, NULL, 100, 100, 100, 1, 1, NULL, NULL, '2021-09-25 08:27:21', NULL, NULL),
(28, 10, 14, 4, NULL, 100, 100, 100, 1, 1, NULL, NULL, '2021-09-25 08:27:47', NULL, NULL),
(29, 10, 1, 4, NULL, 100, 100, 100, 1, 1, NULL, NULL, '2021-09-25 08:27:47', NULL, NULL),
(30, 10, 3, 4, NULL, 100, 100, 100, 1, 1, NULL, NULL, '2021-09-25 08:27:47', NULL, NULL),
(31, 10, 2, 4, NULL, 100, 100, 100, 1, 1, NULL, NULL, '2021-09-25 08:27:47', NULL, NULL),
(32, 11, 16, 4, NULL, 100, 100, 100, 1, 4, NULL, NULL, '2021-09-25 14:26:07', NULL, NULL),
(33, 11, 14, 4, NULL, 100, 100, 100, 1, 4, NULL, NULL, '2021-09-25 14:26:07', NULL, NULL),
(34, 12, 16, 4, NULL, 100, 100, 100, 1, 4, NULL, NULL, '2021-09-25 14:28:25', NULL, NULL),
(35, 12, 14, 4, NULL, 100, 100, 100, 1, 4, NULL, NULL, '2021-09-25 14:28:25', NULL, NULL);

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

--
-- Table structure for table `reciperawproducts`
--

CREATE TABLE `reciperawproducts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `recipe_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quantity` double NOT NULL,
  `waste_quantity` double NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `recipes`
--

CREATE TABLE `recipes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `valid_till` datetime DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quantity` double NOT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `approve_status` tinyint(1) NOT NULL DEFAULT 1,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `report_groups`
--

CREATE TABLE `report_groups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `report_type` tinyint(1) NOT NULL COMMENT '1=>Income StateMent,2=>Balance Sheet',
  `group_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `sum_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sort_type` int(11) DEFAULT NULL,
  `data_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '1=>beginning,2 =>dr,3=>cr,4=>balance,5=>closing',
  `operator` tinyint(4) NOT NULL COMMENT '1=Add/0=Less',
  `main_operator` tinyint(4) DEFAULT NULL COMMENT '1=Add/0=Less',
  `combination` tinyint(4) DEFAULT NULL,
  `combination_title` tinyint(4) NOT NULL COMMENT '1=Add/0=Less',
  `combination_sum_title` tinyint(4) NOT NULL COMMENT '1=Add/0=Less',
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=on/0=off',
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `report_layout_set_ups`
--

CREATE TABLE `report_layout_set_ups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `skip_type` bigint(20) UNSIGNED DEFAULT NULL,
  `report_type` tinyint(1) NOT NULL COMMENT '1=>Income StateMent,2=>Balance Sheet',
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `css_style` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `amount_border` int(11) DEFAULT NULL COMMENT '1=>left,2 =>right,3=>top,4=>bottom,5=>all',
  `data_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '1=>beginning,2 =>dr,3=>cr,4=>balance,5=>closing',
  `codes` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Comma Sapareted',
  `calculator_ids` tinyint(4) DEFAULT NULL COMMENT 'Comma Sapareted',
  `operator` tinyint(4) DEFAULT NULL COMMENT 'Comma Sapareted,1=Add/0=Less',
  `show` tinyint(4) DEFAULT NULL COMMENT 'Comma Sapareted,3=amount=>2=title and amount,1=title,0=blank',
  `sort_index` int(10) UNSIGNED DEFAULT NULL COMMENT 'More Index to Show top',
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=on/0=off',
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `report_print_set_ups`
--

CREATE TABLE `report_print_set_ups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `print_view` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=full/0=pos',
  `print_head` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Html with php',
  `print_foot` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Html with php',
  `dual_currency` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1-yes/0-no',
  `type` bigint(20) UNSIGNED NOT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `report_print_set_ups`
--

INSERT INTO `report_print_set_ups` (`id`, `name`, `print_view`, `print_head`, `print_foot`, `dual_currency`, `type`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Default', 1, NULL, NULL, 0, 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `requisitions`
--

CREATE TABLE `requisitions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `requisition_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reference_id` bigint(20) UNSIGNED DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `store_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '0=>pending',
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `requisitions`
--

INSERT INTO `requisitions` (`id`, `requisition_no`, `reference_id`, `note`, `warehouse_id`, `store_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'REQ1', NULL, NULL, 4, NULL, 1, 2, NULL, NULL, '2021-09-25 06:02:15', '2021-09-25 06:02:15', NULL),
(2, 'REQ2', NULL, NULL, 4, NULL, 1, 1, NULL, NULL, '2021-09-25 06:08:14', '2021-09-25 06:08:14', NULL),
(3, 'REQ3', NULL, NULL, 4, NULL, 1, 2, NULL, NULL, '2021-09-25 07:24:42', '2021-09-25 07:24:42', NULL),
(4, 'REQ4', NULL, NULL, 4, NULL, 2, 1, NULL, NULL, '2021-09-25 08:26:25', '2021-09-25 08:26:48', NULL),
(5, 'REQ5', NULL, NULL, 4, NULL, 2, 4, NULL, NULL, '2021-09-25 14:23:59', '2021-09-25 14:24:22', NULL);

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

--
-- Table structure for table `requisition_details`
--

CREATE TABLE `requisition_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `requisition_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quantity` double NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `requisition_details`
--

INSERT INTO `requisition_details` (`id`, `requisition_id`, `product_id`, `warehouse_id`, `note`, `quantity`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, 1, 4, NULL, 2, 1, 2, NULL, NULL, NULL, NULL, NULL),
(2, 1, 2, 4, NULL, 2, 1, 2, NULL, NULL, NULL, NULL, NULL),
(3, 1, 10, 4, NULL, 3, 1, 2, NULL, NULL, NULL, NULL, NULL),
(4, 2, 14, 4, NULL, 100, 1, 1, NULL, NULL, NULL, NULL, NULL),
(5, 3, 3, 4, NULL, 4, 1, 2, NULL, NULL, NULL, NULL, NULL),
(6, 3, 4, 4, NULL, 4, 1, 2, NULL, NULL, NULL, NULL, NULL),
(7, 3, 5, 4, NULL, 4, 1, 2, NULL, NULL, NULL, NULL, NULL),
(8, 3, 6, 4, NULL, 4, 1, 2, NULL, NULL, NULL, NULL, NULL),
(9, 4, 14, 4, NULL, 100, 1, 1, NULL, NULL, NULL, NULL, NULL),
(10, 4, 1, 4, NULL, 100, 1, 1, NULL, NULL, NULL, NULL, NULL),
(11, 4, 3, 4, NULL, 100, 1, 1, NULL, NULL, NULL, NULL, NULL),
(12, 4, 2, 4, NULL, 100, 1, 1, NULL, NULL, NULL, NULL, NULL),
(13, 5, 16, 4, NULL, 100, 1, 4, NULL, NULL, NULL, NULL, NULL),
(14, 5, 14, 4, NULL, 100, 1, 4, NULL, NULL, NULL, NULL, NULL);

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

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

CREATE TABLE `roles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `warehouse_id` tinyint(1) NOT NULL,
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `roles` (`id`, `name`, `status`, `warehouse_id`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Super Admin', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(2, 'Admin', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(3, 'Test_Admin', 1, 1, 1, NULL, NULL, NULL, '2021-09-23 06:40:22', '2021-09-23 06:40:22'),
(4, 'Safa_Admin', 1, 1, 1, NULL, NULL, NULL, '2021-09-25 07:09:49', '2021-09-25 07:09:49'),
(5, 'inventory', 1, 1, 3, NULL, NULL, NULL, '2021-09-25 13:16:09', '2021-09-25 13:16:09');

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

--
-- Table structure for table `role_mappings`
--

CREATE TABLE `role_mappings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `action_step_id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED DEFAULT NULL,
  `admin_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `salesmen`
--

CREATE TABLE `salesmen` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `commision` double NOT NULL COMMENT 'in percent',
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=on/0=off',
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `sell_quotations`
--

CREATE TABLE `sell_quotations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `quotation_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `invoice_charge` double NOT NULL DEFAULT 0,
  `net_amount` double NOT NULL DEFAULT 0,
  `total_qty` double NOT NULL DEFAULT 0,
  `total_cbm` double NOT NULL DEFAULT 0,
  `net_gp` double NOT NULL DEFAULT 0,
  `roe` double NOT NULL DEFAULT 1,
  `currency_id` bigint(20) UNSIGNED DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `ordered` tinyint(1) NOT NULL DEFAULT 0,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `sell_quotation_details`
--

CREATE TABLE `sell_quotation_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `quotation_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `unit_size` double NOT NULL DEFAULT 0,
  `unit_price` double NOT NULL DEFAULT 0,
  `other_cost` double NOT NULL DEFAULT 0,
  `commission_rate` double NOT NULL DEFAULT 0,
  `qty` double NOT NULL DEFAULT 0,
  `fob_unit` double NOT NULL DEFAULT 0,
  `offer_fob_unit` double NOT NULL DEFAULT 0,
  `cbm_unit` double NOT NULL DEFAULT 0,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `ordered` tinyint(1) NOT NULL DEFAULT 0,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `type_id` bigint(20) UNSIGNED NOT NULL,
  `name_eng` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_local` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT 0,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `shops`
--

CREATE TABLE `shops` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_local` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` tinyint(1) DEFAULT NULL,
  `parent_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=on/2=off',
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `steps`
--

CREATE TABLE `steps` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `steps`
--

INSERT INTO `steps` (`id`, `name`, `status`, `warehouse_id`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Sells', 1, 1, NULL, NULL, NULL, NULL, '2021-09-23 05:27:43', '2021-09-23 05:27:43');

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

--
-- Table structure for table `step_settings`
--

CREATE TABLE `step_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `sorting` int(11) NOT NULL DEFAULT 1,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `stock_ledgers`
--

CREATE TABLE `stock_ledgers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `closing_qty` double NOT NULL,
  `closing_value` double NOT NULL,
  `avg` double NOT NULL,
  `purchase_qty` double NOT NULL DEFAULT 0,
  `custom_date` int(11) NOT NULL,
  `store_transaction_id` bigint(20) UNSIGNED NOT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `stock_ledgers`
--

INSERT INTO `stock_ledgers` (`id`, `product_id`, `closing_qty`, `closing_value`, `avg`, `purchase_qty`, `custom_date`, `store_transaction_id`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 14, 100, 10000, 100, 100, 1632558720, 1, 1, 1, 1, NULL, NULL, NULL, '2021-09-25 05:32:00', '2021-09-25 05:32:00'),
(2, 14, 200, 19900, 99.5, 100, 1632562151, 2, 1, 1, 1, NULL, NULL, NULL, '2021-09-25 06:29:11', '2021-09-25 06:29:11'),
(3, 10, 2, 396, 198, 2, 1632566211, 5, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 07:36:51', '2021-09-25 07:36:51'),
(4, 11, 3, 629.1, 209.7, 3, 1632566211, 6, 1, 1, 2, NULL, NULL, NULL, '2021-09-25 07:36:51', '2021-09-25 07:36:51'),
(5, 14, 200, 19750, 98.75, 100, 1632569355, 8, 1, 1, 1, NULL, NULL, NULL, '2021-09-25 08:29:15', '2021-09-25 08:29:15'),
(6, 1, 100, 9800, 98, 100, 1632569355, 9, 1, 1, 1, NULL, NULL, NULL, '2021-09-25 08:29:15', '2021-09-25 08:29:15'),
(7, 3, 100, 9800, 98, 100, 1632569355, 10, 1, 1, 1, NULL, NULL, NULL, '2021-09-25 08:29:15', '2021-09-25 08:29:15'),
(8, 2, 100, 9800, 98, 100, 1632569355, 11, 1, 1, 1, NULL, NULL, NULL, '2021-09-25 08:29:15', '2021-09-25 08:29:15'),
(9, 14, 200, 10275, 51.375, 100, 1632571108, 15, 1, 1, 3, 3, NULL, NULL, '2021-09-25 08:58:28', '2021-09-25 08:59:25'),
(10, 15, 100, 10000, 100, 100, 1632576988, 16, 1, 1, 3, 3, NULL, NULL, '2021-09-25 13:36:28', '2021-09-25 13:37:29'),
(11, 14, 300, 10375, 34.583333333333, 100, 1632576988, 17, 1, 1, 3, 3, NULL, NULL, '2021-09-25 13:36:28', '2021-09-25 13:37:29'),
(12, 15, 200, 20000, 100, 100, 1632577156, 18, 1, 1, 3, NULL, NULL, NULL, '2021-09-25 13:39:16', '2021-09-25 13:39:16'),
(13, 16, 100, 8000, 80, 100, 1632579381, 19, 1, 1, 4, NULL, NULL, NULL, '2021-09-25 14:16:21', '2021-09-25 14:16:21'),
(14, 14, 400, 10155, 25.3875, 100, 1632579381, 20, 1, 1, 4, NULL, NULL, NULL, '2021-09-25 14:16:21', '2021-09-25 14:16:21'),
(15, 16, 200, 16000, 80, 100, 1632579553, 21, 1, 1, 4, NULL, NULL, NULL, '2021-09-25 14:19:13', '2021-09-25 14:19:13'),
(16, 16, 300, 25900, 86.333333333333, 100, 1632580400, 22, 1, 1, 4, NULL, NULL, NULL, '2021-09-25 14:33:20', '2021-09-25 14:33:20'),
(17, 14, 500, 20055, 40.11, 100, 1632580400, 23, 1, 1, 4, NULL, NULL, NULL, '2021-09-25 14:33:20', '2021-09-25 14:33:20'),
(18, 2, 101, 12000, 118.81188118812, 1, 1633248815, 27, 1, 1, 1, 1, NULL, NULL, '2021-10-03 08:13:35', '2021-10-03 08:17:48');

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

--
-- Table structure for table `store_invoices`
--

CREATE TABLE `store_invoices` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `transaction_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `invoice_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `ref_invoice` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ref_type` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `voucher_id` bigint(20) UNSIGNED DEFAULT NULL,
  `net_total` double NOT NULL DEFAULT 0,
  `grand_total` double NOT NULL DEFAULT 0,
  `cash_amount` double NOT NULL DEFAULT 0,
  `bank_amount` double NOT NULL DEFAULT 0,
  `dc_amount` double NOT NULL DEFAULT 0,
  `dc_percentage` double(8,2) NOT NULL DEFAULT 0.00,
  `other_charge` double NOT NULL DEFAULT 0,
  `issue_type_note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '1=direct, 2=production/ also use for other_charge note',
  `batch_qty` double NOT NULL DEFAULT 1,
  `currency_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `roe` double NOT NULL DEFAULT 1,
  `attachment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `asist_dms` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `route_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sell_type` tinyint(4) DEFAULT NULL,
  `pay_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=unpaid, 1=partial paid, 2=paid',
  `approve_status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '0=stand by, 1= Panding, 2=Approve',
  `use_status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '0=No, 1=Yes, 3=distribution Sell',
  `pay_type` tinyint(4) DEFAULT NULL COMMENT 'for issue, if 12 then production completed',
  `salesman_id` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'salesman pos',
  `date` timestamp NULL DEFAULT NULL,
  `remarks` int(11) DEFAULT NULL,
  `track_distribution` int(11) DEFAULT NULL,
  `transfer_to` bigint(20) UNSIGNED DEFAULT NULL,
  `store_from` bigint(20) UNSIGNED DEFAULT NULL,
  `store_to` bigint(20) UNSIGNED DEFAULT NULL,
  `cash_bank_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cost_center_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `exist_fa_item` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1=yes/0=no',
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `store_invoices`
--

INSERT INTO `store_invoices` (`id`, `transaction_type`, `party_id`, `invoice_no`, `ref_invoice`, `ref_type`, `voucher_id`, `net_total`, `grand_total`, `cash_amount`, `bank_amount`, `dc_amount`, `dc_percentage`, `other_charge`, `issue_type_note`, `batch_qty`, `currency_id`, `roe`, `attachment`, `note`, `asist_dms`, `route_name`, `sell_type`, `pay_status`, `approve_status`, `use_status`, `pay_type`, `salesman_id`, `date`, `remarks`, `track_distribution`, `transfer_to`, `store_from`, `store_to`, `cash_bank_id`, `cost_center_id`, `exist_fa_item`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, '1', 22, '1', NULL, NULL, 1, 10000, 0, 0, 0, 0, 0.00, 0, NULL, 1, 1, 1, NULL, 'ETC.', NULL, NULL, NULL, 0, 1, 1, 4, NULL, '2021-09-25 05:32:00', 1, NULL, NULL, NULL, NULL, NULL, 0, 2, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 05:32:00', '2021-10-03 09:53:32'),
(2, '1', 22, '2', NULL, NULL, 2, 9900, 0, 0, 0, 100, 1.00, 0, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, 4, NULL, '2021-09-25 06:29:11', 1, NULL, NULL, NULL, NULL, NULL, 0, 1, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 06:29:11', '2021-09-25 06:29:11'),
(6, '1', 18, '3', NULL, NULL, 3, 1075.1, 0, 0, 0, 113.9, 10.00, 50, 'Delivery Charge.', 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, 4, NULL, '2021-09-25 07:36:51', 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 4, 1, 2, NULL, NULL, NULL, '2021-09-25 07:36:51', '2021-09-25 07:36:51'),
(11, '10', NULL, 'STROUT4', NULL, NULL, 4, 0, 0, 0, 0, 0, 0.00, 0, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, NULL, NULL, '2021-09-25 08:21:04', 10, NULL, 8, NULL, NULL, NULL, 1, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 08:21:04', '2021-09-25 08:21:04'),
(12, '1', 20, '4', NULL, NULL, 5, 39200, 0, 0, 0, 800, 2.00, 0, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, 4, NULL, '2021-09-25 08:29:15', 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 08:29:15', '2021-09-25 08:29:15'),
(13, '6', 0, '1', NULL, NULL, 6, 0, 0, 0, 0, 0, 0.00, 0, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, NULL, NULL, '2021-09-25 08:31:09', 6, NULL, NULL, NULL, NULL, NULL, 0, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 08:31:09', '2021-09-25 08:31:09'),
(14, '5', 0, '1', NULL, NULL, 7, 0, 0, 0, 0, 0, 0.00, 0, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, NULL, NULL, '2021-09-25 08:39:48', 5, NULL, NULL, NULL, NULL, NULL, 0, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 08:39:48', '2021-09-25 08:39:48'),
(15, '7', 0, '1', NULL, NULL, 8, 0, 0, 0, 0, 0, 0.00, 0, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, NULL, NULL, '2021-09-25 08:41:52', 7, NULL, NULL, NULL, NULL, NULL, 0, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 08:41:52', '2021-09-25 08:41:52'),
(16, '1', 22, '5', NULL, NULL, 9, 100, 0, 100, 0, 0, 0.00, 0, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 2, 1, 1, 1, NULL, '2021-09-25 08:58:28', 1, NULL, NULL, NULL, NULL, 1, 0, 0, 4, 1, 3, 3, NULL, NULL, '2021-09-25 08:58:28', '2021-09-25 08:59:25'),
(17, '1', 25, '6', NULL, NULL, 10, 10100, 0, 10100, 0, 0, 0.00, 0, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 2, 1, 1, 1, NULL, '2021-09-25 13:36:28', 1, NULL, NULL, NULL, NULL, 1, 0, 0, 4, 1, 3, 3, NULL, NULL, '2021-09-25 13:36:28', '2021-09-25 13:37:29'),
(18, '1', 25, '7', NULL, NULL, 11, 10000, 0, 0, 0, 0, 0.00, 0, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, 4, NULL, '2021-09-25 13:39:16', 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 4, 1, 3, NULL, NULL, NULL, '2021-09-25 13:39:16', '2021-09-25 13:39:16'),
(19, '1', 26, '8', NULL, NULL, 12, 8080, 0, 8080, 0, 2020, 20.00, 0, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 2, 1, 1, 1, NULL, '2021-09-25 14:16:21', 1, NULL, NULL, NULL, NULL, 1, 0, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:16:21', '2021-09-25 14:16:21'),
(20, '1', 26, '9', NULL, NULL, 13, 8000, 0, 8000, 0, 2000, 20.00, 0, NULL, 1, 1, 1, NULL, 'purchase by me', NULL, NULL, NULL, 2, 1, 1, 4, NULL, '2021-09-25 14:19:13', 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:19:13', '2021-09-25 14:21:46'),
(21, '1', 26, '10', NULL, NULL, 15, 19800, 0, 19800, 0, 200, 1.00, 0, NULL, 1, 1, 1, NULL, 'xyz', NULL, NULL, NULL, 2, 1, 1, 4, NULL, '2021-09-25 14:33:20', 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:33:20', '2021-09-25 14:35:18'),
(22, '10', NULL, 'STROUT11', NULL, NULL, 17, 0, 0, 0, 0, 0, 0.00, 0, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, NULL, NULL, '2021-09-25 14:38:55', 10, NULL, 8, NULL, NULL, NULL, 1, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:38:55', '2021-09-25 14:38:55'),
(23, '6', 0, '2', NULL, NULL, 18, 0, 0, 0, 0, 0, 0.00, 0, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, NULL, NULL, '2021-09-25 14:39:32', 6, NULL, NULL, NULL, NULL, NULL, 0, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:39:32', '2021-09-25 14:39:32'),
(24, '5', 0, '2', NULL, NULL, 19, 0, 0, 0, 0, 0, 0.00, 0, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, NULL, NULL, '2021-09-25 14:39:56', 5, NULL, NULL, NULL, NULL, NULL, 0, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:39:56', '2021-09-25 14:39:56'),
(25, '1', 14, '11', '2003', NULL, 1, 0, 0, 0, 0, 2000, 100.00, 0, NULL, 1, 1, 1, NULL, '100', NULL, NULL, NULL, 0, 1, 1, 4, NULL, '2021-10-03 08:13:35', 1, NULL, NULL, NULL, NULL, NULL, 0, 0, 4, 1, 1, 1, NULL, NULL, '2021-10-03 08:13:35', '2021-10-03 08:17:48');

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

--
-- Table structure for table `store_product_promotions`
--

CREATE TABLE `store_product_promotions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `free_product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `min_sale_quantity` tinyint(4) DEFAULT NULL,
  `free_quantity` tinyint(4) DEFAULT NULL,
  `free_tk` int(11) DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =0',
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `store_serial_carts`
--

CREATE TABLE `store_serial_carts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `store_transaction_id` bigint(20) UNSIGNED DEFAULT NULL,
  `store_invoice_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `size_id` bigint(20) UNSIGNED DEFAULT NULL,
  `color_id` bigint(20) UNSIGNED DEFAULT NULL,
  `quantity` bigint(20) NOT NULL,
  `serial_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `manufacture_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_type` int(11) DEFAULT NULL COMMENT 'P-1, PR-2, S-3, SR-4, Adj in-5, Adj Out-6, Damage-7',
  `dr_cr` tinyint(4) DEFAULT NULL COMMENT '1=dr, 2=cr',
  `use_status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=Not Used, 2=Yes',
  `approve_status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '0=stand by/ 1= Panding/ 2=Approve',
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `store_transactions`
--

CREATE TABLE `store_transactions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `transaction_type` int(11) DEFAULT NULL COMMENT 'P-1, PR-2, S-3, SR-4, Adj in-5, Adj Out-6, Damage-7, issue-8, issue R-9, 10=>store transter raw product, 11=>store transfer in maybe, 12=>production',
  `approve_status` int(11) DEFAULT 1 COMMENT '0=stand by/ 1= Panding/ 2=Approve',
  `autocode_before_bill` int(11) DEFAULT NULL,
  `dr_cr` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `store_invoice_id` bigint(20) UNSIGNED NOT NULL,
  `order_invoice_id` bigint(20) UNSIGNED DEFAULT NULL,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_qty` double NOT NULL DEFAULT 0 COMMENT 'Also used for distribution return Unit Qty.',
  `allocated_qty` double NOT NULL DEFAULT 0 COMMENT 'Also used for distribution return.',
  `quantity` double(8,2) NOT NULL,
  `price` double DEFAULT NULL,
  `order_price` double DEFAULT NULL,
  `dc_price` double(8,2) NOT NULL DEFAULT 0.00 COMMENT '%',
  `manual_dc` double(8,2) NOT NULL DEFAULT 0.00 COMMENT 'taka',
  `avg_price` double NOT NULL DEFAULT 0,
  `unit_qty` double NOT NULL DEFAULT 1,
  `date` timestamp NULL DEFAULT NULL,
  `remarks` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ref_invoice` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `promotion_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `warrenty_from` date DEFAULT NULL,
  `warrenty_to` date DEFAULT NULL,
  `store_from` bigint(20) UNSIGNED DEFAULT NULL,
  `store_to` bigint(20) UNSIGNED DEFAULT NULL,
  `cost_center_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `store_transactions`
--

INSERT INTO `store_transactions` (`id`, `product_id`, `transaction_type`, `approve_status`, `autocode_before_bill`, `dr_cr`, `store_invoice_id`, `order_invoice_id`, `party_id`, `order_qty`, `allocated_qty`, `quantity`, `price`, `order_price`, `dc_price`, `manual_dc`, `avg_price`, `unit_qty`, `date`, `remarks`, `ref_invoice`, `promotion_type`, `description`, `warrenty_from`, `warrenty_to`, `store_from`, `store_to`, `cost_center_id`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 14, 1, 1, NULL, '1', 1, NULL, 22, 0, 0, 100.00, 100, NULL, 0.00, 0.00, 100, 1, '2021-09-25 05:32:00', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 05:32:00', '2021-09-25 05:32:00'),
(2, 14, 1, 1, NULL, '1', 2, NULL, 22, 0, 0, 100.00, 100, NULL, 1.00, 100.00, 99, 1, '2021-09-25 06:29:11', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 06:29:11', '2021-09-25 06:29:11'),
(5, 10, 1, 1, NULL, '1', 6, NULL, 18, 0, 0, 2.00, 220, NULL, 10.00, 44.00, 198, 1, '2021-09-25 07:36:51', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 2, NULL, NULL, NULL, '2021-09-25 07:36:51', '2021-09-25 07:36:51'),
(6, 11, 1, 1, NULL, '1', 6, NULL, 18, 0, 0, 3.00, 233, NULL, 10.00, 69.90, 209.7, 1, '2021-09-25 07:36:51', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 2, NULL, NULL, NULL, '2021-09-25 07:36:51', '2021-09-25 07:36:51'),
(7, 14, 10, 1, NULL, '2', 11, NULL, NULL, 0, 0, 100.00, 2, NULL, 0.00, 0.00, 99.5, 1, '2021-09-25 08:21:04', '10', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 08:21:04', NULL),
(8, 14, 1, 1, NULL, '1', 12, NULL, 20, 0, 0, 100.00, 100, NULL, 2.00, 200.00, 98, 1, '2021-09-25 08:29:15', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 08:29:15', '2021-09-25 08:29:15'),
(9, 1, 1, 1, NULL, '1', 12, NULL, 20, 0, 0, 100.00, 100, NULL, 2.00, 200.00, 98, 1, '2021-09-25 08:29:15', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 08:29:15', '2021-09-25 08:29:15'),
(10, 3, 1, 1, NULL, '1', 12, NULL, 20, 0, 0, 100.00, 100, NULL, 2.00, 200.00, 98, 1, '2021-09-25 08:29:15', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 08:29:15', '2021-09-25 08:29:15'),
(11, 2, 1, 1, NULL, '1', 12, NULL, 20, 0, 0, 100.00, 100, NULL, 2.00, 200.00, 98, 1, '2021-09-25 08:29:15', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 08:29:15', '2021-09-25 08:29:15'),
(12, 14, 6, 1, NULL, '2', 13, NULL, NULL, 0, 0, 100.00, 5, NULL, 0.00, 0.00, 98.75, 1, '2021-09-25 08:31:09', '6', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 08:31:09', '2021-09-25 08:31:09'),
(13, 14, 5, 1, NULL, '1', 14, NULL, NULL, 0, 0, 100.00, 5, NULL, 0.00, 0.00, 98.75, 1, '2021-09-25 08:39:48', '5', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 08:39:48', '2021-09-25 08:39:48'),
(14, 14, 7, 1, NULL, '2', 15, NULL, NULL, 0, 0, 100.00, 5, NULL, 0.00, 0.00, 98.75, 1, '2021-09-25 08:41:52', '7', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 08:41:52', '2021-09-25 08:41:52'),
(15, 14, 1, 1, NULL, '1', 16, NULL, 22, 0, 0, 100.00, 1, NULL, 0.00, 0.00, 1, 1, '2021-09-25 08:58:28', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 3, 3, NULL, NULL, '2021-09-25 08:58:28', '2021-09-25 08:59:25'),
(16, 15, 1, 1, NULL, '1', 17, NULL, 25, 0, 0, 100.00, 100, NULL, 0.00, 0.00, 100, 1, '2021-09-25 13:36:28', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 3, 3, NULL, NULL, '2021-09-25 13:36:28', '2021-09-25 13:37:29'),
(17, 14, 1, 1, NULL, '1', 17, NULL, 25, 0, 0, 100.00, 1, NULL, 0.00, 0.00, 1, 1, '2021-09-25 13:36:28', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 3, 3, NULL, NULL, '2021-09-25 13:36:28', '2021-09-25 13:37:29'),
(18, 15, 1, 1, NULL, '1', 18, NULL, 25, 0, 0, 100.00, 100, NULL, 0.00, 0.00, 100, 1, '2021-09-25 13:39:16', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 3, NULL, NULL, NULL, '2021-09-25 13:39:16', '2021-09-25 13:39:16'),
(19, 16, 1, 1, NULL, '1', 19, NULL, 26, 0, 0, 100.00, 100, NULL, 20.00, 2000.00, 80, 1, '2021-09-25 14:16:21', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:16:21', '2021-09-25 14:16:21'),
(20, 14, 1, 1, NULL, '1', 19, NULL, 26, 0, 0, 100.00, 1, NULL, 20.00, 20.00, 0.8, 1, '2021-09-25 14:16:21', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:16:21', '2021-09-25 14:16:21'),
(21, 16, 1, 1, NULL, '1', 20, NULL, 26, 0, 0, 100.00, 100, NULL, 20.00, 2000.00, 80, 1, '2021-09-25 14:19:13', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:19:13', '2021-09-25 14:19:13'),
(22, 16, 1, 1, NULL, '1', 21, NULL, 26, 0, 0, 100.00, 100, NULL, 1.00, 100.00, 99, 1, '2021-09-25 14:33:20', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:33:20', '2021-09-25 14:33:20'),
(23, 14, 1, 1, NULL, '1', 21, NULL, 26, 0, 0, 100.00, 100, NULL, 1.00, 100.00, 99, 1, '2021-09-25 14:33:20', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:33:20', '2021-09-25 14:33:20'),
(24, 16, 10, 1, NULL, '2', 22, NULL, NULL, 0, 0, 100.00, 16, NULL, 0.00, 0.00, 86.333333333333, 1, '2021-09-25 14:38:55', '10', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 4, 1, 1, NULL, NULL, NULL, '2021-09-25 14:38:55', NULL),
(25, 16, 6, 1, NULL, '2', 23, NULL, NULL, 0, 0, 100.00, 16, NULL, 0.00, 0.00, 86.333333333333, 1, '2021-09-25 14:39:32', '6', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:39:32', '2021-09-25 14:39:32'),
(26, 16, 5, 1, NULL, '1', 24, NULL, NULL, 0, 0, 100.00, 16, NULL, 0.00, 0.00, 86.333333333333, 1, '2021-09-25 14:39:56', '5', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 1, 4, NULL, NULL, NULL, '2021-09-25 14:39:56', '2021-09-25 14:39:56'),
(27, 2, 1, 1, NULL, '1', 25, NULL, 14, 0, 0, 1.00, 2000, NULL, 100.00, 2000.00, 0, 1, '2021-10-03 08:13:35', '1', NULL, NULL, 'hello', NULL, NULL, NULL, NULL, 0, 4, 1, 1, 1, NULL, NULL, '2021-10-03 08:13:35', '2021-10-03 08:17:48');

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

--
-- Table structure for table `types`
--

CREATE TABLE `types` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `module_id` int(10) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active =1 and inactive = 2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `types`
--

INSERT INTO `types` (`id`, `name`, `module_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Purchase type', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(2, 'Purchase return type', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(3, 'Sales type', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(4, 'Sales return type', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(5, 'Payment type', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(6, 'Customer type', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(7, 'Receive type', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(8, 'Supplier type', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(9, 'Voucher type', 1, 1, 1, NULL, NULL, NULL, NULL, NULL);

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

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

CREATE TABLE `units` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0=Primary/1=Secoundary',
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =0',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `units` (`id`, `name`, `type`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Ctn', 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(2, 'ps', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(3, 'KG', 0, 1, 1, NULL, NULL, NULL, NULL, NULL),
(4, 'Gram', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(5, 'Pcs', 0, 1, 1, NULL, NULL, NULL, '2021-09-25 06:07:18', '2021-09-25 06:07:18');

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

--
-- Table structure for table `vat_taxes`
--

CREATE TABLE `vat_taxes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` double(8,2) NOT NULL DEFAULT 0.00 COMMENT 'value as percent',
  `is_fixed` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1-fixed/0-customized',
  `serial` int(11) NOT NULL DEFAULT 0,
  `depends_on` int(11) NOT NULL DEFAULT 0,
  `ledger_id` int(10) UNSIGNED DEFAULT NULL,
  `expense_ledger_id` int(10) UNSIGNED DEFAULT NULL,
  `module_id` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `warehouse_id` int(10) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vat_taxes`
--

INSERT INTO `vat_taxes` (`id`, `name`, `value`, `is_fixed`, `serial`, `depends_on`, `ledger_id`, `expense_ledger_id`, `module_id`, `status`, `warehouse_id`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`) VALUES
(1, 'Vat 0%', 0.00, 0, 0, 0, 301, NULL, 0, 1, 0, NULL, NULL, NULL, NULL, NULL),
(2, 'Vat 7.5%', 7.50, 0, 0, 0, 302, NULL, 0, 1, 0, NULL, NULL, NULL, NULL, NULL),
(3, 'Vat 15%', 15.00, 0, 0, 0, 303, NULL, 0, 1, 0, NULL, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `vendors`
--

CREATE TABLE `vendors` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `group_id` bigint(20) UNSIGNED NOT NULL,
  `account_id` bigint(20) UNSIGNED DEFAULT NULL,
  `store_id` bigint(20) UNSIGNED DEFAULT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` int(11) DEFAULT NULL,
  `showroom_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_eng` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_local` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cost_center` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mobile` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bank_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `swift_code` int(11) DEFAULT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `acc_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `acc_number` int(11) DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED NOT NULL,
  `commission` double DEFAULT NULL,
  `commission_type` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'fixed =1,customized =2',
  `credit_limit_amount` double DEFAULT NULL,
  `credit_limit_day` double DEFAULT NULL,
  `limit_apply` tinyint(4) NOT NULL DEFAULT 2 COMMENT 'limit applied =1',
  `party_type` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'vendor =1,customer=2,common =3',
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'active = 1 inactive =2',
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `vouchers`
--

CREATE TABLE `vouchers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `voucher_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` datetime DEFAULT NULL,
  `bill_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bill_date` datetime DEFAULT NULL,
  `preparation_date` datetime DEFAULT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reff_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_amount` double NOT NULL,
  `due` double NOT NULL DEFAULT 0,
  `cheque_date` datetime DEFAULT NULL,
  `cheque_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `type` bigint(20) UNSIGNED NOT NULL COMMENT '1=cash payment,2=bank payment,3 cash receive,4 bank receive',
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `approve_status` tinyint(1) NOT NULL DEFAULT 0,
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vouchers`
--

INSERT INTO `vouchers` (`id`, `voucher_no`, `date`, `bill_no`, `bill_date`, `preparation_date`, `note`, `reff_no`, `transaction_amount`, `due`, `cheque_date`, `cheque_number`, `warehouse_id`, `type`, `status`, `approve_status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'VCR1', '2021-10-03 14:13:35', NULL, NULL, NULL, '100', '11', 2000, 0, NULL, NULL, 4, 5, 1, 0, 1, NULL, NULL, NULL, '2021-10-03 08:13:35', '2021-10-03 08:13:35'),
(2, 'FAVCR2', '2021-10-03 16:10:36', NULL, NULL, NULL, '', NULL, 0, 0, NULL, NULL, 4, 5, 1, 0, 1, NULL, NULL, NULL, '2021-10-03 10:10:36', '2021-10-03 10:10:36');

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

--
-- Table structure for table `warehouses`
--

CREATE TABLE `warehouses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `parent_id` bigint(20) UNSIGNED DEFAULT NULL,
  `store_table_type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0=>storeTransaction,1=>FgstoreTransaction',
  `name_eng` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_local` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` tinyint(1) NOT NULL COMMENT '1=>branch,2=>warehouse,3=>store',
  `logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `signature` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address_eng` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address_local` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_info` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sell_price` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=warehouse/ 0=store',
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `store_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `acc_inventory` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=Yes/ 0=No',
  `cal_method` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=AVG/ 2=LIFO/ 3=FIFO',
  `use_acc_group` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=multiple/ 0=single',
  `stock_check` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=yes/ 0=no',
  `avg_check` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=yes/ 0=no',
  `use_expiry` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1=yes/ 0=no',
  `order_all` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=yes/ 0=no',
  `marketing` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1=yes/ 0=no',
  `vat_reg_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `cheque_maintain` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=Yes/ 0=No',
  `purchase_attr` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=dont show, 2=buy price, 3=buy code',
  `currency_id` int(11) DEFAULT NULL,
  `barcode_type` int(11) NOT NULL DEFAULT 0 COMMENT '0-EAN_128, 8-EAN_8, 13-EAN_13, 14=EAN_14',
  `barcode_head` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `barcode_foot` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `old_logo` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `time_zone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `check_in_time` time DEFAULT NULL,
  `check_in_consider_time` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `check_out_consider_time` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `warehouses`
--

INSERT INTO `warehouses` (`id`, `parent_id`, `store_table_type`, `name_eng`, `name_local`, `type`, `logo`, `signature`, `address_eng`, `address_local`, `contact_info`, `email`, `sell_price`, `status`, `store_name`, `acc_inventory`, `cal_method`, `use_acc_group`, `stock_check`, `avg_check`, `use_expiry`, `order_all`, `marketing`, `vat_reg_no`, `start_date`, `end_date`, `cheque_maintain`, `purchase_attr`, `currency_id`, `barcode_type`, `barcode_head`, `barcode_foot`, `country`, `old_logo`, `time_zone`, `check_in_time`, `check_in_consider_time`, `check_out_consider_time`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, NULL, 0, 'Default Branch', NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, 1, 1, 1, 1, 1, 0, 1, 0, NULL, NULL, NULL, 1, 1, NULL, 0, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL),
(2, NULL, 0, 'WareHouse 1', NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, 1, 1, 1, 1, 1, 0, 1, 0, NULL, NULL, NULL, 1, 1, NULL, 0, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL),
(3, NULL, 0, 'WareHouse 2', NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, 1, 1, 1, 1, 1, 0, 1, 0, NULL, NULL, NULL, 1, 1, NULL, 0, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL),
(4, 1, 0, 'Madina Branch', 'Madina Branch', 3, NULL, NULL, 'Madina Branch', 'Madina Branch', NULL, NULL, 1, 1, NULL, 1, 1, 1, 1, 1, 0, 1, 0, NULL, NULL, NULL, 1, 1, NULL, 0, NULL, NULL, NULL, '', NULL, '12:00:00', '60', '30', 1, 2, NULL, NULL, NULL, '2021-09-25 07:45:42'),
(5, 1, 0, 'Jiddag Branch', 'Jiddag Branch', 3, NULL, NULL, 'Jiddag Branch', 'Jiddag Branch', NULL, NULL, 1, 1, NULL, 1, 1, 1, 1, 1, 0, 1, 0, NULL, NULL, NULL, 1, 1, NULL, 0, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, 1, 2, NULL, NULL, NULL, '2021-09-25 07:45:09'),
(6, NULL, 0, 'Dhaka', 'ঢাকা', 1, NULL, NULL, 'Dhaka, Bangladesh', 'ঢাকা, বাংলাদেশ', '5234875', 'test@gmail.com', 1, 1, NULL, 1, 1, 1, 1, 1, 0, 1, 0, NULL, NULL, NULL, 1, 1, NULL, 0, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, '2021-09-23 07:48:01', '2021-09-23 08:14:16'),
(7, NULL, 0, 'Chattogram', 'চট্টগ্রাম', 1, NULL, NULL, 'Chattogram, Bangladesh.', 'চট্টগ্রাম, বাংলাদেশ.', '+8801678909098166', 'j@j.com', 1, 1, NULL, 1, 1, 1, 1, 1, 0, 1, 0, NULL, NULL, NULL, 1, 1, NULL, 0, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, 2, NULL, NULL, NULL, '2021-09-23 07:50:37', '2021-09-23 07:50:37'),
(8, 1, 0, 'Makkah Branch', 'Makkah Branch', 3, NULL, NULL, 'Makkah Branch', 'Makkah Branch', '4563347', 'we@ggg.com', 1, 1, NULL, 1, 1, 1, 1, 1, 0, 1, 0, NULL, NULL, NULL, 1, 1, NULL, 0, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, 2, NULL, NULL, NULL, '2021-09-25 07:46:41', '2021-09-25 07:46:41');

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

--
-- Table structure for table `work_orders`
--

CREATE TABLE `work_orders` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `quotation_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total_qty` double NOT NULL DEFAULT 0,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `party_id` bigint(20) UNSIGNED DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `work_order_details`
--

CREATE TABLE `work_order_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `work_order_id` bigint(20) UNSIGNED DEFAULT NULL,
  `quotation_detail_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `unit_size` double NOT NULL DEFAULT 0,
  `qty` double NOT NULL DEFAULT 0,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `warehouse_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `deleted_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

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

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

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

--
-- Indexes for table `action_step`
--
ALTER TABLE `action_step`
  ADD PRIMARY KEY (`id`),
  ADD KEY `action_step_action_id_foreign` (`action_id`),
  ADD KEY `action_step_step_id_foreign` (`step_id`);

--
-- Indexes for table `admin_accounthead`
--
ALTER TABLE `admin_accounthead`
  ADD PRIMARY KEY (`accounthead_id`,`admin_id`),
  ADD KEY `admin_accounthead_admin_id_foreign` (`admin_id`);

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

--
-- Indexes for table `admin_costcenter`
--
ALTER TABLE `admin_costcenter`
  ADD PRIMARY KEY (`admin_id`,`cost_center_id`);

--
-- Indexes for table `admin_role`
--
ALTER TABLE `admin_role`
  ADD PRIMARY KEY (`admin_id`,`role_id`),
  ADD KEY `admin_role_role_id_foreign` (`role_id`);

--
-- Indexes for table `approvals`
--
ALTER TABLE `approvals`
  ADD PRIMARY KEY (`id`),
  ADD KEY `approvals_approvable_type_approvable_id_index` (`approvable_type`,`approvable_id`);

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

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

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

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

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

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

--
-- Indexes for table `carts`
--
ALTER TABLE `carts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `carts_vendor_id_foreign` (`vendor_id`);

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

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

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

--
-- Indexes for table `cheque_details`
--
ALTER TABLE `cheque_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cheque_details_cheque_id_foreign` (`cheque_id`);

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

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

--
-- Indexes for table `color_sizes`
--
ALTER TABLE `color_sizes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `color_sizes_parent_id_foreign` (`parent_id`);

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `customer_shop`
--
ALTER TABLE `customer_shop`
  ADD PRIMARY KEY (`id`),
  ADD KEY `customer_shop_customer_id_index` (`customer_id`),
  ADD KEY `customer_shop_shop_id_index` (`shop_id`);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `fd_room_rates`
--
ALTER TABLE `fd_room_rates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `fd_room_rates_ware_id_foreign` (`ware_id`),
  ADD KEY `fd_room_rates_room_type_id_foreign` (`room_type_id`),
  ADD KEY `fd_room_rates_posted_by_foreign` (`posted_by`),
  ADD KEY `fd_room_rates_deleted_by_foreign` (`deleted_by`);

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `invoice_transportations`
--
ALTER TABLE `invoice_transportations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoice_transportations_store_invoice_id_foreign` (`store_invoice_id`);

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

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

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

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

--
-- Indexes for table `logs`
--
ALTER TABLE `logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `logs_laggable_type_laggable_id_index` (`laggable_type`,`laggable_id`);

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

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

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

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

--
-- Indexes for table `module_role`
--
ALTER TABLE `module_role`
  ADD PRIMARY KEY (`module_id`,`role_id`),
  ADD KEY `module_role_role_id_foreign` (`role_id`);

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

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

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

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

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

--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
  ADD KEY `password_resets_email_index` (`email`);

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

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

--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `permissions_safa_route_name_unique` (`route_name`);

--
-- Indexes for table `permission_role`
--
ALTER TABLE `permission_role`
  ADD PRIMARY KEY (`permission_id`,`role_id`),
  ADD KEY `permission_role_permission_id_index` (`permission_id`),
  ADD KEY `permission_role_role_id_index` (`role_id`);

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

--
-- Indexes for table `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`id`),
  ADD KEY `products_category_id_foreign` (`category_id`),
  ADD KEY `products_warehouse_id_foreign` (`warehouse_id`);

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

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

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

--
-- Indexes for table `product_serial_carts`
--
ALTER TABLE `product_serial_carts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_serial_carts_cart_id_foreign` (`cart_id`);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `settings_type_id_foreign` (`type_id`);

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

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

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

--
-- Indexes for table `stock_ledgers`
--
ALTER TABLE `stock_ledgers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_ledgers_product_id_foreign` (`product_id`),
  ADD KEY `stock_ledgers_store_transaction_id_foreign` (`store_transaction_id`),
  ADD KEY `stock_ledgers_warehouse_id_foreign` (`warehouse_id`);

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

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

--
-- Indexes for table `store_serial_carts`
--
ALTER TABLE `store_serial_carts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_serial_carts_store_transaction_id_foreign` (`store_transaction_id`),
  ADD KEY `store_serial_carts_store_invoice_id_foreign` (`store_invoice_id`),
  ADD KEY `store_serial_carts_product_id_foreign` (`product_id`),
  ADD KEY `store_serial_carts_warehouse_id_foreign` (`warehouse_id`);

--
-- Indexes for table `store_transactions`
--
ALTER TABLE `store_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_transactions_store_invoice_id_foreign` (`store_invoice_id`);

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

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

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

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

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

--
-- Indexes for table `warehouses`
--
ALTER TABLE `warehouses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `warehouses_parent_id_foreign` (`parent_id`);

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `accounts_groups`
--
ALTER TABLE `accounts_groups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `accounts_heads`
--
ALTER TABLE `accounts_heads`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=77;

--
-- AUTO_INCREMENT for table `actions`
--
ALTER TABLE `actions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `action_step`
--
ALTER TABLE `action_step`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `admin_cashes`
--
ALTER TABLE `admin_cashes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `approvals`
--
ALTER TABLE `approvals`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `brands`
--
ALTER TABLE `brands`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `cake_carts`
--
ALTER TABLE `cake_carts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `cake_orders`
--
ALTER TABLE `cake_orders`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `cake_order_details`
--
ALTER TABLE `cake_order_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `card_grades`
--
ALTER TABLE `card_grades`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `card_members`
--
ALTER TABLE `card_members`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `carts`
--
ALTER TABLE `carts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `cashier_ledgers`
--
ALTER TABLE `cashier_ledgers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `cash_banks`
--
ALTER TABLE `cash_banks`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `charts`
--
ALTER TABLE `charts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `cheque_details`
--
ALTER TABLE `cheque_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `cheque_dues`
--
ALTER TABLE `cheque_dues`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `cheque_due_collections`
--
ALTER TABLE `cheque_due_collections`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `color_sizes`
--
ALTER TABLE `color_sizes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `contracts`
--
ALTER TABLE `contracts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `contract_expansions`
--
ALTER TABLE `contract_expansions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `contract_installments`
--
ALTER TABLE `contract_installments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `contract_type_groups`
--
ALTER TABLE `contract_type_groups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `costcenter_mappings`
--
ALTER TABLE `costcenter_mappings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `costings`
--
ALTER TABLE `costings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `cost_centers`
--
ALTER TABLE `cost_centers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `countries`
--
ALTER TABLE `countries`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=253;

--
-- AUTO_INCREMENT for table `currencies`
--
ALTER TABLE `currencies`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `customer_shop`
--
ALTER TABLE `customer_shop`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `damage_transactions`
--
ALTER TABLE `damage_transactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `database_backups`
--
ALTER TABLE `database_backups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `database_credentials`
--
ALTER TABLE `database_credentials`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `expenses`
--
ALTER TABLE `expenses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fa_cost_details`
--
ALTER TABLE `fa_cost_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `fa_details`
--
ALTER TABLE `fa_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `fa_fixed_asset_costs`
--
ALTER TABLE `fa_fixed_asset_costs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `fa_fixed_asset_item_details`
--
ALTER TABLE `fa_fixed_asset_item_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fa_fixed_asset_transections`
--
ALTER TABLE `fa_fixed_asset_transections`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fa_invoices`
--
ALTER TABLE `fa_invoices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `fa_movements`
--
ALTER TABLE `fa_movements`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fa_rates`
--
ALTER TABLE `fa_rates`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fa_transections`
--
ALTER TABLE `fa_transections`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT for table `fd_add_charges`
--
ALTER TABLE `fd_add_charges`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `fd_add_charges_details`
--
ALTER TABLE `fd_add_charges_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `fd_agent_rates`
--
ALTER TABLE `fd_agent_rates`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `fd_allotments`
--
ALTER TABLE `fd_allotments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fd_allotment_details`
--
ALTER TABLE `fd_allotment_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fd_allotment_installments`
--
ALTER TABLE `fd_allotment_installments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fd_allotment_releases`
--
ALTER TABLE `fd_allotment_releases`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fd_bookings`
--
ALTER TABLE `fd_bookings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `fd_booking_facilities`
--
ALTER TABLE `fd_booking_facilities`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `fd_booking_room_details`
--
ALTER TABLE `fd_booking_room_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `fd_charges`
--
ALTER TABLE `fd_charges`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fd_check_in_room_details`
--
ALTER TABLE `fd_check_in_room_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `fd_company_details`
--
ALTER TABLE `fd_company_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `fd_day_adjust_logs`
--
ALTER TABLE `fd_day_adjust_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fd_day_closes`
--
ALTER TABLE `fd_day_closes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `fd_floors`
--
ALTER TABLE `fd_floors`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `fd_guest_infos`
--
ALTER TABLE `fd_guest_infos`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `fd_invoices`
--
ALTER TABLE `fd_invoices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

--
-- AUTO_INCREMENT for table `fd_invoice_details`
--
ALTER TABLE `fd_invoice_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=69;

--
-- AUTO_INCREMENT for table `fd_invoice_others`
--
ALTER TABLE `fd_invoice_others`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fd_package_types`
--
ALTER TABLE `fd_package_types`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fd_rate_change_logs`
--
ALTER TABLE `fd_rate_change_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `fd_rooms`
--
ALTER TABLE `fd_rooms`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `fd_room_bed_change_logs`
--
ALTER TABLE `fd_room_bed_change_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `fd_room_maintenances`
--
ALTER TABLE `fd_room_maintenances`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `fd_room_rates`
--
ALTER TABLE `fd_room_rates`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `fd_room_types`
--
ALTER TABLE `fd_room_types`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `fd_types`
--
ALTER TABLE `fd_types`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `fd_vat_tax_transactions`
--
ALTER TABLE `fd_vat_tax_transactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `fgstore_invoices`
--
ALTER TABLE `fgstore_invoices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fgstore_transactions`
--
ALTER TABLE `fgstore_transactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `financial_report_setups`
--
ALTER TABLE `financial_report_setups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `groups`
--
ALTER TABLE `groups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `indentdetails`
--
ALTER TABLE `indentdetails`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `indents`
--
ALTER TABLE `indents`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `initial_accounts_set_ups`
--
ALTER TABLE `initial_accounts_set_ups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `invoice_parameters`
--
ALTER TABLE `invoice_parameters`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `invoice_transportations`
--
ALTER TABLE `invoice_transportations`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `invoice_types`
--
ALTER TABLE `invoice_types`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `inv_taxes`
--
ALTER TABLE `inv_taxes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `item_groups`
--
ALTER TABLE `item_groups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `journal_transactions`
--
ALTER TABLE `journal_transactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `logs`
--
ALTER TABLE `logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `manage_checkbooks`
--
ALTER TABLE `manage_checkbooks`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `marketing_admins`
--
ALTER TABLE `marketing_admins`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `modules`
--
ALTER TABLE `modules`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `module_wise_tables`
--
ALTER TABLE `module_wise_tables`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=62;

--
-- AUTO_INCREMENT for table `order_carts`
--
ALTER TABLE `order_carts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `order_details`
--
ALTER TABLE `order_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `order_invoices`
--
ALTER TABLE `order_invoices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `party_wise_product_prices`
--
ALTER TABLE `party_wise_product_prices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pay_departments`
--
ALTER TABLE `pay_departments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pay_weekend_holidays`
--
ALTER TABLE `pay_weekend_holidays`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1510;

--
-- AUTO_INCREMENT for table `po_details`
--
ALTER TABLE `po_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `product_categories`
--
ALTER TABLE `product_categories`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

--
-- AUTO_INCREMENT for table `product_groups`
--
ALTER TABLE `product_groups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `product_sell_prices`
--
ALTER TABLE `product_sell_prices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_serial_carts`
--
ALTER TABLE `product_serial_carts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_settings`
--
ALTER TABLE `product_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `purchase_orders`
--
ALTER TABLE `purchase_orders`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `quick_accesses`
--
ALTER TABLE `quick_accesses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `quotations`
--
ALTER TABLE `quotations`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `quotation_details`
--
ALTER TABLE `quotation_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;

--
-- AUTO_INCREMENT for table `reciperawproducts`
--
ALTER TABLE `reciperawproducts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `recipes`
--
ALTER TABLE `recipes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `report_groups`
--
ALTER TABLE `report_groups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `report_layout_set_ups`
--
ALTER TABLE `report_layout_set_ups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `report_print_set_ups`
--
ALTER TABLE `report_print_set_ups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `requisitions`
--
ALTER TABLE `requisitions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `requisition_details`
--
ALTER TABLE `requisition_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `role_mappings`
--
ALTER TABLE `role_mappings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `salesmen`
--
ALTER TABLE `salesmen`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sell_quotations`
--
ALTER TABLE `sell_quotations`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sell_quotation_details`
--
ALTER TABLE `sell_quotation_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `shops`
--
ALTER TABLE `shops`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `steps`
--
ALTER TABLE `steps`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `step_settings`
--
ALTER TABLE `step_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `stock_ledgers`
--
ALTER TABLE `stock_ledgers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `store_invoices`
--
ALTER TABLE `store_invoices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT for table `store_product_promotions`
--
ALTER TABLE `store_product_promotions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `store_serial_carts`
--
ALTER TABLE `store_serial_carts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `store_transactions`
--
ALTER TABLE `store_transactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;

--
-- AUTO_INCREMENT for table `types`
--
ALTER TABLE `types`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `units`
--
ALTER TABLE `units`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `vat_taxes`
--
ALTER TABLE `vat_taxes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `vendors`
--
ALTER TABLE `vendors`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `vouchers`
--
ALTER TABLE `vouchers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `warehouses`
--
ALTER TABLE `warehouses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `work_orders`
--
ALTER TABLE `work_orders`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `work_order_details`
--
ALTER TABLE `work_order_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `action_step`
--
ALTER TABLE `action_step`
  ADD CONSTRAINT `action_step_action_id_foreign` FOREIGN KEY (`action_id`) REFERENCES `actions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `action_step_step_id_foreign` FOREIGN KEY (`step_id`) REFERENCES `steps` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `admin_accounthead`
--
ALTER TABLE `admin_accounthead`
  ADD CONSTRAINT `admin_accounthead_accounthead_id_foreign` FOREIGN KEY (`accounthead_id`) REFERENCES `accounts_heads` (`id`),
  ADD CONSTRAINT `admin_accounthead_admin_id_foreign` FOREIGN KEY (`admin_id`) REFERENCES `admins` (`id`);

--
-- Constraints for table `admin_role`
--
ALTER TABLE `admin_role`
  ADD CONSTRAINT `admin_role_admin_id_foreign` FOREIGN KEY (`admin_id`) REFERENCES `admins` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `admin_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `carts`
--
ALTER TABLE `carts`
  ADD CONSTRAINT `carts_vendor_id_foreign` FOREIGN KEY (`vendor_id`) REFERENCES `vendors` (`id`);

--
-- Constraints for table `cheque_details`
--
ALTER TABLE `cheque_details`
  ADD CONSTRAINT `cheque_details_cheque_id_foreign` FOREIGN KEY (`cheque_id`) REFERENCES `manage_checkbooks` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `color_sizes`
--
ALTER TABLE `color_sizes`
  ADD CONSTRAINT `color_sizes_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `color_sizes` (`id`);

--
-- Constraints for table `currencies`
--
ALTER TABLE `currencies`
  ADD CONSTRAINT `currencies_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`);

--
-- Constraints for table `fd_room_rates`
--
ALTER TABLE `fd_room_rates`
  ADD CONSTRAINT `fd_room_rates_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `admins` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fd_room_rates_posted_by_foreign` FOREIGN KEY (`posted_by`) REFERENCES `admins` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fd_room_rates_room_type_id_foreign` FOREIGN KEY (`room_type_id`) REFERENCES `fd_room_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fd_room_rates_ware_id_foreign` FOREIGN KEY (`ware_id`) REFERENCES `warehouses` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `invoice_transportations`
--
ALTER TABLE `invoice_transportations`
  ADD CONSTRAINT `invoice_transportations_store_invoice_id_foreign` FOREIGN KEY (`store_invoice_id`) REFERENCES `store_invoices` (`id`);

--
-- Constraints for table `module_role`
--
ALTER TABLE `module_role`
  ADD CONSTRAINT `module_role_module_id_foreign` FOREIGN KEY (`module_id`) REFERENCES `modules` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `module_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `party_wise_product_prices`
--
ALTER TABLE `party_wise_product_prices`
  ADD CONSTRAINT `party_wise_product_prices_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`);

--
-- Constraints for table `products`
--
ALTER TABLE `products`
  ADD CONSTRAINT `products_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `product_categories` (`id`),
  ADD CONSTRAINT `products_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`);

--
-- Constraints for table `product_serial_carts`
--
ALTER TABLE `product_serial_carts`
  ADD CONSTRAINT `product_serial_carts_cart_id_foreign` FOREIGN KEY (`cart_id`) REFERENCES `carts` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `product_settings`
--
ALTER TABLE `product_settings`
  ADD CONSTRAINT `product_settings_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`);

--
-- Constraints for table `settings`
--
ALTER TABLE `settings`
  ADD CONSTRAINT `settings_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `types` (`id`);

--
-- Constraints for table `stock_ledgers`
--
ALTER TABLE `stock_ledgers`
  ADD CONSTRAINT `stock_ledgers_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`),
  ADD CONSTRAINT `stock_ledgers_store_transaction_id_foreign` FOREIGN KEY (`store_transaction_id`) REFERENCES `store_transactions` (`id`),
  ADD CONSTRAINT `stock_ledgers_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`);

--
-- Constraints for table `store_serial_carts`
--
ALTER TABLE `store_serial_carts`
  ADD CONSTRAINT `store_serial_carts_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`),
  ADD CONSTRAINT `store_serial_carts_store_invoice_id_foreign` FOREIGN KEY (`store_invoice_id`) REFERENCES `store_invoices` (`id`),
  ADD CONSTRAINT `store_serial_carts_store_transaction_id_foreign` FOREIGN KEY (`store_transaction_id`) REFERENCES `store_transactions` (`id`),
  ADD CONSTRAINT `store_serial_carts_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`);

--
-- Constraints for table `store_transactions`
--
ALTER TABLE `store_transactions`
  ADD CONSTRAINT `store_transactions_store_invoice_id_foreign` FOREIGN KEY (`store_invoice_id`) REFERENCES `store_invoices` (`id`);

--
-- Constraints for table `vendors`
--
ALTER TABLE `vendors`
  ADD CONSTRAINT `vendors_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`);

--
-- Constraints for table `warehouses`
--
ALTER TABLE `warehouses`
  ADD CONSTRAINT `warehouses_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `warehouses` (`id`);
COMMIT;

