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

START TRANSACTION;



--
-- Database: `safa_hotel`
--

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

--
-- 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;

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

--
-- 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);

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

--
-- 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;

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

--
-- 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);

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

--
-- 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),
(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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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);

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

--
-- 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', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL),
(2, 'USD', 85, 0, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL);

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

--
-- 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;

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

--
-- 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;

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

--
-- 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,
  `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;

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

--
-- 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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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);

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

--
-- 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',
  `type` tinyint(4) 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`, `type`, `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, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, 0, 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(2, 'Purchase 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, 2, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(3, 'Sell', 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, 3, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(4, 'Sell 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, 4, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(5, 'Adjustment In', 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, 5, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(6, 'Adjustment Out', 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, 6, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(7, 'Damage', 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, 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(8, 'Issue', 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, 8, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(9, 'Issue 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, 9, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(10, 'Store Transfer', 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, 10, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(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, 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, 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, NULL, NULL, NULL, 0, 0, 5, 0, 13, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, NULL, NULL, NULL, 0, 0, 5, 0, 33, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(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, 34, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(26, 'Packages', 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, 71, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(27, 'Facilities', 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, 72, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(28, 'Charges', 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, 73, 1, 1, 1, NULL, NULL, NULL, NULL, NULL);

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

--
-- 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,
  `warehouse_id` bigint(20) UNSIGNED NOT 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`, `warehouse_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Consumeable', 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(2, 'Service', 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;

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

--
-- 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_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- 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
(1, '2013_01_23_105832_create_warehouses_table', 1),
(2, '2013_02_16_082341_create_admins_table', 1),
(3, '2013_02_17_070310_admin_warehouse', 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),
(137, '2021_07_17_135937_create_fa_invoices_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);

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

--
-- 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);

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

--
-- 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 `parties`
--

CREATE TABLE `parties` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `group_id` bigint(20) UNSIGNED DEFAULT NULL,
  `account_id` bigint(20) UNSIGNED DEFAULT NULL,
  `store_id` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1= current store 2= all store',
  `code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `showroom_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_eng` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_local` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cost_center` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `party_type` int(11) NOT NULL COMMENT '1=>vendor,2=>customer,3=>both,sr =4,shop =5 dealer =6',
  `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,
  `acc_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `acc_number` int(11) DEFAULT 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',
  `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 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 `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,
  `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`, `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, 6, 'HEALTHCHECK', 'ignition.healthCheck', 'ignition', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(2, NULL, NULL, 6, 'EXECUTESOLUTION', 'ignition.executeSolution', 'ignition', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(3, NULL, NULL, 6, 'SHAREREPORT', 'ignition.shareReport', 'ignition', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(4, NULL, NULL, 6, 'SCRIPTS', 'ignition.scripts', 'ignition', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(5, NULL, NULL, 6, 'STYLES', 'ignition.styles', 'ignition', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(6, NULL, NULL, 6, 'HOME', 'home', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(7, NULL, NULL, 6, 'LOGIN', 'admin.login', 'admin', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(8, NULL, NULL, 6, 'LOGIN ATTEMPT', 'admin.login_attempt', 'admin', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(9, NULL, NULL, 6, 'REGISTER UPDATE', 'admin.register_update', 'admin', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(10, NULL, NULL, 6, 'REGISTER UPDATE STATUS', 'admin.register_update_status', 'admin', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(11, NULL, NULL, 6, 'PROFILE', 'admin.profile', 'admin', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(12, NULL, NULL, 6, 'REGISTER INDEX', 'admin.register_index', 'admin', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(13, NULL, NULL, 6, 'REGISTER STORE', 'admin.register_store', 'admin', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(14, NULL, NULL, 6, 'LOGOUT', 'admin.logout', 'admin', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(15, NULL, NULL, 6, 'PERMISSION SYNC', 'default.permission_sync', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(16, NULL, NULL, 6, 'WRITE PERMISSION', 'default.write_permission', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(17, NULL, NULL, 0, 'INDEX', 'stepsettings.index', 'stepsettings', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(18, NULL, NULL, 2, 'STORE', 'stepsettings.store', 'stepsettings', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(19, NULL, NULL, 3, 'EDIT', 'stepsettings.edit', 'stepsettings', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(20, NULL, NULL, 0, 'INDEX', 'quickaccess.index', 'quickaccess', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(21, NULL, NULL, 2, 'STORE', 'quickaccess.store', 'quickaccess', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(22, NULL, NULL, 3, 'EDIT', 'quickaccess.edit', 'quickaccess', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(23, NULL, NULL, 0, 'INDEX', 'dashboard.index', 'dashboard', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(24, NULL, NULL, 0, 'INDEX', 'branch.index', 'branch', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(25, NULL, NULL, 2, 'STORE', 'branch.store', 'branch', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(26, NULL, NULL, 3, 'EDIT', 'branch.edit', 'branch', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(27, NULL, NULL, 6, 'GETALLBRANCH', 'branch.getAllBranch', 'branch', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(28, NULL, NULL, 6, 'CHANGESTATUS', 'branch.changeStatus', 'branch', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(29, NULL, NULL, 0, 'INDEX', 'warehouse.index', 'warehouse', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(30, NULL, NULL, 2, 'STORE', 'warehouse.store', 'warehouse', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(31, NULL, NULL, 3, 'EDIT', 'warehouse.edit', 'warehouse', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(32, NULL, NULL, 6, 'CHANGESTATUS', 'warehouse.changeStatus', 'warehouse', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(33, NULL, NULL, 6, 'SETTINGS', 'company.settings', 'company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(34, NULL, NULL, 2, 'STORE', 'company.store', 'company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(35, NULL, NULL, 0, 'INDEX', 'store.index', 'store', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(36, NULL, NULL, 2, 'STORE', 'store.store', 'store', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(37, NULL, NULL, 3, 'EDIT', 'store.edit', 'store', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(38, NULL, NULL, 6, 'CHANGESTATUS', 'store.changeStatus', 'store', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(39, NULL, NULL, 0, 'INDEX', 'module.index', 'module', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(40, NULL, NULL, 2, 'STORE', 'module.store', 'module', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(41, NULL, NULL, 0, 'INDEX', 'role.index', 'role', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(42, NULL, NULL, 1, 'CREATE', 'role.create', 'role', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(43, NULL, NULL, 3, 'EDIT', 'role.edit', 'role', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(44, NULL, NULL, 2, 'STORE', 'role.store', 'role', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(45, NULL, NULL, 4, 'UPDATE', 'role.update', 'role', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(46, NULL, NULL, 5, 'DESTROY', 'role.destroy', 'role', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(47, NULL, NULL, 0, 'INDEX', 'permission.index', 'permission', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(48, NULL, NULL, 1, 'CREATE', 'permission.create', 'permission', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(49, NULL, NULL, 3, 'EDIT', 'permission.edit', 'permission', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(50, NULL, NULL, 2, 'STORE', 'permission.store', 'permission', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(51, NULL, NULL, 4, 'UPDATE', 'permission.update', 'permission', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(52, NULL, NULL, 5, 'DESTROY', 'permission.destroy', 'permission', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(53, NULL, NULL, 6, 'PERMISSION BY SUBMODULE', 'default.permission_by_submodule', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(54, NULL, NULL, 6, 'SET ACTIVE WAREHOUSE', 'default.set_active_warehouse', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(55, NULL, NULL, 6, 'SET ACTIVE STORE', 'default.set_active_store', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(56, NULL, NULL, 6, 'SET SIDE BAR', 'default.set_side_bar', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(57, NULL, NULL, 6, 'SET CONFIG FILE', 'default.set_config_file', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(58, NULL, NULL, 0, 'INDEX', 'costcenter.index', 'costcenter', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(59, NULL, NULL, 2, 'STORE', 'costcenter.store', 'costcenter', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(60, NULL, NULL, 3, 'EDIT', 'costcenter.edit', 'costcenter', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(61, NULL, NULL, 0, 'INDEX', 'role_mapping.index', 'role_mapping', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(62, NULL, NULL, 1, 'CREATE', 'role_mapping.create', 'role_mapping', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(63, NULL, NULL, 2, 'STORE', 'role_mapping.store', 'role_mapping', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(64, NULL, NULL, 3, 'EDIT', 'role_mapping.edit', 'role_mapping', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(65, NULL, NULL, 4, 'UPDATE', 'role_mapping.update', 'role_mapping', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(66, NULL, NULL, 6, 'UPDATE APPROVAL LOG', 'role_mapping.update_approval_log', 'role_mapping', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(67, NULL, NULL, 0, 'INDEX', 'costcenter_mapping.index', 'costcenter_mapping', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(68, NULL, NULL, 1, 'CREATE', 'costcenter_mapping.create', 'costcenter_mapping', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(69, NULL, NULL, 2, 'STORE', 'costcenter_mapping.store', 'costcenter_mapping', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(70, NULL, NULL, 3, 'EDIT', 'costcenter_mapping.edit', 'costcenter_mapping', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(71, NULL, NULL, 4, 'UPDATE', 'costcenter_mapping.update', 'costcenter_mapping', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(72, NULL, NULL, 6, 'UPDATE APPROVAL LOG', 'costcenter_mapping.update_approval_log', 'costcenter_mapping', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(73, NULL, NULL, 6, 'CHECK APPROVALS', 'costcenter_mapping.check_approvals', 'costcenter_mapping', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(74, NULL, NULL, 6, 'BILL', 'mail.bill', 'mail', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(75, NULL, NULL, 6, 'LOGIN', 'customer.login', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(76, NULL, NULL, 6, 'CUSTOM LOGOUT', 'custom_logout', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(77, NULL, NULL, 6, 'LOGIN ATTEMPT', 'customer.login_attempt', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(78, NULL, NULL, 3, 'EDIT', 'customer.edit', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(79, NULL, NULL, 4, 'UPDATE', 'customer.update', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(80, NULL, NULL, 6, 'SHORT STOCK LIST', 'prepurchase.short_stock_list', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(81, NULL, NULL, 6, 'REQUISITION INDEX', 'prepurchase.requisition_index', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(82, NULL, NULL, 6, 'REQUISITION CREATE', 'prepurchase.requisition_create', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(83, NULL, NULL, 6, 'REQUISITION STORE', 'prepurchase.requisition_store', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(84, NULL, NULL, 6, 'COMPARATIVE STATEMENT', 'prepurchase.comparative_statement', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(85, NULL, NULL, 6, 'QUOTATION INDEX', 'prepurchase.quotation_index', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(86, NULL, NULL, 6, 'QUOTATION CREATE', 'prepurchase.quotation_create', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(87, NULL, NULL, 6, 'QUOTATION STORE', 'prepurchase.quotation_store', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(88, NULL, NULL, 6, 'PO INDEX', 'prepurchase.po_index', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(89, NULL, NULL, 6, 'PO CREATE', 'prepurchase.po_create', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(90, NULL, NULL, 6, 'PO STORE', 'prepurchase.po_store', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(91, NULL, NULL, 6, 'PRINT', 'prepurchase.print', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(92, NULL, NULL, 3, 'EDIT', 'prepurchase.edit', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(93, NULL, NULL, 4, 'UPDATE', 'prepurchase.update', 'prepurchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(94, NULL, NULL, 1, 'CREATE', 'po-by-vendor.create', 'po-by-vendor', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(95, NULL, NULL, 2, 'STORE', 'po-by-vendor.store', 'po-by-vendor', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(96, NULL, NULL, 6, 'COSTING CREATE', 'pre_sells.costing_create', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(97, NULL, NULL, 6, 'COSTING SEARCH', 'pre_sells.costing_search', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(98, NULL, NULL, 6, 'COSTING INDEX', 'pre_sells.costing_index', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(99, NULL, NULL, 6, 'COSTING STORE', 'pre_sells.costing_store', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(100, NULL, NULL, 6, 'QUOTATION INDEX', 'pre_sells.quotation_index', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(101, NULL, NULL, 6, 'QUOTATION CREATE', 'pre_sells.quotation_create', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(102, NULL, NULL, 6, 'QUOTATION STORE', 'pre_sells.quotation_store', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(103, NULL, NULL, 6, 'QUOTATION EDIT', 'pre_sells.quotation_edit', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(104, NULL, NULL, 6, 'QUOTATION PRINT', 'pre_sells.quotation_print', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(105, NULL, NULL, 6, 'QUOTATION MAIL', 'pre_sells.quotation_mail', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(106, NULL, NULL, 6, 'WO INDEX', 'pre_sells.wo_index', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(107, NULL, NULL, 6, 'WO CREATE', 'pre_sells.wo_create', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(108, NULL, NULL, 6, 'WO STORE', 'pre_sells.wo_store', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(109, NULL, NULL, 6, 'WO PRINT', 'pre_sells.wo_print', 'pre_sells', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(110, NULL, NULL, 6, 'REPORTS', 'invoice-parameter.reports', 'invoice-parameter', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(111, NULL, NULL, 6, 'REPORTS UPDATE', 'invoice-parameter.reports_update', 'invoice-parameter', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(112, NULL, NULL, 0, 'INDEX', 'invoice-parameter.index', 'invoice-parameter', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(113, NULL, NULL, 6, 'UPDATEPRINTHTML', 'invoice-parameter.updatePrintHtml', 'invoice-parameter', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(114, NULL, NULL, 6, 'SETTINGS', 'invoice-parameter.settings', 'invoice-parameter', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(115, NULL, NULL, 4, 'UPDATE', 'invoice-parameter.update', 'invoice-parameter', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(116, NULL, NULL, 0, 'INDEX', 'shop.index', 'shop', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(117, NULL, NULL, 2, 'STORE', 'shop.store', 'shop', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(118, NULL, NULL, 3, 'EDIT', 'shop.edit', 'shop', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(119, NULL, NULL, 0, 'INDEX', 'officer.index', 'officer', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(120, NULL, NULL, 2, 'STORE', 'officer.store', 'officer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(121, NULL, NULL, 3, 'EDIT', 'officer.edit', 'officer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(122, NULL, NULL, 6, 'LEVEL INDEX', 'officer.level_index', 'officer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(123, NULL, NULL, 0, 'INDEX', 'color-size.index', 'color-size', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(124, NULL, NULL, 2, 'STORE', 'color-size.store', 'color-size', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(125, NULL, NULL, 3, 'EDIT', 'color-size.edit', 'color-size', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(126, NULL, NULL, 6, 'COLORSIZE', 'color-size.colorSize', 'color-size', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(127, NULL, NULL, 6, 'CHILDBYID', 'color-size.childById', 'color-size', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(128, NULL, NULL, 0, 'INDEX', 'product-setting.index', 'product-setting', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(129, NULL, NULL, 4, 'UPDATE', 'product-setting.update', 'product-setting', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(130, NULL, NULL, 0, 'INDEX', 'product-category.index', 'product-category', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(131, NULL, NULL, 2, 'STORE', 'product-category.store', 'product-category', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(132, NULL, NULL, 3, 'EDIT', 'product-category.edit', 'product-category', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(133, NULL, NULL, 6, 'CHANGESTATUS', 'product-category.changeStatus', 'product-category', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(134, NULL, NULL, 6, 'CODEGENERATOR', 'product-category.codeGenerator', 'product-category', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(135, NULL, NULL, 6, 'SUB CATEGORY', 'product-category.sub_category', 'product-category', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(136, NULL, NULL, 0, 'INDEX', 'product.index', 'product', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(137, NULL, NULL, 2, 'STORE', 'product.store', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(138, NULL, NULL, 1, 'CREATE', 'product.create', 'product', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(139, NULL, NULL, 3, 'EDIT', 'product.edit', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(140, NULL, NULL, 6, 'CHANGE-STATUS', 'product.change-status', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(141, NULL, NULL, 6, 'PRODUCT-FILTER', 'api.product.product-filter', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(142, NULL, NULL, 6, 'CREATETEXTBOX', 'api.product.createTextbox', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(143, NULL, NULL, 6, 'PRODUCTDD', 'api.product.ProductDD', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(144, NULL, NULL, 6, 'BARCODE', 'api.product.barcode', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(145, NULL, NULL, 6, 'LIVESEARCH', 'api.product.liveSearch', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(146, NULL, NULL, 6, 'EXCEL', 'dashboard.excel', 'dashboard', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(147, NULL, NULL, 6, 'EXCEL-STORE', 'dashboard.excel-store', 'dashboard', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(148, NULL, NULL, 6, 'STOCK-AVG', 'product.stock-avg', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(149, NULL, NULL, 6, 'STOCK-AVG-DETAILS', 'product.stock-avg-details', 'product', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(150, NULL, NULL, 6, 'VENDOR-PRICE', 'partywise-product-price.vendor-price', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(151, NULL, NULL, 6, 'CUSTOMER-PRICE', 'partywise-product-price.customer-price', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(152, NULL, NULL, 6, 'CREATEVENDORPRICE', 'partywise-product-price.createVendorPrice', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(153, NULL, NULL, 6, 'CREATECUSTOMERPRICE', 'partywise-product-price.createCustomerPrice', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(154, NULL, NULL, 6, 'STORE-VENDOR-PRICE', 'partywise-product-price.store-vendor-price', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(155, NULL, NULL, 6, 'STORE-CUSTOMER-PRICE', 'partywise-product-price.store-customer-price', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(156, NULL, NULL, 6, 'EDIT-VENDOR-PRICE', 'partywise-product-price.edit-vendor-price', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(157, NULL, NULL, 6, 'GET-PRICE', 'partywise-product-price.get-price', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(158, NULL, NULL, 6, '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, 6, '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, 6, 'UPDATE-INSTANT-PARTYWISEPRICE', 'partywise-product-price.update-instant-partywiseprice', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(161, NULL, NULL, 6, 'FILTER-PARTY-PRICE', 'partywise-product-price.filter-party-price', 'partywise-product-price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(162, NULL, NULL, 0, 'INDEX', 'cart.index', 'cart', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(163, NULL, NULL, 2, 'STORE', 'cart.store', 'cart', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(164, NULL, NULL, 3, 'EDIT', 'cart.edit', 'cart', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(165, NULL, NULL, 6, 'CONFIRMCART', 'cart.confirmCart', 'cart', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(166, NULL, NULL, 6, 'PRODUCT-SERIAL', 'cart.product-serial', 'cart', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(167, NULL, NULL, 6, 'VENDOR-CART', 'cart.vendor-cart', 'cart', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(168, NULL, NULL, 6, 'COLORSIZEDD', 'color-size.colorSizeDD', 'color-size', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(169, NULL, NULL, 2, 'STORE', 'product-serial-cart.store', 'product-serial-cart', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(170, NULL, NULL, 3, 'EDIT', 'product-serial-cart.edit', 'product-serial-cart', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(171, NULL, NULL, 0, 'INDEX', 'store-product-promotion.index', 'store-product-promotion', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(172, NULL, NULL, 2, 'STORE', 'store-product-promotion.store', 'store-product-promotion', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(173, NULL, NULL, 3, 'EDIT', 'store-product-promotion.edit', 'store-product-promotion', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(174, NULL, NULL, 6, 'FILTER', 'store-product-promotion.filter', 'store-product-promotion', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(175, NULL, NULL, 6, 'LIVESEARCH', 'api.invoice.liveSearch', 'invoice', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(176, NULL, NULL, 3, 'EDIT', 'store-transaction.edit', 'store-transaction', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(177, NULL, NULL, 4, 'UPDATE', 'store-transaction.update', 'store-transaction', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(178, NULL, NULL, 3, 'EDIT', 'fg-store-transaction.edit', 'fg-store-transaction', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(179, NULL, NULL, 4, 'UPDATE', 'fg-store-transaction.update', 'fg-store-transaction', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(180, NULL, NULL, 0, 'INDEX', 'purchase.index', 'purchase', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(181, NULL, NULL, 1, 'CREATE', 'purchase.create', 'purchase', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(182, NULL, NULL, 6, 'RETURN', 'purchase.return', 'purchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(183, NULL, NULL, 3, 'EDIT', 'purchase.edit', 'purchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(184, NULL, NULL, 3, 'EDIT', 'purchase-return.edit', 'purchase-return', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(185, NULL, NULL, 4, 'UPDATE', 'purchase.update', 'purchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(186, NULL, NULL, 2, 'STORE', 'purchase.store', 'purchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(187, NULL, NULL, 2, 'STORE', 'purchase-return.store', 'purchase-return', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(188, NULL, NULL, 6, 'FILTER', 'purchase.filter', 'purchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(189, NULL, NULL, 6, 'FILTER-GRN', 'purchase.filter-grn', 'purchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(190, NULL, NULL, 6, 'INVOICE', 'purchase.invoice', 'purchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(191, NULL, NULL, 6, 'INVOICE-TRANSACTION', 'purchase.invoice-transaction', 'purchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(192, NULL, NULL, 6, 'AVAIL-QTY', 'purchase.avail-qty', 'purchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(193, NULL, NULL, 6, 'PRINT', 'purchase.print', 'purchase', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(194, NULL, NULL, 6, 'CREATE-TEXTBOX', 'store-serial-cart.create-textbox', 'store-serial-cart', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(195, NULL, NULL, 6, 'CHECK-SERIAL-NO', 'store-serial-cart.check-serial-no', 'store-serial-cart', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(196, NULL, NULL, 0, 'INDEX', 'sell.index', 'sell', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(197, NULL, NULL, 1, 'CREATE', 'sell.create', 'sell', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(198, NULL, NULL, 6, 'RETURN', 'sell.return', 'sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(199, NULL, NULL, 2, 'STORE', 'sell.store', 'sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(200, NULL, NULL, 2, 'STORE', 'sell-return.store', 'sell-return', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(201, NULL, NULL, 3, 'EDIT', 'sell.edit', 'sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(202, NULL, NULL, 3, 'EDIT', 'sell-return.edit', 'sell-return', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(203, NULL, NULL, 4, 'UPDATE', 'sell.update', 'sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(204, NULL, NULL, 6, 'FILTER', 'sell.filter', 'sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(205, NULL, NULL, 6, 'INVOICE-TRANSACTION', 'sell.invoice-transaction', 'sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(206, NULL, NULL, 6, 'AVAIL-QTY', 'sell.avail-qty', 'sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(207, NULL, NULL, 6, 'PRINT', 'sell.print', 'sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(208, NULL, NULL, 1, 'CREATE', 'sell-pos.create', 'sell-pos', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(209, NULL, NULL, 2, 'STORE', 'sell-pos.store', 'sell-pos', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(210, NULL, NULL, 1, 'CREATE', 'quick-sell.create', 'quick-sell', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(211, NULL, NULL, 1, 'CREATE', 'distribution-sell.create', 'distribution-sell', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(212, NULL, NULL, 3, 'EDIT', 'distribution-sell.edit', 'distribution-sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(213, NULL, NULL, 2, 'STORE', 'distribution-sell.store', 'distribution-sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(214, NULL, NULL, 4, 'UPDATE', 'distribution-sell.update', 'distribution-sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(215, NULL, NULL, 6, 'PRINT', 'distribution-sell.print', 'distribution-sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(216, NULL, NULL, 0, 'INDEX', 'purchase-contract.index', 'purchase-contract', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(217, NULL, NULL, 1, 'CREATE', 'purchase-contract.create', 'purchase-contract', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(218, NULL, NULL, 2, 'STORE', 'purchase-contract.store', 'purchase-contract', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(219, NULL, NULL, 3, 'EDIT', 'purchase-contract.edit', 'purchase-contract', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(220, NULL, NULL, 4, 'UPDATE', 'purchase-contract.update', 'purchase-contract', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(221, NULL, NULL, 0, 'INDEX', 'sales-contract.index', 'sales-contract', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(222, NULL, NULL, 1, 'CREATE', 'sales-contract.create', 'sales-contract', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(223, NULL, NULL, 2, 'STORE', 'sales-contract.store', 'sales-contract', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(224, NULL, NULL, 3, 'EDIT', 'sales-contract.edit', 'sales-contract', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(225, NULL, NULL, 4, 'UPDATE', 'sales-contract.update', 'sales-contract', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(226, NULL, NULL, 1, 'CREATE', 'delivery.create', 'delivery', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(227, NULL, NULL, 6, 'ADD', 'delivery.add', 'delivery', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(228, NULL, NULL, 2, 'STORE', 'delivery.store', 'delivery', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(229, NULL, NULL, 6, 'ORDER-LIST', 'delivery.order-list', 'delivery', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(230, NULL, NULL, 6, 'ORDER-TRANSACTION', 'delivery.order-transaction', 'delivery', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(231, NULL, NULL, 0, 'INDEX', 'issue.index', 'issue', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(232, NULL, NULL, 1, 'CREATE', 'issue.create', 'issue', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(233, NULL, NULL, 6, 'RETURN', 'issue.return', 'issue', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(234, NULL, NULL, 2, 'STORE', 'issue.store', 'issue', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(235, NULL, NULL, 2, 'STORE', 'issue-return.store', 'issue-return', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(236, NULL, NULL, 3, 'EDIT', 'issue.edit', 'issue', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(237, NULL, NULL, 3, 'EDIT', 'issue-return.edit', 'issue-return', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(238, NULL, NULL, 4, 'UPDATE', 'issue.update', 'issue', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(239, NULL, NULL, 6, 'ISSUE-FILTER', 'issue-filter', 'default', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(240, NULL, NULL, 6, 'ISSUE-PRODUCT-DATA', 'issue.issue-product-data', 'issue', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(241, NULL, NULL, 6, 'PRINT', 'issue.print', 'issue', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(242, NULL, NULL, 6, 'DISTRIBUTION-INDEX', 'issue.distribution-index', 'issue', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(243, NULL, NULL, 6, 'DISTRIBUTION', 'issue.distribution', 'issue', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(244, NULL, NULL, 6, 'DISTRIBUTION-STORE', 'issue.distribution-store', 'issue', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(245, NULL, NULL, 6, 'DISTRIBUTION-FILTER', 'issue.distribution-filter', 'issue', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(246, NULL, NULL, 6, 'DISTRIBUTION-REPORT', 'issue.distribution-report', 'issue', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(247, NULL, NULL, 0, 'INDEX', 'adjustment.index', 'adjustment', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(248, NULL, NULL, 1, 'CREATE', 'adjustment.create', 'adjustment', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(249, NULL, NULL, 2, 'STORE', 'adjustment.store', 'adjustment', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(250, NULL, NULL, 3, 'EDIT', 'adjustment.edit', 'adjustment', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(251, NULL, NULL, 4, 'UPDATE', 'adjustment.update', 'adjustment', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(252, NULL, NULL, 6, 'PRINT', 'adjustment.print', 'adjustment', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(253, NULL, NULL, 6, 'IN OUT', 'adjustment.in_out', 'adjustment', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(254, NULL, NULL, 6, 'IN OUT STORE', 'adjustment.in_out_store', 'adjustment', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(255, NULL, NULL, 6, 'IN OUT UPDATE', 'adjustment.in_out_update', 'adjustment', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(256, NULL, NULL, 1, 'CREATE', 'opening.create', 'opening', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(257, NULL, NULL, 2, 'STORE', 'opening.store', 'opening', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(258, NULL, NULL, 6, 'PRINT', 'opening.print', 'opening', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(259, NULL, NULL, 0, 'INDEX', 'production.index', 'production', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(260, NULL, NULL, 1, 'CREATE', 'production.create', 'production', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(261, NULL, NULL, 6, 'ADD', 'production.add', 'production', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(262, NULL, NULL, 3, 'EDIT', 'production.edit', 'production', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(263, NULL, NULL, 4, 'UPDATE', 'production.update', 'production', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(264, NULL, NULL, 2, 'STORE', 'production.store', 'production', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(265, NULL, NULL, 6, 'PRINT', 'production.print', 'production', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(266, NULL, NULL, 6, 'GET-CHEQUE-DUE', 'api.get-cheque-due', 'api', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(267, NULL, NULL, 6, 'CHEQUE-DUE-COL-STORE', 'api.cheque-due-col-store', 'api', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(268, NULL, NULL, 0, 'INDEX', 'manage-type.index', 'manage-type', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(269, NULL, NULL, 1, 'CREATE', 'add-type.create', 'add-type', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(270, NULL, NULL, 2, 'STORE', 'save-type.store', 'save-type', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(271, NULL, NULL, 0, 'INDEX', 'recipe.index', 'recipe', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(272, NULL, NULL, 1, 'CREATE', 'recipe.create', 'recipe', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(273, NULL, NULL, 6, 'PRINT', 'recipe.print', 'recipe', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(274, NULL, NULL, 2, 'STORE', 'recipe.store', 'recipe', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(275, NULL, NULL, 4, 'UPDATE', 'recipe.update', 'recipe', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(276, NULL, NULL, 6, 'RECIPE SEARCH', 'recipe.recipe_search', 'recipe', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(277, NULL, NULL, 0, 'INDEX', 'store_transfer.index', 'store_transfer', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(278, NULL, NULL, 1, 'CREATE', 'store_transfer.create', 'store_transfer', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(279, NULL, NULL, 6, 'PRINT', 'store_transfer.print', 'store_transfer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(280, NULL, NULL, 2, 'STORE', 'store_transfer.store', 'store_transfer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(281, NULL, NULL, 4, 'UPDATE', 'store_transfer.update', 'store_transfer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(282, NULL, NULL, 6, 'REQUEST TO SUBMIT', 'store_transfer.request_to_submit', 'store_transfer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(283, NULL, NULL, 0, 'INDEX', 'indent.index', 'indent', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(284, NULL, NULL, 1, 'CREATE', 'indent.create', 'indent', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(285, NULL, NULL, 6, 'SELF CREATE', 'indent.self_create', 'indent', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(286, NULL, NULL, 6, 'PRINT', 'indent.print', 'indent', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(287, NULL, NULL, 6, 'REQUEST TO SUBMIT', 'indent.request_to_submit', 'indent', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(288, NULL, NULL, 2, 'STORE', 'indent.store', 'indent', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(289, NULL, NULL, 4, 'UPDATE', 'indent.update', 'indent', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(290, NULL, NULL, 6, 'STOCK-SUMMERY-QTY', 'reports.stock-summery-qty', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(291, NULL, NULL, 6, 'NEW-STOCK-SUMMERY-QTY', 'reports.new-stock-summery-qty', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(292, NULL, NULL, 6, 'STOCK-SUMMERY-VALUE', 'reports.stock-summery-value', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(293, NULL, NULL, 6, 'STOCK-SUMMERY-REPORT', 'api.stock-summery-report', 'api', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(294, NULL, NULL, 6, 'SUPPLY-STOCK-SUMMERY', 'reports.supply-stock-summery', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(295, NULL, NULL, 6, 'SUPPLY-STOCK-SUMMERY-REPORT', 'api.supply-stock-summery-report', 'api', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(296, NULL, NULL, 6, 'PRODUCT-LEDGER', 'reports.product-ledger', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(297, NULL, NULL, 6, 'PRODUCT-LEDGER-REPORT', 'api.product-ledger-report', 'api', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(298, NULL, NULL, 6, 'INDENT-ISSUE', 'reports.indent-issue', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(299, NULL, NULL, 6, 'INDENT-ISSUE-REPORT', 'api.indent-issue-report', 'api', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(300, NULL, NULL, 6, 'FG-INDENT-ISSUE', 'reports.fg-indent-issue', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(301, NULL, NULL, 6, 'FG-INDENT-ISSUE-REPORT', 'api.fg-indent-issue-report', 'api', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(302, NULL, NULL, 6, 'PRODUCT', 'reports.product', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(303, NULL, NULL, 6, 'PRODUCT-REPORT', 'api.product-report', 'api', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(304, NULL, NULL, 6, 'DAILY-REPORT', 'reports.daily-report', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(305, NULL, NULL, 6, 'DAILY-REPORT-FILTER', 'reports.daily-report-filter', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(306, NULL, NULL, 6, 'MIS-REPORT', 'reports.mis-report', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(307, NULL, NULL, 6, 'MIS-REPORT-FILTER', 'reports.mis-report-filter', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(308, NULL, NULL, 6, 'SALES-BY-SALESMAN-REPORT', 'reports.sales-by-salesman-report', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(309, NULL, NULL, 6, '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, 'OUTLET-REPORT', 'reports.outlet-report', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(311, NULL, NULL, 6, 'OUTLET-REPORT-FILTER', 'reports.outlet-report-filter', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(312, NULL, NULL, 6, 'INVOICE-PROFIT-REPORT', 'reports.invoice-profit-report', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(313, NULL, NULL, 6, 'INVOICE-PROFIT-REPORT-FILTER', 'reports.invoice-profit-report-filter', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(314, NULL, NULL, 0, 'INDEX', 'barcode.index', 'barcode', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(315, NULL, NULL, 0, 'INDEX', 'db.index', 'db', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(316, NULL, NULL, 5, 'DESTROY', 'db.destroy', 'db', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(317, NULL, NULL, 0, 'INDEX', 'vendor.index', 'vendor', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(318, NULL, NULL, 1, 'CREATE', 'vendor.create', 'vendor', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(319, NULL, NULL, 2, 'STORE', 'vendor.store', 'vendor', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(320, NULL, NULL, 4, 'UPDATE', 'vendor.update', 'vendor', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(321, NULL, NULL, 3, 'EDIT', 'vendor.edit', 'vendor', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(322, NULL, NULL, 6, 'LIVESEARCH', 'api.vendor.liveSearch', 'vendor', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(323, NULL, NULL, 0, 'INDEX', 'type.index', 'type', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(324, NULL, NULL, 1, 'CREATE', 'add-setting.create', 'add-setting', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(325, NULL, NULL, 2, 'STORE', 'save-setting.store', 'save-setting', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(326, NULL, NULL, 3, 'EDIT', 'edit-setting.edit', 'edit-setting', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(327, NULL, NULL, 4, 'UPDATE', 'update-setting.update', 'update-setting', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(328, NULL, NULL, 0, 'INDEX', 'manage-group.index', 'manage-group', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(329, NULL, NULL, 1, 'CREATE', 'save-group.create', 'save-group', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(330, NULL, NULL, 3, 'EDIT', 'edit-group.edit', 'edit-group', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(331, NULL, NULL, 4, 'UPDATE', 'update-group.update', 'update-group', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(332, NULL, NULL, 0, 'INDEX', 'customer.index', 'customer', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(333, NULL, NULL, 1, 'CREATE', 'customer.create', 'customer', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(334, NULL, NULL, 2, 'STORE', 'customer.store', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(335, NULL, NULL, 6, 'LIVESEARCH', 'api.customer.liveSearch', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(336, NULL, NULL, 6, 'FILTER', 'customer.filter', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(337, NULL, NULL, 6, 'CHANGE-STATUS', 'customer.change-status', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(338, NULL, NULL, 2, 'STORE', 'save-brand.store', 'save-brand', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(339, NULL, NULL, 0, 'INDEX', 'manage-brand.index', 'manage-brand', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(340, NULL, NULL, 3, 'EDIT', 'edit-brand.edit', 'edit-brand', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(341, NULL, NULL, 4, 'UPDATE', 'update-brand.update', 'update-brand', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(342, NULL, NULL, 0, 'INDEX', 'currency.index', 'currency', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(343, NULL, NULL, 2, 'STORE', 'currency.store', 'currency', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(344, NULL, NULL, 3, 'EDIT', 'currency.edit', 'currency', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(345, NULL, NULL, 1, 'CREATE', 'save-cartgrade.create', 'save-cartgrade', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(346, NULL, NULL, 0, 'INDEX', 'manage-cardgrade.index', 'manage-cardgrade', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(347, NULL, NULL, 3, 'EDIT', 'edit-cardgrade.edit', 'edit-cardgrade', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(348, NULL, NULL, 4, 'UPDATE', 'update-cartgrade.update', 'update-cartgrade', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(349, NULL, NULL, 1, 'CREATE', 'save-cardmember.create', 'save-cardmember', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(350, NULL, NULL, 0, 'INDEX', 'manage-cardmember.index', 'manage-cardmember', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(351, NULL, NULL, 3, 'EDIT', 'edit-card-member.edit', 'edit-card-member', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(352, NULL, NULL, 4, 'UPDATE', 'update-cardmember.update', 'update-cardmember', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(353, NULL, NULL, 0, 'INDEX', 'manage-checkbook.index', 'manage-checkbook', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(354, NULL, NULL, 2, 'STORE', 'save-check-book.store', 'save-check-book', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(355, NULL, NULL, 6, 'SEARCH', 'cheque_book.search', 'cheque_book', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(356, NULL, NULL, 6, 'ALLOCATION', 'order.allocation', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(357, NULL, NULL, 6, 'STORE ALLOCATION', 'order.store_allocation', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(358, NULL, NULL, 6, 'MASS ALLOCATION STORE', 'order.mass_allocation_store', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(359, NULL, NULL, 6, 'DELIVERY LIST', 'order.delivery_list', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(360, NULL, NULL, 6, 'DELIVERY LIST', 'order_back.delivery_list', 'order_back', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(361, NULL, NULL, 6, 'DELIVERY STORE', 'order.delivery_store', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(362, NULL, NULL, 3, 'EDIT', 'order.edit', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(363, NULL, NULL, 6, 'PRINT', 'order.print', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(364, NULL, NULL, 4, 'UPDATE', 'order.update', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(365, NULL, NULL, 6, 'CAKE LIST', 'order.cake_list', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(366, NULL, NULL, 6, 'CAKE EDIT', 'order.cake_edit', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(367, NULL, NULL, 6, 'CAKE PRINT', 'order.cake_print', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(368, NULL, NULL, 6, 'CAKE UPDATE', 'order.cake_update', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(369, NULL, NULL, 6, 'SHOWROOM WISE PRODUCT', 'order.showroom_wise_product', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(370, NULL, NULL, 6, 'SHOWROOM WISE ORDER', 'order.showroom_wise_order', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(371, NULL, NULL, 6, 'SECTION WISE ORDER', 'order.section_wise_order', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(372, NULL, NULL, 6, 'PRODUCT WISE ORDER', 'order.product_wise_order', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(373, NULL, NULL, 6, 'SHOWROOM WISE INDIVIDUAL SALES', 'order.showroom_wise_individual_sales', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(374, NULL, NULL, 6, 'SHOWROOM WISE SALES', 'order.showroom_wise_sales', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(375, NULL, NULL, 6, 'SALES SUMMERY', 'order.sales_summery', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(376, NULL, NULL, 6, 'SHOWROOM WISE SALES RETURN', 'order.showroom_wise_sales_return', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(377, NULL, NULL, 6, 'SHOWROOM WISE PRODUCT SALES', 'order.showroom_wise_product_sales', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(378, NULL, NULL, 6, 'SHOWROOM WISE PRODUCT SALES RETURN', 'order.showroom_wise_product_sales_return', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(379, NULL, NULL, 6, 'ITEM WISE PRODUCT SALES', 'order.item_wise_product_sales', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(380, NULL, NULL, 6, 'CHEQUE-NO', 'cheque-no-dd.cheque-no', 'cheque-no-dd', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(381, NULL, NULL, 0, 'INDEX', 'item_group.index', 'item_group', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(382, NULL, NULL, 2, 'STORE', 'item_group.store', 'item_group', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(383, NULL, NULL, 3, 'EDIT', 'item_group.edit', 'item_group', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(384, NULL, NULL, 0, 'INDEX', 'accounts_group.index', 'accounts_group', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(385, NULL, NULL, 2, 'STORE', 'accounts_group.store', 'accounts_group', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(386, NULL, NULL, 3, 'EDIT', 'accounts_group.edit', 'accounts_group', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(387, NULL, NULL, 6, 'CART CREATE', 'admin_order.cart_create', 'admin_order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(388, NULL, NULL, 6, 'CART STORE', 'admin_order.cart_store', 'admin_order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(389, NULL, NULL, 6, 'CART UPDATE', 'admin_order.cart_update', 'admin_order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(390, NULL, NULL, 1, 'CREATE', 'admin_order.create', 'admin_order', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(391, NULL, NULL, 2, 'STORE', 'admin_order.store', 'admin_order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(392, NULL, NULL, 6, 'CART REMOVE', 'admin_order.cart_remove', 'admin_order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(393, NULL, NULL, 6, 'LIST', 'admin_order.list', 'admin_order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(394, NULL, NULL, 6, 'CART CREATE', 'order_back.cart_create', 'order_back', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(395, NULL, NULL, 6, 'CART STORE', 'admin_order_back.cart_store', 'admin_order_back', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(396, NULL, NULL, 6, 'CART UPDATE', 'order_back.cart_update', 'order_back', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(397, NULL, NULL, 1, 'CREATE', 'order_back.create', 'order_back', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(398, NULL, NULL, 2, 'STORE', 'order_back.store', 'order_back', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(399, NULL, NULL, 6, 'LIST', 'order_back.list', 'order_back', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(400, NULL, NULL, 6, 'CAKE CART CREATE', 'order.cake_cart_create', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(401, NULL, NULL, 6, 'CAKE CART STORE', 'order.cake_cart_store', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(402, NULL, NULL, 6, 'CAKE ORDER CREATE', 'order.cake_order_create', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(403, NULL, NULL, 6, 'CAKE CART REMOVE', 'order.cake_cart_remove', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(404, NULL, NULL, 6, 'CAKE CART UPDATE', 'order.cake_cart_update', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(405, NULL, NULL, 6, 'CAKE ORDER STORE', 'order.cake_order_store', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(406, NULL, NULL, 6, 'CART CREATE', 'order.cart_create', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(407, NULL, NULL, 6, 'CART STORE', 'order.cart_store', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(408, NULL, NULL, 6, 'CART UPDATE', 'order.cart_update', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(409, NULL, NULL, 1, 'CREATE', 'order.create', 'order', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(410, NULL, NULL, 2, 'STORE', 'order.store', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(411, NULL, NULL, 6, 'CART REMOVE', 'order.cart_remove', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(412, NULL, NULL, 6, 'LIST', 'order.list', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(413, NULL, NULL, 6, 'CART STORE', 'order_back.cart_store', 'order_back', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(414, NULL, NULL, 6, 'CAKE LIST BY CUSTOMER', 'order.cake_list_by_customer', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(415, NULL, NULL, 6, 'CLIENT CAKE PRINT', 'order.client_cake_print', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(416, NULL, NULL, 6, 'PROFILE', 'customer.profile', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(417, NULL, NULL, 6, 'PROFILE UPDATE', 'customer.profile_update', 'customer', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(418, NULL, NULL, 6, 'CLIENT PRINT', 'order.client_print', 'order', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(419, NULL, NULL, 6, 'CLIENT PRINT', 'sell.client_print', 'sell', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(420, NULL, NULL, 0, 'INDEX', 'unit.index', 'unit', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(421, NULL, NULL, 2, 'STORE', 'unit.store', 'unit', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(422, NULL, NULL, 3, 'EDIT', 'unit.edit', 'unit', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(423, NULL, NULL, 1, 'CREATE', 'product_sales_price.create', 'product_sales_price', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(424, NULL, NULL, 2, 'STORE', 'product_sales_price.store', 'product_sales_price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(425, NULL, NULL, 0, 'INDEX', 'product_sales_price.index', 'product_sales_price', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(426, NULL, NULL, 4, 'UPDATE', 'product_sales_price.update', 'product_sales_price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(427, NULL, NULL, 6, 'CATEGORY PRODUCT', 'product_sales_price.category_product', 'product_sales_price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(428, NULL, NULL, 6, 'FILTER', 'product_sales_price.filter', 'product_sales_price', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(429, NULL, NULL, 0, 'INDEX', 'charts.index', 'charts', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(430, NULL, NULL, 2, 'STORE', 'charts.store', 'charts', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(431, NULL, NULL, 3, 'EDIT', 'charts.edit', 'charts', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `permissions` (`id`, `code`, `sorting_index`, `task`, `name`, `route_name`, `group_name`, `module_id`, `status`, `type`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(432, NULL, NULL, 1, 'CREATE', 'save-cashbank.create', 'save-cashbank', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(433, NULL, NULL, 0, 'INDEX', 'manage-cashbank.index', 'manage-cashbank', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(434, NULL, NULL, 3, 'EDIT', 'edit-cashbank.edit', 'edit-cashbank', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(435, NULL, NULL, 4, 'UPDATE', 'update-cashbank.update', 'update-cashbank', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(436, NULL, NULL, 6, 'CASHBANKDD', 'cash-bank-dd.cashBankDD', 'cash-bank-dd', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(437, NULL, NULL, 0, 'INDEX', 'accounts_head.index', 'accounts_head', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(438, NULL, NULL, 1, 'CREATE', 'accounts_head.create', 'accounts_head', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(439, NULL, NULL, 2, 'STORE', 'accounts_head.store', 'accounts_head', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(440, NULL, NULL, 4, 'UPDATE', 'accounts_head.update', 'accounts_head', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(441, NULL, NULL, 0, 'INDEX', 'accounts_settings.index', 'accounts_settings', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(442, NULL, NULL, 1, 'CREATE', 'accounts_settings.create', 'accounts_settings', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(443, NULL, NULL, 2, 'STORE', 'accounts_settings.store', 'accounts_settings', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(444, NULL, NULL, 4, 'UPDATE', 'accounts_settings.update', 'accounts_settings', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(445, NULL, NULL, 6, 'LEDGER SEARCH', 'accounts_settings.ledger_search', 'accounts_settings', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(446, NULL, NULL, 6, 'CASH PAYMENT VOUCHERS', 'voucher.cash_payment_vouchers', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(447, NULL, NULL, 6, 'BANK PAYMENT VOUCHERS', 'voucher.bank_payment_vouchers', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(448, NULL, NULL, 6, 'CASH RECEIVE VOUCHERS', 'voucher.cash_receive_vouchers', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(449, NULL, NULL, 6, 'BANK RECEIVE VOUCHERS', 'voucher.bank_receive_vouchers', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(450, NULL, NULL, 6, 'JOURNAL VOUCHERS', 'voucher.journal_vouchers', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(451, NULL, NULL, 6, 'BILL', 'voucher.bill', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(452, NULL, NULL, 6, 'SET PREPARATION DATE', 'voucher.set_preparation_date', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(453, NULL, NULL, 6, 'ALLOTED CHEQUE LIST', 'voucher.alloted_cheque_list', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(454, NULL, NULL, 6, 'CHEQUE ALLOTMENT', 'voucher.cheque_allotment', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(455, NULL, NULL, 6, 'CHEQUE VOUCHER DETAILS', 'voucher.cheque_voucher_details', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(456, NULL, NULL, 6, 'BANK STATEMENT', 'voucher.bank_statement', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(457, NULL, NULL, 6, 'CHEQUE STATEMENT', 'voucher.cheque_statement', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(458, NULL, NULL, 6, 'CHEQUE PRINT', 'voucher.cheque_print', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(459, NULL, NULL, 6, 'CHEQUE STATUS', 'voucher.cheque_status', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(460, NULL, NULL, 6, 'CHECK OUT BILL', 'voucher.check_out_bill', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(461, NULL, NULL, 6, 'CASH PAYMENT VOUCHER', 'voucher.cash_payment_voucher', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(462, NULL, NULL, 6, 'BANK PAYMENT VOUCHER', 'voucher.bank_payment_voucher', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(463, NULL, NULL, 6, 'CASH RECEIVE VOUCHER', 'voucher.cash_receive_voucher', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(464, NULL, NULL, 6, 'BANK RECEIVE VOUCHER', 'voucher.bank_receive_voucher', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(465, NULL, NULL, 6, 'JOURNAL VOUCHER', 'voucher.journal_voucher', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(466, NULL, NULL, 6, 'VOUCHER SEARCH', 'voucher.voucher_search', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(467, NULL, NULL, 2, 'STORE', 'voucher.store', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(468, NULL, NULL, 6, 'VOUCHER DETAILS', 'voucher.voucher_details', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(469, NULL, NULL, 6, 'JOURNAL VOUCHER STORE', 'voucher.journal_voucher_store', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(470, NULL, NULL, 6, 'JOURNAL VOUCHER UPDATE', 'voucher.journal_voucher_update', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(471, NULL, NULL, 6, 'INVOICE SEARCH', 'voucher.invoice_search', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(472, NULL, NULL, 6, 'VENDOR PAYMENT VOUCHER', 'voucher.vendor_payment_voucher', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(473, NULL, NULL, 6, 'CUSTOMER RECEIVE VOUCHER', 'voucher.customer_receive_voucher', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(474, NULL, NULL, 6, 'PAYMENT STORE', 'voucher.payment_store', 'voucher', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(475, NULL, NULL, 6, 'CHART OF ACCOUNTS', 'reports.chart_of_accounts', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(476, NULL, NULL, 6, 'LEDGER VIEW', 'reports.ledger_view', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(477, NULL, NULL, 6, 'JOURNAL VIEW', 'reports.journal_view', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(478, NULL, NULL, 6, 'GROUP LEDGER VIEW', 'reports.group_ledger_view', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(479, NULL, NULL, 6, 'GROUP LEGDER DETAILS', 'reports.group_legder_details', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(480, NULL, NULL, 6, 'RECEIPT PAYMENT STATEMENT', 'reports.receipt_payment_statement', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(481, NULL, NULL, 6, 'TRAIL BALANCE STATEMENT', 'reports.trail_balance_statement', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(482, NULL, NULL, 6, 'TRAIL BALANCE GROUP BY', 'reports.trail_balance_group_by', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(483, NULL, NULL, 6, 'INCOME STATEMENT', 'reports.income_statement', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(484, NULL, NULL, 6, 'CUSTOM INCOME STATEMENT', 'reports.custom_income_statement', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(485, NULL, NULL, 6, 'CUSTOM REPORT API', 'reports.custom_report_api', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(486, NULL, NULL, 6, 'BALANCE SHEET', 'reports.balance_sheet', 'reports', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(487, NULL, NULL, 1, 'CREATE', 'fixed_asset_item.create', 'fixed_asset_item', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(488, NULL, NULL, 6, 'PRODUCT', 'fixed_asset_item.product', 'fixed_asset_item', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(489, NULL, NULL, 6, 'PRODUCTINFO', 'fixed_asset_item.productinfo', 'fixed_asset_item', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(490, NULL, NULL, 2, 'STORE', 'fixed_asset_item.store', 'fixed_asset_item', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(491, NULL, NULL, 0, 'INDEX', 'fixed_asset_item.index', 'fixed_asset_item', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(492, NULL, NULL, 3, 'EDIT', 'fixed_asset_item.edit', 'fixed_asset_item', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(493, NULL, NULL, 4, 'UPDATE', 'fixed_asset_item.update', 'fixed_asset_item', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(494, NULL, NULL, 6, 'AUTO FACODE', 'fixed_asset_item.auto_facode', 'fixed_asset_item', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(495, NULL, NULL, 6, 'REPORT', 'fixed_asset_item.report', 'fixed_asset_item', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(496, NULL, NULL, 6, 'REPORT FILTER', 'fixed_asset_item.report_filter', 'fixed_asset_item', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(497, NULL, NULL, 6, 'VENDOR INFO', 'fixed_asset_item.vendor_info', 'fixed_asset_item', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(498, NULL, NULL, 0, 'INDEX', 'fixed_asset_cost.index', 'fixed_asset_cost', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(499, NULL, NULL, 2, 'STORE', 'fixed_asset_cost.store', 'fixed_asset_cost', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(500, NULL, NULL, 3, 'EDIT', 'fixed_asset_cost.edit', 'fixed_asset_cost', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(501, NULL, NULL, 4, 'UPDATE', 'fixed_asset_cost.update', 'fixed_asset_cost', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(502, NULL, NULL, 1, 'CREATE', 'fixed_asset_adding.create', 'fixed_asset_adding', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(503, NULL, NULL, 6, 'GET DATA', 'fixed_asset_adding.get_data', 'fixed_asset_adding', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(504, NULL, NULL, 2, 'STORE', 'fixed_asset_adding.store', 'fixed_asset_adding', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(505, NULL, NULL, 0, 'INDEX', 'fixed_asset_adding.index', 'fixed_asset_adding', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(506, NULL, NULL, 1, 'CREATE', 'fixed_asset_disposal.create', 'fixed_asset_disposal', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(507, NULL, NULL, 6, 'GET DATA', 'fixed_asset_disposal.get_data', 'fixed_asset_disposal', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(508, NULL, NULL, 2, 'STORE', 'fixed_asset_disposal.store', 'fixed_asset_disposal', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(509, NULL, NULL, 1, 'CREATE', 'fixed_asset_movement.create', 'fixed_asset_movement', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(510, NULL, NULL, 6, 'ASSET-TRACK', 'fixed_asset_movement.asset-track', 'fixed_asset_movement', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(511, NULL, NULL, 2, 'STORE', 'fixed_asset_movement.store', 'fixed_asset_movement', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(512, NULL, NULL, 6, 'REPORT', 'fixed_asset_movement.report', 'fixed_asset_movement', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(513, NULL, NULL, 6, 'REPORT RESULT', 'fixed_asset_movement.report_result', 'fixed_asset_movement', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(514, NULL, NULL, 1, 'CREATE', 'depreciation.create', 'depreciation', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(515, NULL, NULL, 2, 'STORE', 'depreciation.store', 'depreciation', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(516, NULL, NULL, 1, 'CREATE', 'fixed_asset_adjustmentout.create', 'fixed_asset_adjustmentout', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(517, NULL, NULL, 2, 'STORE', 'fixed_asset_adjustmentout.store', 'fixed_asset_adjustmentout', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(518, NULL, NULL, 6, 'DISPOSAL REPORT', 'fixed_asset_report.disposal_report', 'fixed_asset_report', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(519, NULL, NULL, 6, 'DISPOSAL REPORT FILTER', 'fixed_asset_report.disposal_report_filter', 'fixed_asset_report', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(520, NULL, NULL, 6, 'REPORT SUMMARY', 'fixed_asset_report.report_summary', 'fixed_asset_report', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(521, NULL, NULL, 6, 'REPORT SUMMARY FILTER', 'fixed_asset_report.report_summary_filter', 'fixed_asset_report', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(522, 101, NULL, 0, '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, '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, '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, '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, '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, '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, '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, '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, 'ADVANCE STORE', 'frontdesk.fdvoucher.advance_store', 'fdvoucher', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(531, 101, NULL, 6, 'ADVANCE RECEIVE', 'frontdesk.fdvoucher.advance_receive', 'fdvoucher', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(532, 101, NULL, 6, 'AGENT ROOM RATES', 'frontdesk.api.agent_room_rates.index', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(533, 101, 1, 0, '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, '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, 'STORE', 'frontdesk.agent_rates.store', 'Agent Rate', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(536, 101, NULL, 2, 'EDIT', 'frontdesk.agent_rates.edit', 'Agent Rate', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(537, 101, NULL, 2, 'UPDATE', 'frontdesk.agent_rates.update', 'Agent Rate', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(538, 101, NULL, 7, 'Agent Rate Report', 'frontdesk.agent_rates.report', 'Agent Rate', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(539, 101, NULL, 6, 'INFO', 'frontdesk.agent_rates.info', 'Agent Rate', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(540, NULL, NULL, 6, 'CONTRACT', 'frontdesk.sales.contract', 'sales', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(541, 101, NULL, 0, 'Room Clean Status', 'frontdesk.room_clean.status', 'Room/Bed Cleaning', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(542, 101, NULL, 6, 'STATUS', 'frontdesk.room_clean.status.update', 'Room/Bed Cleaning', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(543, 101, NULL, 6, 'ROOM CLEAN', 'frontdesk.accept.room_clean.status', 'Room/Bed Cleaning', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(544, 101, NULL, 0, 'Bed Clean Status', 'frontdesk.bed_clean.status', 'Room/Bed Cleaning', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(545, 101, NULL, 6, 'STATUS', 'frontdesk.bed_clean.status.update', 'Room/Bed Cleaning', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(546, 101, NULL, 6, 'BED CLEAN', 'frontdesk.accept.bed_clean.status', 'Room/Bed Cleaning', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(547, 101, NULL, 6, 'API', 'frontdesk.booking.api.create', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(548, 101, NULL, 1, 'By Room', 'frontdesk.room_booking.create', 'Booking', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(549, 101, NULL, 1, 'By Bed', 'frontdesk.bed_booking.create', 'Booking', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(550, 101, NULL, 6, 'ROOM-SEARCH', 'frontdesk.room-search', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(551, 101, NULL, 6, 'RESV-NO-SEARCH', 'frontdesk.resv-no-search', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(552, 101, NULL, 6, 'CHECKIN NO SEARCH', 'frontdesk.checkin_no_search', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(553, 101, NULL, 6, 'PRINT', 'frontdesk.booking.print', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(554, 101, NULL, 0, 'Booking List', 'frontdesk.booking.reservation.list', 'Booking', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(555, 101, NULL, 2, 'EDIT', 'frontdesk.booking.edit', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(556, 101, NULL, 6, 'REQUEST FOR RATE CHANGE', 'frontdesk.booking.request_for_rate_change', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(557, 106, NULL, 0, 'List', 'frontdesk.booking.reservation.rate_change.list', 'Rate Change', 9, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(558, 106, NULL, 6, 'RESERVATION', 'frontdesk.booking.reservation.get_booking_details_info', 'Booking Cancel', 9, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(559, 106, NULL, 5, 'Approve', 'frontdesk.booking.cancel_request.approve', 'Booking Cancel', 9, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(560, 101, NULL, 6, '', 'frontdesk.', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(561, 101, NULL, 6, 'RESERVATION', 'frontdesk.booking.reservation.report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(562, 101, NULL, 6, 'ROOM RESERVATION BY DATE', 'frontdesk.report.room_reservation_by_date', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(563, 101, NULL, 6, '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, 'ROOM RESERVATION BY RATE', 'frontdesk.report.room_reservation_by_rate', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(565, 101, NULL, 6, '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, 'VACANT ROOM SUMMERY', 'frontdesk.report.vacant_room_summery', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(567, 101, NULL, 6, 'VACANT ROOM SUMMERY PRINT', 'frontdesk.report.vacant_room_summery_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(568, 101, NULL, 6, 'RESERVATION CANCEL REPORT', 'frontdesk.report.reservation_cancel_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(569, 101, NULL, 6, 'RESERVATION CANCEL REPORT PRINT', 'frontdesk.report.reservation_cancel_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(570, 101, NULL, 6, 'CHANGED ROOM BED REPORT', 'frontdesk.report.changed_room_bed_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(571, 101, NULL, 6, '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, 'GUEST REPORT', 'frontdesk.report.guest_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(573, 101, NULL, 6, 'GUEST REPORT PRINT', 'frontdesk.report.guest_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(574, 101, NULL, 6, 'ROOM REPORT BY AGENT', 'frontdesk.report.room_report_by_agent', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(575, 101, NULL, 6, '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, 'VACANT ROOM REPORT', 'frontdesk.report.vacant_room_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(577, 101, NULL, 6, 'VACANT ROOM REPORT PRINT', 'frontdesk.report.vacant_room_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(578, 101, NULL, 6, 'ROOM STATUS REPORT', 'frontdesk.report.room_status_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(579, 101, NULL, 6, 'ROOM STATUS REPORT PRINT', 'frontdesk.report.room_status_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(580, 101, NULL, 6, 'RESERVATION', 'frontdesk.booking.reservation.resv_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(581, 101, NULL, 6, 'RESERVATION', 'frontdesk.booking.reservation.resv_report_print_without_rent', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(582, 101, NULL, 6, 'CHECK IN OUT DETAILS', 'frontdesk.report.check_in_out_details', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(583, 101, NULL, 6, '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, 'RECEIPT PRINT', 'frontdesk.report.receipt_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(585, 101, NULL, 6, '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, '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, '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, '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, 'ROOM REVENUE REPORT', 'frontdesk.report.room_revenue_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(590, 101, NULL, 6, 'ROOM REVENUE REPORT PRINT', 'frontdesk.report.room_revenue_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(591, 101, NULL, 6, 'EXPECTED CHECKIN REPORT', 'frontdesk.report.expected_checkin_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(592, 101, NULL, 6, 'EXPECTED CHECKIN REPORT PRINT', 'frontdesk.report.expected_checkin_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(593, 101, NULL, 6, 'EXPECTED CHECKOUT REPORT', 'frontdesk.report.expected_checkout_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(594, 101, NULL, 6, 'EXPECTED CHECKOUT REPORT PRINT', 'frontdesk.report.expected_checkout_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(595, 101, NULL, 6, '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, '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, 'BED STATUS REPORT', 'frontdesk.report.bed_status_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(598, 101, NULL, 6, 'BED STATUS REPORT PRINT', 'frontdesk.report.bed_status_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(599, 101, NULL, 6, 'GUEST COMPLAIN LIST', 'frontdesk.report.guest_complain_list', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(600, 101, NULL, 6, 'GUEST COMPLAIN LIST PRINT', 'frontdesk.report.guest_complain_list_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(601, 101, NULL, 6, 'GUEST COMPLAIN REPORT', 'frontdesk.report.guest_complain_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(602, 101, NULL, 6, 'GUEST COMPLAIN REPORT PRINT', 'frontdesk.report.guest_complain_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(603, 101, NULL, 6, 'OCCUPIED ROOM REPORT', 'frontdesk.report.occupied_room_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(604, 101, NULL, 6, 'OCCUPIED ROOM REPORT PRINT', 'frontdesk.report.occupied_room_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(605, 101, NULL, 6, 'VACANT BED REPORT', 'frontdesk.report.vacant_bed_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(606, 101, NULL, 6, 'VACANT BED REPORT PRINT', 'frontdesk.report.vacant_bed_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(607, 101, NULL, 6, 'DEBIT AGING REPORT', 'frontdesk.report.debit_aging_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(608, 101, NULL, 6, 'DEBIT AGING REPORT PRINT', 'frontdesk.report.debit_aging_report_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(609, 101, NULL, 6, 'ACCOUNT STATEMENT DETAILS', 'frontdesk.report.account_statement_details', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(610, 101, NULL, 6, 'ACCOUNT STATEMENT DETAILS PRINT', 'frontdesk.report.account_statement_details_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(611, 101, NULL, 6, 'CUSTOMER STATEMENT SUMMERY', 'frontdesk.report.customer_statement_summery', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(612, 101, NULL, 6, 'CUSTOMER STATEMENT SUMMERY PRINT', 'frontdesk.report.customer_statement_summery_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(613, 101, NULL, 6, 'DAILY BILL BOOK SUMMERY', 'frontdesk.report.daily_bill_book_summery', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(614, 101, NULL, 6, '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, '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, '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, 'AGENT BALANCE SUMMERY', 'frontdesk.report.agent_balance_summery', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(618, 101, NULL, 6, 'AGENT BALANCE SUMMERY PRINT', 'frontdesk.report.agent_balance_summery_print', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(619, 101, NULL, 6, 'AGENT WISE DUE REPORT', 'frontdesk.report.agent_wise_due_report', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(620, 101, NULL, 6, '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, 'AGENT WISE DUE SUMMERY', 'frontdesk.report.agent_wise_due_summery', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(622, 101, NULL, 6, '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, 'FUND TRANSACTION', 'frontdesk.report.fund_transaction', 'report', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(624, 101, NULL, 6, 'RESERVATION', 'frontdesk.booking.reservation.get_booking_info', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(625, 101, NULL, 6, 'CANCEL REQUEST SEND', 'frontdesk.booking.cancel_request_send', 'Booking', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(626, 106, NULL, 0, 'List', 'frontdesk.booking.cancel_request_list', 'Booking Cancel', 9, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(627, 101, NULL, 1, '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, 'Save', 'frontdesk.change.room.post', 'Editing', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(629, 101, NULL, 1, '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, 'Change Room List', 'frontdesk.change.room.list', 'Editing', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(631, 101, NULL, 0, 'Change Bed List', 'frontdesk.change.bed.list', 'Editing', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(632, 101, NULL, 1, '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, 'STORE', 'frontdesk.checkin.store', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(634, 101, NULL, 1, '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, 'CheckIn List', 'frontdesk.checkin.list', 'Checkin', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(636, 101, NULL, 5, 'Checkin From Booking', 'frontdesk.check_in.by_room.from_booking', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(637, 101, NULL, 6, 'Checkin From Booking', 'frontdesk.checkin_from_booking.store', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(638, 101, NULL, 0, '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, 'STORE', 'frontdesk.day_adjust.store', 'day_adjust', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(640, 101, NULL, 2, 'EDIT', 'frontdesk.checkin.edit', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(641, 101, NULL, 0, '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, 'STORE', 'frontdesk.check_out.store', 'check_out', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(643, 101, NULL, 6, 'HISTORY', 'frontdesk.reservation.history', 'check_out', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(644, 101, NULL, 6, 'AGENT-SEARCH', 'frontdesk.agent-search', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(645, 102, NULL, 0, 'Floor', 'frontdesk.floor.index', 'Floor', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(646, 102, NULL, 1, 'STORE', 'frontdesk.floor.store', 'Floor', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(647, 102, NULL, 6, 'SEARCH', 'frontdesk.floor.search', 'Floor', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(648, 102, NULL, 2, 'EDIT', 'frontdesk.floor.edit', 'Floor', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(649, 102, NULL, 0, 'Room', 'frontdesk.room.index', 'Room', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(650, 102, NULL, 1, 'STORE', 'frontdesk.room.store', 'Room', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(651, 102, NULL, 6, 'FLOORDD', 'frontdesk.room.floordd', 'Room', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(652, 102, NULL, 6, 'ROOMDD', 'frontdesk.room.roomdd', 'Room', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(653, 102, NULL, 6, 'SEARCH', 'frontdesk.room.search', 'Room', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(654, 102, NULL, 2, 'EDIT', 'frontdesk.room.edit', 'Room', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(655, 102, NULL, 0, 'INDEX', 'frontdesk.bed.index', 'Bed', 1, 1, 2, 1, NULL, NULL, NULL, NULL, '2021-09-14 07:33:22'),
(656, 102, NULL, 1, 'STORE', 'frontdesk.bed.store', 'Bed', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(657, 102, NULL, 6, 'FLOOR ROOMDD', 'frontdesk.bed.floor_roomdd', 'Bed', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(658, 102, NULL, 6, 'SEARCH', 'frontdesk.bed.search', 'Bed', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(659, 102, NULL, 2, 'EDIT', 'frontdesk.bed.edit', 'Bed', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(660, 102, NULL, 0, 'Company', 'frontdesk.company.index', 'Company', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(661, 102, NULL, 1, 'STORE', 'frontdesk.company.store', 'Company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(662, 102, NULL, 2, 'EDIT', 'frontdesk.company.edit', 'Company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(663, 102, NULL, 0, 'Sub Company', 'frontdesk.subcompany.index', 'Sub Company', 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(664, 102, NULL, 1, 'STORE', 'frontdesk.subcompany.store', 'Sub Company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(665, 102, NULL, 2, 'EDIT', 'frontdesk.sub_company.edit', 'Sub Company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(666, 102, NULL, 6, 'GET-PARENT', 'frontdesk.subcompany.get-parent', 'Sub Company', 1, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(671, 101, NULL, 0, 'List', 'frontdesk.add_charges.index', 'Add Charges', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(672, 101, NULL, 1, 'Create', 'frontdesk.add_charges.create', 'Add Charges', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(673, 101, NULL, 1, 'STORE', 'frontdesk.add_charges.store', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(674, 101, NULL, 6, 'GET', 'frontdesk.add_charges.get', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(675, 101, NULL, 6, 'FILTER', 'frontdesk.add_charges.filter', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(676, 101, NULL, 6, 'DATAFILTER', 'frontdesk.add_charges.datafilter', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(677, 101, NULL, 6, 'EDIT', 'frontdesk.add_charges.edit', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(678, 101, NULL, 2, 'EDIT CHARGES', 'frontdesk.add_charges.edit_charges', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(679, 101, NULL, 6, 'UPDATE CHARGES', 'frontdesk.add_charges.update_charges', 'Add Charges', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(680, 101, NULL, 6, 'GET AGENT INFO', 'frontdesk.get_agent_info', 'Checkin', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(681, 101, NULL, 5, 'User Amount Handover', 'frontdesk.receipt.user.amount', 'receipt', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(682, 101, NULL, 6, 'USER', 'frontdesk.receipt.user.amount.transfer', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(683, 101, NULL, 6, 'ACCEPT HANOVER', 'frontdesk.receipt.accept_hanover', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(684, 101, NULL, 6, 'REJECT HANOVER', 'frontdesk.receipt.reject_hanover', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(685, 101, NULL, 0, 'Receive Agent/Local', 'frontdesk.receipt.receive', 'receipt', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(686, 101, NULL, 6, 'STORE', 'frontdesk.receipt.store', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(687, 101, NULL, 7, 'Receipt List', 'frontdesk.receipt.list', 'receipt', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(688, 101, NULL, 6, 'EDIT', 'frontdesk.receipt.edit', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(689, 101, NULL, 6, 'UPDATE', 'frontdesk.receipt.update', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(690, 101, NULL, 7, 'Advance Adjust List', 'frontdesk.receipt.advance_adjust_list', 'receipt', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(691, 101, NULL, 6, 'ADVANCE ADJUST DETAILS', 'frontdesk.receipt.advance_adjust_details', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(692, 101, NULL, 7, 'Agent Advance List', 'frontdesk.receipt.agent_advance_list', 'receipt', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(693, 101, NULL, 6, 'AGENT ADVANCE DETAILS', 'frontdesk.receipt.agent_advance_details', 'receipt', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(694, 101, NULL, 0, 'Payment Voucher', 'frontdesk.payment_voucher', 'Payment', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(695, 101, NULL, 1, 'CREATE', 'frontdesk.payment_voucher.create', 'Payment', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(696, 101, NULL, 1, 'STORE', 'frontdesk.payment_voucher.store', 'Payment', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(697, 101, NULL, 5, 'Cashier Handover', 'frontdesk.cashier.receive', 'Cashier', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(698, 101, NULL, 6, 'TRANSFER', 'frontdesk.cashier.transfer', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(699, 101, NULL, 6, 'HANDOVER DETAILS', 'frontdesk.cashier.handover_details', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(700, 101, NULL, 6, 'ACCEPT', 'frontdesk.cashier.accept', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(701, 101, NULL, 6, 'REJECT', 'frontdesk.cashier.reject', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(702, 105, NULL, 0, 'Accept List', 'frontdesk.cashier.accept_list', 'Cashier', 11, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(703, 101, NULL, 6, 'TRANSFER TO ACCOUNTS', 'frontdesk.cashier.transfer_to_accounts', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(704, 101, NULL, 0, 'Ledger', 'frontdesk.cashier_ledger.create', 'Cashier', 7, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(705, 101, NULL, 6, 'STORE', 'frontdesk.cashier_ledger.store', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(706, 101, NULL, 6, 'EDIT', 'frontdesk.cashier_ledger.edit', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(707, 101, NULL, 6, 'UPDATE', 'frontdesk.cashier_ledger.update', 'Cashier', 7, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(708, 103, NULL, 0, 'Room Clean Status', 'housekeeping.room_clean.status', 'House Keeping', 8, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(709, 103, NULL, 2, 'Room Status Update', 'housekeeping.room_clean.status.update', 'House Keeping', 8, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(710, 103, NULL, 0, 'Bed Clean Status', 'housekeeping.bed_clean.status', 'House Keeping', 8, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(711, 103, NULL, 2, 'Bed Status Update', 'housekeeping.bed_clean.status.update', 'House Keeping', 8, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(712, 106, NULL, 0, 'Summary', 'night_audit', 'Night Audit', 9, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(713, 106, NULL, 1, 'Day Close', 'day_close', 'Day Close', 9, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(714, 106, NULL, 0, 'Day Close List', 'day_close_list', 'Day Close', 9, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(715, NULL, NULL, 1, 'CREATE', 'accounts_receivable.sales_contract.create', 'sales_contract', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(716, 104, NULL, 0, 'Room', 'maintenance.room', 'Maintenance', 10, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(717, 104, NULL, 0, 'Bed', 'maintenance.bed', 'Maintenance', 10, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(718, NULL, NULL, 6, 'REQUEST', 'maintenance.indent.request', 'indent', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(719, 104, NULL, 2, 'UPDATE', 'maintenance.room_maintenance.update', 'Maintenance', 10, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(720, 104, NULL, 6, 'ROOM', 'maintenance.update.room.status', 'Maintenance', 10, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(721, 106, NULL, 5, 'Approve', 'frontdesk.rate_change.approve', 'Rate Change', 9, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(722, NULL, NULL, 0, 'INDEX', 'frontdesk.charges.index', 'charges', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(723, NULL, NULL, 2, 'STORE', 'frontdesk.charges.store', 'charges', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(724, NULL, NULL, 3, 'EDIT', 'frontdesk.charges.edit', 'charges', NULL, 1, 2, 1, NULL, NULL, NULL, NULL, NULL),
(725, NULL, NULL, 6, 'FILTER', 'frontdesk.charges.filter', 'charges', 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),
(3, 1, NULL, NULL),
(4, 1, NULL, NULL),
(5, 1, NULL, NULL),
(6, 1, NULL, NULL),
(7, 1, NULL, NULL),
(8, 1, NULL, NULL),
(9, 1, NULL, NULL),
(10, 1, NULL, NULL),
(11, 1, NULL, NULL),
(12, 1, NULL, NULL),
(13, 1, NULL, NULL),
(14, 1, NULL, NULL),
(15, 1, NULL, NULL),
(16, 1, NULL, NULL),
(17, 1, NULL, NULL),
(18, 1, NULL, NULL),
(19, 1, NULL, NULL),
(20, 1, NULL, NULL),
(21, 1, NULL, NULL),
(22, 1, NULL, NULL),
(23, 1, NULL, NULL),
(24, 1, NULL, NULL),
(25, 1, NULL, NULL),
(26, 1, NULL, NULL),
(27, 1, NULL, NULL),
(28, 1, NULL, NULL),
(29, 1, NULL, NULL),
(30, 1, NULL, NULL),
(31, 1, NULL, NULL),
(32, 1, NULL, NULL),
(33, 1, NULL, NULL),
(34, 1, NULL, NULL),
(35, 1, NULL, NULL),
(36, 1, NULL, NULL),
(37, 1, NULL, NULL),
(38, 1, NULL, NULL),
(39, 1, NULL, NULL),
(40, 1, NULL, NULL),
(41, 1, NULL, NULL),
(42, 1, NULL, NULL),
(43, 1, NULL, NULL),
(44, 1, NULL, NULL),
(45, 1, NULL, NULL),
(46, 1, NULL, NULL),
(47, 1, NULL, NULL),
(48, 1, NULL, NULL),
(49, 1, NULL, NULL),
(50, 1, NULL, NULL),
(51, 1, NULL, NULL),
(52, 1, 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),
(62, 1, NULL, NULL),
(63, 1, NULL, NULL),
(64, 1, NULL, NULL),
(65, 1, NULL, NULL),
(66, 1, 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),
(76, 1, NULL, NULL),
(77, 1, NULL, NULL),
(78, 1, NULL, NULL),
(79, 1, NULL, NULL),
(80, 1, NULL, NULL),
(81, 1, NULL, NULL),
(82, 1, NULL, NULL),
(83, 1, NULL, NULL),
(84, 1, NULL, NULL),
(85, 1, NULL, NULL),
(86, 1, NULL, NULL),
(87, 1, NULL, NULL),
(88, 1, NULL, NULL),
(89, 1, NULL, NULL),
(90, 1, NULL, NULL),
(91, 1, NULL, NULL),
(92, 1, NULL, NULL),
(93, 1, 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),
(113, 1, NULL, NULL),
(114, 1, NULL, NULL),
(115, 1, 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),
(124, 1, NULL, NULL),
(125, 1, NULL, NULL),
(126, 1, NULL, NULL),
(127, 1, NULL, NULL),
(128, 1, NULL, NULL),
(129, 1, NULL, NULL),
(130, 1, NULL, NULL),
(131, 1, NULL, NULL),
(132, 1, NULL, NULL),
(133, 1, NULL, NULL),
(134, 1, NULL, NULL),
(135, 1, NULL, NULL),
(136, 1, NULL, NULL),
(137, 1, NULL, NULL),
(138, 1, NULL, NULL),
(139, 1, NULL, NULL),
(140, 1, NULL, NULL),
(141, 1, NULL, NULL),
(142, 1, 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),
(152, 1, NULL, NULL),
(153, 1, NULL, NULL),
(154, 1, NULL, NULL),
(155, 1, NULL, NULL),
(156, 1, NULL, NULL),
(157, 1, NULL, NULL),
(158, 1, NULL, NULL),
(159, 1, NULL, NULL),
(160, 1, NULL, NULL),
(161, 1, NULL, NULL),
(162, 1, NULL, NULL),
(163, 1, NULL, NULL),
(164, 1, NULL, NULL),
(165, 1, NULL, NULL),
(166, 1, NULL, NULL),
(167, 1, NULL, NULL),
(168, 1, NULL, NULL),
(169, 1, NULL, NULL),
(170, 1, NULL, NULL),
(171, 1, NULL, NULL),
(172, 1, NULL, NULL),
(173, 1, NULL, NULL),
(174, 1, NULL, NULL),
(175, 1, NULL, NULL),
(176, 1, NULL, NULL),
(177, 1, NULL, NULL),
(178, 1, NULL, NULL),
(179, 1, NULL, NULL),
(180, 1, NULL, NULL),
(181, 1, NULL, NULL),
(182, 1, NULL, NULL),
(183, 1, NULL, NULL),
(184, 1, NULL, NULL),
(185, 1, NULL, NULL),
(186, 1, NULL, NULL),
(187, 1, NULL, NULL),
(188, 1, NULL, NULL),
(189, 1, NULL, NULL),
(190, 1, NULL, NULL),
(191, 1, NULL, NULL),
(192, 1, NULL, NULL),
(193, 1, NULL, NULL),
(194, 1, NULL, NULL),
(195, 1, NULL, NULL),
(196, 1, NULL, NULL),
(197, 1, NULL, NULL),
(198, 1, NULL, NULL),
(199, 1, NULL, NULL),
(200, 1, NULL, NULL),
(201, 1, NULL, NULL),
(202, 1, NULL, NULL),
(203, 1, NULL, NULL),
(204, 1, NULL, NULL),
(205, 1, NULL, NULL),
(206, 1, NULL, NULL),
(207, 1, 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),
(227, 1, NULL, NULL),
(228, 1, NULL, NULL),
(229, 1, NULL, NULL),
(230, 1, NULL, NULL),
(231, 1, NULL, NULL),
(232, 1, NULL, NULL),
(233, 1, NULL, NULL),
(234, 1, NULL, NULL),
(235, 1, NULL, NULL),
(236, 1, NULL, NULL),
(237, 1, NULL, NULL),
(238, 1, NULL, NULL),
(239, 1, NULL, NULL),
(240, 1, NULL, NULL),
(241, 1, 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),
(248, 1, NULL, NULL),
(249, 1, NULL, NULL),
(250, 1, NULL, NULL),
(251, 1, NULL, NULL),
(252, 1, NULL, NULL),
(253, 1, NULL, NULL),
(254, 1, NULL, NULL),
(255, 1, NULL, NULL),
(256, 1, NULL, NULL),
(257, 1, NULL, NULL),
(258, 1, NULL, NULL),
(259, 1, NULL, NULL),
(260, 1, NULL, NULL),
(261, 1, NULL, NULL),
(262, 1, NULL, NULL),
(263, 1, NULL, NULL),
(264, 1, NULL, NULL),
(265, 1, 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),
(272, 1, NULL, NULL),
(273, 1, NULL, NULL),
(274, 1, NULL, NULL),
(275, 1, NULL, NULL),
(276, 1, NULL, NULL),
(277, 1, NULL, NULL),
(278, 1, NULL, NULL),
(279, 1, NULL, NULL),
(280, 1, NULL, NULL),
(281, 1, NULL, NULL),
(282, 1, NULL, NULL),
(283, 1, NULL, NULL),
(284, 1, NULL, NULL),
(285, 1, NULL, NULL),
(286, 1, NULL, NULL),
(287, 1, NULL, NULL),
(288, 1, NULL, NULL),
(289, 1, NULL, NULL),
(290, 1, NULL, NULL),
(291, 1, NULL, NULL),
(292, 1, NULL, NULL),
(293, 1, NULL, NULL),
(294, 1, NULL, NULL),
(295, 1, NULL, NULL),
(296, 1, NULL, NULL),
(297, 1, NULL, NULL),
(298, 1, NULL, NULL),
(299, 1, NULL, NULL),
(300, 1, NULL, NULL),
(301, 1, NULL, NULL),
(302, 1, NULL, NULL),
(303, 1, NULL, NULL),
(304, 1, 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),
(318, 1, NULL, NULL),
(319, 1, NULL, NULL),
(320, 1, NULL, NULL),
(321, 1, NULL, NULL),
(322, 1, 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),
(333, 1, NULL, NULL),
(334, 1, NULL, NULL),
(335, 1, NULL, NULL),
(336, 1, NULL, NULL),
(337, 1, NULL, NULL),
(338, 1, NULL, NULL),
(339, 1, NULL, NULL),
(340, 1, NULL, NULL),
(341, 1, NULL, NULL),
(342, 1, NULL, NULL),
(343, 1, NULL, NULL),
(344, 1, NULL, NULL),
(345, 1, NULL, NULL),
(346, 1, NULL, NULL),
(347, 1, NULL, NULL),
(348, 1, NULL, NULL),
(349, 1, NULL, NULL),
(350, 1, NULL, NULL),
(351, 1, NULL, NULL),
(352, 1, NULL, NULL),
(353, 1, NULL, NULL),
(354, 1, NULL, NULL),
(355, 1, NULL, NULL),
(356, 1, NULL, NULL),
(357, 1, NULL, NULL),
(358, 1, NULL, NULL),
(359, 1, NULL, NULL),
(360, 1, NULL, NULL),
(361, 1, NULL, NULL),
(362, 1, NULL, NULL),
(363, 1, NULL, NULL),
(364, 1, NULL, NULL),
(365, 1, NULL, NULL),
(366, 1, NULL, NULL),
(367, 1, NULL, NULL),
(368, 1, NULL, NULL),
(369, 1, NULL, NULL),
(370, 1, NULL, NULL),
(371, 1, NULL, NULL),
(372, 1, NULL, NULL),
(373, 1, NULL, NULL),
(374, 1, NULL, NULL),
(375, 1, NULL, NULL),
(376, 1, NULL, NULL),
(377, 1, NULL, NULL),
(378, 1, NULL, NULL),
(379, 1, NULL, NULL),
(380, 1, NULL, NULL),
(381, 1, NULL, NULL),
(382, 1, NULL, NULL),
(383, 1, NULL, NULL),
(384, 1, NULL, NULL),
(385, 1, NULL, NULL),
(386, 1, 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),
(400, 1, NULL, NULL),
(401, 1, NULL, NULL),
(402, 1, NULL, NULL),
(403, 1, NULL, NULL),
(404, 1, NULL, NULL),
(405, 1, NULL, NULL),
(406, 1, NULL, NULL),
(407, 1, NULL, NULL),
(408, 1, NULL, NULL),
(409, 1, NULL, NULL),
(410, 1, NULL, NULL),
(411, 1, NULL, NULL),
(412, 1, NULL, NULL),
(413, 1, NULL, NULL),
(414, 1, 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),
(433, 1, NULL, NULL),
(434, 1, NULL, NULL),
(435, 1, NULL, NULL),
(436, 1, NULL, NULL),
(437, 1, NULL, NULL),
(438, 1, NULL, NULL),
(439, 1, NULL, NULL),
(440, 1, NULL, NULL),
(441, 1, NULL, NULL),
(442, 1, NULL, NULL),
(443, 1, NULL, NULL),
(444, 1, NULL, NULL),
(445, 1, NULL, NULL),
(446, 1, NULL, NULL),
(447, 1, NULL, NULL),
(448, 1, NULL, NULL),
(449, 1, NULL, NULL),
(450, 1, 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),
(462, 1, NULL, NULL),
(463, 1, NULL, NULL),
(464, 1, NULL, NULL),
(465, 1, NULL, NULL),
(466, 1, NULL, NULL),
(467, 1, NULL, NULL),
(468, 1, NULL, NULL),
(469, 1, NULL, NULL),
(470, 1, NULL, NULL),
(471, 1, NULL, NULL),
(472, 1, NULL, NULL),
(473, 1, NULL, NULL),
(474, 1, NULL, NULL),
(475, 1, NULL, NULL),
(476, 1, NULL, NULL),
(477, 1, NULL, NULL),
(478, 1, NULL, NULL),
(479, 1, NULL, NULL),
(480, 1, NULL, NULL),
(481, 1, NULL, NULL),
(482, 1, NULL, NULL),
(483, 1, NULL, NULL),
(484, 1, NULL, NULL),
(485, 1, NULL, NULL),
(486, 1, NULL, NULL),
(487, 1, NULL, NULL),
(488, 1, NULL, NULL),
(489, 1, NULL, NULL),
(490, 1, NULL, NULL),
(491, 1, NULL, NULL),
(492, 1, NULL, NULL),
(493, 1, NULL, NULL),
(494, 1, NULL, NULL),
(495, 1, NULL, NULL),
(496, 1, NULL, NULL),
(497, 1, NULL, NULL),
(498, 1, NULL, NULL),
(499, 1, NULL, NULL),
(500, 1, NULL, NULL),
(501, 1, NULL, NULL),
(502, 1, NULL, NULL),
(503, 1, NULL, NULL),
(504, 1, NULL, NULL),
(505, 1, NULL, NULL),
(506, 1, NULL, NULL),
(507, 1, NULL, NULL),
(508, 1, NULL, NULL),
(509, 1, NULL, NULL),
(510, 1, NULL, NULL),
(511, 1, NULL, NULL),
(512, 1, NULL, NULL),
(513, 1, NULL, NULL),
(514, 1, NULL, NULL),
(515, 1, NULL, NULL),
(516, 1, NULL, NULL),
(517, 1, NULL, NULL),
(518, 1, NULL, NULL),
(519, 1, NULL, NULL),
(520, 1, NULL, NULL),
(521, 1, NULL, NULL),
(522, 1, NULL, NULL),
(523, 1, NULL, NULL),
(524, 1, NULL, NULL),
(525, 1, NULL, NULL),
(526, 1, NULL, NULL),
(527, 1, NULL, NULL),
(528, 1, NULL, NULL),
(529, 1, NULL, NULL),
(530, 1, NULL, NULL),
(531, 1, NULL, NULL),
(532, 1, NULL, NULL),
(533, 1, NULL, NULL),
(534, 1, NULL, NULL),
(535, 1, NULL, NULL),
(536, 1, NULL, NULL),
(537, 1, 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),
(545, 1, NULL, NULL),
(546, 1, NULL, NULL),
(547, 1, NULL, NULL),
(548, 1, NULL, NULL),
(549, 1, NULL, NULL),
(550, 1, NULL, NULL),
(551, 1, NULL, NULL),
(552, 1, NULL, NULL),
(553, 1, NULL, NULL),
(554, 1, NULL, NULL),
(555, 1, NULL, NULL),
(556, 1, NULL, NULL),
(557, 1, NULL, NULL),
(558, 1, NULL, NULL),
(559, 1, 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),
(627, 1, NULL, NULL),
(628, 1, NULL, NULL),
(629, 1, NULL, NULL),
(630, 1, NULL, NULL),
(631, 1, NULL, NULL),
(632, 1, NULL, NULL),
(633, 1, NULL, NULL),
(634, 1, NULL, NULL),
(635, 1, NULL, NULL),
(636, 1, NULL, NULL),
(637, 1, NULL, NULL),
(638, 1, NULL, NULL),
(639, 1, NULL, NULL),
(640, 1, NULL, NULL),
(641, 1, NULL, NULL),
(642, 1, NULL, NULL),
(643, 1, NULL, NULL),
(644, 1, NULL, NULL),
(645, 1, NULL, NULL),
(646, 1, NULL, NULL),
(647, 1, NULL, NULL),
(648, 1, NULL, NULL),
(649, 1, NULL, NULL),
(650, 1, NULL, NULL),
(651, 1, NULL, NULL),
(652, 1, NULL, NULL),
(653, 1, NULL, NULL),
(654, 1, NULL, NULL),
(655, 1, NULL, NULL),
(656, 1, NULL, NULL),
(657, 1, NULL, NULL),
(658, 1, NULL, NULL),
(659, 1, NULL, NULL),
(660, 1, NULL, NULL),
(661, 1, NULL, NULL),
(662, 1, NULL, NULL),
(663, 1, NULL, NULL),
(664, 1, NULL, NULL),
(665, 1, NULL, NULL),
(666, 1, NULL, NULL),
(671, 1, NULL, NULL),
(672, 1, 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),
(679, 1, NULL, NULL),
(680, 1, NULL, NULL),
(681, 1, NULL, NULL),
(682, 1, NULL, NULL),
(683, 1, NULL, NULL),
(684, 1, NULL, NULL),
(685, 1, 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),
(695, 1, NULL, NULL),
(696, 1, NULL, NULL),
(697, 1, NULL, NULL),
(698, 1, NULL, NULL),
(699, 1, NULL, NULL),
(700, 1, NULL, NULL),
(701, 1, NULL, NULL),
(702, 1, NULL, NULL),
(703, 1, NULL, NULL),
(704, 1, NULL, NULL),
(705, 1, NULL, NULL),
(706, 1, NULL, NULL),
(707, 1, NULL, NULL),
(708, 1, NULL, NULL),
(709, 1, NULL, NULL),
(710, 1, NULL, NULL),
(711, 1, NULL, NULL),
(712, 1, NULL, NULL),
(713, 1, NULL, NULL),
(714, 1, NULL, NULL),
(715, 1, NULL, NULL),
(716, 1, NULL, NULL),
(717, 1, NULL, NULL),
(718, 1, NULL, NULL),
(719, 1, NULL, NULL),
(720, 1, NULL, NULL),
(721, 1, NULL, NULL),
(722, 1, NULL, NULL),
(723, 1, NULL, NULL),
(724, 1, NULL, NULL),
(725, 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;

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

--
-- 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) NOT NULL DEFAULT 0,
  `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',
  `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 `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', NULL, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL),
(2, 200, NULL, 'Cat - 2', NULL, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL);

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

--
-- 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, NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL);

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

--
-- 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',
  `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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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);

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

--
-- 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;

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

--
-- 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;

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

--
-- 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,
  `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_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;

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

--
-- 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);

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

--
-- 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;

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

--
-- 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,
  `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`, `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, 1, 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, NULL, 0, 'Store 1', NULL, 3, 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),
(5, NULL, 0, 'Store 2', NULL, 3, 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);

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

--
-- 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 `parties`
--
ALTER TABLE `parties`
  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 `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `permissions_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 for table `accounts_heads`
--
ALTER TABLE `accounts_heads`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;

--
-- 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 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 for table `cash_banks`
--
ALTER TABLE `cash_banks`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- 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=2;

--
-- 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=3;

--
-- 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 for table `fa_details`
--
ALTER TABLE `fa_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- 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 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 for table `fd_add_charges`
--
ALTER TABLE `fd_add_charges`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- 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 for table `fd_agent_rates`
--
ALTER TABLE `fd_agent_rates`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- 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 for table `fd_booking_facilities`
--
ALTER TABLE `fd_booking_facilities`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- 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 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 for table `fd_company_details`
--
ALTER TABLE `fd_company_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- 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 for table `fd_floors`
--
ALTER TABLE `fd_floors`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

--
-- 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 for table `fd_rooms`
--
ALTER TABLE `fd_rooms`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- 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 for table `fd_room_maintenances`
--
ALTER TABLE `fd_room_maintenances`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- 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 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=2;

--
-- 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 for table `logs`
--
ALTER TABLE `logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- 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=167;

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

--
-- 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 `parties`
--
ALTER TABLE `parties`
  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 `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1452;

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

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

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

--
-- 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 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 for table `quotation_details`
--
ALTER TABLE `quotation_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- 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 for table `requisition_details`
--
ALTER TABLE `requisition_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- 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 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 for table `store_invoices`
--
ALTER TABLE `store_invoices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- 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 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=5;

--
-- 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 for table `warehouses`
--
ALTER TABLE `warehouses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- 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;

