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

START TRANSACTION;



--
-- Database: `rsbdsoft_black`
--

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

--
-- Table structure for table `accounting_accounts`
--

CREATE TABLE `accounting_accounts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `gl_code` varchar(191) DEFAULT NULL,
  `business_id` int(11) NOT NULL,
  `account_primary_type` varchar(191) DEFAULT NULL,
  `account_sub_type_id` bigint(20) DEFAULT NULL,
  `detail_type_id` bigint(20) DEFAULT NULL,
  `parent_account_id` bigint(20) DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `status` varchar(191) DEFAULT NULL,
  `created_by` int(11) 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 `accounting_accounts`
--

INSERT INTO `accounting_accounts` (`id`, `name`, `gl_code`, `business_id`, `account_primary_type`, `account_sub_type_id`, `detail_type_id`, `parent_account_id`, `description`, `status`, `created_by`, `created_at`, `updated_at`) VALUES
(1, 'Expense Account', NULL, 1, 'expenses', 14, 121, NULL, NULL, 'active', 6, '2025-12-03 03:02:54', '2025-12-03 03:02:54');

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

--
-- Table structure for table `accounting_accounts_transactions`
--

CREATE TABLE `accounting_accounts_transactions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `accounting_account_id` bigint(20) UNSIGNED NOT NULL,
  `acc_trans_mapping_id` int(11) DEFAULT NULL COMMENT 'id form accounting_acc_trans_mapping table',
  `transaction_id` int(11) DEFAULT NULL COMMENT 'id form transactions table',
  `transaction_payment_id` int(11) DEFAULT NULL COMMENT 'id form transaction_payments table',
  `amount` decimal(22,4) NOT NULL,
  `type` varchar(100) NOT NULL COMMENT 'debit, credit etc',
  `sub_type` varchar(100) NOT NULL,
  `map_type` varchar(100) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `operation_date` datetime NOT NULL,
  `note` text 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 `accounting_accounts_transactions`
--

INSERT INTO `accounting_accounts_transactions` (`id`, `accounting_account_id`, `acc_trans_mapping_id`, `transaction_id`, `transaction_payment_id`, `amount`, `type`, `sub_type`, `map_type`, `created_by`, `operation_date`, `note`, `created_at`, `updated_at`) VALUES
(1, 1, NULL, 51, NULL, 100.0000, 'credit', 'expense', 'payment_account', 6, '2025-12-03 09:03:53', 'this is manual map', '2025-12-03 03:03:53', '2025-12-03 03:03:53'),
(2, 1, NULL, 51, NULL, 100.0000, 'debit', 'expense', 'deposit_to', 6, '2025-12-03 09:03:53', 'this is manual map', '2025-12-03 03:03:53', '2025-12-03 03:03:53'),
(3, 1, NULL, 53, NULL, 100.0000, 'credit', 'expense', 'payment_account', 6, '2025-12-03 09:05:21', NULL, '2025-12-03 03:05:21', '2025-12-03 03:05:21'),
(4, 1, NULL, 53, NULL, 100.0000, 'debit', 'expense', 'deposit_to', 6, '2025-12-03 09:05:21', NULL, '2025-12-03 03:05:21', '2025-12-03 03:05:21');

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

--
-- Table structure for table `accounting_account_types`
--

CREATE TABLE `accounting_account_types` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `account_primary_type` varchar(191) DEFAULT NULL,
  `account_type` varchar(191) DEFAULT NULL,
  `parent_id` bigint(20) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `show_balance` 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 `accounting_account_types`
--

INSERT INTO `accounting_account_types` (`id`, `name`, `business_id`, `created_by`, `account_primary_type`, `account_type`, `parent_id`, `description`, `show_balance`, `created_at`, `updated_at`) VALUES
(1, 'accounts_receivable', NULL, NULL, 'asset', 'sub_type', NULL, NULL, 0, NULL, NULL),
(2, 'current_assets', NULL, NULL, 'asset', 'sub_type', NULL, NULL, 1, NULL, NULL),
(3, 'cash_and_cash_equivalents', NULL, NULL, 'asset', 'sub_type', NULL, NULL, 1, NULL, NULL),
(4, 'fixed_assets', NULL, NULL, 'asset', 'sub_type', NULL, NULL, 1, NULL, NULL),
(5, 'non_current_assets', NULL, NULL, 'asset', 'sub_type', NULL, NULL, 1, NULL, NULL),
(6, 'accounts_payable', NULL, NULL, 'liability', 'sub_type', NULL, NULL, 0, NULL, NULL),
(7, 'credit_card', NULL, NULL, 'liability', 'sub_type', NULL, NULL, 1, NULL, NULL),
(8, 'current_liabilities', NULL, NULL, 'liability', 'sub_type', NULL, NULL, 1, NULL, NULL),
(9, 'non_current_liabilities', NULL, NULL, 'liability', 'sub_type', NULL, NULL, 1, NULL, NULL),
(10, 'owners_equity', NULL, NULL, 'equity', 'sub_type', NULL, NULL, 1, NULL, NULL),
(11, 'income', NULL, NULL, 'income', 'sub_type', NULL, NULL, 0, NULL, NULL),
(12, 'other_income', NULL, NULL, 'income', 'sub_type', NULL, NULL, 0, NULL, NULL),
(13, 'cost_of_sale', NULL, NULL, 'expenses', 'sub_type', NULL, NULL, 0, NULL, NULL),
(14, 'expenses', NULL, NULL, 'expenses', 'sub_type', NULL, NULL, 0, NULL, NULL),
(15, 'other_expense', NULL, NULL, 'expenses', 'sub_type', NULL, NULL, 0, NULL, NULL),
(16, 'accounts_receivable', NULL, NULL, NULL, 'detail_type', 1, '', 1, NULL, NULL),
(17, 'allowance_for_bad_debts', NULL, NULL, NULL, 'detail_type', 2, 'allowance_for_bad_debts_desc', 1, NULL, NULL),
(18, 'assets_available_for_sale', NULL, NULL, NULL, 'detail_type', 2, 'assets_available_for_sale_desc', 1, NULL, NULL),
(19, 'development_costs', NULL, NULL, NULL, 'detail_type', 2, 'development_costs_desc', 1, NULL, NULL),
(20, 'employee_cash_advances', NULL, NULL, NULL, 'detail_type', 2, 'employee_cash_advances_desc', 1, NULL, NULL),
(21, 'inventory', NULL, NULL, NULL, 'detail_type', 2, 'inventory_desc', 1, NULL, NULL),
(22, 'investments_-_other', NULL, NULL, NULL, 'detail_type', 2, 'investments_-_other_desc', 1, NULL, NULL),
(23, 'loans_to_officers', NULL, NULL, NULL, 'detail_type', 2, 'loans_to_officers_desc', 1, NULL, NULL),
(24, 'loans_to_others', NULL, NULL, NULL, 'detail_type', 2, 'loans_to_others_desc', 1, NULL, NULL),
(25, 'loans_to_shareholders', NULL, NULL, NULL, 'detail_type', 2, 'loans_to_shareholders_desc', 1, NULL, NULL),
(26, 'other_current_assets', NULL, NULL, NULL, 'detail_type', 2, 'other_current_assets_desc', 1, NULL, NULL),
(27, 'prepaid_expenses', NULL, NULL, NULL, 'detail_type', 2, 'prepaid_expenses_desc', 1, NULL, NULL),
(28, 'retainage', NULL, NULL, NULL, 'detail_type', 2, 'retainage_desc', 1, NULL, NULL),
(29, 'undeposited_funds', NULL, NULL, NULL, 'detail_type', 2, 'undeposited_funds_desc', 1, NULL, NULL),
(30, 'bank', NULL, NULL, NULL, 'detail_type', 3, 'bank_desc', 1, NULL, NULL),
(31, 'cash_and_cash_equivalents', NULL, NULL, NULL, 'detail_type', 3, 'cash_and_cash_equivalents_desc', 1, NULL, NULL),
(32, 'cash_on_hand', NULL, NULL, NULL, 'detail_type', 3, 'cash_on_hand_desc', 1, NULL, NULL),
(33, 'client_trust_account', NULL, NULL, NULL, 'detail_type', 3, 'client_trust_account_desc', 1, NULL, NULL),
(34, 'money_market', NULL, NULL, NULL, 'detail_type', 3, 'money_market_desc', 1, NULL, NULL),
(35, 'rents_held_in_trust', NULL, NULL, NULL, 'detail_type', 3, 'rents_held_in_trust_desc', 1, NULL, NULL),
(36, 'savings', NULL, NULL, NULL, 'detail_type', 3, 'savings_desc', 1, NULL, NULL),
(37, 'accumulated_depletion', NULL, NULL, NULL, 'detail_type', 4, 'accumulated_depletion_desc', 1, NULL, NULL),
(38, 'accumulated_depreciation_on_property,_plant_and_equipment', NULL, NULL, NULL, 'detail_type', 4, 'accumulated_depreciation_on_property,_plant_and_equipment_desc', 1, NULL, NULL),
(39, 'buildings', NULL, NULL, NULL, 'detail_type', 4, 'buildings_desc', 1, NULL, NULL),
(40, 'depletable_assets', NULL, NULL, NULL, 'detail_type', 4, 'depletable_assets_desc', 1, NULL, NULL),
(41, 'furniture_and_fixtures', NULL, NULL, NULL, 'detail_type', 4, 'furniture_and_fixtures_desc', 1, NULL, NULL),
(42, 'land', NULL, NULL, NULL, 'detail_type', 4, 'land_desc', 1, NULL, NULL),
(43, 'leasehold_improvements', NULL, NULL, NULL, 'detail_type', 4, 'leasehold_improvements_desc', 1, NULL, NULL),
(44, 'machinery_and_equipment', NULL, NULL, NULL, 'detail_type', 4, 'machinery_and_equipment_desc', 1, NULL, NULL),
(45, 'other_fixed_assets', NULL, NULL, NULL, 'detail_type', 4, 'other_fixed_assets_desc', 1, NULL, NULL),
(46, 'vehicles', NULL, NULL, NULL, 'detail_type', 4, 'vehicles_desc', 1, NULL, NULL),
(47, 'accumulated_amortisation_of_non-current_assets', NULL, NULL, NULL, 'detail_type', 5, 'accumulated_amortisation_of_non-current_assets_desc', 1, NULL, NULL),
(48, 'assets_held_for_sale', NULL, NULL, NULL, 'detail_type', 5, 'assets_held_for_sale_desc', 1, NULL, NULL),
(49, 'deferred_tax', NULL, NULL, NULL, 'detail_type', 5, 'deferred_tax_desc', 1, NULL, NULL),
(50, 'goodwill', NULL, NULL, NULL, 'detail_type', 5, 'goodwill_desc', 1, NULL, NULL),
(51, 'intangible_assets', NULL, NULL, NULL, 'detail_type', 5, 'intangible_assets_desc', 1, NULL, NULL),
(52, 'lease_buyout', NULL, NULL, NULL, 'detail_type', 5, 'lease_buyout_desc', 1, NULL, NULL),
(53, 'licences', NULL, NULL, NULL, 'detail_type', 5, 'licences_desc', 1, NULL, NULL),
(54, 'long-term_investments', NULL, NULL, NULL, 'detail_type', 5, 'long-term_investments_desc', 1, NULL, NULL),
(55, 'organisational_costs', NULL, NULL, NULL, 'detail_type', 5, 'organisational_costs_desc', 1, NULL, NULL),
(56, 'other_non-current_assets', NULL, NULL, NULL, 'detail_type', 5, 'other_non-current_assets_desc', 1, NULL, NULL),
(57, 'security_deposits', NULL, NULL, NULL, 'detail_type', 5, 'security_deposits_desc', 1, NULL, NULL),
(58, 'accounts_payable_(a/p)', NULL, NULL, NULL, 'detail_type', 6, 'accounts_payable_(a/p)_desc', 1, NULL, NULL),
(59, 'credit_card', NULL, NULL, NULL, 'detail_type', 7, 'credit_card_desc', 1, NULL, NULL),
(60, 'accrued_liabilities', NULL, NULL, NULL, 'detail_type', 8, 'accrued_liabilities_desc', 1, NULL, NULL),
(61, 'client_trust_accounts_-_liabilities', NULL, NULL, NULL, 'detail_type', 8, 'client_trust_accounts_-_liabilities_desc', 1, NULL, NULL),
(62, 'current_tax_liability', NULL, NULL, NULL, 'detail_type', 8, 'current_tax_liability_desc', 1, NULL, NULL),
(63, 'current_portion_of_obligations_under_finance_leases', NULL, NULL, NULL, 'detail_type', 8, 'current_portion_of_obligations_under_finance_leases_desc', 1, NULL, NULL),
(64, 'dividends_payable', NULL, NULL, NULL, 'detail_type', 8, 'dividends_payable_desc', 1, NULL, NULL),
(65, 'income_tax_payable', NULL, NULL, NULL, 'detail_type', 8, 'income_tax_payable_desc', 1, NULL, NULL),
(66, 'insurance_payable', NULL, NULL, NULL, 'detail_type', 8, 'insurance_payable_desc', 1, NULL, NULL),
(67, 'line_of_credit', NULL, NULL, NULL, 'detail_type', 8, 'line_of_credit_desc', 1, NULL, NULL),
(68, 'loan_payable', NULL, NULL, NULL, 'detail_type', 8, 'loan_payable_desc', 1, NULL, NULL),
(69, 'other_current_liabilities', NULL, NULL, NULL, 'detail_type', 8, 'other_current_liabilities_desc', 1, NULL, NULL),
(70, 'payroll_clearing', NULL, NULL, NULL, 'detail_type', 8, 'payroll_clearing_desc', 1, NULL, NULL),
(71, 'payroll_liabilities', NULL, NULL, NULL, 'detail_type', 8, 'payroll_liabilities_desc', 1, NULL, NULL),
(72, 'prepaid_expenses_payable', NULL, NULL, NULL, 'detail_type', 8, 'prepaid_expenses_payable_desc', 1, NULL, NULL),
(73, 'rents_in_trust_-_liability', NULL, NULL, NULL, 'detail_type', 8, 'rents_in_trust_-_liability_desc', 1, NULL, NULL),
(74, 'sales_and_service_tax_payable', NULL, NULL, NULL, 'detail_type', 8, 'sales_and_service_tax_payable_desc', 1, NULL, NULL),
(75, 'accrued_holiday_payable', NULL, NULL, NULL, 'detail_type', 9, 'accrued_holiday_payable_desc', 1, NULL, NULL),
(76, 'accrued_non-current_liabilities', NULL, NULL, NULL, 'detail_type', 9, 'accrued_non-current_liabilities_desc', 1, NULL, NULL),
(77, 'liabilities_related_to_assets_held_for_sale', NULL, NULL, NULL, 'detail_type', 9, 'liabilities_related_to_assets_held_for_sale_desc', 1, NULL, NULL),
(78, 'long-term_debt', NULL, NULL, NULL, 'detail_type', 9, 'long-term_debt_desc', 1, NULL, NULL),
(79, 'notes_payable', NULL, NULL, NULL, 'detail_type', 9, 'notes_payable_desc', 1, NULL, NULL),
(80, 'other_non-current_liabilities', NULL, NULL, NULL, 'detail_type', 9, 'other_non-current_liabilities_desc', 1, NULL, NULL),
(81, 'shareholder_notes_payable', NULL, NULL, NULL, 'detail_type', 9, 'shareholder_notes_payable_desc', 1, NULL, NULL),
(82, 'accumulated_adjustment', NULL, NULL, NULL, 'detail_type', 10, 'accumulated_adjustment_desc', 1, NULL, NULL),
(83, 'dividend_disbursed', NULL, NULL, NULL, 'detail_type', 10, 'dividend_disbursed_desc', 1, NULL, NULL),
(84, 'equity_in_earnings_of_subsidiaries', NULL, NULL, NULL, 'detail_type', 10, 'equity_in_earnings_of_subsidiaries_desc', 1, NULL, NULL),
(85, 'opening_balance_equity', NULL, NULL, NULL, 'detail_type', 10, 'opening_balance_equity_desc', 1, NULL, NULL),
(86, 'ordinary_shares', NULL, NULL, NULL, 'detail_type', 10, 'ordinary_shares_desc', 1, NULL, NULL),
(87, 'other_comprehensive_income', NULL, NULL, NULL, 'detail_type', 10, 'other_comprehensive_income_desc', 1, NULL, NULL),
(88, 'owner\'s_equity', NULL, NULL, NULL, 'detail_type', 10, 'owner\'s_equity_desc', 1, NULL, NULL),
(89, 'paid-in_capital_or_surplus', NULL, NULL, NULL, 'detail_type', 10, 'paid-in_capital_or_surplus_desc', 1, NULL, NULL),
(90, 'partner_contributions', NULL, NULL, NULL, 'detail_type', 10, 'partner_contributions_desc', 1, NULL, NULL),
(91, 'partner_distributions', NULL, NULL, NULL, 'detail_type', 10, 'partner_distributions_desc', 1, NULL, NULL),
(92, 'partner\'s_equity', NULL, NULL, NULL, 'detail_type', 10, 'partner\'s_equity_desc', 1, NULL, NULL),
(93, 'preferred_shares', NULL, NULL, NULL, 'detail_type', 10, 'preferred_shares_desc', 1, NULL, NULL),
(94, 'retained_earnings', NULL, NULL, NULL, 'detail_type', 10, 'retained_earnings_desc', 1, NULL, NULL),
(95, 'share_capital', NULL, NULL, NULL, 'detail_type', 10, 'share_capital_desc', 1, NULL, NULL),
(96, 'treasury_shares', NULL, NULL, NULL, 'detail_type', 10, 'treasury_shares_desc', 1, NULL, NULL),
(97, 'discounts/refunds_given', NULL, NULL, NULL, 'detail_type', 11, 'discounts/refunds_given_desc', 1, NULL, NULL),
(98, 'non-profit_income', NULL, NULL, NULL, 'detail_type', 11, 'non-profit_income_desc', 1, NULL, NULL),
(99, 'other_primary_income', NULL, NULL, NULL, 'detail_type', 11, 'other_primary_income_desc', 1, NULL, NULL),
(100, 'revenue_-_general', NULL, NULL, NULL, 'detail_type', 11, 'revenue_-_general_desc', 1, NULL, NULL),
(101, 'sales_-_retail', NULL, NULL, NULL, 'detail_type', 11, 'sales_-_retail_desc', 1, NULL, NULL),
(102, 'sales_-_wholesale', NULL, NULL, NULL, 'detail_type', 11, 'sales_-_wholesale_desc', 1, NULL, NULL),
(103, 'sales_of_product_income', NULL, NULL, NULL, 'detail_type', 11, 'sales_of_product_income_desc', 1, NULL, NULL),
(104, 'service/fee_income', NULL, NULL, NULL, 'detail_type', 11, 'service/fee_income_desc', 1, NULL, NULL),
(105, 'unapplied_cash_payment_income', NULL, NULL, NULL, 'detail_type', 11, 'unapplied_cash_payment_income_desc', 1, NULL, NULL),
(106, 'dividend_income', NULL, NULL, NULL, 'detail_type', 12, 'dividend_income_desc', 1, NULL, NULL),
(107, 'interest_earned', NULL, NULL, NULL, 'detail_type', 12, 'interest_earned_desc', 1, NULL, NULL),
(108, 'loss_on_disposal_of_assets', NULL, NULL, NULL, 'detail_type', 12, 'loss_on_disposal_of_assets_desc', 1, NULL, NULL),
(109, 'other_investment_income', NULL, NULL, NULL, 'detail_type', 12, 'other_investment_income_desc', 1, NULL, NULL),
(110, 'other_miscellaneous_income', NULL, NULL, NULL, 'detail_type', 12, 'other_miscellaneous_income_desc', 1, NULL, NULL),
(111, 'other_operating_income', NULL, NULL, NULL, 'detail_type', 12, 'other_operating_income_desc', 1, NULL, NULL),
(112, 'tax-exempt_interest', NULL, NULL, NULL, 'detail_type', 12, 'tax-exempt_interest_desc', 1, NULL, NULL),
(113, 'unrealised_loss_on_securities,_net_of_tax', NULL, NULL, NULL, 'detail_type', 12, 'unrealised_loss_on_securities,_net_of_tax_desc', 1, NULL, NULL),
(114, 'cost_of_labour_-_cos', NULL, NULL, NULL, 'detail_type', 13, 'cost_of_labour_-_cos_desc', 1, NULL, NULL),
(115, 'equipment_rental_-_cos', NULL, NULL, NULL, 'detail_type', 13, 'equipment_rental_-_cos_desc', 1, NULL, NULL),
(116, 'freight_and_delivery_-_cos', NULL, NULL, NULL, 'detail_type', 13, 'freight_and_delivery_-_cos_desc', 1, NULL, NULL),
(117, 'other_costs_of_sales_-_cos', NULL, NULL, NULL, 'detail_type', 13, 'other_costs_of_sales_-_cos_desc', 1, NULL, NULL),
(118, 'supplies_and_materials_-_cos', NULL, NULL, NULL, 'detail_type', 13, 'supplies_and_materials_-_cos_desc', 1, NULL, NULL),
(119, 'advertising/promotional', NULL, NULL, NULL, 'detail_type', 14, 'advertising/promotional_desc', 1, NULL, NULL),
(120, 'amortisation_expense', NULL, NULL, NULL, 'detail_type', 14, 'amortisation_expense_desc', 1, NULL, NULL),
(121, 'auto', NULL, NULL, NULL, 'detail_type', 14, 'auto_desc', 1, NULL, NULL),
(122, 'bad_debts', NULL, NULL, NULL, 'detail_type', 14, 'bad_debts_desc', 1, NULL, NULL),
(123, 'bank_charges', NULL, NULL, NULL, 'detail_type', 14, 'bank_charges_desc', 1, NULL, NULL),
(124, 'charitable_contributions', NULL, NULL, NULL, 'detail_type', 14, 'charitable_contributions_desc', 1, NULL, NULL),
(125, 'commissions_and_fees', NULL, NULL, NULL, 'detail_type', 14, 'commissions_and_fees_desc', 1, NULL, NULL),
(126, 'cost_of_labour', NULL, NULL, NULL, 'detail_type', 14, 'cost_of_labour_desc', 1, NULL, NULL),
(127, 'dues_and_subscriptions', NULL, NULL, NULL, 'detail_type', 14, 'dues_and_subscriptions_desc', 1, NULL, NULL),
(128, 'equipment_rental', NULL, NULL, NULL, 'detail_type', 14, 'equipment_rental_desc', 1, NULL, NULL),
(129, 'finance_costs', NULL, NULL, NULL, 'detail_type', 14, 'finance_costs_desc', 1, NULL, NULL),
(130, 'income_tax_expense', NULL, NULL, NULL, 'detail_type', 14, 'income_tax_expense_desc', 1, NULL, NULL),
(131, 'insurance', NULL, NULL, NULL, 'detail_type', 14, 'insurance_desc', 1, NULL, NULL),
(132, 'interest_paid', NULL, NULL, NULL, 'detail_type', 14, 'interest_paid_desc', 1, NULL, NULL),
(133, 'legal_and_professional_fees', NULL, NULL, NULL, 'detail_type', 14, 'legal_and_professional_fees_desc', 1, NULL, NULL),
(134, 'loss_on_discontinued_operations,_net_of_tax', NULL, NULL, NULL, 'detail_type', 14, 'loss_on_discontinued_operations,_net_of_tax_desc', 1, NULL, NULL),
(135, 'management_compensation', NULL, NULL, NULL, 'detail_type', 14, 'management_compensation_desc', 1, NULL, NULL),
(136, 'meals_and_entertainment', NULL, NULL, NULL, 'detail_type', 14, 'meals_and_entertainment_desc', 1, NULL, NULL),
(137, 'office/general_administrative_expenses', NULL, NULL, NULL, 'detail_type', 14, 'office/general_administrative_expenses_desc', 1, NULL, NULL),
(138, 'other_miscellaneous_service_cost', NULL, NULL, NULL, 'detail_type', 14, 'other_miscellaneous_service_cost_desc', 1, NULL, NULL),
(139, 'other_selling_expenses', NULL, NULL, NULL, 'detail_type', 14, 'other_selling_expenses_desc', 1, NULL, NULL),
(140, 'payroll_expenses', NULL, NULL, NULL, 'detail_type', 14, 'payroll_expenses_desc', 1, NULL, NULL),
(141, 'rent_or_lease_of_buildings', NULL, NULL, NULL, 'detail_type', 14, 'rent_or_lease_of_buildings_desc', 1, NULL, NULL),
(142, 'repair_and_maintenance', NULL, NULL, NULL, 'detail_type', 14, 'repair_and_maintenance_desc', 1, NULL, NULL),
(143, 'shipping_and_delivery_expense', NULL, NULL, NULL, 'detail_type', 14, 'shipping_and_delivery_expense_desc', 1, NULL, NULL),
(144, 'supplies_and_materials', NULL, NULL, NULL, 'detail_type', 14, 'supplies_and_materials_desc', 1, NULL, NULL),
(145, 'taxes_paid', NULL, NULL, NULL, 'detail_type', 14, 'taxes_paid_desc', 1, NULL, NULL),
(146, 'travel_expenses_-_general_and_admin_expenses', NULL, NULL, NULL, 'detail_type', 14, 'travel_expenses_-_general_and_admin_expenses_desc', 1, NULL, NULL),
(147, 'travel_expenses_-_selling_expense', NULL, NULL, NULL, 'detail_type', 14, 'travel_expenses_-_selling_expense_desc', 1, NULL, NULL),
(148, 'unapplied_cash_bill_payment_expense', NULL, NULL, NULL, 'detail_type', 14, 'unapplied_cash_bill_payment_expense_desc', 1, NULL, NULL),
(149, 'utilities', NULL, NULL, NULL, 'detail_type', 14, 'utilities_desc', 1, NULL, NULL),
(150, 'amortisation', NULL, NULL, NULL, 'detail_type', 15, 'amortisation_desc', 1, NULL, NULL),
(151, 'depreciation', NULL, NULL, NULL, 'detail_type', 15, 'depreciation_desc', 1, NULL, NULL),
(152, 'exchange_gain_or_loss', NULL, NULL, NULL, 'detail_type', 15, 'exchange_gain_or_loss_desc', 1, NULL, NULL),
(153, 'other_expense', NULL, NULL, NULL, 'detail_type', 15, 'other_expense_desc', 1, NULL, NULL),
(154, 'penalties_and_settlements', NULL, NULL, NULL, 'detail_type', 15, 'penalties_and_settlements_desc', 1, NULL, NULL);

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

--
-- Table structure for table `accounting_acc_trans_mappings`
--

CREATE TABLE `accounting_acc_trans_mappings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `ref_no` varchar(100) NOT NULL,
  `type` varchar(100) NOT NULL,
  `created_by` int(11) NOT NULL,
  `operation_date` datetime NOT NULL,
  `note` text 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 `accounting_budgets`
--

CREATE TABLE `accounting_budgets` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `accounting_account_id` bigint(20) UNSIGNED NOT NULL,
  `financial_year` int(11) NOT NULL,
  `jan` decimal(22,4) DEFAULT NULL,
  `feb` decimal(22,4) DEFAULT NULL,
  `mar` decimal(22,4) DEFAULT NULL,
  `apr` decimal(22,4) DEFAULT NULL,
  `may` decimal(22,4) DEFAULT NULL,
  `jun` decimal(22,4) DEFAULT NULL,
  `jul` decimal(22,4) DEFAULT NULL,
  `aug` decimal(22,4) DEFAULT NULL,
  `sep` decimal(22,4) DEFAULT NULL,
  `oct` decimal(22,4) DEFAULT NULL,
  `nov` decimal(22,4) DEFAULT NULL,
  `dec` decimal(22,4) DEFAULT NULL,
  `quarter_1` decimal(22,4) DEFAULT NULL,
  `quarter_2` decimal(22,4) DEFAULT NULL,
  `quarter_3` decimal(22,4) DEFAULT NULL,
  `quarter_4` decimal(22,4) DEFAULT NULL,
  `yearly` decimal(22,4) 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`
--

CREATE TABLE `accounts` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `name` varchar(191) NOT NULL,
  `account_number` varchar(191) NOT NULL,
  `account_details` text DEFAULT NULL,
  `account_type_id` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `is_closed` tinyint(1) 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 `account_transactions`
--

CREATE TABLE `account_transactions` (
  `id` int(10) UNSIGNED NOT NULL,
  `account_id` int(11) NOT NULL,
  `type` enum('debit','credit') NOT NULL,
  `sub_type` enum('opening_balance','fund_transfer','deposit') DEFAULT NULL,
  `amount` decimal(22,4) NOT NULL,
  `reff_no` varchar(191) DEFAULT NULL,
  `operation_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `transaction_id` int(11) DEFAULT NULL,
  `transaction_payment_id` int(11) DEFAULT NULL,
  `transfer_transaction_id` int(11) DEFAULT NULL,
  `note` text 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 `account_types`
--

CREATE TABLE `account_types` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `parent_account_type_id` int(11) DEFAULT NULL,
  `business_id` int(11) 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 `activity_log`
--

CREATE TABLE `activity_log` (
  `id` int(10) UNSIGNED NOT NULL,
  `log_name` varchar(191) DEFAULT NULL,
  `description` text NOT NULL,
  `subject_id` int(11) DEFAULT NULL,
  `subject_type` varchar(191) DEFAULT NULL,
  `event` varchar(191) DEFAULT NULL,
  `business_id` int(11) DEFAULT NULL,
  `causer_id` int(11) DEFAULT NULL,
  `causer_type` varchar(191) DEFAULT NULL,
  `properties` text DEFAULT NULL,
  `batch_uuid` char(36) 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 `activity_log`
--

INSERT INTO `activity_log` (`id`, `log_name`, `description`, `subject_id`, `subject_type`, `event`, `business_id`, `causer_id`, `causer_type`, `properties`, `batch_uuid`, `created_at`, `updated_at`) VALUES
(1, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-23 16:11:30', '2025-11-23 16:11:30'),
(2, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-23 16:17:42', '2025-11-23 16:17:42'),
(3, 'default', 'added', 3, 'App\\User', NULL, 1, 1, 'App\\User', '{\"name\":\"Miss Amberly Dai\"}', NULL, '2025-11-23 21:28:38', '2025-11-23 21:28:38'),
(4, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-24 09:27:27', '2025-11-24 09:27:27'),
(5, 'default', 'login', 3, 'App\\User', NULL, 1, 3, 'App\\User', '[]', NULL, '2025-11-24 09:33:08', '2025-11-24 09:33:08'),
(6, 'default', 'logout', 3, 'App\\User', NULL, 1, 3, 'App\\User', '[]', NULL, '2025-11-24 09:33:18', '2025-11-24 09:33:18'),
(7, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-24 09:33:22', '2025-11-24 09:33:22'),
(8, 'default', 'login', 3, 'App\\User', NULL, 1, 3, 'App\\User', '[]', NULL, '2025-11-24 09:33:50', '2025-11-24 09:33:50'),
(9, 'default', 'added', 4, 'App\\User', NULL, 1, 1, 'App\\User', '{\"name\":\"Mr abdallah ewais\"}', NULL, '2025-11-24 09:38:00', '2025-11-24 09:38:00'),
(10, 'default', 'login', 4, 'App\\User', NULL, 1, 4, 'App\\User', '[]', NULL, '2025-11-24 09:48:03', '2025-11-24 09:48:03'),
(11, 'default', 'logout', 4, 'App\\User', NULL, 1, 4, 'App\\User', '[]', NULL, '2025-11-24 09:49:00', '2025-11-24 09:49:00'),
(12, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-24 09:49:05', '2025-11-24 09:49:05'),
(13, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-24 15:23:06', '2025-11-24 15:23:06'),
(14, 'default', 'logout', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-24 15:23:07', '2025-11-24 15:23:07'),
(15, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-24 15:23:14', '2025-11-24 15:23:14'),
(16, 'default', 'added', 2, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-24 16:13:34', '2025-11-24 16:13:34'),
(17, 'default', 'added', 3, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-24 16:14:00', '2025-11-24 16:14:00'),
(18, 'default', 'added', 4, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-24 16:14:08', '2025-11-24 16:14:08'),
(19, 'default', 'added', 5, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-24 16:14:26', '2025-11-24 16:14:26'),
(20, 'default', 'added', 3, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-24 19:10:13', '2025-11-24 19:10:13'),
(21, 'default', 'added', 6, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":152.55}}', NULL, '2025-11-24 20:05:46', '2025-11-24 20:05:46'),
(22, 'default', 'added', 7, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-24 20:10:51', '2025-11-24 20:10:51'),
(23, 'default', 'added', 4, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-24 20:11:58', '2025-11-24 20:11:58'),
(24, 'default', 'added', 8, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-24 20:12:04', '2025-11-24 20:12:04'),
(25, 'default', 'added', 9, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-24 20:12:27', '2025-11-24 20:12:27'),
(26, 'default', 'added', 10, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-24 20:13:57', '2025-11-24 20:13:57'),
(27, 'default', 'edited', 10, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85},\"old\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-24 20:15:53', '2025-11-24 20:15:53'),
(28, 'default', 'added', 11, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-24 21:25:55', '2025-11-24 21:25:55'),
(29, 'default', 'added', 12, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-24 21:27:20', '2025-11-24 21:27:20'),
(30, 'default', 'edited', 12, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85},\"old\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-24 21:36:09', '2025-11-24 21:36:09'),
(31, 'default', 'sell_deleted', 12, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":12,\"invoice_no\":\"2025-0011\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-24 23:14:07', '2025-11-24 23:14:07'),
(32, 'default', 'sell_deleted', 11, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":11,\"invoice_no\":\"2025-0010\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-24 23:14:12', '2025-11-24 23:14:12'),
(33, 'default', 'sell_deleted', 10, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":10,\"invoice_no\":\"2025-0009\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-24 23:14:15', '2025-11-24 23:14:15'),
(34, 'default', 'sell_deleted', 9, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":9,\"invoice_no\":\"2025-0008\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-24 23:14:17', '2025-11-24 23:14:17'),
(35, 'default', 'sell_deleted', 8, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":8,\"invoice_no\":\"2025-0007\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-24 23:14:19', '2025-11-24 23:14:19'),
(36, 'default', 'sell_deleted', 7, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":7,\"invoice_no\":\"2025-0006\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-24 23:14:22', '2025-11-24 23:14:22'),
(37, 'default', 'sell_deleted', 6, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":6,\"invoice_no\":\"2025-0005\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"152.5500\"}}', NULL, '2025-11-24 23:14:33', '2025-11-24 23:14:33'),
(38, 'default', 'sell_deleted', 5, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":5,\"invoice_no\":\"2025-0004\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-24 23:14:35', '2025-11-24 23:14:35'),
(39, 'default', 'sell_deleted', 4, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":4,\"invoice_no\":\"2025-0003\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-24 23:14:38', '2025-11-24 23:14:38'),
(40, 'default', 'sell_deleted', 3, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":3,\"invoice_no\":\"2025-0002\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-24 23:14:40', '2025-11-24 23:14:40'),
(41, 'default', 'sell_deleted', 2, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":2,\"invoice_no\":\"2025-0001\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-24 23:18:24', '2025-11-24 23:18:24'),
(42, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-24 23:23:36', '2025-11-24 23:23:36'),
(43, 'default', 'added', 13, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-25 00:26:36', '2025-11-25 00:26:36'),
(44, 'default', 'added', 14, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-25 00:26:52', '2025-11-25 00:26:52'),
(45, 'default', 'added', 15, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":101.7}}', NULL, '2025-11-25 00:35:03', '2025-11-25 00:35:03'),
(46, 'default', 'added', 16, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-25 00:43:34', '2025-11-25 00:43:34'),
(47, 'default', 'added', 17, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":101.7}}', NULL, '2025-11-25 00:43:56', '2025-11-25 00:43:56'),
(48, 'default', 'added', 18, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-25 00:46:11', '2025-11-25 00:46:11'),
(49, 'default', 'login', 4, 'App\\User', NULL, 1, 4, 'App\\User', '[]', NULL, '2025-11-25 07:42:08', '2025-11-25 07:42:08'),
(50, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-25 09:19:22', '2025-11-25 09:19:22'),
(51, 'default', 'added', 28, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-25 11:17:09', '2025-11-25 11:17:09'),
(52, 'default', 'sell_deleted', 28, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":28,\"invoice_no\":\"2025-0018\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-25 11:18:28', '2025-11-25 11:18:28'),
(53, 'default', 'sell_deleted', 18, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":18,\"invoice_no\":\"2025-0017\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-25 11:18:31', '2025-11-25 11:18:31'),
(54, 'default', 'sell_deleted', 17, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":17,\"invoice_no\":\"2025-0016\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"101.7000\"}}', NULL, '2025-11-25 11:18:34', '2025-11-25 11:18:34'),
(55, 'default', 'sell_deleted', 15, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":15,\"invoice_no\":\"2025-0014\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"101.7000\"}}', NULL, '2025-11-25 11:18:37', '2025-11-25 11:18:37'),
(56, 'default', 'sell_deleted', 16, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":16,\"invoice_no\":\"2025-0015\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-25 11:18:40', '2025-11-25 11:18:40'),
(57, 'default', 'sell_deleted', 14, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":14,\"invoice_no\":\"2025-0013\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-25 11:18:42', '2025-11-25 11:18:42'),
(58, 'default', 'sell_deleted', 13, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":13,\"invoice_no\":\"2025-0012\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-25 11:18:44', '2025-11-25 11:18:44'),
(59, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-25 14:00:22', '2025-11-25 14:00:22'),
(60, 'default', 'added', 5, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-25 14:40:29', '2025-11-25 14:40:29'),
(61, 'default', 'added', 6, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-25 14:42:26', '2025-11-25 14:42:26'),
(62, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-25 20:00:55', '2025-11-25 20:00:55'),
(63, 'default', 'added', 29, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"draft\",\"sub_status\":\"quotation\",\"final_total\":132.22}}', NULL, '2025-11-25 21:36:19', '2025-11-25 21:36:19'),
(64, 'default', 'added', 30, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":143.53}}', NULL, '2025-11-25 21:39:31', '2025-11-25 21:39:31'),
(65, 'default', 'added', 31, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":22.6}}', NULL, '2025-11-25 22:02:27', '2025-11-25 22:02:27'),
(66, 'default', 'added', 32, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":7.91}}', NULL, '2025-11-25 22:31:41', '2025-11-25 22:31:41'),
(67, 'default', 'edited', 32, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":7.91},\"old\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"7.9100\"}}', NULL, '2025-11-25 22:38:21', '2025-11-25 22:38:21'),
(68, 'default', 'added', 33, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":198.32}}', NULL, '2025-11-25 22:40:37', '2025-11-25 22:40:37'),
(69, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-26 12:14:48', '2025-11-26 12:14:48'),
(70, 'default', 'added', 37, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-26 12:39:00', '2025-11-26 12:39:00'),
(71, 'default', 'added', 38, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell_return\",\"final_total\":22.6}}', NULL, '2025-11-26 12:47:53', '2025-11-26 12:47:53'),
(72, 'default', 'payment_edited', 38, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell_return\",\"payment_status\":\"paid\",\"final_total\":\"22.6000\"},\"old\":{\"type\":\"sell_return\",\"payment_status\":\"due\",\"final_total\":\"22.6000\"}}', NULL, '2025-11-26 12:52:22', '2025-11-26 12:52:22'),
(73, 'default', 'edited', 38, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell_return\",\"payment_status\":\"paid\",\"final_total\":22.6},\"old\":{\"type\":\"sell_return\",\"payment_status\":\"paid\",\"final_total\":\"22.6000\"}}', NULL, '2025-11-26 12:55:18', '2025-11-26 12:55:18'),
(74, 'default', 'payment_edited', 38, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell_return\",\"payment_status\":\"due\",\"final_total\":\"22.6000\"},\"old\":{\"type\":\"sell_return\",\"payment_status\":\"paid\",\"final_total\":\"22.6000\"}}', NULL, '2025-11-26 12:55:30', '2025-11-26 12:55:30'),
(75, 'default', 'payment_deleted', 24, 'App\\TransactionPayment', NULL, 1, 1, 'App\\User', '{\"id\":24,\"ref_no\":\"SP2025\\/0024\"}', NULL, '2025-11-26 12:55:30', '2025-11-26 12:55:30'),
(76, 'default', 'added', 39, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":135.62}}', NULL, '2025-11-26 13:00:45', '2025-11-26 13:00:45'),
(77, 'default', 'added', 40, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":22.6}}', NULL, '2025-11-26 13:06:02', '2025-11-26 13:06:02'),
(78, 'default', 'added', 41, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":22.6}}', NULL, '2025-11-26 13:07:25', '2025-11-26 13:07:25'),
(79, 'default', 'added', 42, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":147.47}}', NULL, '2025-11-26 13:08:41', '2025-11-26 13:08:41'),
(80, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-28 12:56:31', '2025-11-28 12:56:31'),
(81, 'default', 'added', 43, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":147.47}}', NULL, '2025-11-28 13:23:28', '2025-11-28 13:23:28'),
(82, 'default', 'added', 44, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":50.85}}', NULL, '2025-11-28 13:25:08', '2025-11-28 13:25:08'),
(83, 'default', 'added', 45, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":147.47}}', NULL, '2025-11-28 15:35:04', '2025-11-28 15:35:04'),
(84, 'default', 'added', 46, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":147.47}}', NULL, '2025-11-28 15:35:20', '2025-11-28 15:35:20'),
(85, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-28 15:57:07', '2025-11-28 15:57:07'),
(86, 'default', 'added', 47, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":22.6}}', NULL, '2025-11-28 16:39:30', '2025-11-28 16:39:30'),
(87, 'default', 'added', 48, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":22.6}}', NULL, '2025-11-28 16:39:41', '2025-11-28 16:39:41'),
(88, 'default', 'added', 49, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":147.47}}', NULL, '2025-11-28 16:47:31', '2025-11-28 16:47:31'),
(89, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 09:49:02', '2025-11-29 09:49:02'),
(90, 'default', 'sell_deleted', 30, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":30,\"invoice_no\":\"2025-0019\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"143.5300\"}}', NULL, '2025-11-29 10:40:17', '2025-11-29 10:40:17'),
(91, 'default', 'sell_deleted', 49, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":49,\"invoice_no\":\"2025-0034\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"147.4700\"}}', NULL, '2025-11-29 10:41:45', '2025-11-29 10:41:45'),
(92, 'default', 'sell_deleted', 47, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":47,\"invoice_no\":\"2025-0032\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"22.6000\"}}', NULL, '2025-11-29 10:41:47', '2025-11-29 10:41:47'),
(93, 'default', 'sell_deleted', 48, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":48,\"invoice_no\":\"2025-0033\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"22.6000\"}}', NULL, '2025-11-29 10:41:49', '2025-11-29 10:41:49'),
(94, 'default', 'sell_deleted', 46, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":46,\"invoice_no\":\"2025-0031\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"147.4700\"}}', NULL, '2025-11-29 10:41:51', '2025-11-29 10:41:51'),
(95, 'default', 'sell_deleted', 45, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":45,\"invoice_no\":\"2025-0030\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"147.4700\"}}', NULL, '2025-11-29 10:41:53', '2025-11-29 10:41:53'),
(96, 'default', 'sell_deleted', 44, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":44,\"invoice_no\":\"2025-0029\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-29 10:41:54', '2025-11-29 10:41:54'),
(97, 'default', 'sell_deleted', 43, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":43,\"invoice_no\":\"2025-0028\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"147.4700\"}}', NULL, '2025-11-29 10:41:56', '2025-11-29 10:41:56'),
(98, 'default', 'sell_deleted', 42, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":42,\"invoice_no\":\"2025-0027\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"147.4700\"}}', NULL, '2025-11-29 10:41:58', '2025-11-29 10:41:58'),
(99, 'default', 'sell_deleted', 41, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":41,\"invoice_no\":\"2025-0026\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"22.6000\"}}', NULL, '2025-11-29 10:42:00', '2025-11-29 10:42:00'),
(100, 'default', 'sell_deleted', 40, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":40,\"invoice_no\":\"2025-0025\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"22.6000\"}}', NULL, '2025-11-29 10:42:02', '2025-11-29 10:42:02'),
(101, 'default', 'sell_deleted', 39, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":39,\"invoice_no\":\"2025-0024\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"135.6200\"}}', NULL, '2025-11-29 10:42:03', '2025-11-29 10:42:03'),
(102, 'default', 'sell_deleted', 37, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":37,\"invoice_no\":\"2025-0023\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"50.8500\"}}', NULL, '2025-11-29 10:42:05', '2025-11-29 10:42:05'),
(103, 'default', 'sell_deleted', 33, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":33,\"invoice_no\":\"2025-0022\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"198.3200\"}}', NULL, '2025-11-29 10:42:08', '2025-11-29 10:42:08'),
(104, 'default', 'sell_deleted', 32, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"id\":32,\"invoice_no\":\"2025-0021\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":\"7.9100\"}}', NULL, '2025-11-29 10:43:00', '2025-11-29 10:43:00'),
(105, 'default', 'added', 50, 'App\\Transaction', NULL, 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":9.04}}', NULL, '2025-11-29 10:44:17', '2025-11-29 10:44:17'),
(106, 'default', 'added', 7, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:22:37', '2025-11-29 12:22:37'),
(107, 'default', 'added', 8, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:23:10', '2025-11-29 12:23:10'),
(108, 'default', 'added', 9, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:26:01', '2025-11-29 12:26:01'),
(109, 'default', 'added', 10, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:27:12', '2025-11-29 12:27:12'),
(110, 'default', 'added', 11, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:28:09', '2025-11-29 12:28:09'),
(111, 'default', 'added', 12, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:29:00', '2025-11-29 12:29:00'),
(112, 'default', 'added', 13, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:29:49', '2025-11-29 12:29:49'),
(113, 'default', 'added', 14, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:30:11', '2025-11-29 12:30:11'),
(114, 'default', 'added', 15, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:30:50', '2025-11-29 12:30:50'),
(115, 'default', 'added', 16, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:31:37', '2025-11-29 12:31:37'),
(116, 'default', 'added', 17, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:33:37', '2025-11-29 12:33:37'),
(117, 'default', 'added', 18, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:34:23', '2025-11-29 12:34:23'),
(118, 'default', 'added', 19, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:34:46', '2025-11-29 12:34:46'),
(119, 'default', 'added', 20, 'App\\Contact', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-11-29 12:35:47', '2025-11-29 12:35:47'),
(120, 'default', 'login', 5, 'App\\User', NULL, 3, 5, 'App\\User', '[]', NULL, '2025-12-02 10:10:12', '2025-12-02 10:10:12'),
(121, 'default', 'login', 1, 'App\\User', NULL, 1, 1, 'App\\User', '[]', NULL, '2025-12-02 04:58:22', '2025-12-02 04:58:22'),
(122, 'default', 'added', 6, 'App\\User', NULL, 1, 1, 'App\\User', '{\"name\":\" tamim \"}', NULL, '2025-12-02 04:59:23', '2025-12-02 04:59:23'),
(123, 'default', 'edited', 1, 'App\\User', NULL, 1, 1, 'App\\User', '{\"name\":\" Abdull Ewais\"}', NULL, '2025-12-02 05:00:45', '2025-12-02 05:00:45'),
(124, 'default', 'login', 6, 'App\\User', NULL, 1, 6, 'App\\User', '[]', NULL, '2025-12-02 05:02:17', '2025-12-02 05:02:17'),
(125, 'default', 'added', 22, 'App\\Contact', NULL, 1, 6, 'App\\User', '[]', NULL, '2025-12-02 05:26:13', '2025-12-02 05:26:13'),
(126, 'default', 'edited', 22, 'App\\Contact', NULL, 1, 6, 'App\\User', '[]', NULL, '2025-12-02 05:26:28', '2025-12-02 05:26:28'),
(127, 'default', 'added', 51, 'App\\Transaction', NULL, 1, 6, 'App\\User', '{\"attributes\":{\"payment_status\":\"due\"}}', NULL, '2025-12-02 05:31:57', '2025-12-02 05:31:57'),
(128, 'default', 'added', 23, 'App\\Contact', NULL, 1, 6, 'App\\User', '[]', NULL, '2025-12-02 06:28:59', '2025-12-02 06:28:59'),
(129, 'default', 'added', 24, 'App\\Contact', NULL, 1, 6, 'App\\User', '[]', NULL, '2025-12-02 06:35:59', '2025-12-02 06:35:59'),
(130, 'default', 'login', 6, 'App\\User', NULL, 1, 6, 'App\\User', '[]', NULL, '2025-12-02 09:10:39', '2025-12-02 09:10:39'),
(131, 'default', 'added', 25, 'App\\Contact', NULL, 1, 6, 'App\\User', '[]', NULL, '2025-12-02 09:11:44', '2025-12-02 09:11:44'),
(132, 'default', 'added', 52, 'App\\Transaction', NULL, 1, 6, 'App\\User', '{\"attributes\":{\"payment_status\":\"due\"}}', NULL, '2025-12-02 09:12:19', '2025-12-02 09:12:19'),
(133, 'default', 'login', 6, 'App\\User', NULL, 1, 6, 'App\\User', '[]', NULL, '2025-12-02 13:03:46', '2025-12-02 13:03:46'),
(134, 'default', 'login', 6, 'App\\User', NULL, 1, 6, 'App\\User', '[]', NULL, '2025-12-03 02:09:19', '2025-12-03 02:09:19'),
(135, 'default', 'login', 6, 'App\\User', NULL, 1, 6, 'App\\User', '[]', NULL, '2025-12-03 02:59:33', '2025-12-03 02:59:33'),
(136, 'default', 'added', 53, 'App\\Transaction', NULL, 1, 6, 'App\\User', '{\"attributes\":{\"payment_status\":\"due\"}}', NULL, '2025-12-03 03:05:21', '2025-12-03 03:05:21'),
(137, 'default', 'login', 6, 'App\\User', NULL, 1, 6, 'App\\User', '[]', NULL, '2025-12-04 04:03:18', '2025-12-04 04:03:18'),
(138, 'default', 'logout', 6, 'App\\User', NULL, 1, 6, 'App\\User', '[]', NULL, '2025-12-04 04:17:35', '2025-12-04 04:17:35');

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

--
-- Table structure for table `aiassistance_history`
--

CREATE TABLE `aiassistance_history` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `tool_type` varchar(191) NOT NULL,
  `input_data` text DEFAULT NULL,
  `tokens_used` int(11) NOT NULL DEFAULT 0,
  `output_data` text 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 `assets`
--

CREATE TABLE `assets` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `asset_code` varchar(191) NOT NULL,
  `name` varchar(191) NOT NULL,
  `quantity` decimal(22,4) NOT NULL,
  `model` varchar(191) DEFAULT NULL,
  `serial_no` varchar(191) DEFAULT NULL,
  `category_id` int(10) UNSIGNED DEFAULT NULL,
  `location_id` int(10) UNSIGNED DEFAULT NULL,
  `purchase_date` date DEFAULT NULL,
  `purchase_type` varchar(191) DEFAULT NULL,
  `unit_price` decimal(22,4) NOT NULL,
  `depreciation` decimal(22,4) DEFAULT NULL,
  `is_allocatable` tinyint(1) NOT NULL DEFAULT 0,
  `description` text DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `asset_maintenances`
--

CREATE TABLE `asset_maintenances` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `asset_id` int(11) NOT NULL,
  `maitenance_id` varchar(191) DEFAULT NULL,
  `status` varchar(191) DEFAULT NULL,
  `priority` varchar(191) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `assigned_to` int(11) DEFAULT NULL,
  `details` text DEFAULT NULL,
  `maintenance_note` text 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 `asset_transactions`
--

CREATE TABLE `asset_transactions` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `asset_id` int(10) UNSIGNED DEFAULT NULL,
  `transaction_type` varchar(191) NOT NULL,
  `ref_no` varchar(191) NOT NULL,
  `receiver` int(10) UNSIGNED DEFAULT NULL COMMENT 'id from users table, who receives asset',
  `quantity` decimal(22,4) NOT NULL,
  `transaction_datetime` datetime NOT NULL,
  `allocated_upto` date DEFAULT NULL,
  `reason` text DEFAULT NULL,
  `parent_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'id from asset_transactions table',
  `created_by` int(10) UNSIGNED NOT NULL COMMENT 'id from users table, who allocated asset',
  `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 `asset_warranties`
--

CREATE TABLE `asset_warranties` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `asset_id` int(11) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `additional_cost` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `additional_note` text 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 `barcodes`
--

CREATE TABLE `barcodes` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `description` text DEFAULT NULL,
  `width` double(22,4) DEFAULT NULL,
  `height` double(22,4) DEFAULT NULL,
  `paper_width` double(22,4) DEFAULT NULL,
  `paper_height` double(22,4) DEFAULT NULL,
  `top_margin` double(22,4) DEFAULT NULL,
  `left_margin` double(22,4) DEFAULT NULL,
  `row_distance` double(22,4) DEFAULT NULL,
  `col_distance` double(22,4) DEFAULT NULL,
  `stickers_in_one_row` int(11) DEFAULT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT 0,
  `is_continuous` tinyint(1) NOT NULL DEFAULT 0,
  `stickers_in_one_sheet` int(11) DEFAULT NULL,
  `business_id` int(10) 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 `barcodes`
--

INSERT INTO `barcodes` (`id`, `name`, `description`, `width`, `height`, `paper_width`, `paper_height`, `top_margin`, `left_margin`, `row_distance`, `col_distance`, `stickers_in_one_row`, `is_default`, `is_continuous`, `stickers_in_one_sheet`, `business_id`, `created_at`, `updated_at`) VALUES
(1, '20 Labels per Sheet', 'Sheet Size: 8.5\" x 11\", Label Size: 4\" x 1\", Labels per sheet: 20', 4.0000, 1.0000, 8.5000, 11.0000, 0.5000, 0.1250, 0.0000, 0.1875, 2, 0, 0, 20, NULL, '2017-12-18 06:13:44', '2017-12-18 06:13:44'),
(2, '30 Labels per sheet', 'Sheet Size: 8.5\" x 11\", Label Size: 2.625\" x 1\", Labels per sheet: 30', 2.6250, 1.0000, 8.5000, 11.0000, 0.5000, 0.1880, 0.0000, 0.1250, 3, 0, 0, 30, NULL, '2017-12-18 06:04:39', '2017-12-18 06:10:40'),
(3, '32 Labels per sheet', 'Sheet Size: 8.5\" x 11\", Label Size: 2\" x 1.25\", Labels per sheet: 32', 2.0000, 1.2500, 8.5000, 11.0000, 0.5000, 0.2500, 0.0000, 0.0000, 4, 0, 0, 32, NULL, '2017-12-18 05:55:40', '2017-12-18 05:55:40'),
(4, '40 Labels per sheet', 'Sheet Size: 8.5\" x 11\", Label Size: 2\" x 1\", Labels per sheet: 40', 2.0000, 1.0000, 8.5000, 11.0000, 0.5000, 0.2500, 0.0000, 0.0000, 4, 0, 0, 40, NULL, '2017-12-18 05:58:40', '2017-12-18 05:58:40'),
(5, '50 Labels per Sheet', 'Sheet Size: 8.5\" x 11\", Label Size: 1.5\" x 1\", Labels per sheet: 50', 1.5000, 1.0000, 8.5000, 11.0000, 0.5000, 0.5000, 0.0000, 0.0000, 5, 0, 0, 50, NULL, '2017-12-18 05:51:10', '2017-12-18 05:51:10'),
(6, 'Continuous Rolls - 31.75mm x 25.4mm', 'Label Size: 31.75mm x 25.4mm, Gap: 3.18mm', 1.2500, 1.0000, 1.2500, 0.0000, 0.1250, 0.0000, 0.1250, 0.0000, 1, 0, 1, NULL, NULL, '2017-12-18 05:51:10', '2017-12-18 05:51:10');

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

--
-- Table structure for table `bookings`
--

CREATE TABLE `bookings` (
  `id` int(10) UNSIGNED NOT NULL,
  `contact_id` int(10) UNSIGNED NOT NULL,
  `waiter_id` int(10) UNSIGNED DEFAULT NULL,
  `table_id` int(10) UNSIGNED DEFAULT NULL,
  `correspondent_id` int(11) DEFAULT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `location_id` int(10) UNSIGNED NOT NULL,
  `booking_start` datetime NOT NULL,
  `booking_end` datetime NOT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `booking_status` varchar(191) NOT NULL,
  `booking_note` text 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 `brands`
--

CREATE TABLE `brands` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `description` text DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `use_for_repair` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'brands to be used on repair module',
  `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 `business_locations`
--

CREATE TABLE `business_locations` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `location_id` varchar(191) DEFAULT NULL,
  `name` varchar(256) NOT NULL,
  `landmark` text DEFAULT NULL,
  `country` varchar(100) NOT NULL,
  `state` varchar(100) NOT NULL,
  `city` varchar(100) NOT NULL,
  `zip_code` char(7) NOT NULL,
  `invoice_scheme_id` int(10) UNSIGNED NOT NULL,
  `sale_invoice_scheme_id` int(11) DEFAULT NULL,
  `invoice_layout_id` int(10) UNSIGNED NOT NULL,
  `sale_invoice_layout_id` int(11) DEFAULT NULL,
  `selling_price_group_id` int(11) DEFAULT NULL,
  `print_receipt_on_invoice` tinyint(1) DEFAULT 1,
  `receipt_printer_type` enum('browser','printer') NOT NULL DEFAULT 'browser',
  `printer_id` int(11) DEFAULT NULL,
  `mobile` varchar(191) DEFAULT NULL,
  `alternate_number` varchar(191) DEFAULT NULL,
  `email` varchar(191) DEFAULT NULL,
  `website` varchar(191) DEFAULT NULL,
  `featured_products` text DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `default_payment_accounts` text DEFAULT NULL,
  `custom_field1` varchar(191) DEFAULT NULL,
  `custom_field2` varchar(191) DEFAULT NULL,
  `custom_field3` varchar(191) DEFAULT NULL,
  `custom_field4` varchar(191) DEFAULT NULL,
  `accounting_default_map` text DEFAULT NULL COMMENT 'Default transactions mapping of accounting module',
  `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 `business_locations`
--

INSERT INTO `business_locations` (`id`, `business_id`, `location_id`, `name`, `landmark`, `country`, `state`, `city`, `zip_code`, `invoice_scheme_id`, `sale_invoice_scheme_id`, `invoice_layout_id`, `sale_invoice_layout_id`, `selling_price_group_id`, `print_receipt_on_invoice`, `receipt_printer_type`, `printer_id`, `mobile`, `alternate_number`, `email`, `website`, `featured_products`, `is_active`, `default_payment_accounts`, `custom_field1`, `custom_field2`, `custom_field3`, `custom_field4`, `accounting_default_map`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 'BL0001', 'Blackstone Landscaping Supply', '30 Milner Ave', 'Canada', 'Ontario', 'Toronto', 'M1S 3P8', 1, 1, 1, 1, 0, 1, 'browser', NULL, '647-601-7772', NULL, 'info@blackstonelandscaping.net', 'www.blackstonelandscaping.net', NULL, 1, '{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"elavon\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"is_enabled\":\"1\",\"account\":null},\"bank_transfer\":{\"is_enabled\":\"1\",\"account\":null},\"other\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}', NULL, NULL, NULL, NULL, '{\"sale\":{\"payment_account\":null,\"deposit_to\":null},\"sell_payment\":{\"payment_account\":null,\"deposit_to\":null},\"purchases\":{\"payment_account\":null,\"deposit_to\":null},\"purchase_payment\":{\"payment_account\":null,\"deposit_to\":null},\"expense\":{\"payment_account\":\"1\",\"deposit_to\":\"1\"}}', NULL, '2025-11-24 02:41:04', '2025-12-03 03:04:38'),
(2, 2, 'BL0001', 'BLS Bin Services', 'Bins', 'Canada', 'Ontario', 'Scarborough', 'M2N 6L7', 2, NULL, 2, 2, NULL, 1, 'browser', NULL, '647-601-7772', '', '', '', NULL, 1, '{\"cash\":{\"is_enabled\":1,\"account\":null},\"elavon\":{\"is_enabled\":1,\"account\":null},\"card\":{\"is_enabled\":1,\"account\":null},\"cheque\":{\"is_enabled\":1,\"account\":null},\"bank_transfer\":{\"is_enabled\":1,\"account\":null},\"other\":{\"is_enabled\":1,\"account\":null},\"custom_pay_1\":{\"is_enabled\":1,\"account\":null},\"custom_pay_2\":{\"is_enabled\":1,\"account\":null},\"custom_pay_3\":{\"is_enabled\":1,\"account\":null},\"custom_pay_4\":{\"is_enabled\":1,\"account\":null},\"custom_pay_5\":{\"is_enabled\":1,\"account\":null},\"custom_pay_6\":{\"is_enabled\":1,\"account\":null},\"custom_pay_7\":{\"is_enabled\":1,\"account\":null}}', NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(3, 3, 'BL0001', 'sadad', 'x', 'Bangladesh', 'xs', 'kushtia', '7002', 3, NULL, 3, 3, NULL, 1, 'browser', NULL, '01615450447', '', '', '', NULL, 1, '{\"cash\":{\"is_enabled\":1,\"account\":null},\"elavon\":{\"is_enabled\":1,\"account\":null},\"card\":{\"is_enabled\":1,\"account\":null},\"cheque\":{\"is_enabled\":1,\"account\":null},\"bank_transfer\":{\"is_enabled\":1,\"account\":null},\"other\":{\"is_enabled\":1,\"account\":null},\"custom_pay_1\":{\"is_enabled\":1,\"account\":null},\"custom_pay_2\":{\"is_enabled\":1,\"account\":null},\"custom_pay_3\":{\"is_enabled\":1,\"account\":null},\"custom_pay_4\":{\"is_enabled\":1,\"account\":null},\"custom_pay_5\":{\"is_enabled\":1,\"account\":null},\"custom_pay_6\":{\"is_enabled\":1,\"account\":null},\"custom_pay_7\":{\"is_enabled\":1,\"account\":null}}', NULL, NULL, NULL, NULL, NULL, NULL, '2025-12-02 09:40:05', '2025-12-02 09:40:05');

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

--
-- Table structure for table `cash_denominations`
--

CREATE TABLE `cash_denominations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `amount` decimal(22,4) NOT NULL,
  `total_count` int(11) NOT NULL,
  `model_type` varchar(191) NOT NULL,
  `model_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 `cash_registers`
--

CREATE TABLE `cash_registers` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `location_id` int(11) DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `status` enum('close','open') NOT NULL DEFAULT 'open',
  `closed_at` datetime DEFAULT NULL,
  `closing_amount` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `total_card_slips` int(11) NOT NULL DEFAULT 0,
  `total_cheques` int(11) NOT NULL DEFAULT 0,
  `denominations` text DEFAULT NULL,
  `closing_note` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cash_registers`
--

INSERT INTO `cash_registers` (`id`, `business_id`, `location_id`, `user_id`, `status`, `closed_at`, `closing_amount`, `total_card_slips`, `total_cheques`, `denominations`, `closing_note`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 1, 'open', NULL, 0.0000, 0, 0, NULL, NULL, '2025-11-23 16:20:00', '2025-11-23 16:20:38'),
(2, 1, 1, 3, 'open', NULL, 0.0000, 0, 0, NULL, NULL, '2025-11-24 09:31:00', '2025-11-24 09:31:03'),
(3, 1, 1, 4, 'open', NULL, 0.0000, 0, 0, NULL, NULL, '2025-11-25 07:42:00', '2025-11-25 07:42:15'),
(4, 3, 3, 5, 'open', NULL, 0.0000, 0, 0, NULL, NULL, '2025-12-02 10:11:00', '2025-12-02 10:11:37');

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

--
-- Table structure for table `cash_register_transactions`
--

CREATE TABLE `cash_register_transactions` (
  `id` int(10) UNSIGNED NOT NULL,
  `cash_register_id` int(10) UNSIGNED NOT NULL,
  `amount` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `pay_method` varchar(191) DEFAULT NULL,
  `type` enum('debit','credit') NOT NULL,
  `transaction_type` varchar(191) DEFAULT NULL,
  `transaction_id` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cash_register_transactions`
--

INSERT INTO `cash_register_transactions` (`id`, `cash_register_id`, `amount`, `pay_method`, `type`, `transaction_type`, `transaction_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1.0000, 'cash', 'credit', 'initial', NULL, '2025-11-23 16:20:38', '2025-11-23 16:20:38'),
(2, 2, 1.0000, 'cash', 'credit', 'initial', NULL, '2025-11-24 09:31:03', '2025-11-24 09:31:03'),
(22, 3, 1.0000, 'cash', 'credit', 'initial', NULL, '2025-11-25 07:42:15', '2025-11-25 07:42:15'),
(25, 1, 22.6000, 'card', 'credit', 'sell', 31, '2025-11-25 22:02:27', '2025-11-25 22:02:27'),
(41, 1, 9.0400, 'elavon', 'credit', 'sell', 50, '2025-11-29 10:44:17', '2025-11-29 10:44:17');

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

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

CREATE TABLE `categories` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `short_code` varchar(191) DEFAULT NULL,
  `parent_id` int(11) NOT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `category_type` varchar(191) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `slug` varchar(191) DEFAULT NULL,
  `woocommerce_cat_id` int(11) 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 `categories`
--

INSERT INTO `categories` (`id`, `name`, `business_id`, `short_code`, `parent_id`, `created_by`, `category_type`, `description`, `slug`, `woocommerce_cat_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Stone', 1, NULL, 0, 1, 'product', 'Stone', NULL, NULL, NULL, '2025-11-24 15:43:05', '2025-11-24 15:43:05'),
(2, 'Sand & Gravel', 1, NULL, 0, 1, 'product', 'Sand & Gravel', NULL, NULL, NULL, '2025-11-24 15:45:18', '2025-11-24 15:45:18'),
(3, '3/4 Clear Gravel', 1, NULL, 2, 1, 'product', '3/4 Clear Gravel', NULL, NULL, NULL, '2025-11-24 15:46:34', '2025-11-24 15:46:34'),
(4, 'Dirt ( backfill Not Top Soil )', 1, NULL, 2, 1, 'product', 'Dirt ( backfill Not Top Soil )', NULL, NULL, NULL, '2025-11-24 15:47:03', '2025-11-24 15:47:03'),
(5, 'HPB', 1, NULL, 2, 1, 'product', 'HPB', NULL, NULL, NULL, '2025-11-24 15:47:27', '2025-11-24 15:47:27'),
(6, 'Limestone Screening', 1, NULL, 2, 1, 'product', 'Limestone Screening', NULL, NULL, NULL, '2025-11-24 15:47:49', '2025-11-24 15:47:49'),
(7, '3/4 Crushed Gravel', 1, NULL, 2, 1, 'product', '3/4 Crushed Gravel', NULL, NULL, NULL, '2025-11-24 15:48:11', '2025-11-24 15:48:11'),
(8, 'Sand', 1, NULL, 2, 1, 'product', 'Sand', NULL, NULL, NULL, '2025-11-24 15:48:37', '2025-11-24 15:48:37'),
(9, '4\" Drain Tile Perforated & Filter 100-FT Roll', 1, NULL, 10, 1, 'product', '4\" Drain Tile Perforated & Filter 100-FT Roll', NULL, NULL, NULL, '2025-11-25 10:43:14', '2025-11-25 10:46:55'),
(10, 'Weeping Tile', 1, NULL, 0, 1, 'product', 'Weeping Tile', NULL, NULL, NULL, '2025-11-25 10:44:24', '2025-11-25 10:46:42'),
(11, '4\" Drain Tile Perforated & Filter 200-FT Roll', 1, NULL, 10, 1, 'product', '4\" Drain Tile Perforated & Filter 200-FT Roll', NULL, NULL, NULL, '2025-11-25 10:45:28', '2025-11-25 10:47:04');

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

--
-- Table structure for table `categorizables`
--

CREATE TABLE `categorizables` (
  `category_id` int(11) NOT NULL,
  `categorizable_type` varchar(191) NOT NULL,
  `categorizable_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `cms_pages`
--

CREATE TABLE `cms_pages` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `type` varchar(191) NOT NULL,
  `layout` varchar(191) DEFAULT NULL,
  `title` varchar(191) NOT NULL,
  `content` longtext DEFAULT NULL,
  `meta_description` text DEFAULT NULL,
  `tags` varchar(191) DEFAULT NULL,
  `feature_image` varchar(191) DEFAULT NULL,
  `priority` int(11) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `is_enabled` 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 `cms_pages`
--

INSERT INTO `cms_pages` (`id`, `type`, `layout`, `title`, `content`, `meta_description`, `tags`, `feature_image`, `priority`, `created_by`, `is_enabled`, `created_at`, `updated_at`) VALUES
(1, 'testimonial', NULL, 'David Parr', '<p class=\"testimonial-card-1__paragraph mb-3\">This software has become one of the backbones of our business. It helped us streamline the data of all our warehouses &amp; shops on one platform. I am not much of a techy guy but the admin panel also allows you to customize every aspect of the application.</p>\r\n          <p class=\"testimonial-card-1__paragraph mb-3\">All the reports help me to give an overview of different aspects of our business.</p>\r\n          <p class=\"testimonial-card-1__paragraph mb-3\">It is very powerful!</p>', NULL, NULL, NULL, 3, 9, 1, '2022-08-19 11:25:05', '2022-10-20 17:48:29'),
(2, 'testimonial', NULL, 'Tim Johnson', '<p>It is truly designed to help my business run more smoothly and efficiently. I can now track and manage inventory, customer information, and sales easily. The installation was quick and easy, and the interface is very user-friendly. I can now manage almost every business operation with one single software!</p>', NULL, NULL, NULL, NULL, 1, 1, '2022-09-10 16:07:17', '2022-10-20 17:23:39'),
(3, 'page', 'home', 'Automate your business management at very-Low cost', '<p>Best POS, Invoicing, Inventory &amp; Service management application for your growing business!</p>', NULL, NULL, NULL, 1, 0, 1, '2022-09-10 16:26:24', '2022-10-20 16:30:15'),
(4, 'page', 'contact', 'Contact Us', '<p>We\'re happy to receive your message. Ask us anything, we\'ll respond as soon as possible.</p>', NULL, NULL, NULL, NULL, 0, 1, '2022-09-10 16:26:24', '2022-09-16 12:04:20'),
(5, 'testimonial', NULL, 'Krishna Watt', '<p>We have used this for 9 months now. It has helped our business grow by leaps and bounds. The interface and its simplicity have made it easy for us to learn and get familiar with. The best thing about this software is that it is cloud-based and we can use it from our shop, warehouse, or mobile while traveling. I can also see its potential as we continue to grow. Highly Satisfied!</p>', NULL, NULL, NULL, NULL, 1, 1, '2022-09-16 12:07:25', '2022-10-20 17:27:31');

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

--
-- Table structure for table `cms_page_metas`
--

CREATE TABLE `cms_page_metas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `cms_page_id` bigint(20) UNSIGNED NOT NULL,
  `meta_key` varchar(191) NOT NULL,
  `meta_value` longtext 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 `cms_page_metas`
--

INSERT INTO `cms_page_metas` (`id`, `cms_page_id`, `meta_key`, `meta_value`, `created_at`, `updated_at`) VALUES
(1, 3, 'industry', '{\"id\":\"1\",\"title\":\"We\'re Ready For Your Business!\",\"description\":\"<p>If you\'re in need of business management software, you\'ve come to the right place.&nbsp;<\\/p>\\r\\n<p>We have a clean, modern modular design that is sure to fit your business!<\\/p>\",\"content\":[{\"icon\":\"fas fa-store-alt\",\"title\":\"Departmental Store\",\"description\":\"Looking for a software solution that can help you manage and sell all of your essential items in one place? Look no further than our one-stop departmental store software. Whether you need to sell clothes, shoes, bags, or any other type of item, our software has you covered. Plus, our easy-to-use interface makes it simple to get started selling right away. So why wait? Get started today!\"},{\"icon\":\"fas fa-store\",\"title\":\"Retail & Wholesale\",\"description\":\"A complete suite of features to manage both retail & wholesales stores. Set multiple prices for different customer segments or different business locations.\"},{\"icon\":\"fas fa-notes-medical\",\"title\":\"Pharmacy\",\"description\":\"Our software is perfect for any pharmaceutical company. You can set product expiration dates and lot numbers, and sell in different units of measure. Stop selling expired & to-be-expired items to customers. Check details reports on stock expiry by lot numbers\"},{\"icon\":\"fas fa-prescription-bottle\",\"title\":\"Liquor\",\"description\":\"Easy to use for every liquor shop. Sell in ml of simple sell the bottle, you can easily manage them.\"},{\"icon\":\"fas fa-mobile-alt\",\"title\":\"Mobile & Electronics\",\"description\":\"Record inventory serial number, sell items with particular serial number,\"},{\"icon\":\"fas fa-wrench\",\"title\":\"Repair Shop\",\"description\":\"A complete suite of features to manage repair business, create job sheet, assign job sheet to technician, repair status, convert job sheet to invoices. Self link for customers to check repair progress\"},{\"icon\":\"fas fa-home\",\"title\":null,\"description\":null},{\"icon\":\"fas fa-home\",\"title\":null,\"description\":null}]}', NULL, '2022-10-20 16:30:15'),
(2, 3, 'feature', '{\"id\":\"2\",\"title\":\"Features to skyrocket \\ud83d\\ude80 your business growth\",\"description\":\"<p>The pace of business growth has never been faster.<\\/p>\\r\\n<p>That\'s why we&rsquo;ve designed our cloud-based POS software to help you get ahead.<\\/p>\\r\\n<p>The easiest, most reliable way to grow and manage your business is right at your fingertips with our cloud-based POS and inventory management system.<\\/p>\\r\\n<p>Right software can be a lifesaver for your business, and with it, you can revolutionize your business\'s growth<\\/p>\",\"content\":[{\"icon\":\"fas fa-cloud\",\"title\":\"Access Anywhere!\",\"description\":\"Check your business data from anywhere, anytime. \\r\\nSee live updates in realtime\"},{\"icon\":\"fas fa-check-double\",\"title\":\"No Installation\",\"description\":\"No software to install, No hardware dependency. Just open browser & start using.\"},{\"icon\":\"fas fa-sitemap\",\"title\":\"MultiBranches & Warehouse\",\"description\":\"Manage stock of multiple branches  in one place effortlessly & real-time.\"},{\"icon\":\"fas fa-user-lock\",\"title\":\"User access limit\",\"description\":\"Powerful user Role & Permission management to limit employees  access to business data\"},{\"icon\":\"fas fa-cubes\",\"title\":\"Stock Management\",\"description\":\"Manage stocks with from multiple locations, stock expiry, lot number, stock history & much more.\"},{\"icon\":\"fas fa-wrench\",\"title\":\"Service Management\",\"description\":\"Manage & easily invoice for services. Also dedicated repair service management features to schedule & deliver services on time\"},{\"icon\":\"fas fa-users\",\"title\":\"HR Management\",\"description\":\"With HR management easily track daily attendance, shift management, leaves, payroll, Holidays, Departments,  & Designations\"},{\"icon\":\"fas fa-handshake\",\"title\":\"Customer Management\",\"description\":\"CRM module help you to track leads lifecycle, followup with leads, sources, followup, launch campaigns, proposals and lot more\"},{\"icon\":\"fas fa-hand-peace\",\"title\":\"Simplified Interface\",\"description\":\"Simple to use interface to get work done in few clicks. Save your time & make it easy for staffs to use.\"},{\"icon\":\"fas fa-chart-line\",\"title\":\"Reports\",\"description\":\"Comes inbuilt with lot of report to help business owners analyse every revenue, inventory, payments & human resource.\"}]}', '2022-09-15 15:34:41', '2022-10-20 15:39:11');

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

--
-- Table structure for table `cms_site_details`
--

CREATE TABLE `cms_site_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `site_key` varchar(191) NOT NULL,
  `site_value` longtext 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 `cms_site_details`
--

INSERT INTO `cms_site_details` (`id`, `site_key`, `site_value`, `created_at`, `updated_at`) VALUES
(1, 'faqs', '[{\"question\":\"Why should we switch to cloud-based business management software compared to traditional desktop software?\",\"answer\":\"Cloud-based software provides you a low-cost, secure & mobile software solutions. Compared to traditional software that requires it to install on a computer - cloud-based can be accessed from anywhere without any hardware dependency.\"},{\"question\":\"How secure is my business data?\",\"answer\":\"All data are stored in our centralized database which is highly protected with multi-layers of privileges. We takes regular frequency interval automated backup to protect from any unwanted consequences.\"},{\"question\":\"Whom should I reach out to in case of any problems?\",\"answer\":\"Please contact our support, write us in the contact section or call to the number mentioned. You\'re assured to receive a response in a maximum of 24 hours.\"},{\"question\":\"Is this POS application Free?\",\"answer\":\"We do provide a free tier for very small business or business that is about to start. To take more advantage of this POS software we recommend that you upgrade to a better plan that unlocks more features.\"},{\"question\":\"Do you provide consultancy or implementation solutions for using this POS software?\",\"answer\":\"Yes, with a pro plan you can connect with one of our experts who will help you with implementing the solution for your business.\"},{\"question\":\"Are there any additional hardware required or subscription charges?\",\"answer\":\"This is cloud-based software. You\'ll only need a device with an internet connection & chrome browser. It runs within the browser. No additional hardware is required. But you can use some hardware like barcode scanners, and printers for your convenience to speed up work.\"}]', '2022-09-13 18:44:10', '2022-10-20 17:16:28'),
(2, 'statistics', '{\"tagline\":\"POS\'s Stats & Numbers\",\"description\":\"More & More businesses are adopting our cloud-based business management solution\",\"content\":[{\"stats\":\"75\",\"title\":\"REGISTERED BUSINESSES\"},{\"stats\":\"400+\",\"title\":\"DAILY USERS\"},{\"stats\":\"50K\",\"title\":\"INVOICES CREATED\"},{\"stats\":\"126+\",\"title\":\"ONLINE RESOURCES\"}]}', '2022-09-13 18:44:10', '2022-10-20 17:08:07'),
(3, 'google_analytics', 'null', '2022-09-14 11:14:40', '2022-09-16 11:49:09'),
(4, 'fb_pixel', 'null', '2022-09-14 11:14:40', '2022-09-16 11:49:09'),
(5, 'custom_js', 'null', '2022-09-14 11:14:40', '2022-09-16 11:49:09'),
(6, 'custom_css', 'null', '2022-09-14 11:14:40', '2022-09-16 11:49:09'),
(7, 'meta_tags', 'null', '2022-09-14 11:14:40', '2022-09-16 11:49:09'),
(8, 'chat_widget', 'null', '2022-09-14 11:27:14', '2022-09-16 11:49:09'),
(9, 'contact_us', '[{\"label\":\"Call\",\"num\":\"0000000000\"},{\"label\":\"Support\",\"num\":\"0000000000\"},{\"label\":\"Enquiry\",\"num\":\"0000000000\"}]', '2022-09-14 12:24:38', '2022-09-16 11:49:09'),
(10, 'mail_us', '[{\"label\":\"Contact\",\"email\":\"contact@example.com\"},{\"label\":\"Support\",\"email\":\"support@example.com\"}]', '2022-09-14 12:24:38', '2022-09-16 11:49:09'),
(11, 'follow_us', '{\"facebook\":\"https:\\/\\/www.facebook.com\\/test\",\"instagram\":\"https:\\/\\/www.instagram.com\\/test\",\"twitter\":\"https:\\/\\/twitter.com\\/test\",\"linkedin\":\"https:\\/\\/in.linkedin.com\\/company\\/test\",\"youtube\":\"https:\\/\\/www.youtube.com\\/c\\/test\"}', '2022-09-14 12:35:39', '2022-10-20 17:08:07'),
(12, 'logo', 'null', '2022-09-14 13:38:53', '2022-09-16 11:49:09'),
(13, 'notifiable_email', '\"notifyme@example.com\"', '2022-09-14 13:38:53', '2022-09-16 11:49:09');

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

--
-- Table structure for table `contacts`
--

CREATE TABLE `contacts` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `type` varchar(191) NOT NULL,
  `contact_type` varchar(191) DEFAULT NULL,
  `supplier_business_name` varchar(191) DEFAULT NULL,
  `name` varchar(191) DEFAULT NULL,
  `prefix` varchar(191) DEFAULT NULL,
  `first_name` varchar(191) DEFAULT NULL,
  `middle_name` varchar(191) DEFAULT NULL,
  `last_name` varchar(191) DEFAULT NULL,
  `email` varchar(191) DEFAULT NULL,
  `contact_id` varchar(191) DEFAULT NULL,
  `contact_status` varchar(191) NOT NULL DEFAULT 'active',
  `tax_number` varchar(191) DEFAULT NULL,
  `city` varchar(191) DEFAULT NULL,
  `state` varchar(191) DEFAULT NULL,
  `country` varchar(191) DEFAULT NULL,
  `address_line_1` text DEFAULT NULL,
  `address_line_2` text DEFAULT NULL,
  `zip_code` varchar(191) DEFAULT NULL,
  `dob` date DEFAULT NULL,
  `mobile` varchar(191) NOT NULL,
  `landline` varchar(191) DEFAULT NULL,
  `alternate_number` varchar(191) DEFAULT NULL,
  `pay_term_number` int(11) DEFAULT NULL,
  `pay_term_type` enum('days','months') DEFAULT NULL,
  `credit_limit` decimal(22,4) DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `converted_by` int(11) DEFAULT NULL,
  `converted_on` datetime DEFAULT NULL,
  `balance` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `total_rp` int(11) NOT NULL DEFAULT 0 COMMENT 'rp is the short form of reward points',
  `total_rp_used` int(11) NOT NULL DEFAULT 0 COMMENT 'rp is the short form of reward points',
  `total_rp_expired` int(11) NOT NULL DEFAULT 0 COMMENT 'rp is the short form of reward points',
  `is_default` tinyint(1) NOT NULL DEFAULT 0,
  `shipping_address` text DEFAULT NULL,
  `shipping_custom_field_details` longtext DEFAULT NULL,
  `is_export` tinyint(1) NOT NULL DEFAULT 0,
  `export_custom_field_1` varchar(191) DEFAULT NULL,
  `export_custom_field_2` varchar(191) DEFAULT NULL,
  `export_custom_field_3` varchar(191) DEFAULT NULL,
  `export_custom_field_4` varchar(191) DEFAULT NULL,
  `export_custom_field_5` varchar(191) DEFAULT NULL,
  `export_custom_field_6` varchar(191) DEFAULT NULL,
  `position` varchar(191) DEFAULT NULL,
  `customer_group_id` int(11) DEFAULT NULL,
  `crm_source` varchar(191) DEFAULT NULL,
  `crm_life_stage` varchar(191) DEFAULT NULL,
  `custom_field1` varchar(191) DEFAULT NULL,
  `custom_field2` varchar(191) DEFAULT NULL,
  `custom_field3` varchar(191) DEFAULT NULL,
  `custom_field4` varchar(191) DEFAULT NULL,
  `custom_field5` varchar(191) DEFAULT NULL,
  `custom_field6` varchar(191) DEFAULT NULL,
  `custom_field7` varchar(191) DEFAULT NULL,
  `custom_field8` varchar(191) DEFAULT NULL,
  `custom_field9` varchar(191) DEFAULT NULL,
  `custom_field10` varchar(191) 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 `contacts`
--

INSERT INTO `contacts` (`id`, `business_id`, `type`, `contact_type`, `supplier_business_name`, `name`, `prefix`, `first_name`, `middle_name`, `last_name`, `email`, `contact_id`, `contact_status`, `tax_number`, `city`, `state`, `country`, `address_line_1`, `address_line_2`, `zip_code`, `dob`, `mobile`, `landline`, `alternate_number`, `pay_term_number`, `pay_term_type`, `credit_limit`, `created_by`, `converted_by`, `converted_on`, `balance`, `total_rp`, `total_rp_used`, `total_rp_expired`, `is_default`, `shipping_address`, `shipping_custom_field_details`, `is_export`, `export_custom_field_1`, `export_custom_field_2`, `export_custom_field_3`, `export_custom_field_4`, `export_custom_field_5`, `export_custom_field_6`, `position`, `customer_group_id`, `crm_source`, `crm_life_stage`, `custom_field1`, `custom_field2`, `custom_field3`, `custom_field4`, `custom_field5`, `custom_field6`, `custom_field7`, `custom_field8`, `custom_field9`, `custom_field10`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 'customer', NULL, NULL, 'Walk-In Customer', NULL, NULL, NULL, NULL, NULL, 'CO0001', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, 0.0000, 1, NULL, NULL, 0.0000, 0, 0, 0, 1, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(2, 2, 'customer', NULL, NULL, 'Walk-In Customer', NULL, NULL, NULL, NULL, NULL, 'CO0001', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, 0.0000, 2, NULL, NULL, 0.0000, 0, 0, 0, 1, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(3, 1, 'customer', 'business', 'KS Landscaping & Renovation', '', NULL, NULL, NULL, NULL, 'xiyanguan2010@hotmail.com', 'CO0002', 'active', '771277324 RT 0001', 'Scarborough', 'Ontario', 'Canada', '52 Staley Terr', NULL, 'M1W 2E7', NULL, '(647) 863-8148', NULL, NULL, 30, 'days', NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-24 19:10:13', '2025-11-24 19:10:13'),
(4, 1, 'customer', 'individual', NULL, 'mr. abdallah ewais', 'mr.', 'abdallah', NULL, 'ewais', 'ae76@hotmail.com', 'CO0003', 'active', NULL, 'ajax', 'Ontario', 'Canada', '15 Hibbins ave', NULL, 'L1T 4C4', NULL, '647-280-5354', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-24 20:11:58', '2025-11-24 20:11:58'),
(5, 1, 'customer', 'business', 'All Star Home Renovation', '', NULL, NULL, NULL, NULL, 'allstar.jay.homereno@gmail.com', 'CO0004', 'active', NULL, 'Toronto', 'Ontario', 'Canada', NULL, NULL, NULL, NULL, '647-838-8299', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-25 14:40:29', '2025-11-25 14:40:29'),
(6, 1, 'customer', 'business', 'All Star Properties', '', NULL, NULL, NULL, NULL, 'jessy@allstarproperties.ca', 'CO0005', 'active', NULL, 'Mississauga', 'Ontario', 'Canada', '5525 Orbitor Drive', NULL, 'L4W 4YE', NULL, '647-617-6449', NULL, '289-236-2041', NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-25 14:42:26', '2025-11-25 14:42:26'),
(7, 1, 'customer', 'individual', NULL, 'tamim', NULL, 'tamim', NULL, NULL, 'mrtamim736@gmail.com', 'CO0006', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0115', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:22:37', '2025-11-29 12:22:37'),
(8, 1, 'customer', 'individual', NULL, 'tamim', NULL, 'tamim', NULL, NULL, 'mrtamim736@gmail.com', 'CO0007', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0115', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:23:10', '2025-11-29 12:23:10'),
(9, 1, 'customer', 'individual', NULL, 'tamim', NULL, 'tamim', NULL, NULL, 'mrtamim736@gmail.com', 'CO0008', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0115', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:26:01', '2025-11-29 12:26:01'),
(10, 1, 'customer', 'individual', NULL, 'tamim', NULL, 'tamim', NULL, NULL, 'mrtamim736@gmail.com', 'CO0009', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0115', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:27:12', '2025-11-29 12:27:12'),
(11, 1, 'customer', 'individual', NULL, 'ta', NULL, 'ta', NULL, NULL, 'mrtamim736@gmail.com', 'CO0010', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '34534', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:28:09', '2025-11-29 12:28:09'),
(12, 1, 'customer', 'individual', NULL, 'ta', NULL, 'ta', NULL, NULL, 'mrtamim736@gmail.com', 'CO0011', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '34534', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:29:00', '2025-11-29 12:29:00'),
(13, 1, 'customer', 'individual', NULL, 'ta', NULL, 'ta', NULL, NULL, 'mrtamim736@gmail.com', 'CO0012', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '34534', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:29:49', '2025-11-29 12:29:49'),
(14, 1, 'customer', 'individual', NULL, 'ta', NULL, 'ta', NULL, NULL, 'mrtamim736@gmail.com', 'CO0013', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '34534', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:30:11', '2025-11-29 12:30:11'),
(15, 1, 'customer', 'individual', NULL, 'dfghdfh', NULL, 'dfghdfh', NULL, NULL, 'mrtamim736@gmail.com', 'CO0014', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '50', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:30:50', '2025-11-29 12:30:50'),
(16, 1, 'customer', 'individual', NULL, 'asdf', NULL, 'asdf', NULL, NULL, 'mrtamim736@gmail.com', 'CO0015', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '5555', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:31:37', '2025-11-29 12:31:37'),
(17, 1, 'customer', 'individual', NULL, 'asdf', NULL, 'asdf', NULL, NULL, 'mrtamim736@gmail.com', 'CO0016', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '5555', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:33:37', '2025-11-29 12:33:37'),
(18, 1, 'customer', 'individual', NULL, 'asdf', NULL, 'asdf', NULL, NULL, 'mrtamim736@gmail.com', 'CO0017', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '5555', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:34:23', '2025-11-29 12:34:23'),
(19, 1, 'customer', 'individual', NULL, 'asdf', NULL, 'asdf', NULL, NULL, 'mrtamim736@gmail.com', 'CO0018', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '5555', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:34:46', '2025-11-29 12:34:46'),
(20, 1, 'customer', 'individual', NULL, 'sdfg', NULL, 'sdfg', NULL, NULL, 'mrtamim736@gmail.com', 'CO0019', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '5541', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-11-29 12:35:47', '2025-11-29 12:35:47'),
(21, 3, 'customer', NULL, NULL, 'Walk-In Customer', NULL, NULL, NULL, NULL, NULL, 'CO0001', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, 0.0000, 5, NULL, NULL, 0.0000, 0, 0, 0, 1, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-12-02 09:40:05', '2025-12-02 09:40:05'),
(22, 1, 'supplier', 'individual', NULL, 'Tamim Supplier', NULL, 'Tamim', NULL, 'Supplier', 'mrtamim736@gmail.com', 'CO0020', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '01884373013', NULL, NULL, NULL, NULL, NULL, 6, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-12-02 05:26:13', '2025-12-02 05:26:28'),
(23, 1, 'customer', 'individual', NULL, 'Test Hossain', NULL, 'Test', NULL, 'Hossain', 'mrtamim736@gmail.com', 'CO0021', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '01884373013', NULL, NULL, NULL, NULL, NULL, 6, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-12-02 06:28:59', '2025-12-02 06:28:59'),
(24, 1, 'customer', 'individual', NULL, 'Tamim Hossain', NULL, 'Tamim', NULL, 'Hossain', 'mrtamim736@gmail.com', 'CO0022', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '01884373013', NULL, NULL, NULL, NULL, NULL, 6, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-12-02 06:35:59', '2025-12-02 06:35:59'),
(25, 1, 'supplier', 'individual', NULL, 'Test supplier', NULL, 'Test', NULL, 'supplier', NULL, 'CO0023', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0115245', NULL, NULL, NULL, NULL, NULL, 6, NULL, NULL, 0.0000, 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-12-02 09:11:44', '2025-12-02 09:11:44');

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

--
-- Table structure for table `crm_call_logs`
--

CREATE TABLE `crm_call_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `call_type` varchar(191) DEFAULT NULL,
  `mobile_number` varchar(191) NOT NULL,
  `mobile_name` varchar(191) DEFAULT NULL,
  `contact_id` int(11) DEFAULT NULL,
  `start_time` datetime DEFAULT NULL,
  `end_time` datetime DEFAULT NULL,
  `duration` int(11) DEFAULT NULL,
  `created_by` int(11) 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 `crm_campaigns`
--

CREATE TABLE `crm_campaigns` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `campaign_type` enum('sms','email') NOT NULL DEFAULT 'email',
  `subject` varchar(191) DEFAULT NULL,
  `email_body` text DEFAULT NULL,
  `sms_body` text DEFAULT NULL,
  `sent_on` datetime DEFAULT NULL,
  `contact_ids` text NOT NULL,
  `additional_info` text DEFAULT NULL,
  `created_by` int(11) 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 `crm_contact_person_commissions`
--

CREATE TABLE `crm_contact_person_commissions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `contact_person_id` int(11) NOT NULL,
  `transaction_id` int(11) DEFAULT NULL,
  `commission_amount` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `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 `crm_followup_invoices`
--

CREATE TABLE `crm_followup_invoices` (
  `follow_up_id` int(11) NOT NULL,
  `transaction_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `crm_lead_users`
--

CREATE TABLE `crm_lead_users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `contact_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `crm_marketplaces`
--

CREATE TABLE `crm_marketplaces` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `marketplace` varchar(191) DEFAULT NULL,
  `site_key` varchar(191) DEFAULT NULL,
  `site_id` varchar(191) DEFAULT NULL,
  `assigned_users` text DEFAULT NULL,
  `crm_source_id` 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 `crm_proposals`
--

CREATE TABLE `crm_proposals` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `contact_id` int(10) UNSIGNED NOT NULL,
  `subject` text NOT NULL,
  `body` longtext NOT NULL,
  `cc` text DEFAULT NULL,
  `bcc` text DEFAULT NULL,
  `sent_by` int(11) 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 `crm_proposals`
--

INSERT INTO `crm_proposals` (`id`, `business_id`, `contact_id`, `subject`, `body`, `cc`, `bcc`, `sent_by`, `created_at`, `updated_at`) VALUES
(1, 1, 4, 'test', '<p>test</p>', NULL, NULL, 6, '2025-12-02 14:16:06', '2025-12-02 14:16:06');

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

--
-- Table structure for table `crm_proposal_templates`
--

CREATE TABLE `crm_proposal_templates` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `subject` text NOT NULL,
  `body` longtext NOT NULL,
  `cc` text DEFAULT NULL,
  `bcc` text DEFAULT NULL,
  `created_by` int(11) 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 `crm_proposal_templates`
--

INSERT INTO `crm_proposal_templates` (`id`, `business_id`, `subject`, `body`, `cc`, `bcc`, `created_by`, `created_at`, `updated_at`) VALUES
(1, 1, 'test', '<p>test</p>', NULL, NULL, 6, '2025-12-02 13:57:33', '2025-12-02 13:57:33');

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

--
-- Table structure for table `crm_schedules`
--

CREATE TABLE `crm_schedules` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `contact_id` int(10) DEFAULT NULL,
  `title` varchar(191) NOT NULL,
  `status` varchar(191) DEFAULT NULL,
  `start_datetime` datetime DEFAULT NULL,
  `end_datetime` datetime DEFAULT NULL,
  `description` text DEFAULT NULL,
  `schedule_type` enum('call','sms','meeting','email') NOT NULL DEFAULT 'email',
  `followup_category_id` int(11) DEFAULT NULL,
  `allow_notification` tinyint(1) NOT NULL DEFAULT 1,
  `notify_via` text DEFAULT NULL,
  `notify_before` int(11) DEFAULT NULL,
  `notify_type` enum('minute','hour','day') NOT NULL DEFAULT 'hour',
  `created_by` int(11) NOT NULL,
  `is_recursive` tinyint(1) NOT NULL DEFAULT 0,
  `recursion_days` int(11) DEFAULT NULL,
  `followup_additional_info` text DEFAULT NULL,
  `follow_up_by` varchar(191) DEFAULT NULL,
  `follow_up_by_value` varchar(191) 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 `crm_schedule_logs`
--

CREATE TABLE `crm_schedule_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `schedule_id` bigint(20) UNSIGNED NOT NULL,
  `log_type` enum('call','sms','meeting','email') NOT NULL DEFAULT 'email',
  `start_datetime` datetime NOT NULL,
  `end_datetime` datetime NOT NULL,
  `subject` varchar(191) NOT NULL,
  `description` text DEFAULT NULL,
  `created_by` int(11) 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 `crm_schedule_users`
--

CREATE TABLE `crm_schedule_users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `schedule_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` int(11) 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 `currencies`
--

CREATE TABLE `currencies` (
  `id` int(10) UNSIGNED NOT NULL,
  `country` varchar(100) NOT NULL,
  `currency` varchar(100) NOT NULL,
  `code` varchar(25) NOT NULL,
  `symbol` varchar(25) NOT NULL,
  `thousand_separator` varchar(10) NOT NULL,
  `decimal_separator` varchar(10) 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 `currencies`
--

INSERT INTO `currencies` (`id`, `country`, `currency`, `code`, `symbol`, `thousand_separator`, `decimal_separator`, `created_at`, `updated_at`) VALUES
(1, 'Albania', 'Leke', 'ALL', 'Lek', ',', '.', NULL, NULL),
(2, 'America', 'Dollars', 'USD', '$', ',', '.', NULL, NULL),
(3, 'Afghanistan', 'Afghanis', 'AF', '؋', ',', '.', NULL, NULL),
(4, 'Argentina', 'Pesos', 'ARS', '$', ',', '.', NULL, NULL),
(5, 'Aruba', 'Guilders', 'AWG', 'ƒ', ',', '.', NULL, NULL),
(6, 'Australia', 'Dollars', 'AUD', '$', ',', '.', NULL, NULL),
(7, 'Azerbaijan', 'New Manats', 'AZ', 'ман', ',', '.', NULL, NULL),
(8, 'Bahamas', 'Dollars', 'BSD', '$', ',', '.', NULL, NULL),
(9, 'Barbados', 'Dollars', 'BBD', '$', ',', '.', NULL, NULL),
(10, 'Belarus', 'Rubles', 'BYR', 'p.', ',', '.', NULL, NULL),
(11, 'Belgium', 'Euro', 'EUR', '€', ',', '.', NULL, NULL),
(12, 'Beliz', 'Dollars', 'BZD', 'BZ$', ',', '.', NULL, NULL),
(13, 'Bermuda', 'Dollars', 'BMD', '$', ',', '.', NULL, NULL),
(14, 'Bolivia', 'Bolivianos', 'BOB', '$b', ',', '.', NULL, NULL),
(15, 'Bosnia and Herzegovina', 'Convertible Marka', 'BAM', 'KM', ',', '.', NULL, NULL),
(16, 'Botswana', 'Pula\'s', 'BWP', 'P', ',', '.', NULL, NULL),
(17, 'Bulgaria', 'Leva', 'BG', 'лв', ',', '.', NULL, NULL),
(18, 'Brazil', 'Reais', 'BRL', 'R$', ',', '.', NULL, NULL),
(19, 'Britain [United Kingdom]', 'Pounds', 'GBP', '£', ',', '.', NULL, NULL),
(20, 'Brunei Darussalam', 'Dollars', 'BND', '$', ',', '.', NULL, NULL),
(21, 'Cambodia', 'Riels', 'KHR', '៛', ',', '.', NULL, NULL),
(22, 'Canada', 'Dollars', 'CAD', '$', ',', '.', NULL, NULL),
(23, 'Cayman Islands', 'Dollars', 'KYD', '$', ',', '.', NULL, NULL),
(24, 'Chile', 'Pesos', 'CLP', '$', ',', '.', NULL, NULL),
(25, 'China', 'Yuan Renminbi', 'CNY', '¥', ',', '.', NULL, NULL),
(26, 'Colombia', 'Pesos', 'COP', '$', ',', '.', NULL, NULL),
(27, 'Costa Rica', 'Colón', 'CRC', '₡', ',', '.', NULL, NULL),
(28, 'Croatia', 'Kuna', 'HRK', 'kn', ',', '.', NULL, NULL),
(29, 'Cuba', 'Pesos', 'CUP', '₱', ',', '.', NULL, NULL),
(30, 'Cyprus', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(31, 'Czech Republic', 'Koruny', 'CZK', 'Kč', ',', '.', NULL, NULL),
(32, 'Denmark', 'Kroner', 'DKK', 'kr', ',', '.', NULL, NULL),
(33, 'Dominican Republic', 'Pesos', 'DOP ', 'RD$', ',', '.', NULL, NULL),
(34, 'East Caribbean', 'Dollars', 'XCD', '$', ',', '.', NULL, NULL),
(35, 'Egypt', 'Pounds', 'EGP', '£', ',', '.', NULL, NULL),
(36, 'El Salvador', 'Colones', 'SVC', '$', ',', '.', NULL, NULL),
(37, 'England [United Kingdom]', 'Pounds', 'GBP', '£', ',', '.', NULL, NULL),
(38, 'Euro', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(39, 'Falkland Islands', 'Pounds', 'FKP', '£', ',', '.', NULL, NULL),
(40, 'Fiji', 'Dollars', 'FJD', '$', ',', '.', NULL, NULL),
(41, 'France', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(42, 'Ghana', 'Cedis', 'GHS', '¢', ',', '.', NULL, NULL),
(43, 'Gibraltar', 'Pounds', 'GIP', '£', ',', '.', NULL, NULL),
(44, 'Greece', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(45, 'Guatemala', 'Quetzales', 'GTQ', 'Q', ',', '.', NULL, NULL),
(46, 'Guernsey', 'Pounds', 'GGP', '£', ',', '.', NULL, NULL),
(47, 'Guyana', 'Dollars', 'GYD', '$', ',', '.', NULL, NULL),
(48, 'Holland [Netherlands]', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(49, 'Honduras', 'Lempiras', 'HNL', 'L', ',', '.', NULL, NULL),
(50, 'Hong Kong', 'Dollars', 'HKD', '$', ',', '.', NULL, NULL),
(51, 'Hungary', 'Forint', 'HUF', 'Ft', ',', '.', NULL, NULL),
(52, 'Iceland', 'Kronur', 'ISK', 'kr', ',', '.', NULL, NULL),
(53, 'India', 'Rupees', 'INR', '₹', ',', '.', NULL, NULL),
(54, 'Indonesia', 'Rupiahs', 'IDR', 'Rp', ',', '.', NULL, NULL),
(55, 'Iran', 'Rials', 'IRR', '﷼', ',', '.', NULL, NULL),
(56, 'Ireland', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(57, 'Isle of Man', 'Pounds', 'IMP', '£', ',', '.', NULL, NULL),
(58, 'Israel', 'New Shekels', 'ILS', '₪', ',', '.', NULL, NULL),
(59, 'Italy', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(60, 'Jamaica', 'Dollars', 'JMD', 'J$', ',', '.', NULL, NULL),
(61, 'Japan', 'Yen', 'JPY', '¥', ',', '.', NULL, NULL),
(62, 'Jersey', 'Pounds', 'JEP', '£', ',', '.', NULL, NULL),
(63, 'Kazakhstan', 'Tenge', 'KZT', 'лв', ',', '.', NULL, NULL),
(64, 'Korea [North]', 'Won', 'KPW', '₩', ',', '.', NULL, NULL),
(65, 'Korea [South]', 'Won', 'KRW', '₩', ',', '.', NULL, NULL),
(66, 'Kyrgyzstan', 'Soms', 'KGS', 'лв', ',', '.', NULL, NULL),
(67, 'Laos', 'Kips', 'LAK', '₭', ',', '.', NULL, NULL),
(68, 'Latvia', 'Lati', 'LVL', 'Ls', ',', '.', NULL, NULL),
(69, 'Lebanon', 'Pounds', 'LBP', '£', ',', '.', NULL, NULL),
(70, 'Liberia', 'Dollars', 'LRD', '$', ',', '.', NULL, NULL),
(71, 'Liechtenstein', 'Switzerland Francs', 'CHF', 'CHF', ',', '.', NULL, NULL),
(72, 'Lithuania', 'Litai', 'LTL', 'Lt', ',', '.', NULL, NULL),
(73, 'Luxembourg', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(74, 'Macedonia', 'Denars', 'MKD', 'ден', ',', '.', NULL, NULL),
(75, 'Malaysia', 'Ringgits', 'MYR', 'RM', ',', '.', NULL, NULL),
(76, 'Malta', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(77, 'Mauritius', 'Rupees', 'MUR', '₨', ',', '.', NULL, NULL),
(78, 'Mexico', 'Pesos', 'MXN', '$', ',', '.', NULL, NULL),
(79, 'Mongolia', 'Tugriks', 'MNT', '₮', ',', '.', NULL, NULL),
(80, 'Mozambique', 'Meticais', 'MZ', 'MT', ',', '.', NULL, NULL),
(81, 'Namibia', 'Dollars', 'NAD', '$', ',', '.', NULL, NULL),
(82, 'Nepal', 'Rupees', 'NPR', '₨', ',', '.', NULL, NULL),
(83, 'Netherlands Antilles', 'Guilders', 'ANG', 'ƒ', ',', '.', NULL, NULL),
(84, 'Netherlands', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(85, 'New Zealand', 'Dollars', 'NZD', '$', ',', '.', NULL, NULL),
(86, 'Nicaragua', 'Cordobas', 'NIO', 'C$', ',', '.', NULL, NULL),
(87, 'Nigeria', 'Nairas', 'NGN', '₦', ',', '.', NULL, NULL),
(88, 'North Korea', 'Won', 'KPW', '₩', ',', '.', NULL, NULL),
(89, 'Norway', 'Krone', 'NOK', 'kr', ',', '.', NULL, NULL),
(90, 'Oman', 'Rials', 'OMR', '﷼', ',', '.', NULL, NULL),
(91, 'Pakistan', 'Rupees', 'PKR', '₨', ',', '.', NULL, NULL),
(92, 'Panama', 'Balboa', 'PAB', 'B/.', ',', '.', NULL, NULL),
(93, 'Paraguay', 'Guarani', 'PYG', 'Gs', ',', '.', NULL, NULL),
(94, 'Peru', 'Nuevos Soles', 'PE', 'S/.', ',', '.', NULL, NULL),
(95, 'Philippines', 'Pesos', 'PHP', 'Php', ',', '.', NULL, NULL),
(96, 'Poland', 'Zlotych', 'PL', 'zł', ',', '.', NULL, NULL),
(97, 'Qatar', 'Rials', 'QAR', '﷼', ',', '.', NULL, NULL),
(98, 'Romania', 'New Lei', 'RO', 'lei', ',', '.', NULL, NULL),
(99, 'Russia', 'Rubles', 'RUB', 'руб', ',', '.', NULL, NULL),
(100, 'Saint Helena', 'Pounds', 'SHP', '£', ',', '.', NULL, NULL),
(101, 'Saudi Arabia', 'Riyals', 'SAR', '﷼', ',', '.', NULL, NULL),
(102, 'Serbia', 'Dinars', 'RSD', 'Дин.', ',', '.', NULL, NULL),
(103, 'Seychelles', 'Rupees', 'SCR', '₨', ',', '.', NULL, NULL),
(104, 'Singapore', 'Dollars', 'SGD', '$', ',', '.', NULL, NULL),
(105, 'Slovenia', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(106, 'Solomon Islands', 'Dollars', 'SBD', '$', ',', '.', NULL, NULL),
(107, 'Somalia', 'Shillings', 'SOS', 'S', ',', '.', NULL, NULL),
(108, 'South Africa', 'Rand', 'ZAR', 'R', ',', '.', NULL, NULL),
(109, 'South Korea', 'Won', 'KRW', '₩', ',', '.', NULL, NULL),
(110, 'Spain', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(111, 'Sri Lanka', 'Rupees', 'LKR', '₨', ',', '.', NULL, NULL),
(112, 'Sweden', 'Kronor', 'SEK', 'kr', ',', '.', NULL, NULL),
(113, 'Switzerland', 'Francs', 'CHF', 'CHF', ',', '.', NULL, NULL),
(114, 'Suriname', 'Dollars', 'SRD', '$', ',', '.', NULL, NULL),
(115, 'Syria', 'Pounds', 'SYP', '£', ',', '.', NULL, NULL),
(116, 'Taiwan', 'New Dollars', 'TWD', 'NT$', ',', '.', NULL, NULL),
(117, 'Thailand', 'Baht', 'THB', '฿', ',', '.', NULL, NULL),
(118, 'Trinidad and Tobago', 'Dollars', 'TTD', 'TT$', ',', '.', NULL, NULL),
(119, 'Turkey', 'Lira', 'TRY', 'TL', ',', '.', NULL, NULL),
(120, 'Turkey', 'Liras', 'TRL', '£', ',', '.', NULL, NULL),
(121, 'Tuvalu', 'Dollars', 'TVD', '$', ',', '.', NULL, NULL),
(122, 'Ukraine', 'Hryvnia', 'UAH', '₴', ',', '.', NULL, NULL),
(123, 'United Kingdom', 'Pounds', 'GBP', '£', ',', '.', NULL, NULL),
(124, 'United States of America', 'Dollars', 'USD', '$', ',', '.', NULL, NULL),
(125, 'Uruguay', 'Pesos', 'UYU', '$U', ',', '.', NULL, NULL),
(126, 'Uzbekistan', 'Sums', 'UZS', 'лв', ',', '.', NULL, NULL),
(127, 'Vatican City', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(128, 'Venezuela', 'Bolivares Fuertes', 'VEF', 'Bs', ',', '.', NULL, NULL),
(129, 'Vietnam', 'Dong', 'VND', '₫', ',', '.', NULL, NULL),
(130, 'Yemen', 'Rials', 'YER', '﷼', ',', '.', NULL, NULL),
(131, 'Zimbabwe', 'Zimbabwe Dollars', 'ZWD', 'Z$', ',', '.', NULL, NULL),
(132, 'Iraq', 'Iraqi dinar', 'IQD', 'د.ع', ',', '.', NULL, NULL),
(133, 'Kenya', 'Kenyan shilling', 'KES', 'KSh', ',', '.', NULL, NULL),
(134, 'Bangladesh', 'Taka', 'BDT', '৳', ',', '.', NULL, NULL),
(135, 'Algerie', 'Algerian dinar', 'DZD', 'د.ج', ' ', '.', NULL, NULL),
(136, 'United Arab Emirates', 'United Arab Emirates dirham', 'AED', 'د.إ', ',', '.', NULL, NULL),
(137, 'Uganda', 'Uganda shillings', 'UGX', 'USh', ',', '.', NULL, NULL),
(138, 'Tanzania', 'Tanzanian shilling', 'TZS', 'TSh', ',', '.', NULL, NULL),
(139, 'Angola', 'Kwanza', 'AOA', 'Kz', ',', '.', NULL, NULL),
(140, 'Kuwait', 'Kuwaiti dinar', 'KWD', 'KD', ',', '.', NULL, NULL),
(141, 'Bahrain', 'Bahraini dinar', 'BHD', 'BD', ',', '.', NULL, NULL);

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

--
-- Table structure for table `customer_groups`
--

CREATE TABLE `customer_groups` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `amount` double(5,2) NOT NULL,
  `price_calculation_type` varchar(191) DEFAULT 'percentage',
  `selling_price_group_id` int(11) DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `dashboard_configurations`
--

CREATE TABLE `dashboard_configurations` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `created_by` int(11) NOT NULL,
  `name` varchar(191) NOT NULL,
  `color` varchar(191) NOT NULL,
  `configuration` text 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 `discounts`
--

CREATE TABLE `discounts` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `business_id` int(11) NOT NULL,
  `brand_id` int(11) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `location_id` int(11) DEFAULT NULL,
  `priority` int(11) DEFAULT NULL,
  `discount_type` varchar(191) DEFAULT NULL,
  `discount_amount` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `starts_at` datetime DEFAULT NULL,
  `ends_at` datetime DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `spg` varchar(100) DEFAULT NULL COMMENT 'Applicable in specified selling price group only. Use of applicable_in_spg column is discontinued',
  `applicable_in_cg` tinyint(1) 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 `discount_variations`
--

CREATE TABLE `discount_variations` (
  `discount_id` int(11) NOT NULL,
  `variation_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `document_and_notes`
--

CREATE TABLE `document_and_notes` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `notable_id` int(11) NOT NULL,
  `notable_type` varchar(191) NOT NULL,
  `heading` text DEFAULT NULL,
  `description` text DEFAULT NULL,
  `is_private` tinyint(1) NOT NULL DEFAULT 0,
  `created_by` int(11) 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 `essentials_allowances_and_deductions`
--

CREATE TABLE `essentials_allowances_and_deductions` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `description` varchar(191) NOT NULL,
  `type` enum('allowance','deduction') NOT NULL,
  `amount` decimal(22,4) NOT NULL,
  `amount_type` enum('fixed','percent') NOT NULL,
  `applicable_date` date 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 `essentials_attendances`
--

CREATE TABLE `essentials_attendances` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `clock_in_time` datetime DEFAULT NULL,
  `clock_out_time` datetime DEFAULT NULL,
  `essentials_shift_id` int(11) DEFAULT NULL,
  `ip_address` varchar(191) DEFAULT NULL,
  `clock_in_note` text DEFAULT NULL,
  `clock_out_note` text DEFAULT NULL,
  `clock_in_location` text DEFAULT NULL,
  `clock_out_location` text 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 `essentials_documents`
--

CREATE TABLE `essentials_documents` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `type` varchar(191) DEFAULT NULL,
  `name` varchar(191) NOT NULL,
  `description` varchar(191) 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 `essentials_document_shares`
--

CREATE TABLE `essentials_document_shares` (
  `id` int(10) UNSIGNED NOT NULL,
  `document_id` int(11) NOT NULL,
  `value_type` enum('user','role') NOT NULL,
  `value` int(11) 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 `essentials_holidays`
--

CREATE TABLE `essentials_holidays` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) DEFAULT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `business_id` int(11) NOT NULL,
  `location_id` int(11) DEFAULT NULL,
  `note` text 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 `essentials_kb`
--

CREATE TABLE `essentials_kb` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `business_id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(191) NOT NULL,
  `content` longtext DEFAULT NULL,
  `status` varchar(191) NOT NULL,
  `kb_type` varchar(191) NOT NULL,
  `parent_id` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'id from essentials_kb table',
  `share_with` varchar(191) DEFAULT NULL COMMENT 'public, private, only_with',
  `created_by` 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 `essentials_kb_users`
--

CREATE TABLE `essentials_kb_users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `kb_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `essentials_leaves`
--

CREATE TABLE `essentials_leaves` (
  `id` int(10) UNSIGNED NOT NULL,
  `essentials_leave_type_id` int(11) DEFAULT NULL,
  `business_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `ref_no` varchar(191) DEFAULT NULL,
  `status` enum('pending','approved','cancelled') DEFAULT NULL,
  `reason` text DEFAULT NULL,
  `status_note` text 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 `essentials_leave_types`
--

CREATE TABLE `essentials_leave_types` (
  `id` int(10) UNSIGNED NOT NULL,
  `leave_type` varchar(191) NOT NULL,
  `max_leave_count` int(11) DEFAULT NULL,
  `leave_count_interval` enum('month','year') DEFAULT NULL,
  `business_id` int(11) 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 `essentials_messages`
--

CREATE TABLE `essentials_messages` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `message` text NOT NULL,
  `location_id` 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 `essentials_payroll_groups`
--

CREATE TABLE `essentials_payroll_groups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `location_id` int(11) DEFAULT NULL COMMENT 'payroll for work location',
  `name` varchar(191) NOT NULL,
  `status` varchar(191) NOT NULL,
  `payment_status` varchar(191) NOT NULL DEFAULT 'due',
  `gross_total` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `created_by` int(11) 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 `essentials_payroll_group_transactions`
--

CREATE TABLE `essentials_payroll_group_transactions` (
  `payroll_group_id` bigint(20) UNSIGNED NOT NULL,
  `transaction_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `essentials_reminders`
--

CREATE TABLE `essentials_reminders` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `name` varchar(191) NOT NULL,
  `date` date NOT NULL,
  `time` time NOT NULL,
  `end_time` time DEFAULT NULL,
  `repeat` enum('one_time','every_day','every_week','every_month') 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 `essentials_shifts`
--

CREATE TABLE `essentials_shifts` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `type` enum('fixed_shift','flexible_shift') NOT NULL DEFAULT 'fixed_shift',
  `business_id` int(11) NOT NULL,
  `start_time` time DEFAULT NULL,
  `end_time` time DEFAULT NULL,
  `is_allowed_auto_clockout` tinyint(1) NOT NULL DEFAULT 0,
  `auto_clockout_time` time DEFAULT NULL,
  `holidays` text 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 `essentials_todos_users`
--

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

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

--
-- Table structure for table `essentials_todo_comments`
--

CREATE TABLE `essentials_todo_comments` (
  `id` int(10) UNSIGNED NOT NULL,
  `comment` text NOT NULL,
  `task_id` int(11) NOT NULL,
  `comment_by` int(11) 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 `essentials_to_dos`
--

CREATE TABLE `essentials_to_dos` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `task` text NOT NULL,
  `date` datetime DEFAULT NULL,
  `end_date` datetime DEFAULT NULL,
  `task_id` varchar(191) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `status` varchar(191) DEFAULT NULL,
  `estimated_hours` varchar(191) DEFAULT NULL,
  `priority` varchar(191) DEFAULT NULL,
  `created_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 `essentials_user_allowance_and_deductions`
--

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

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

--
-- Table structure for table `essentials_user_sales_targets`
--

CREATE TABLE `essentials_user_sales_targets` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` int(11) NOT NULL,
  `target_start` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `target_end` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `commission_percent` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `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 `essentials_user_shifts`
--

CREATE TABLE `essentials_user_shifts` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(11) NOT NULL,
  `essentials_shift_id` int(11) NOT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date 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 `expense_categories`
--

CREATE TABLE `expense_categories` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `code` varchar(191) DEFAULT NULL,
  `parent_id` int(11) 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 `group_sub_taxes`
--

CREATE TABLE `group_sub_taxes` (
  `group_tax_id` int(10) UNSIGNED NOT NULL,
  `tax_id` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `invoice_layouts`
--

CREATE TABLE `invoice_layouts` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `header_text` text DEFAULT NULL,
  `invoice_no_prefix` varchar(191) DEFAULT NULL,
  `quotation_no_prefix` varchar(191) DEFAULT NULL,
  `invoice_heading` varchar(191) DEFAULT NULL,
  `sub_heading_line1` varchar(191) DEFAULT NULL,
  `sub_heading_line2` varchar(191) DEFAULT NULL,
  `sub_heading_line3` varchar(191) DEFAULT NULL,
  `sub_heading_line4` varchar(191) DEFAULT NULL,
  `sub_heading_line5` varchar(191) DEFAULT NULL,
  `invoice_heading_not_paid` varchar(191) DEFAULT NULL,
  `invoice_heading_paid` varchar(191) DEFAULT NULL,
  `quotation_heading` varchar(191) DEFAULT NULL,
  `sub_total_label` varchar(191) DEFAULT NULL,
  `discount_label` varchar(191) DEFAULT NULL,
  `tax_label` varchar(191) DEFAULT NULL,
  `total_label` varchar(191) DEFAULT NULL,
  `round_off_label` varchar(191) DEFAULT NULL,
  `total_due_label` varchar(191) DEFAULT NULL,
  `paid_label` varchar(191) DEFAULT NULL,
  `show_client_id` tinyint(1) NOT NULL DEFAULT 0,
  `client_id_label` varchar(191) DEFAULT NULL,
  `client_tax_label` varchar(191) DEFAULT NULL,
  `date_label` varchar(191) DEFAULT NULL,
  `date_time_format` varchar(191) DEFAULT NULL,
  `show_time` tinyint(1) NOT NULL DEFAULT 1,
  `show_brand` tinyint(1) NOT NULL DEFAULT 0,
  `show_sku` tinyint(1) NOT NULL DEFAULT 1,
  `show_cat_code` tinyint(1) NOT NULL DEFAULT 1,
  `show_expiry` tinyint(1) NOT NULL DEFAULT 0,
  `show_lot` tinyint(1) NOT NULL DEFAULT 0,
  `show_image` tinyint(1) NOT NULL DEFAULT 0,
  `show_sale_description` tinyint(1) NOT NULL DEFAULT 0,
  `sales_person_label` varchar(191) DEFAULT NULL,
  `show_sales_person` tinyint(1) NOT NULL DEFAULT 0,
  `table_product_label` varchar(191) DEFAULT NULL,
  `table_qty_label` varchar(191) DEFAULT NULL,
  `table_unit_price_label` varchar(191) DEFAULT NULL,
  `table_subtotal_label` varchar(191) DEFAULT NULL,
  `cat_code_label` varchar(191) DEFAULT NULL,
  `logo` varchar(191) DEFAULT NULL,
  `show_logo` tinyint(1) NOT NULL DEFAULT 0,
  `show_business_name` tinyint(1) NOT NULL DEFAULT 0,
  `show_location_name` tinyint(1) NOT NULL DEFAULT 1,
  `show_landmark` tinyint(1) NOT NULL DEFAULT 1,
  `show_city` tinyint(1) NOT NULL DEFAULT 1,
  `show_state` tinyint(1) NOT NULL DEFAULT 1,
  `show_zip_code` tinyint(1) NOT NULL DEFAULT 1,
  `show_country` tinyint(1) NOT NULL DEFAULT 1,
  `show_mobile_number` tinyint(1) NOT NULL DEFAULT 1,
  `show_alternate_number` tinyint(1) NOT NULL DEFAULT 0,
  `show_email` tinyint(1) NOT NULL DEFAULT 0,
  `show_tax_1` tinyint(1) NOT NULL DEFAULT 1,
  `show_tax_2` tinyint(1) NOT NULL DEFAULT 0,
  `show_barcode` tinyint(1) NOT NULL DEFAULT 0,
  `show_payments` tinyint(1) NOT NULL DEFAULT 0,
  `show_customer` tinyint(1) NOT NULL DEFAULT 0,
  `customer_label` varchar(191) DEFAULT NULL,
  `commission_agent_label` varchar(191) DEFAULT NULL,
  `show_commission_agent` tinyint(1) NOT NULL DEFAULT 0,
  `show_reward_point` tinyint(1) NOT NULL DEFAULT 0,
  `highlight_color` varchar(10) DEFAULT NULL,
  `footer_text` text DEFAULT NULL,
  `module_info` text DEFAULT NULL,
  `common_settings` text DEFAULT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT 0,
  `business_id` int(10) UNSIGNED NOT NULL,
  `show_letter_head` tinyint(1) NOT NULL DEFAULT 0,
  `letter_head` varchar(191) DEFAULT NULL,
  `show_qr_code` tinyint(1) NOT NULL DEFAULT 0,
  `qr_code_fields` text DEFAULT NULL,
  `design` varchar(190) DEFAULT 'classic',
  `cn_heading` varchar(191) DEFAULT NULL COMMENT 'cn = credit note',
  `cn_no_label` varchar(191) DEFAULT NULL,
  `cn_amount_label` varchar(191) DEFAULT NULL,
  `table_tax_headings` text DEFAULT NULL,
  `show_previous_bal` tinyint(1) NOT NULL DEFAULT 0,
  `prev_bal_label` varchar(191) DEFAULT NULL,
  `change_return_label` varchar(191) DEFAULT NULL,
  `product_custom_fields` text DEFAULT NULL,
  `contact_custom_fields` text DEFAULT NULL,
  `location_custom_fields` text 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_layouts`
--

INSERT INTO `invoice_layouts` (`id`, `name`, `header_text`, `invoice_no_prefix`, `quotation_no_prefix`, `invoice_heading`, `sub_heading_line1`, `sub_heading_line2`, `sub_heading_line3`, `sub_heading_line4`, `sub_heading_line5`, `invoice_heading_not_paid`, `invoice_heading_paid`, `quotation_heading`, `sub_total_label`, `discount_label`, `tax_label`, `total_label`, `round_off_label`, `total_due_label`, `paid_label`, `show_client_id`, `client_id_label`, `client_tax_label`, `date_label`, `date_time_format`, `show_time`, `show_brand`, `show_sku`, `show_cat_code`, `show_expiry`, `show_lot`, `show_image`, `show_sale_description`, `sales_person_label`, `show_sales_person`, `table_product_label`, `table_qty_label`, `table_unit_price_label`, `table_subtotal_label`, `cat_code_label`, `logo`, `show_logo`, `show_business_name`, `show_location_name`, `show_landmark`, `show_city`, `show_state`, `show_zip_code`, `show_country`, `show_mobile_number`, `show_alternate_number`, `show_email`, `show_tax_1`, `show_tax_2`, `show_barcode`, `show_payments`, `show_customer`, `customer_label`, `commission_agent_label`, `show_commission_agent`, `show_reward_point`, `highlight_color`, `footer_text`, `module_info`, `common_settings`, `is_default`, `business_id`, `show_letter_head`, `letter_head`, `show_qr_code`, `qr_code_fields`, `design`, `cn_heading`, `cn_no_label`, `cn_amount_label`, `table_tax_headings`, `show_previous_bal`, `prev_bal_label`, `change_return_label`, `product_custom_fields`, `contact_custom_fields`, `location_custom_fields`, `created_at`, `updated_at`) VALUES
(1, 'Default', NULL, 'Invoice No.', NULL, 'Invoice', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Subtotal', 'Discount', 'Tax', 'Total', NULL, 'Total Due', 'Total Paid', 0, NULL, NULL, 'Date', NULL, 1, 0, 0, 0, 0, 0, 0, 0, NULL, 0, 'Product', 'Quantity', 'Unit Price', 'Subtotal', NULL, '1763997345_Logo full.jpg', 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 'Customer', NULL, 0, 0, '#000000', '<h1 style=\"text-align: center;\"><strong>Thank you for your purchase</strong></h1>\r\n<p><strong>Payment Method :</strong></p>\r\n<ul>\r\n<li>Cash</li>\r\n<li>Email-Transfer : info@blackstonelandscaping.net</li>\r\n<li>Credit Card &amp; Debit</li>\r\n</ul>\r\n<p style=\"text-align: left;\"><strong>Terms &amp; Conditions of your purchase :</strong></p>\r\n<p style=\"text-align: left;\"><span class=\"wixui-rich-text__text\">All sales are final. Once a bulk delivery has been made, unfortunately we are unable to offer pick-up of material or any refund. This applies to both delivery and completed pick-up orders.</span></p>\r\n<p style=\"text-align: left;\">&nbsp;</p>', '{\"repair\":{\"repair_status_label\":null,\"repair_warranty_label\":null,\"brand_label\":null,\"device_label\":null,\"model_no_label\":null,\"serial_no_label\":null,\"defects_label\":null,\"repair_checklist_label\":null}}', '{\"proforma_heading\":null,\"sales_order_heading\":null,\"due_date_label\":null,\"total_quantity_label\":null,\"item_discount_label\":null,\"discounted_unit_price_label\":null,\"show_product_description\":\"1\",\"total_items_label\":null,\"num_to_word_format\":\"international\",\"tax_summary_label\":null}', 1, 1, 0, '1763997345_Logo full.jpg', 1, '[\"business_name\",\"address\",\"tax_1\",\"invoice_no\",\"invoice_datetime\",\"subtotal\",\"total_amount\",\"total_tax\",\"customer_name\",\"invoice_url\"]', 'elegant', NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '2025-11-24 02:41:04', '2025-11-25 11:16:51'),
(2, 'Default', NULL, 'Invoice No.', NULL, 'Invoice', NULL, NULL, NULL, NULL, NULL, '', '', NULL, 'Subtotal', 'Discount', 'Tax', 'Total', NULL, 'Total Due', 'Total Paid', 0, NULL, NULL, 'Date', NULL, 1, 0, 1, 1, 0, 0, 0, 0, NULL, 0, 'Product', 'Quantity', 'Unit Price', 'Subtotal', NULL, NULL, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 'Customer', NULL, 0, 0, '#000000', '', NULL, NULL, 1, 2, 0, NULL, 0, NULL, 'classic', NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(3, 'Default', NULL, 'Invoice No.', NULL, 'Invoice', NULL, NULL, NULL, NULL, NULL, '', '', NULL, 'Subtotal', 'Discount', 'Tax', 'Total', NULL, 'Total Due', 'Total Paid', 0, NULL, NULL, 'Date', NULL, 1, 0, 1, 1, 0, 0, 0, 0, NULL, 0, 'Product', 'Quantity', 'Unit Price', 'Subtotal', NULL, NULL, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 'Customer', NULL, 0, 0, '#000000', '', NULL, NULL, 1, 3, 0, NULL, 0, NULL, 'classic', NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '2025-12-02 09:40:05', '2025-12-02 09:40:05');

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

--
-- Table structure for table `invoice_schemes`
--

CREATE TABLE `invoice_schemes` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `scheme_type` enum('blank','year') NOT NULL,
  `number_type` varchar(100) NOT NULL DEFAULT 'sequential',
  `prefix` varchar(191) DEFAULT NULL,
  `start_number` int(11) DEFAULT NULL,
  `invoice_count` int(11) NOT NULL DEFAULT 0,
  `total_digits` int(11) DEFAULT NULL,
  `is_default` 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;

--
-- Dumping data for table `invoice_schemes`
--

INSERT INTO `invoice_schemes` (`id`, `business_id`, `name`, `scheme_type`, `number_type`, `prefix`, `start_number`, `invoice_count`, `total_digits`, `is_default`, `created_at`, `updated_at`) VALUES
(1, 1, 'Default', 'year', 'sequential', NULL, 1, 35, 4, 1, '2025-11-24 02:41:04', '2025-11-29 10:44:17'),
(2, 2, 'Default', 'blank', 'sequential', '', 1, 0, 4, 1, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(3, 3, 'Default', 'blank', 'sequential', '', 1, 0, 4, 1, '2025-12-02 09:40:05', '2025-12-02 09:40:05');

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

--
-- Table structure for table `media`
--

CREATE TABLE `media` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `file_name` varchar(191) NOT NULL,
  `description` text DEFAULT NULL,
  `uploaded_by` int(11) DEFAULT NULL,
  `model_type` varchar(191) NOT NULL,
  `model_media_type` varchar(191) DEFAULT NULL,
  `woocommerce_media_id` int(11) DEFAULT NULL,
  `model_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 `media`
--

INSERT INTO `media` (`id`, `business_id`, `file_name`, `description`, `uploaded_by`, `model_type`, `model_media_type`, `woocommerce_media_id`, `model_id`, `created_at`, `updated_at`) VALUES
(1, 1, '1764017503_430314554_Clear.jpg', NULL, 1, 'App\\Variation', NULL, NULL, 1, '2025-11-24 15:51:43', '2025-11-24 15:51:43'),
(2, 1, '1764017503_1584970025_Clear.jpg', NULL, 1, 'App\\Product', NULL, NULL, 1, '2025-11-24 15:51:43', '2025-11-24 15:51:43'),
(3, 1, '1764084558_53069145_clean dirt.jpg', NULL, 1, 'App\\Variation', NULL, NULL, 2, '2025-11-25 10:29:18', '2025-11-25 10:29:18'),
(4, 1, '1764085124_169172241_clean dirt.jpg', NULL, 1, 'App\\Variation', NULL, NULL, 6, '2025-11-25 10:38:44', '2025-11-25 10:38:44'),
(5, 1, '1764085855_2030459745_weaping tile.jpg', NULL, 1, 'App\\Variation', NULL, NULL, 7, '2025-11-25 10:50:55', '2025-11-25 10:50:55'),
(6, 1, '1764086298_238315503_HBP.jpg', NULL, 1, 'App\\Variation', NULL, NULL, 9, '2025-11-25 10:58:18', '2025-11-25 10:58:18'),
(7, 1, '1764086377_1063311623_HBP.jpg', NULL, 1, 'App\\Variation', NULL, NULL, 10, '2025-11-25 10:59:37', '2025-11-25 10:59:37'),
(8, 1, '1764127873_1228762770_HBP.jpg', NULL, 1, 'App\\Variation', NULL, NULL, 8, '2025-11-25 22:31:13', '2025-11-25 22:31:13'),
(9, 1, '1764178246_179180260_limestone crush.jpg', NULL, 1, 'App\\Variation', NULL, NULL, 11, '2025-11-26 12:30:46', '2025-11-26 12:30:46'),
(10, 1, '1764178424_153721336_limestone crush.jpg', NULL, 1, 'App\\Variation', NULL, NULL, 12, '2025-11-26 12:33:44', '2025-11-26 12:33:44'),
(11, 1, '1764178573_450508924_limestone crush.jpg', NULL, 1, 'App\\Variation', NULL, NULL, 13, '2025-11-26 12:36:13', '2025-11-26 12:36:13'),
(12, 1, '1764723453_1333255746_add.png', NULL, 6, 'Modules\\Crm\\Entities\\ProposalTemplate', NULL, NULL, 1, '2025-12-02 13:57:33', '2025-12-02 13:57:33'),
(13, 1, '1764724566_add.png', NULL, 6, 'Modules\\Crm\\Entities\\Proposal', NULL, NULL, 1, '2025-12-02 14:16:06', '2025-12-02 14:16:06');

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

--
-- Table structure for table `mfg_ingredient_groups`
--

CREATE TABLE `mfg_ingredient_groups` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `business_id` int(11) NOT NULL,
  `description` text 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 `mfg_recipes`
--

CREATE TABLE `mfg_recipes` (
  `id` int(10) UNSIGNED NOT NULL,
  `product_id` int(11) NOT NULL,
  `variation_id` int(11) NOT NULL,
  `instructions` text DEFAULT NULL,
  `waste_percent` decimal(10,2) NOT NULL DEFAULT 0.00,
  `ingredients_cost` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `extra_cost` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `production_cost_type` varchar(191) DEFAULT 'percentage',
  `total_quantity` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `final_price` decimal(22,4) NOT NULL,
  `sub_unit_id` 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 `mfg_recipe_ingredients`
--

CREATE TABLE `mfg_recipe_ingredients` (
  `id` int(10) UNSIGNED NOT NULL,
  `mfg_recipe_id` int(10) UNSIGNED NOT NULL,
  `variation_id` int(11) NOT NULL,
  `mfg_ingredient_group_id` int(11) DEFAULT NULL,
  `quantity` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `waste_percent` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `sub_unit_id` int(11) DEFAULT NULL,
  `sort_order` 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 `migrations`
--

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(191) 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, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2016_06_01_000001_create_oauth_auth_codes_table', 1),
(4, '2016_06_01_000002_create_oauth_access_tokens_table', 1),
(5, '2016_06_01_000003_create_oauth_refresh_tokens_table', 1),
(6, '2016_06_01_000004_create_oauth_clients_table', 1),
(7, '2016_06_01_000005_create_oauth_personal_access_clients_table', 1),
(8, '2017_07_05_071953_create_currencies_table', 1),
(9, '2017_07_05_073658_create_business_table', 1),
(10, '2017_07_22_075923_add_business_id_users_table', 1),
(11, '2017_07_23_113209_create_brands_table', 1),
(12, '2017_07_26_083429_create_permission_tables', 1),
(13, '2017_07_26_110000_create_tax_rates_table', 1),
(14, '2017_07_26_122313_create_units_table', 1),
(15, '2017_07_27_075706_create_contacts_table', 1),
(16, '2017_08_04_071038_create_categories_table', 1),
(17, '2017_08_08_115903_create_products_table', 1),
(18, '2017_08_09_061616_create_variation_templates_table', 1),
(19, '2017_08_09_061638_create_variation_value_templates_table', 1),
(20, '2017_08_10_061146_create_product_variations_table', 1),
(21, '2017_08_10_061216_create_variations_table', 1),
(22, '2017_08_19_054827_create_transactions_table', 1),
(23, '2017_08_31_073533_create_purchase_lines_table', 1),
(24, '2017_10_15_064638_create_transaction_payments_table', 1),
(25, '2017_10_31_065621_add_default_sales_tax_to_business_table', 1),
(26, '2017_11_20_051930_create_table_group_sub_taxes', 1),
(27, '2017_11_20_063603_create_transaction_sell_lines', 1),
(28, '2017_11_21_064540_create_barcodes_table', 1),
(29, '2017_11_23_181237_create_invoice_schemes_table', 1),
(30, '2017_12_25_122822_create_business_locations_table', 1),
(31, '2017_12_25_160253_add_location_id_to_transactions_table', 1),
(32, '2017_12_25_163227_create_variation_location_details_table', 1),
(33, '2018_01_04_115627_create_sessions_table', 1),
(34, '2018_01_05_112817_create_invoice_layouts_table', 1),
(35, '2018_01_06_112303_add_invoice_scheme_id_and_invoice_layout_id_to_business_locations', 1),
(36, '2018_01_08_104124_create_expense_categories_table', 1),
(37, '2018_01_08_123327_modify_transactions_table_for_expenses', 1),
(38, '2018_01_09_111005_modify_payment_status_in_transactions_table', 1),
(39, '2018_01_09_111109_add_paid_on_column_to_transaction_payments_table', 1),
(40, '2018_01_25_172439_add_printer_related_fields_to_business_locations_table', 1),
(41, '2018_01_27_184322_create_printers_table', 1),
(42, '2018_01_30_181442_create_cash_registers_table', 1),
(43, '2018_01_31_125836_create_cash_register_transactions_table', 1),
(44, '2018_02_07_173326_modify_business_table', 1),
(45, '2018_02_08_105425_add_enable_product_expiry_column_to_business_table', 1),
(46, '2018_02_08_111027_add_expiry_period_and_expiry_period_type_columns_to_products_table', 1),
(47, '2018_02_08_131118_add_mfg_date_and_exp_date_purchase_lines_table', 1),
(48, '2018_02_08_155348_add_exchange_rate_to_transactions_table', 1),
(49, '2018_02_09_124945_modify_transaction_payments_table_for_contact_payments', 1),
(50, '2018_02_12_113640_create_transaction_sell_lines_purchase_lines_table', 1),
(51, '2018_02_12_114605_add_quantity_sold_in_purchase_lines_table', 1),
(52, '2018_02_13_183323_alter_decimal_fields_size', 1),
(53, '2018_02_14_161928_add_transaction_edit_days_to_business_table', 1),
(54, '2018_02_15_161032_add_document_column_to_transactions_table', 1),
(55, '2018_02_17_124709_add_more_options_to_invoice_layouts', 1),
(56, '2018_02_19_111517_add_keyboard_shortcut_column_to_business_table', 1),
(57, '2018_02_19_121537_stock_adjustment_move_to_transaction_table', 1),
(58, '2018_02_20_165505_add_is_direct_sale_column_to_transactions_table', 1),
(59, '2018_02_21_105329_create_system_table', 1),
(60, '2018_02_23_100549_version_1_2', 1),
(61, '2018_02_23_125648_add_enable_editing_sp_from_purchase_column_to_business_table', 1),
(62, '2018_02_26_103612_add_sales_commission_agent_column_to_business_table', 1),
(63, '2018_02_26_130519_modify_users_table_for_sales_cmmsn_agnt', 1),
(64, '2018_02_26_134500_add_commission_agent_to_transactions_table', 1),
(65, '2018_02_27_121422_add_item_addition_method_to_business_table', 1),
(66, '2018_02_27_170232_modify_transactions_table_for_stock_transfer', 1),
(67, '2018_03_05_153510_add_enable_inline_tax_column_to_business_table', 1),
(68, '2018_03_06_210206_modify_product_barcode_types', 1),
(69, '2018_03_13_181541_add_expiry_type_to_business_table', 1),
(70, '2018_03_16_113446_product_expiry_setting_for_business', 1),
(71, '2018_03_19_113601_add_business_settings_options', 1),
(72, '2018_03_26_125334_add_pos_settings_to_business_table', 1),
(73, '2018_03_26_165350_create_customer_groups_table', 1),
(74, '2018_03_27_122720_customer_group_related_changes_in_tables', 1),
(75, '2018_03_29_110138_change_tax_field_to_nullable_in_business_table', 1),
(76, '2018_03_29_115502_add_changes_for_sr_number_in_products_and_sale_lines_table', 1),
(77, '2018_03_29_134340_add_inline_discount_fields_in_purchase_lines', 1),
(78, '2018_03_31_140921_update_transactions_table_exchange_rate', 1),
(79, '2018_04_03_103037_add_contact_id_to_contacts_table', 1),
(80, '2018_04_03_122709_add_changes_to_invoice_layouts_table', 1),
(81, '2018_04_09_135320_change_exchage_rate_size_in_business_table', 1),
(82, '2018_04_17_123122_add_lot_number_to_business', 1),
(83, '2018_04_17_160845_add_product_racks_table', 1),
(84, '2018_04_20_182015_create_res_tables_table', 1),
(85, '2018_04_24_105246_restaurant_fields_in_transaction_table', 1),
(86, '2018_04_24_114149_add_enabled_modules_business_table', 1),
(87, '2018_04_24_133704_add_modules_fields_in_invoice_layout_table', 1),
(88, '2018_04_27_132653_quotation_related_change', 1),
(89, '2018_05_02_104439_add_date_format_and_time_format_to_business', 1),
(90, '2018_05_02_111939_add_sell_return_to_transaction_payments', 1),
(91, '2018_05_14_114027_add_rows_positions_for_products', 1),
(92, '2018_05_14_125223_add_weight_to_products_table', 1),
(93, '2018_05_14_164754_add_opening_stock_permission', 1),
(94, '2018_05_15_134729_add_design_to_invoice_layouts', 1),
(95, '2018_05_16_183307_add_tax_fields_invoice_layout', 1),
(96, '2018_05_18_191956_add_sell_return_to_transaction_table', 1),
(97, '2018_05_21_131349_add_custom_fileds_to_contacts_table', 1),
(98, '2018_05_21_131607_invoice_layout_fields_for_sell_return', 1),
(99, '2018_05_21_131949_add_custom_fileds_and_website_to_business_locations_table', 1),
(100, '2018_05_22_123527_create_reference_counts_table', 1),
(101, '2018_05_22_154540_add_ref_no_prefixes_column_to_business_table', 1),
(102, '2018_05_24_132620_add_ref_no_column_to_transaction_payments_table', 1),
(103, '2018_05_24_161026_add_location_id_column_to_business_location_table', 1),
(104, '2018_05_25_180603_create_modifiers_related_table', 1),
(105, '2018_05_29_121714_add_purchase_line_id_to_stock_adjustment_line_table', 1),
(106, '2018_05_31_114645_add_res_order_status_column_to_transactions_table', 1),
(107, '2018_06_05_103530_rename_purchase_line_id_in_stock_adjustment_lines_table', 1),
(108, '2018_06_05_111905_modify_products_table_for_modifiers', 1),
(109, '2018_06_06_110524_add_parent_sell_line_id_column_to_transaction_sell_lines_table', 1),
(110, '2018_06_07_152443_add_is_service_staff_to_roles_table', 1),
(111, '2018_06_07_182258_add_image_field_to_products_table', 1),
(112, '2018_06_13_133705_create_bookings_table', 1),
(113, '2018_06_15_173636_add_email_column_to_contacts_table', 1),
(114, '2018_06_27_182835_add_superadmin_related_fields_business', 1),
(115, '2018_06_27_185405_create_packages_table', 1),
(116, '2018_06_28_182803_create_subscriptions_table', 1),
(117, '2018_07_10_101913_add_custom_fields_to_products_table', 1),
(118, '2018_07_17_103434_add_sales_person_name_label_to_invoice_layouts_table', 1),
(119, '2018_07_17_163920_add_theme_skin_color_column_to_business_table', 1),
(120, '2018_07_17_182021_add_rows_to_system_table', 1),
(121, '2018_07_19_131721_add_options_to_packages_table', 1),
(122, '2018_07_24_160319_add_lot_no_line_id_to_transaction_sell_lines_table', 1),
(123, '2018_07_25_110004_add_show_expiry_and_show_lot_colums_to_invoice_layouts_table', 1),
(124, '2018_07_25_172004_add_discount_columns_to_transaction_sell_lines_table', 1),
(125, '2018_07_26_124720_change_design_column_type_in_invoice_layouts_table', 1),
(126, '2018_07_26_170424_add_unit_price_before_discount_column_to_transaction_sell_line_table', 1),
(127, '2018_07_28_103614_add_credit_limit_column_to_contacts_table', 1),
(128, '2018_08_08_110755_add_new_payment_methods_to_transaction_payments_table', 1),
(129, '2018_08_08_122225_modify_cash_register_transactions_table_for_new_payment_methods', 1),
(130, '2018_08_14_104036_add_opening_balance_type_to_transactions_table', 1),
(131, '2018_08_17_155534_add_min_termination_alert_days', 1),
(132, '2018_08_28_105945_add_business_based_username_settings_to_system_table', 1),
(133, '2018_08_30_105906_add_superadmin_communicator_logs_table', 1),
(134, '2018_09_04_155900_create_accounts_table', 1),
(135, '2018_09_06_114438_create_selling_price_groups_table', 1),
(136, '2018_09_06_154057_create_variation_group_prices_table', 1),
(137, '2018_09_07_102413_add_permission_to_access_default_selling_price', 1),
(138, '2018_09_07_134858_add_selling_price_group_id_to_transactions_table', 1),
(139, '2018_09_10_112448_update_product_type_to_single_if_null_in_products_table', 1),
(140, '2018_09_10_152703_create_account_transactions_table', 1),
(141, '2018_09_10_173656_add_account_id_column_to_transaction_payments_table', 1),
(142, '2018_09_19_123914_create_notification_templates_table', 1),
(143, '2018_09_22_110504_add_sms_and_email_settings_columns_to_business_table', 1),
(144, '2018_09_24_134942_add_lot_no_line_id_to_stock_adjustment_lines_table', 1),
(145, '2018_09_26_105557_add_transaction_payments_for_existing_expenses', 1),
(146, '2018_09_27_111609_modify_transactions_table_for_purchase_return', 1),
(147, '2018_09_27_131154_add_quantity_returned_column_to_purchase_lines_table', 1),
(148, '2018_10_01_151252_create_documents_table', 1),
(149, '2018_10_02_131401_add_return_quantity_column_to_transaction_sell_lines_table', 1),
(150, '2018_10_02_151803_create_document_shares_table', 1),
(151, '2018_10_03_104918_add_qty_returned_column_to_transaction_sell_lines_purchase_lines_table', 1),
(152, '2018_10_03_185947_add_default_notification_templates_to_database', 1),
(153, '2018_10_09_134558_create_reminders_table', 1),
(154, '2018_10_09_153105_add_business_id_to_transaction_payments_table', 1),
(155, '2018_10_10_110400_add_module_version_to_system_table', 1),
(156, '2018_10_10_122845_add_woocommerce_api_settings_to_business_table', 1),
(157, '2018_10_10_162041_add_woocommerce_category_id_to_categories_table', 1),
(158, '2018_10_11_173839_create_woocommerce_sync_logs_table', 1),
(159, '2018_10_16_123522_add_woocommerce_tax_rate_id_column_to_tax_rates_table', 1),
(160, '2018_10_16_135229_create_permission_for_sells_and_purchase', 1),
(161, '2018_10_22_114441_add_columns_for_variable_product_modifications', 1),
(162, '2018_10_22_134428_modify_variable_product_data', 1),
(163, '2018_10_23_111555_add_woocommerce_attr_id_column_to_variation_templates_table', 1),
(164, '2018_10_30_181558_add_table_tax_headings_to_invoice_layout', 1),
(165, '2018_10_31_122619_add_pay_terms_field_transactions_table', 1),
(166, '2018_10_31_161328_add_new_permissions_for_pos_screen', 1),
(167, '2018_10_31_174752_add_access_selected_contacts_only_to_users_table', 1),
(168, '2018_10_31_175627_add_user_contact_access', 1),
(169, '2018_10_31_180559_add_auto_send_sms_column_to_notification_templates_table', 1),
(170, '2018_11_02_130636_add_custom_permissions_to_packages_table', 1),
(171, '2018_11_02_171949_change_card_type_column_to_varchar_in_transaction_payments_table', 1),
(172, '2018_11_05_161848_add_more_fields_to_packages_table', 1),
(173, '2018_11_08_105621_add_role_permissions', 1),
(174, '2018_11_16_170756_create_to_dos_table', 1),
(175, '2018_11_26_114135_add_is_suspend_column_to_transactions_table', 1),
(176, '2018_11_28_104410_modify_units_table_for_multi_unit', 1),
(177, '2018_11_28_170952_add_sub_unit_id_to_purchase_lines_and_sell_lines', 1),
(178, '2018_11_29_115918_add_primary_key_in_system_table', 1),
(179, '2018_12_03_163945_add_woocommerce_permissions', 1),
(180, '2018_12_03_185546_add_product_description_column_to_products_table', 1),
(181, '2018_12_06_114937_modify_system_table_and_users_table', 1),
(182, '2018_12_10_124621_modify_system_table_values_null_default', 1),
(183, '2018_12_13_160007_add_custom_fields_display_options_to_invoice_layouts_table', 1),
(184, '2018_12_14_103307_modify_system_table', 1),
(185, '2018_12_18_133837_add_prev_balance_due_columns_to_invoice_layouts_table', 1),
(186, '2018_12_18_170656_add_invoice_token_column_to_transaction_table', 1),
(187, '2018_12_20_133639_add_date_time_format_column_to_invoice_layouts_table', 1),
(188, '2018_12_21_120659_add_recurring_invoice_fields_to_transactions_table', 1),
(189, '2018_12_24_154933_create_notifications_table', 1),
(190, '2019_01_08_112015_add_document_column_to_transaction_payments_table', 1),
(191, '2019_01_10_124645_add_account_permission', 1),
(192, '2019_01_16_125825_add_subscription_no_column_to_transactions_table', 1),
(193, '2019_01_28_111647_add_order_addresses_column_to_transactions_table', 1),
(194, '2019_02_13_173821_add_is_inactive_column_to_products_table', 1),
(195, '2019_02_18_154414_change_woocommerce_sync_logs_table', 1),
(196, '2019_02_19_103118_create_discounts_table', 1),
(197, '2019_02_21_120324_add_discount_id_column_to_transaction_sell_lines_table', 1),
(198, '2019_02_21_134324_add_permission_for_discount', 1),
(199, '2019_02_22_120329_essentials_messages', 1),
(200, '2019_02_22_161513_add_message_permissions', 1),
(201, '2019_03_04_170832_add_service_staff_columns_to_transaction_sell_lines_table', 1),
(202, '2019_03_07_155813_make_repair_statuses_table', 1),
(203, '2019_03_08_120634_add_repair_columns_to_transactions_table', 1),
(204, '2019_03_09_102425_add_sub_type_column_to_transactions_table', 1),
(205, '2019_03_09_124457_add_indexing_transaction_sell_lines_purchase_lines_table', 1),
(206, '2019_03_12_120336_create_activity_log_table', 1),
(207, '2019_03_14_182704_add_repair_permissions', 1),
(208, '2019_03_15_132925_create_media_table', 1),
(209, '2019_03_29_110241_add_repair_version_column_to_system_table', 1),
(210, '2019_03_29_164339_add_essentials_version_to_system_table', 1),
(211, '2019_04_12_113901_add_repair_settings_column_to_business_table', 1),
(212, '2019_04_19_174129_add_disable_woocommerce_sync_column_to_products_table', 1),
(213, '2019_05_08_130339_add_indexing_to_parent_id_in_transaction_payments_table', 1),
(214, '2019_05_10_132311_add_missing_column_indexing', 1),
(215, '2019_05_10_135434_add_missing_database_column_indexes', 1),
(216, '2019_05_14_091812_add_show_image_column_to_invoice_layouts_table', 1),
(217, '2019_05_17_153306_create_essentials_leave_types_table', 1),
(218, '2019_05_17_175921_create_essentials_leaves_table', 1),
(219, '2019_05_21_154517_add_essentials_settings_columns_to_business_table', 1),
(220, '2019_05_21_181653_create_table_essentials_attendance', 1),
(221, '2019_05_25_104922_add_view_purchase_price_permission', 1),
(222, '2019_05_30_110049_create_essentials_payrolls_table', 1),
(223, '2019_06_04_105723_create_essentials_holidays_table', 1),
(224, '2019_06_08_132440_add_woocommerce_wh_oc_secret_column_to_business_table', 1),
(225, '2019_06_17_103515_add_profile_informations_columns_to_users_table', 1),
(226, '2019_06_18_135524_add_permission_to_view_own_sales_only', 1),
(227, '2019_06_19_112058_add_database_changes_for_reward_points', 1),
(228, '2019_06_28_133732_change_type_column_to_string_in_transactions_table', 1),
(229, '2019_06_28_134217_add_payroll_columns_to_transactions_table', 1),
(230, '2019_07_13_111420_add_is_created_from_api_column_to_transactions_table', 1),
(231, '2019_07_15_114211_add_manufacturing_module_version_to_system_table', 1),
(232, '2019_07_15_114403_create_mfg_recipes_table', 1),
(233, '2019_07_15_165136_add_fields_for_combo_product', 1),
(234, '2019_07_18_180217_add_production_columns_to_transactions_table', 1),
(235, '2019_07_19_103446_add_mfg_quantity_used_column_to_purchase_lines_table', 1),
(236, '2019_07_22_152649_add_not_for_selling_in_product_table', 1),
(237, '2019_07_26_110753_add_manufacturing_settings_column_to_business_table', 1),
(238, '2019_07_26_170450_add_manufacturing_permissions', 1),
(239, '2019_07_29_185351_add_show_reward_point_column_to_invoice_layouts_table', 1),
(240, '2019_08_08_110035_create_mfg_recipe_ingredients_table', 1),
(241, '2019_08_08_162302_add_sub_units_related_fields', 1),
(242, '2019_08_08_172837_add_recipe_add_edit_permissions', 1),
(243, '2019_08_12_114610_add_ingredient_waste_percent_columns', 1),
(244, '2019_08_16_115300_create_superadmin_frontend_pages_table', 1),
(245, '2019_08_26_103520_add_approve_leave_permission', 1),
(246, '2019_08_26_133419_update_price_fields_decimal_point', 1),
(247, '2019_08_27_103724_create_essentials_allowance_and_deduction_table', 1),
(248, '2019_08_27_105236_create_essentials_user_allowances_and_deductions', 1),
(249, '2019_09_02_160054_remove_location_permissions_from_roles', 1),
(250, '2019_09_03_185259_add_permission_for_pos_screen', 1),
(251, '2019_09_04_163141_add_location_id_to_cash_registers_table', 1),
(252, '2019_09_04_184008_create_types_of_services_table', 1),
(253, '2019_09_06_131445_add_types_of_service_fields_to_transactions_table', 1),
(254, '2019_09_09_134810_add_default_selling_price_group_id_column_to_business_locations_table', 1),
(255, '2019_09_12_105616_create_product_locations_table', 1),
(256, '2019_09_17_122522_add_custom_labels_column_to_business_table', 1),
(257, '2019_09_18_164319_add_shipping_fields_to_transactions_table', 1),
(258, '2019_09_19_170927_close_all_active_registers', 1),
(259, '2019_09_20_115906_add_more_columns_to_essentials_to_dos_table', 1),
(260, '2019_09_23_120439_create_essentials_todo_comments_table', 1),
(261, '2019_09_23_161906_add_media_description_cloumn_to_media_table', 1),
(262, '2019_10_01_171828_add_woocommerce_media_id_columns', 1),
(263, '2019_10_18_155633_create_account_types_table', 1),
(264, '2019_10_22_163335_add_common_settings_column_to_business_table', 1),
(265, '2019_10_29_132521_add_update_purchase_status_permission', 1),
(266, '2019_11_05_115136_create_ingredient_groups_table', 1),
(267, '2019_11_09_110522_add_indexing_to_lot_number', 1),
(268, '2019_11_12_163135_create_projects_table', 1),
(269, '2019_11_12_164431_create_project_members_table', 1),
(270, '2019_11_14_112230_create_project_tasks_table', 1),
(271, '2019_11_14_112258_create_project_task_members_table', 1),
(272, '2019_11_18_154617_create_project_task_comments_table', 1),
(273, '2019_11_19_134807_create_project_time_logs_table', 1),
(274, '2019_11_19_170824_add_is_active_column_to_business_locations_table', 1),
(275, '2019_11_21_162913_change_quantity_field_types_to_decimal', 1),
(276, '2019_11_25_160340_modify_categories_table_for_polymerphic_relationship', 1),
(277, '2019_12_02_105025_create_warranties_table', 1),
(278, '2019_12_03_180342_add_common_settings_field_to_invoice_layouts_table', 1),
(279, '2019_12_05_170724_add_hrm_columns_to_users_table', 1),
(280, '2019_12_05_183955_add_more_fields_to_users_table', 1),
(281, '2019_12_06_174904_add_change_return_label_column_to_invoice_layouts_table', 1),
(282, '2019_12_09_105809_add_allowance_and_deductions_permission', 1),
(283, '2019_12_11_102549_add_more_fields_in_transactions_table', 1),
(284, '2019_12_11_102735_create_invoice_lines_table', 1),
(285, '2019_12_11_121307_add_draft_and_quotation_list_permissions', 1),
(286, '2019_12_12_180126_copy_expense_total_to_total_before_tax', 1),
(287, '2019_12_19_181412_make_alert_quantity_field_nullable_on_products_table', 1),
(288, '2019_12_25_173413_create_dashboard_configurations_table', 1),
(289, '2020_01_07_172852_add_project_permissions', 1),
(290, '2020_01_08_115422_add_project_module_version_to_system_table', 1),
(291, '2020_01_08_133506_create_document_and_notes_table', 1),
(292, '2020_01_09_113252_add_cc_bcc_column_to_notification_templates_table', 1),
(293, '2020_01_16_174818_add_round_off_amount_field_to_transactions_table', 1),
(294, '2020_01_28_162345_add_weighing_scale_settings_in_business_settings_table', 1),
(295, '2020_02_18_172447_add_import_fields_to_transactions_table', 1),
(296, '2020_02_22_120303_add_column_to_mfg_recipe_ingredients_table', 1),
(297, '2020_03_13_135844_add_is_active_column_to_selling_price_groups_table', 1),
(298, '2020_03_16_115449_add_contact_status_field_to_contacts_table', 1),
(299, '2020_03_19_130231_add_contact_id_to_users_table', 1),
(300, '2020_03_26_124736_add_allow_login_column_in_users_table', 1),
(301, '2020_03_27_133605_create_schedules_table', 1),
(302, '2020_03_27_133628_create_schedule_users_table', 1),
(303, '2020_03_28_152838_create_essentials_shift_table', 1),
(304, '2020_03_30_112834_create_schedule_logs_table', 1),
(305, '2020_03_30_162029_create_user_shifts_table', 1),
(306, '2020_03_31_134558_add_shift_id_to_attendance_table', 1),
(307, '2020_04_02_182331_add_crm_module_version_to_system_table', 1),
(308, '2020_04_08_153231_modify_cloumn_in_contacts_table', 1),
(309, '2020_04_09_101052_create_lead_users_table', 1),
(310, '2020_04_13_154150_add_feature_products_column_to_business_loactions', 1),
(311, '2020_04_15_151802_add_user_type_to_users_table', 1),
(312, '2020_04_16_114747_create_crm_campaigns_table', 1),
(313, '2020_04_22_153905_add_subscription_repeat_on_column_to_transactions_table', 1),
(314, '2020_04_28_111436_add_shipping_address_to_contacts_table', 1),
(315, '2020_05_05_125008_create_device_models_table', 1),
(316, '2020_05_06_103135_add_repair_model_id_column_to_products_table', 1),
(317, '2020_06_01_094654_add_max_sale_discount_column_to_users_table', 1),
(318, '2020_06_12_162245_modify_contacts_table', 1),
(319, '2020_06_22_103104_change_recur_interval_default_to_one', 1),
(320, '2020_07_09_174621_add_balance_field_to_contacts_table', 1),
(321, '2020_07_10_114514_set_location_id_on_existing_invoice', 1),
(322, '2020_07_11_120308_add_columns_to_repair_statuses_table', 1),
(323, '2020_07_23_104933_change_status_column_to_varchar_in_transaction_table', 1),
(324, '2020_07_31_130737_create_job_sheets_table', 1),
(325, '2020_08_07_124241_add_job_sheet_id_to_transactions_table', 1),
(326, '2020_08_18_123107_add_connector_module_version_to_system_table', 1),
(327, '2020_08_19_103831_add_production_cost_type_to_recipe_and_transaction_table', 1),
(328, '2020_08_19_175842_add_asset_management_module_version_to_system_table', 1),
(329, '2020_08_20_114339_create_assets_table', 1),
(330, '2020_08_20_173031_create_asset_transactions_table', 1),
(331, '2020_08_21_180138_add_asset_settings_column_to_business_table', 1),
(332, '2020_08_22_104640_add_email_template_field_to_repair_status_table', 1),
(333, '2020_09_07_124952_add_woocommerce_skipped_orders_fields_to_business_table', 1),
(334, '2020_09_07_171059_change_completed_stock_transfer_status_to_final', 1),
(335, '2020_09_21_123224_modify_booking_status_column_in_bookings_table', 1),
(336, '2020_09_22_121639_create_discount_variations_table', 1),
(337, '2020_09_29_184909_add_product_catalogue_version', 1),
(338, '2020_10_05_121550_modify_business_location_table_for_invoice_layout', 1),
(339, '2020_10_16_175726_set_status_as_received_for_opening_stock', 1),
(340, '2020_10_19_131934_add_job_sheet_custom_fields_to_repair_job_sheets_table', 1),
(341, '2020_10_23_170823_add_for_group_tax_column_to_tax_rates_table', 1),
(342, '2020_11_04_130940_add_more_custom_fields_to_contacts_table', 1),
(343, '2020_11_05_105157_modify_todos_date_column_type', 1),
(344, '2020_11_10_152841_add_cash_register_permissions', 1),
(345, '2020_11_11_174852_add_end_time_column_to_essentials_reminders_table', 1),
(346, '2020_11_17_164041_modify_type_column_to_varchar_in_contacts_table', 1),
(347, '2020_11_25_111050_add_parts_column_to_repair_job_sheets_table', 1),
(348, '2020_11_26_170527_create_essentials_kb_table', 1),
(349, '2020_11_30_112615_create_essentials_kb_users_table', 1),
(350, '2020_12_18_181447_add_shipping_custom_fields_to_transactions_table', 1),
(351, '2020_12_22_164303_add_sub_status_column_to_transactions_table', 1),
(352, '2020_12_24_153050_add_custom_fields_to_transactions_table', 1),
(353, '2020_12_28_105403_add_whatsapp_text_column_to_notification_templates_table', 1),
(354, '2020_12_29_165925_add_model_document_type_to_media_table', 1),
(355, '2020_12_30_101842_add_use_for_repair_column_to_brands_table', 1),
(356, '2021_01_07_155757_add_followup_additional_info_column_to_crm_schedules_table', 1),
(357, '2021_02_02_140021_add_additional_info_to_crm_campaigns_table', 1),
(358, '2021_02_02_173651_add_new_columns_to_contacts_table', 1),
(359, '2021_02_04_120439_create_call_logs_table', 1),
(360, '2021_02_08_172047_add_mobile_name_column_to_crm_call_logs_table', 1),
(361, '2021_02_08_175632_add_contact_number_fields_to_users_table', 1),
(362, '2021_02_11_172217_add_indexing_for_multiple_columns', 1),
(363, '2021_02_12_185514_add_clock_in_location_to_essentials_attendances_table', 1),
(364, '2021_02_16_190038_add_crm_module_indexing', 1),
(365, '2021_02_16_190203_add_essentials_module_indexing', 1),
(366, '2021_02_16_190302_add_manufacturing_module_indexing', 1),
(367, '2021_02_16_190423_add_repair_module_indexing', 1),
(368, '2021_02_16_190608_add_woocommerce_module_indexing', 1),
(369, '2021_02_19_120846_create_crm_followup_invoices', 1),
(370, '2021_02_22_132125_add_follow_up_by_to_crm_schedules_table', 1),
(371, '2021_02_23_122043_add_more_columns_to_customer_groups_table', 1),
(372, '2021_02_24_175551_add_print_invoice_permission_to_all_roles', 1),
(373, '2021_02_27_133448_add_columns_to_users_table', 1),
(374, '2021_03_03_162021_add_purchase_order_columns_to_purchase_lines_and_transactions_table', 1),
(375, '2021_03_04_174857_create_payroll_groups_table', 1),
(376, '2021_03_04_175025_create_payroll_group_transactions_table', 1),
(377, '2021_03_09_123914_add_auto_clockout_to_essentials_shifts', 1),
(378, '2021_03_11_120229_add_sales_order_columns', 1),
(379, '2021_03_16_120705_add_business_id_to_activity_log_table', 1),
(380, '2021_03_16_153427_add_code_columns_to_business_table', 1),
(381, '2021_03_18_173308_add_account_details_column_to_accounts_table', 1),
(382, '2021_03_18_183119_add_prefer_payment_account_columns_to_transactions_table', 1),
(383, '2021_03_22_120810_add_more_types_of_service_custom_fields', 1),
(384, '2021_03_24_160736_add_department_and_designation_to_users_table', 1),
(385, '2021_03_24_183132_add_shipping_export_custom_field_details_to_contacts_table', 1),
(386, '2021_03_25_170715_add_export_custom_fields_info_to_transactions_table', 1),
(387, '2021_04_07_154331_add_mfg_ingredient_group_id_to_transaction_sell_lines_table', 1),
(388, '2021_04_15_063449_add_denominations_column_to_cash_registers_table', 1),
(389, '2021_05_22_083426_add_indexing_to_account_transactions_table', 1),
(390, '2021_06_15_152924_create_proposal_templates_table', 1),
(391, '2021_06_16_114448_add_recursive_fields_to_crm_schedules_table', 1),
(392, '2021_06_16_125740_create_proposals_table', 1),
(393, '2021_06_17_121451_add_location_id_to_table', 1),
(394, '2021_07_08_065808_add_additional_expense_columns_to_transaction_table', 1),
(395, '2021_07_13_082918_add_qr_code_columns_to_invoice_layouts_table', 1),
(396, '2021_07_21_061615_add_fields_to_show_commission_agent_in_invoice_layout', 1),
(397, '2021_08_13_105549_add_crm_contact_id_to_users_table', 1),
(398, '2021_08_25_114932_add_payment_link_fields_to_transaction_payments_table', 1),
(399, '2021_09_01_063110_add_spg_column_to_discounts_table', 1),
(400, '2021_09_03_061528_modify_cash_register_transactions_table', 1),
(401, '2021_09_24_065738_add_crm_settings_column_to_business_table', 1),
(402, '2021_09_28_091541_create_essentials_user_sales_targets_table', 1),
(403, '2021_10_05_061658_add_source_column_to_transactions_table', 1),
(404, '2021_10_29_110841_create_asset_warranties_table', 1),
(405, '2021_12_16_121851_add_parent_id_column_to_expense_categories_table', 1),
(406, '2022_02_09_055012_create_crm_marketplaces_table', 1),
(407, '2022_02_17_113045_add_source_id_to_marketplace', 1),
(408, '2022_03_02_180929_add_followup_category_id', 1),
(409, '2022_03_26_062215_create_asset_maintenances_table', 1),
(410, '2022_04_14_075120_add_payment_type_column_to_transaction_payments_table', 1),
(411, '2022_04_21_083327_create_cash_denominations_table', 1),
(412, '2022_05_10_055307_add_delivery_date_column_to_transactions_table', 1),
(413, '2022_05_11_070711_add_maintenance_note_column_to_asset_maintenances_table', 1),
(414, '2022_05_26_061553_create_crm_contact_person_commissions_table', 1),
(415, '2022_06_06_073006_add_cc_and_bcc_columns_to_crm_proposals_table', 1),
(416, '2022_06_13_123135_add_currency_precision_and_quantity_precision_fields_to_business_table', 1),
(417, '2022_06_28_133342_add_secondary_unit_columns_to_products_sell_line_purchase_lines_tables', 1),
(418, '2022_07_13_114307_create_purchase_requisition_related_columns', 1),
(419, '2022_08_04_143146_create_cms_pages_table', 1),
(420, '2022_08_25_132707_add_service_staff_timer_fields_to_products_and_users_table', 1),
(421, '2022_09_10_161849_add_layout_column_to_cms_pages_table', 1),
(422, '2022_09_10_163209_create_cms_site_details_table', 1),
(423, '2022_09_15_122547_create_cms_page_metas_table', 1),
(424, '2022_09_16_130337_create_default_data_for_cms', 1),
(425, '2022_10_31_115725_create_accounting_account_types_table', 1),
(426, '2022_11_01_104108_create_accounting_accounts_table', 1),
(427, '2022_11_10_135427_create_accounts_transactions_table', 1),
(428, '2022_11_14_171948_create_accounting_acc_trans_mapping', 1),
(429, '2022_12_02_133536_create_accounting_budgets_table', 1),
(430, '2022_12_19_124743_add_accounting_settings_column_to_business_table', 1),
(431, '2022_12_23_162847_add_repair_jobsheet_settings_column_to_business_table', 1),
(432, '2022_12_26_182821_AddAccountingModuleVersionToSystemTable', 1),
(433, '2023_01_28_114255_add_letter_head_column_to_invoice_layouts_table', 1),
(434, '2023_02_11_161510_add_event_column_to_activity_log_table', 1),
(435, '2023_02_11_161511_add_batch_uuid_column_to_activity_log_table', 1),
(436, '2023_02_17_140135_AddVersionForAiAssistance', 1),
(437, '2023_02_21_182321_create_aiassistance_generation_table', 1),
(438, '2023_03_02_170312_add_provider_to_oauth_clients_table', 1),
(439, '2023_03_21_122731_add_sale_invoice_scheme_id_business_table', 1),
(440, '2023_03_21_170446_add_number_type_to_invoice_scheme', 1),
(441, '2023_04_17_155216_add_custom_fields_to_products', 1),
(442, '2023_04_28_130247_add_price_type_to_group_price_table', 1),
(443, '2023_05_25_131005_add_default_map_transactions_fields', 1),
(444, '2023_06_10_132121_create_coupons_table', 1),
(445, '2023_06_16_141928_add_column_in_subscriptions', 1),
(446, '2023_06_21_033923_add_delivery_person_in_transactions', 1),
(447, '2023_06_29_183442_add_mark_package_as_popular', 1),
(448, '2023_07_04_151432_add_column_business', 1),
(449, '2023_07_13_191306_add_businesses_column_in_coupons', 1),
(450, '2023_09_13_153555_add_service_staff_pin_columns_in_users', 1),
(451, '2023_09_15_154404_add_is_kitchen_order_in_transactions', 1),
(452, '2023_11_14_125332_prj_setting_in_business', 1),
(453, '2023_11_14_170736_add_custom_columns_pjt_projects', 1),
(454, '2023_12_06_152840_add_contact_type_in_contacts', 1);

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

--
-- Table structure for table `model_has_permissions`
--

CREATE TABLE `model_has_permissions` (
  `permission_id` int(10) UNSIGNED NOT NULL,
  `model_type` varchar(191) NOT NULL,
  `model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `model_has_permissions`
--

INSERT INTO `model_has_permissions` (`permission_id`, `model_type`, `model_id`) VALUES
(103, 'App\\User', 1),
(103, 'App\\User', 3),
(103, 'App\\User', 4),
(103, 'App\\User', 6);

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

--
-- Table structure for table `model_has_roles`
--

CREATE TABLE `model_has_roles` (
  `role_id` int(10) UNSIGNED NOT NULL,
  `model_type` varchar(191) NOT NULL,
  `model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `model_has_roles`
--

INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
(1, 'App\\User', 1),
(1, 'App\\User', 6),
(2, 'App\\User', 3),
(3, 'App\\User', 2),
(5, 'App\\User', 4),
(6, 'App\\User', 5);

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

--
-- Table structure for table `notifications`
--

CREATE TABLE `notifications` (
  `id` char(36) NOT NULL,
  `type` varchar(191) NOT NULL,
  `notifiable_type` varchar(191) NOT NULL,
  `notifiable_id` bigint(20) UNSIGNED NOT NULL,
  `data` text NOT NULL,
  `read_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 `notification_templates`
--

CREATE TABLE `notification_templates` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `template_for` varchar(191) NOT NULL,
  `email_body` text DEFAULT NULL,
  `sms_body` text DEFAULT NULL,
  `whatsapp_text` text DEFAULT NULL,
  `subject` varchar(191) DEFAULT NULL,
  `cc` varchar(191) DEFAULT NULL,
  `bcc` varchar(191) DEFAULT NULL,
  `auto_send` tinyint(1) NOT NULL DEFAULT 0,
  `auto_send_sms` tinyint(1) NOT NULL DEFAULT 0,
  `auto_send_wa_notif` 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;

--
-- Dumping data for table `notification_templates`
--

INSERT INTO `notification_templates` (`id`, `business_id`, `template_for`, `email_body`, `sms_body`, `whatsapp_text`, `subject`, `cc`, `bcc`, `auto_send`, `auto_send_sms`, `auto_send_wa_notif`, `created_at`, `updated_at`) VALUES
(1, 1, 'new_sale', '<p>Dear {contact_name},</p>\n\n                    <p>Your invoice number is {invoice_number}<br />\n                    Total amount: {total_amount}<br />\n                    Paid amount: {received_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>', 'Dear {contact_name}, Thank you for shopping with us. {business_name}', NULL, 'Thank you from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(2, 1, 'payment_received', '<p>Dear {contact_name},</p>\n\n                <p>We have received a payment of {received_amount}</p>\n\n                <p>{business_logo}</p>', 'Dear {contact_name}, We have received a payment of {received_amount}. {business_name}', NULL, 'Payment Received, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(3, 1, 'payment_reminder', '<p>Dear {contact_name},</p>\n\n                    <p>This is to remind you that you have pending payment of {due_amount}. Kindly pay it as soon as possible.</p>\n\n                    <p>{business_logo}</p>', 'Dear {contact_name}, You have pending payment of {due_amount}. Kindly pay it as soon as possible. {business_name}', NULL, 'Payment Reminder, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(4, 1, 'new_booking', '<p>Dear {contact_name},</p>\n\n                    <p>Your booking is confirmed</p>\n\n                    <p>Date: {start_time} to {end_time}</p>\n\n                    <p>Table: {table}</p>\n\n                    <p>Location: {location}</p>\n\n                    <p>{business_logo}</p>', 'Dear {contact_name}, Your booking is confirmed. Date: {start_time} to {end_time}, Table: {table}, Location: {location}', NULL, 'Booking Confirmed - {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(5, 1, 'new_order', '<p>Dear {contact_name},</p>\n\n                    <p>We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'Dear {contact_name}, We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible. {business_name}', NULL, 'New Order, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(6, 1, 'payment_paid', '<p>Dear {contact_name},</p>\n\n                    <p>We have paid amount {paid_amount} again invoice number {order_ref_number}.<br />\n                    Kindly note it down.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'We have paid amount {paid_amount} again invoice number {order_ref_number}.\n                    Kindly note it down. {business_name}', NULL, 'Payment Paid, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(7, 1, 'items_received', '<p>Dear {contact_name},</p>\n\n                    <p>We have received all items from invoice reference number {order_ref_number}. Thank you for processing it.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'We have received all items from invoice reference number {order_ref_number}. Thank you for processing it. {business_name}', NULL, 'Items received, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(8, 1, 'items_pending', '<p>Dear {contact_name},<br />\n                    This is to remind you that we have not yet received some items from invoice reference number {order_ref_number}. Please process it as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'This is to remind you that we have not yet received some items from invoice reference number {order_ref_number} . Please process it as soon as possible.{business_name}', NULL, 'Items Pending, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(9, 1, 'new_quotation', '<p>Dear {contact_name},</p>\n\n                    <p>Your quotation number is {invoice_number}<br />\n                    Total amount: {total_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>', 'Dear {contact_name}, Thank you for shopping with us. {business_name}', NULL, 'Thank you from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(10, 1, 'purchase_order', '<p>Dear {contact_name},</p>\n\n                    <p>We have a new purchase order with reference number {order_ref_number}. The respective invoice is attached here with.</p>\n\n                    <p>{business_logo}</p>', 'We have a new purchase order with reference number {order_ref_number}. {business_name}', NULL, 'New Purchase Order, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(11, 2, 'new_sale', '<p>Dear {contact_name},</p>\n\n                    <p>Your invoice number is {invoice_number}<br />\n                    Total amount: {total_amount}<br />\n                    Paid amount: {received_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>', 'Dear {contact_name}, Thank you for shopping with us. {business_name}', NULL, 'Thank you from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(12, 2, 'payment_received', '<p>Dear {contact_name},</p>\n\n                <p>We have received a payment of {received_amount}</p>\n\n                <p>{business_logo}</p>', 'Dear {contact_name}, We have received a payment of {received_amount}. {business_name}', NULL, 'Payment Received, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(13, 2, 'payment_reminder', '<p>Dear {contact_name},</p>\n\n                    <p>This is to remind you that you have pending payment of {due_amount}. Kindly pay it as soon as possible.</p>\n\n                    <p>{business_logo}</p>', 'Dear {contact_name}, You have pending payment of {due_amount}. Kindly pay it as soon as possible. {business_name}', NULL, 'Payment Reminder, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(14, 2, 'new_booking', '<p>Dear {contact_name},</p>\n\n                    <p>Your booking is confirmed</p>\n\n                    <p>Date: {start_time} to {end_time}</p>\n\n                    <p>Table: {table}</p>\n\n                    <p>Location: {location}</p>\n\n                    <p>{business_logo}</p>', 'Dear {contact_name}, Your booking is confirmed. Date: {start_time} to {end_time}, Table: {table}, Location: {location}', NULL, 'Booking Confirmed - {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(15, 2, 'new_order', '<p>Dear {contact_name},</p>\n\n                    <p>We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'Dear {contact_name}, We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible. {business_name}', NULL, 'New Order, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(16, 2, 'payment_paid', '<p>Dear {contact_name},</p>\n\n                    <p>We have paid amount {paid_amount} again invoice number {order_ref_number}.<br />\n                    Kindly note it down.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'We have paid amount {paid_amount} again invoice number {order_ref_number}.\n                    Kindly note it down. {business_name}', NULL, 'Payment Paid, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(17, 2, 'items_received', '<p>Dear {contact_name},</p>\n\n                    <p>We have received all items from invoice reference number {order_ref_number}. Thank you for processing it.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'We have received all items from invoice reference number {order_ref_number}. Thank you for processing it. {business_name}', NULL, 'Items received, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(18, 2, 'items_pending', '<p>Dear {contact_name},<br />\n                    This is to remind you that we have not yet received some items from invoice reference number {order_ref_number}. Please process it as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'This is to remind you that we have not yet received some items from invoice reference number {order_ref_number} . Please process it as soon as possible.{business_name}', NULL, 'Items Pending, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(19, 2, 'new_quotation', '<p>Dear {contact_name},</p>\n\n                    <p>Your quotation number is {invoice_number}<br />\n                    Total amount: {total_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>', 'Dear {contact_name}, Thank you for shopping with us. {business_name}', NULL, 'Thank you from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(20, 2, 'purchase_order', '<p>Dear {contact_name},</p>\n\n                    <p>We have a new purchase order with reference number {order_ref_number}. The respective invoice is attached here with.</p>\n\n                    <p>{business_logo}</p>', 'We have a new purchase order with reference number {order_ref_number}. {business_name}', NULL, 'New Purchase Order, from {business_name}', NULL, NULL, 0, 0, 0, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(21, 3, 'new_sale', '<p>Dear {contact_name},</p>\n\n                    <p>Your invoice number is {invoice_number}<br />\n                    Total amount: {total_amount}<br />\n                    Paid amount: {received_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>', 'Dear {contact_name}, Thank you for shopping with us. {business_name}', NULL, 'Thank you from {business_name}', NULL, NULL, 0, 0, 0, '2025-12-02 09:40:05', '2025-12-02 09:40:05'),
(22, 3, 'payment_received', '<p>Dear {contact_name},</p>\n\n                <p>We have received a payment of {received_amount}</p>\n\n                <p>{business_logo}</p>', 'Dear {contact_name}, We have received a payment of {received_amount}. {business_name}', NULL, 'Payment Received, from {business_name}', NULL, NULL, 0, 0, 0, '2025-12-02 09:40:05', '2025-12-02 09:40:05'),
(23, 3, 'payment_reminder', '<p>Dear {contact_name},</p>\n\n                    <p>This is to remind you that you have pending payment of {due_amount}. Kindly pay it as soon as possible.</p>\n\n                    <p>{business_logo}</p>', 'Dear {contact_name}, You have pending payment of {due_amount}. Kindly pay it as soon as possible. {business_name}', NULL, 'Payment Reminder, from {business_name}', NULL, NULL, 0, 0, 0, '2025-12-02 09:40:05', '2025-12-02 09:40:05'),
(24, 3, 'new_booking', '<p>Dear {contact_name},</p>\n\n                    <p>Your booking is confirmed</p>\n\n                    <p>Date: {start_time} to {end_time}</p>\n\n                    <p>Table: {table}</p>\n\n                    <p>Location: {location}</p>\n\n                    <p>{business_logo}</p>', 'Dear {contact_name}, Your booking is confirmed. Date: {start_time} to {end_time}, Table: {table}, Location: {location}', NULL, 'Booking Confirmed - {business_name}', NULL, NULL, 0, 0, 0, '2025-12-02 09:40:05', '2025-12-02 09:40:05'),
(25, 3, 'new_order', '<p>Dear {contact_name},</p>\n\n                    <p>We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'Dear {contact_name}, We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible. {business_name}', NULL, 'New Order, from {business_name}', NULL, NULL, 0, 0, 0, '2025-12-02 09:40:05', '2025-12-02 09:40:05'),
(26, 3, 'payment_paid', '<p>Dear {contact_name},</p>\n\n                    <p>We have paid amount {paid_amount} again invoice number {order_ref_number}.<br />\n                    Kindly note it down.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'We have paid amount {paid_amount} again invoice number {order_ref_number}.\n                    Kindly note it down. {business_name}', NULL, 'Payment Paid, from {business_name}', NULL, NULL, 0, 0, 0, '2025-12-02 09:40:05', '2025-12-02 09:40:05'),
(27, 3, 'items_received', '<p>Dear {contact_name},</p>\n\n                    <p>We have received all items from invoice reference number {order_ref_number}. Thank you for processing it.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'We have received all items from invoice reference number {order_ref_number}. Thank you for processing it. {business_name}', NULL, 'Items received, from {business_name}', NULL, NULL, 0, 0, 0, '2025-12-02 09:40:05', '2025-12-02 09:40:05'),
(28, 3, 'items_pending', '<p>Dear {contact_name},<br />\n                    This is to remind you that we have not yet received some items from invoice reference number {order_ref_number}. Please process it as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'This is to remind you that we have not yet received some items from invoice reference number {order_ref_number} . Please process it as soon as possible.{business_name}', NULL, 'Items Pending, from {business_name}', NULL, NULL, 0, 0, 0, '2025-12-02 09:40:05', '2025-12-02 09:40:05'),
(29, 3, 'new_quotation', '<p>Dear {contact_name},</p>\n\n                    <p>Your quotation number is {invoice_number}<br />\n                    Total amount: {total_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>', 'Dear {contact_name}, Thank you for shopping with us. {business_name}', NULL, 'Thank you from {business_name}', NULL, NULL, 0, 0, 0, '2025-12-02 09:40:05', '2025-12-02 09:40:05'),
(30, 3, 'purchase_order', '<p>Dear {contact_name},</p>\n\n                    <p>We have a new purchase order with reference number {order_ref_number}. The respective invoice is attached here with.</p>\n\n                    <p>{business_logo}</p>', 'We have a new purchase order with reference number {order_ref_number}. {business_name}', NULL, 'New Purchase Order, from {business_name}', NULL, NULL, 0, 0, 0, '2025-12-02 09:40:05', '2025-12-02 09:40:05');

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

--
-- Table structure for table `oauth_auth_codes`
--

CREATE TABLE `oauth_auth_codes` (
  `id` varchar(100) NOT NULL,
  `user_id` bigint(20) NOT NULL,
  `client_id` int(10) UNSIGNED NOT NULL,
  `scopes` text DEFAULT NULL,
  `revoked` tinyint(1) NOT NULL,
  `expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `oauth_personal_access_clients`
--

CREATE TABLE `oauth_personal_access_clients` (
  `id` int(10) UNSIGNED NOT NULL,
  `client_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `packages`
--

CREATE TABLE `packages` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `description` text NOT NULL,
  `location_count` int(11) NOT NULL COMMENT 'No. of Business Locations, 0 = infinite option.',
  `user_count` int(11) NOT NULL,
  `product_count` int(11) NOT NULL,
  `bookings` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Enable/Disable bookings',
  `kitchen` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Enable/Disable kitchen',
  `order_screen` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Enable/Disable order_screen',
  `tables` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Enable/Disable tables',
  `invoice_count` int(11) NOT NULL,
  `interval` enum('days','months','years') NOT NULL,
  `interval_count` int(11) NOT NULL,
  `trial_days` int(11) NOT NULL,
  `price` decimal(22,4) NOT NULL,
  `custom_permissions` longtext NOT NULL,
  `created_by` int(11) NOT NULL,
  `sort_order` int(11) NOT NULL DEFAULT 0,
  `is_active` tinyint(1) NOT NULL,
  `mark_package_as_popular` tinyint(1) NOT NULL,
  `businesses` longtext DEFAULT NULL,
  `is_private` tinyint(1) NOT NULL DEFAULT 0,
  `is_one_time` tinyint(1) NOT NULL DEFAULT 0,
  `enable_custom_link` tinyint(1) NOT NULL DEFAULT 0,
  `custom_link` varchar(191) DEFAULT NULL,
  `custom_link_text` varchar(191) 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 `packages`
--

INSERT INTO `packages` (`id`, `name`, `description`, `location_count`, `user_count`, `product_count`, `bookings`, `kitchen`, `order_screen`, `tables`, `invoice_count`, `interval`, `interval_count`, `trial_days`, `price`, `custom_permissions`, `created_by`, `sort_order`, `is_active`, `mark_package_as_popular`, `businesses`, `is_private`, `is_one_time`, `enable_custom_link`, `custom_link`, `custom_link_text`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'AdminPackage', 'AdminPackage', 0, 0, 0, 0, 0, 0, 0, 0, 'years', 365, 454544, 0.0000, '{\"accounting_module\":\"1\",\"aiassistance_module\":\"1\",\"aiassistance_max_token\":null,\"assetmanagement_module\":\"1\",\"connector_module\":\"1\",\"crm_module\":\"1\",\"essentials_module\":\"1\",\"manufacturing_module\":\"1\",\"productcatalogue_module\":\"1\",\"project_module\":\"1\",\"repair_module\":\"1\",\"woocommerce_module\":\"1\"}', 1, 1, 1, 1, NULL, 1, 1, 0, '', '', NULL, '2025-11-24 02:48:52', '2025-11-24 02:48:52');

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

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

CREATE TABLE `permissions` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `guard_name` varchar(191) 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 `permissions`
--

INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'profit_loss_report.view', 'web', '2025-11-24 02:26:22', NULL),
(2, 'direct_sell.access', 'web', '2025-11-24 02:26:22', NULL),
(3, 'product.opening_stock', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(4, 'crud_all_bookings', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(5, 'crud_own_bookings', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(6, 'access_default_selling_price', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(7, 'purchase.payments', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(8, 'sell.payments', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(9, 'edit_product_price_from_sale_screen', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(10, 'edit_product_discount_from_sale_screen', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(11, 'roles.view', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(12, 'roles.create', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(13, 'roles.update', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(14, 'roles.delete', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(15, 'woocommerce.syc_categories', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(16, 'woocommerce.sync_products', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(17, 'woocommerce.sync_orders', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(18, 'woocommerce.map_tax_rates', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(19, 'woocommerce.access_woocommerce_api_settings', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(20, 'account.access', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(21, 'discount.access', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(22, 'essentials.create_message', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(23, 'essentials.view_message', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(24, 'repair.create', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(25, 'repair.update', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(26, 'repair.view', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(27, 'repair.delete', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(28, 'repair_status.update', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(29, 'repair_status.access', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(30, 'view_purchase_price', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(31, 'view_own_sell_only', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(32, 'manufacturing.access_recipe', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(33, 'manufacturing.access_production', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(34, 'manufacturing.add_recipe', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(35, 'manufacturing.edit_recipe', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(36, 'essentials.approve_leave', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(37, 'edit_product_discount_from_pos_screen', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(38, 'edit_product_price_from_pos_screen', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(39, 'access_shipping', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(40, 'essentials.assign_todos', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(41, 'purchase.update_status', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(42, 'essentials.add_allowance_and_deduction', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(43, 'list_drafts', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(44, 'list_quotations', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(45, 'project.create_project', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(46, 'project.edit_project', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(47, 'project.delete_project', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(48, 'view_cash_register', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(49, 'close_cash_register', 'web', '2025-11-24 02:26:23', '2025-11-24 02:26:23'),
(50, 'print_invoice', 'web', '2025-11-24 02:26:24', '2025-11-24 02:26:24'),
(51, 'user.view', 'web', '2025-11-24 02:26:24', NULL),
(52, 'user.create', 'web', '2025-11-24 02:26:24', NULL),
(53, 'user.update', 'web', '2025-11-24 02:26:24', NULL),
(54, 'user.delete', 'web', '2025-11-24 02:26:24', NULL),
(55, 'supplier.view', 'web', '2025-11-24 02:26:24', NULL),
(56, 'supplier.create', 'web', '2025-11-24 02:26:24', NULL),
(57, 'supplier.update', 'web', '2025-11-24 02:26:24', NULL),
(58, 'supplier.delete', 'web', '2025-11-24 02:26:24', NULL),
(59, 'customer.view', 'web', '2025-11-24 02:26:24', NULL),
(60, 'customer.create', 'web', '2025-11-24 02:26:24', NULL),
(61, 'customer.update', 'web', '2025-11-24 02:26:24', NULL),
(62, 'customer.delete', 'web', '2025-11-24 02:26:24', NULL),
(63, 'product.view', 'web', '2025-11-24 02:26:24', NULL),
(64, 'product.create', 'web', '2025-11-24 02:26:24', NULL),
(65, 'product.update', 'web', '2025-11-24 02:26:24', NULL),
(66, 'product.delete', 'web', '2025-11-24 02:26:24', NULL),
(67, 'purchase.view', 'web', '2025-11-24 02:26:24', NULL),
(68, 'purchase.create', 'web', '2025-11-24 02:26:24', NULL),
(69, 'purchase.update', 'web', '2025-11-24 02:26:24', NULL),
(70, 'purchase.delete', 'web', '2025-11-24 02:26:24', NULL),
(71, 'sell.view', 'web', '2025-11-24 02:26:24', NULL),
(72, 'sell.create', 'web', '2025-11-24 02:26:24', NULL),
(73, 'sell.update', 'web', '2025-11-24 02:26:24', NULL),
(74, 'sell.delete', 'web', '2025-11-24 02:26:24', NULL),
(75, 'purchase_n_sell_report.view', 'web', '2025-11-24 02:26:24', NULL),
(76, 'contacts_report.view', 'web', '2025-11-24 02:26:24', NULL),
(77, 'stock_report.view', 'web', '2025-11-24 02:26:24', NULL),
(78, 'tax_report.view', 'web', '2025-11-24 02:26:24', NULL),
(79, 'trending_product_report.view', 'web', '2025-11-24 02:26:24', NULL),
(80, 'register_report.view', 'web', '2025-11-24 02:26:24', NULL),
(81, 'sales_representative.view', 'web', '2025-11-24 02:26:24', NULL),
(82, 'expense_report.view', 'web', '2025-11-24 02:26:24', NULL),
(83, 'business_settings.access', 'web', '2025-11-24 02:26:24', NULL),
(84, 'barcode_settings.access', 'web', '2025-11-24 02:26:24', NULL),
(85, 'invoice_settings.access', 'web', '2025-11-24 02:26:24', NULL),
(86, 'brand.view', 'web', '2025-11-24 02:26:24', NULL),
(87, 'brand.create', 'web', '2025-11-24 02:26:24', NULL),
(88, 'brand.update', 'web', '2025-11-24 02:26:24', NULL),
(89, 'brand.delete', 'web', '2025-11-24 02:26:24', NULL),
(90, 'tax_rate.view', 'web', '2025-11-24 02:26:24', NULL),
(91, 'tax_rate.create', 'web', '2025-11-24 02:26:24', NULL),
(92, 'tax_rate.update', 'web', '2025-11-24 02:26:24', NULL),
(93, 'tax_rate.delete', 'web', '2025-11-24 02:26:24', NULL),
(94, 'unit.view', 'web', '2025-11-24 02:26:24', NULL),
(95, 'unit.create', 'web', '2025-11-24 02:26:24', NULL),
(96, 'unit.update', 'web', '2025-11-24 02:26:24', NULL),
(97, 'unit.delete', 'web', '2025-11-24 02:26:24', NULL),
(98, 'category.view', 'web', '2025-11-24 02:26:24', NULL),
(99, 'category.create', 'web', '2025-11-24 02:26:24', NULL),
(100, 'category.update', 'web', '2025-11-24 02:26:24', NULL),
(101, 'category.delete', 'web', '2025-11-24 02:26:24', NULL),
(102, 'expense.access', 'web', '2025-11-24 02:26:24', NULL),
(103, 'access_all_locations', 'web', '2025-11-24 02:26:24', NULL),
(104, 'dashboard.data', 'web', '2025-11-24 02:26:24', NULL),
(105, 'location.1', 'web', '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(106, 'location.2', 'web', '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(107, 'view_export_buttons', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(108, 'edit_pos_payment', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(109, 'disable_pay_checkout', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(110, 'disable_draft', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(111, 'disable_express_checkout', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(112, 'disable_discount', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(113, 'disable_suspend_sale', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(114, 'disable_credit_sale', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(115, 'disable_quotation', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(116, 'disable_card', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(117, 'edit_sell_payment', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(118, 'delete_sell_payment', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(119, 'access_sell_return', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(120, 'access_own_sell_return', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(121, 'edit_invoice_number', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(122, 'draft.update', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(123, 'draft.delete', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(124, 'quotation.update', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(125, 'quotation.delete', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(126, 'access_pending_shipments_only', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(127, 'access_commission_agent_shipping', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(128, 'expense.add', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(129, 'expense.edit', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(130, 'expense.delete', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(131, 'edit_account_transaction', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(132, 'delete_account_transaction', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(133, 'customer_irrespective_of_sell', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(134, 'direct_sell.view', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(135, 'draft.view_all', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(136, 'quotation.view_all', 'web', '2025-11-23 21:15:28', '2025-11-23 21:15:28'),
(137, 'all_expense.access', 'web', '2025-11-23 21:15:29', '2025-11-23 21:15:29'),
(138, 'crm.access_all_schedule', 'web', '2025-11-23 21:15:29', '2025-11-23 21:15:29'),
(139, 'crm.access_all_leads', 'web', '2025-11-23 21:15:29', '2025-11-23 21:15:29'),
(140, 'edit_purchase_payment', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(141, 'delete_purchase_payment', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(142, 'view_paid_sells_only', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(143, 'view_due_sells_only', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(144, 'view_partial_sells_only', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(145, 'view_overdue_sells_only', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(146, 'direct_sell.update', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(147, 'direct_sell.delete', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(148, 'view_commission_agent_sell', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(149, 'view_product_stock_value', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(150, 'access_printers', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(151, 'accounting.access_accounting_module', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(152, 'accounting.manage_accounts', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(153, 'accounting.view_journal', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(154, 'accounting.add_journal', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(155, 'accounting.edit_journal', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(156, 'accounting.delete_journal', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(157, 'accounting.map_transactions', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(158, 'accounting.view_transfer', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(159, 'accounting.add_transfer', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(160, 'accounting.edit_transfer', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(161, 'accounting.delete_transfer', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(162, 'accounting.manage_budget', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(163, 'accounting.view_reports', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(164, 'aiassistance.access_aiassistance_module', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(165, 'asset.view', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(166, 'asset.create', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(167, 'asset.update', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(168, 'asset.delete', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(169, 'crm.access_contact_login', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(170, 'crm.access_sources', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(171, 'crm.access_life_stage', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(172, 'crm.access_proposal', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(173, 'essentials.crud_leave_type', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(174, 'essentials.allow_users_for_attendance_from_web', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(175, 'essentials.allow_users_for_attendance_from_api', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(176, 'essentials.view_allowance_and_deduction', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(177, 'essentials.crud_department', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(178, 'essentials.crud_designation', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(179, 'essentials.view_all_payroll', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(180, 'essentials.create_payroll', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(181, 'essentials.update_payroll', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(182, 'essentials.delete_payroll', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(183, 'essentials.add_todos', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(184, 'essentials.edit_todos', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(185, 'essentials.delete_todos', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(186, 'essentials.access_sales_target', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(187, 'job_sheet.create', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(188, 'job_sheet.edit', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(189, 'job_sheet.delete', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(190, 'superadmin.access_package_subscriptions', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(191, 'asset.view_all_maintenance', 'web', '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(192, 'crm.access_all_campaigns', 'web', '2025-11-23 21:18:03', '2025-11-23 21:18:03'),
(193, 'essentials.crud_all_leave', 'web', '2025-11-23 21:18:03', '2025-11-23 21:18:03'),
(194, 'essentials.crud_all_attendance', 'web', '2025-11-23 21:18:03', '2025-11-23 21:18:03'),
(195, 'job_sheet.view_all', 'web', '2025-11-23 21:18:03', '2025-11-23 21:18:03'),
(196, 'location.3', 'web', '2025-12-02 09:40:05', '2025-12-02 09:40:05');

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

--
-- Table structure for table `pjt_invoice_lines`
--

CREATE TABLE `pjt_invoice_lines` (
  `id` int(10) UNSIGNED NOT NULL,
  `transaction_id` int(10) UNSIGNED NOT NULL,
  `task` varchar(191) NOT NULL,
  `description` text DEFAULT NULL,
  `rate` decimal(22,4) NOT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `quantity` decimal(22,4) NOT NULL,
  `total` decimal(22,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 `pjt_projects`
--

CREATE TABLE `pjt_projects` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `name` varchar(191) NOT NULL,
  `contact_id` int(11) DEFAULT NULL,
  `status` enum('not_started','in_progress','on_hold','cancelled','completed') NOT NULL,
  `lead_id` int(11) NOT NULL,
  `start_date` datetime DEFAULT NULL,
  `end_date` datetime DEFAULT NULL,
  `description` text DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `settings` text DEFAULT NULL,
  `custom_field1` varchar(191) DEFAULT NULL,
  `custom_field2` varchar(191) DEFAULT NULL,
  `custom_field3` varchar(191) DEFAULT NULL,
  `custom_field4` varchar(191) 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 `pjt_project_members`
--

CREATE TABLE `pjt_project_members` (
  `id` int(10) UNSIGNED NOT NULL,
  `project_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `pjt_project_tasks`
--

CREATE TABLE `pjt_project_tasks` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `project_id` int(10) UNSIGNED NOT NULL,
  `task_id` varchar(191) NOT NULL,
  `subject` varchar(191) NOT NULL,
  `start_date` datetime DEFAULT NULL,
  `due_date` datetime DEFAULT NULL,
  `priority` enum('low','medium','high','urgent') NOT NULL DEFAULT 'low',
  `description` text DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `status` enum('completed','not_started','in_progress','on_hold','cancelled') NOT NULL DEFAULT 'not_started',
  `custom_field_1` varchar(191) DEFAULT NULL,
  `custom_field_2` varchar(191) DEFAULT NULL,
  `custom_field_3` varchar(191) DEFAULT NULL,
  `custom_field_4` varchar(191) 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 `pjt_project_task_comments`
--

CREATE TABLE `pjt_project_task_comments` (
  `id` int(10) UNSIGNED NOT NULL,
  `project_task_id` int(10) UNSIGNED NOT NULL,
  `comment` text NOT NULL,
  `commented_by` int(11) 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 `pjt_project_task_members`
--

CREATE TABLE `pjt_project_task_members` (
  `id` int(10) UNSIGNED NOT NULL,
  `project_task_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `pjt_project_time_logs`
--

CREATE TABLE `pjt_project_time_logs` (
  `id` int(10) UNSIGNED NOT NULL,
  `project_id` int(10) UNSIGNED NOT NULL,
  `project_task_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `start_datetime` datetime NOT NULL,
  `end_datetime` datetime NOT NULL,
  `note` text DEFAULT NULL,
  `created_by` int(11) 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 `printers`
--

CREATE TABLE `printers` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `connection_type` enum('network','windows','linux') NOT NULL,
  `capability_profile` enum('default','simple','SP2000','TEP-200M','P822D') NOT NULL DEFAULT 'default',
  `char_per_line` varchar(191) DEFAULT NULL,
  `ip_address` varchar(191) DEFAULT NULL,
  `port` varchar(191) DEFAULT NULL,
  `path` varchar(191) DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `products` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `type` enum('single','variable','modifier','combo') DEFAULT NULL,
  `unit_id` int(11) UNSIGNED DEFAULT NULL,
  `secondary_unit_id` int(11) DEFAULT NULL,
  `sub_unit_ids` text DEFAULT NULL,
  `brand_id` int(10) UNSIGNED DEFAULT NULL,
  `category_id` int(10) UNSIGNED DEFAULT NULL,
  `sub_category_id` int(10) UNSIGNED DEFAULT NULL,
  `tax` int(10) UNSIGNED DEFAULT NULL,
  `tax_type` enum('inclusive','exclusive') NOT NULL,
  `enable_stock` tinyint(1) NOT NULL DEFAULT 0,
  `alert_quantity` decimal(22,4) DEFAULT NULL,
  `sku` varchar(191) NOT NULL,
  `barcode_type` enum('C39','C128','EAN13','EAN8','UPCA','UPCE') DEFAULT 'C128',
  `expiry_period` decimal(4,2) DEFAULT NULL,
  `expiry_period_type` enum('days','months') DEFAULT NULL,
  `enable_sr_no` tinyint(1) NOT NULL DEFAULT 0,
  `weight` varchar(191) DEFAULT NULL,
  `product_custom_field1` varchar(191) DEFAULT NULL,
  `product_custom_field2` varchar(191) DEFAULT NULL,
  `product_custom_field3` varchar(191) DEFAULT NULL,
  `product_custom_field4` varchar(191) DEFAULT NULL,
  `product_custom_field5` varchar(191) DEFAULT NULL,
  `product_custom_field6` varchar(191) DEFAULT NULL,
  `product_custom_field7` varchar(191) DEFAULT NULL,
  `product_custom_field8` varchar(191) DEFAULT NULL,
  `product_custom_field9` varchar(191) DEFAULT NULL,
  `product_custom_field10` varchar(191) DEFAULT NULL,
  `product_custom_field11` varchar(191) DEFAULT NULL,
  `product_custom_field12` varchar(191) DEFAULT NULL,
  `product_custom_field13` varchar(191) DEFAULT NULL,
  `product_custom_field14` varchar(191) DEFAULT NULL,
  `product_custom_field15` varchar(191) DEFAULT NULL,
  `product_custom_field16` varchar(191) DEFAULT NULL,
  `product_custom_field17` varchar(191) DEFAULT NULL,
  `product_custom_field18` varchar(191) DEFAULT NULL,
  `product_custom_field19` varchar(191) DEFAULT NULL,
  `product_custom_field20` varchar(191) DEFAULT NULL,
  `image` varchar(191) DEFAULT NULL,
  `woocommerce_media_id` int(11) DEFAULT NULL,
  `product_description` text DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `preparation_time_in_minutes` int(11) DEFAULT NULL,
  `warranty_id` int(11) DEFAULT NULL,
  `is_inactive` tinyint(1) NOT NULL DEFAULT 0,
  `repair_model_id` int(10) UNSIGNED DEFAULT NULL,
  `not_for_selling` tinyint(1) NOT NULL DEFAULT 0,
  `woocommerce_product_id` int(11) DEFAULT NULL,
  `woocommerce_disable_sync` 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;

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

INSERT INTO `products` (`id`, `name`, `business_id`, `type`, `unit_id`, `secondary_unit_id`, `sub_unit_ids`, `brand_id`, `category_id`, `sub_category_id`, `tax`, `tax_type`, `enable_stock`, `alert_quantity`, `sku`, `barcode_type`, `expiry_period`, `expiry_period_type`, `enable_sr_no`, `weight`, `product_custom_field1`, `product_custom_field2`, `product_custom_field3`, `product_custom_field4`, `product_custom_field5`, `product_custom_field6`, `product_custom_field7`, `product_custom_field8`, `product_custom_field9`, `product_custom_field10`, `product_custom_field11`, `product_custom_field12`, `product_custom_field13`, `product_custom_field14`, `product_custom_field15`, `product_custom_field16`, `product_custom_field17`, `product_custom_field18`, `product_custom_field19`, `product_custom_field20`, `image`, `woocommerce_media_id`, `product_description`, `created_by`, `preparation_time_in_minutes`, `warranty_id`, `is_inactive`, `repair_model_id`, `not_for_selling`, `woocommerce_product_id`, `woocommerce_disable_sync`, `created_at`, `updated_at`) VALUES
(1, '3/4 Clear Gravel', 1, 'single', 3, NULL, NULL, NULL, 2, 3, 1, 'exclusive', 1, NULL, '0001', 'C128', NULL, NULL, 0, NULL, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1764017715_Clear.jpg', NULL, NULL, 1, NULL, NULL, 0, NULL, 0, NULL, 0, '2025-11-24 15:51:43', '2025-11-24 16:13:09'),
(2, 'Dirt ( backfill Not Top Soil )', 1, 'single', 3, NULL, NULL, NULL, 2, 4, 1, 'exclusive', 1, NULL, '0002', 'C128', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1764084558_clean dirt.jpg', NULL, '<table style=\"width: 234px;\" width=\"175\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 219.219px;\" width=\"175\">Dirt ( backfill Not Top Soil )</td>\r\n</tr>\r\n</tbody>\r\n</table>', 1, NULL, NULL, 0, NULL, 0, NULL, 0, '2025-11-25 10:29:18', '2025-11-25 10:29:18'),
(3, '3/4 Clear Gravel (copy)', 1, 'single', 5, NULL, NULL, NULL, 2, 3, 1, 'exclusive', 1, NULL, '0003', 'C128', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1764084700_Clear.jpg', NULL, NULL, 1, NULL, NULL, 0, NULL, 0, NULL, 0, '2025-11-25 10:31:40', '2025-11-25 10:31:40'),
(4, '3/4 Clear Gravel (copy)', 1, 'single', 4, NULL, NULL, NULL, 2, 3, 1, 'exclusive', 1, NULL, '0004', 'C128', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1764084844_Clear.jpg', NULL, NULL, 1, NULL, NULL, 0, NULL, 0, NULL, 0, '2025-11-25 10:34:04', '2025-11-25 10:34:04'),
(5, 'Dirt ( backfill Not Top Soil ) (copy)', 1, 'single', 4, NULL, NULL, NULL, 2, 4, 1, 'exclusive', 1, NULL, '0005', 'C128', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1764084974_clean dirt.jpg', NULL, '<table style=\"width: 234px;\" width=\"175\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 219.219px;\" width=\"175\">Dirt ( backfill Not Top Soil )</td>\r\n</tr>\r\n</tbody>\r\n</table>', 1, NULL, NULL, 0, NULL, 0, NULL, 0, '2025-11-25 10:36:14', '2025-11-25 10:36:14'),
(6, 'Dirt ( backfill Not Top Soil ) (copy) (copy)', 1, 'single', 5, NULL, NULL, NULL, 2, 4, 1, 'exclusive', 1, 0.0000, '0006', 'C128', NULL, NULL, 0, NULL, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1764085124_clean dirt.jpg', NULL, '<table style=\"width: 234px;\" width=\"175\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 219.219px;\" width=\"175\">Dirt ( backfill Not Top Soil )</td>\r\n</tr>\r\n</tbody>\r\n</table>', 1, NULL, NULL, 0, NULL, 0, NULL, 0, '2025-11-25 10:38:44', '2025-11-25 10:39:24'),
(7, '4 in. x 100 ft. Big ‘O’ Weeping Tile', 1, 'single', 6, NULL, NULL, NULL, 10, 9, 1, 'exclusive', 1, NULL, '0007', 'C128', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1764085855_weaping tile.jpg', NULL, '<p>4 in. x 100 ft. Big &lsquo;O&rsquo; Weeping Tile Corrugated Filtered Pipe is High Density Polyethylene (HDPE) perforated tubing with polyester filter sock.</p>', 1, NULL, NULL, 0, NULL, 0, NULL, 0, '2025-11-25 10:50:55', '2025-11-25 10:50:55'),
(8, 'High Performance Bedding - 1 Yard', 1, 'single', 3, NULL, NULL, NULL, 2, 5, 1, 'exclusive', 1, NULL, '0008', 'C128', NULL, NULL, 0, NULL, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1764086203_HBP.jpg', NULL, NULL, 1, NULL, NULL, 0, NULL, 0, NULL, 0, '2025-11-25 10:56:43', '2025-11-26 12:37:39'),
(9, 'High Performance Bedding (HPB) (copy)', 1, 'single', 5, NULL, NULL, NULL, 2, 5, 1, 'exclusive', 1, NULL, '0009', 'C128', NULL, NULL, 0, NULL, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1764086298_HBP.jpg', NULL, NULL, 1, NULL, NULL, 0, NULL, 0, NULL, 0, '2025-11-25 10:58:18', '2025-11-25 22:30:48'),
(10, 'High Performance Bedding - 50 LBS', 1, 'single', 4, NULL, NULL, NULL, 2, 5, 1, 'exclusive', 1, NULL, '0010', 'C128', NULL, NULL, 0, NULL, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1764086377_HBP.jpg', NULL, NULL, 1, NULL, NULL, 0, NULL, 0, NULL, 0, '2025-11-25 10:59:37', '2025-11-26 12:37:05'),
(11, 'Limestone Screening - 1 Yard', 1, 'single', 3, NULL, NULL, NULL, 2, 6, 1, 'exclusive', 1, NULL, '0011', 'C128', NULL, NULL, 0, NULL, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1764178246_limestone crush.jpg', NULL, '<table style=\"width: 168px;\" width=\"144\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 153.219px;\" width=\"144\">Limestone Screening</td>\r\n</tr>\r\n</tbody>\r\n</table>', 1, NULL, NULL, 0, NULL, 0, NULL, 0, '2025-11-26 12:30:46', '2025-11-26 12:34:03'),
(12, 'Limestone Screening - 3 Yards', 1, 'single', 5, NULL, NULL, NULL, 2, 6, 1, 'exclusive', 1, NULL, '0012', 'C128', NULL, NULL, 0, NULL, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1764178424_limestone crush.jpg', NULL, '<table style=\"width: 168px;\" width=\"144\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 153.219px;\" width=\"144\">Limestone Screening</td>\r\n</tr>\r\n</tbody>\r\n</table>', 1, NULL, NULL, 0, NULL, 0, NULL, 0, '2025-11-26 12:33:44', '2025-11-26 12:34:22'),
(13, 'Limestone Screening - 50 LBS', 1, 'single', 4, NULL, NULL, NULL, 2, 6, 1, 'exclusive', 1, NULL, '0013', 'C128', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1764178573_limestone crush.jpg', NULL, '<table style=\"width: 168px;\" width=\"144\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 153.219px;\" width=\"144\">Limestone Screening</td>\r\n</tr>\r\n</tbody>\r\n</table>', 1, NULL, NULL, 0, NULL, 0, NULL, 0, '2025-11-26 12:36:13', '2025-11-26 12:36:13');

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

--
-- Table structure for table `product_locations`
--

CREATE TABLE `product_locations` (
  `product_id` int(11) NOT NULL,
  `location_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `product_locations`
--

INSERT INTO `product_locations` (`product_id`, `location_id`) VALUES
(1, 1),
(2, 1),
(3, 1),
(4, 1),
(5, 1),
(6, 1),
(7, 1),
(8, 1),
(9, 1),
(10, 1),
(11, 1),
(12, 1),
(13, 1);

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

--
-- Table structure for table `product_racks`
--

CREATE TABLE `product_racks` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `location_id` int(10) UNSIGNED NOT NULL,
  `product_id` int(10) UNSIGNED NOT NULL,
  `rack` varchar(191) DEFAULT NULL,
  `row` varchar(191) DEFAULT NULL,
  `position` varchar(191) 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_variations`
--

CREATE TABLE `product_variations` (
  `id` int(10) UNSIGNED NOT NULL,
  `variation_template_id` int(11) DEFAULT NULL,
  `name` varchar(191) NOT NULL,
  `product_id` int(10) UNSIGNED NOT NULL,
  `is_dummy` 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 `product_variations`
--

INSERT INTO `product_variations` (`id`, `variation_template_id`, `name`, `product_id`, `is_dummy`, `created_at`, `updated_at`) VALUES
(1, NULL, 'DUMMY', 1, 1, '2025-11-24 15:51:43', '2025-11-24 15:51:43'),
(2, NULL, 'DUMMY', 2, 1, '2025-11-25 10:29:18', '2025-11-25 10:29:18'),
(3, NULL, 'DUMMY', 3, 1, '2025-11-25 10:31:40', '2025-11-25 10:31:40'),
(4, NULL, 'DUMMY', 4, 1, '2025-11-25 10:34:04', '2025-11-25 10:34:04'),
(5, NULL, 'DUMMY', 5, 1, '2025-11-25 10:36:14', '2025-11-25 10:36:14'),
(6, NULL, 'DUMMY', 6, 1, '2025-11-25 10:38:44', '2025-11-25 10:38:44'),
(7, NULL, 'DUMMY', 7, 1, '2025-11-25 10:50:55', '2025-11-25 10:50:55'),
(8, NULL, 'DUMMY', 8, 1, '2025-11-25 10:56:43', '2025-11-25 10:56:43'),
(9, NULL, 'DUMMY', 9, 1, '2025-11-25 10:58:18', '2025-11-25 10:58:18'),
(10, NULL, 'DUMMY', 10, 1, '2025-11-25 10:59:37', '2025-11-25 10:59:37'),
(11, NULL, 'DUMMY', 11, 1, '2025-11-26 12:30:46', '2025-11-26 12:30:46'),
(12, NULL, 'DUMMY', 12, 1, '2025-11-26 12:33:44', '2025-11-26 12:33:44'),
(13, NULL, 'DUMMY', 13, 1, '2025-11-26 12:36:13', '2025-11-26 12:36:13');

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

--
-- Table structure for table `purchase_lines`
--

CREATE TABLE `purchase_lines` (
  `id` int(10) UNSIGNED NOT NULL,
  `transaction_id` int(10) UNSIGNED NOT NULL,
  `product_id` int(10) UNSIGNED NOT NULL,
  `variation_id` int(10) UNSIGNED NOT NULL,
  `quantity` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `secondary_unit_quantity` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `pp_without_discount` decimal(22,4) NOT NULL DEFAULT 0.0000 COMMENT 'Purchase price before inline discounts',
  `discount_percent` decimal(5,2) NOT NULL DEFAULT 0.00 COMMENT 'Inline discount percentage',
  `purchase_price` decimal(22,4) NOT NULL,
  `purchase_price_inc_tax` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `item_tax` decimal(22,4) NOT NULL COMMENT 'Tax for one quantity',
  `tax_id` int(10) UNSIGNED DEFAULT NULL,
  `purchase_requisition_line_id` int(11) DEFAULT NULL,
  `purchase_order_line_id` int(11) DEFAULT NULL,
  `quantity_sold` decimal(22,4) NOT NULL DEFAULT 0.0000 COMMENT 'Quanity sold from this purchase line',
  `quantity_adjusted` decimal(22,4) NOT NULL DEFAULT 0.0000 COMMENT 'Quanity adjusted in stock adjustment from this purchase line',
  `quantity_returned` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `po_quantity_purchased` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `mfg_quantity_used` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `mfg_date` date DEFAULT NULL,
  `exp_date` date DEFAULT NULL,
  `lot_number` varchar(191) DEFAULT NULL,
  `sub_unit_id` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_lines`
--

INSERT INTO `purchase_lines` (`id`, `transaction_id`, `product_id`, `variation_id`, `quantity`, `secondary_unit_quantity`, `pp_without_discount`, `discount_percent`, `purchase_price`, `purchase_price_inc_tax`, `item_tax`, `tax_id`, `purchase_requisition_line_id`, `purchase_order_line_id`, `quantity_sold`, `quantity_adjusted`, `quantity_returned`, `po_quantity_purchased`, `mfg_quantity_used`, `mfg_date`, `exp_date`, `lot_number`, `sub_unit_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 1, 100.0000, 0.0000, 30.0000, 0.00, 30.0000, 30.0000, 0.0000, NULL, NULL, NULL, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, NULL, NULL, NULL, NULL, '2025-11-24 15:55:28', '2025-11-29 10:42:08'),
(2, 19, 2, 2, 10000.0000, 0.0000, 16.0000, 0.00, 16.0000, 18.0800, 2.0800, 1, NULL, NULL, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, NULL, NULL, NULL, NULL, '2025-11-25 10:29:45', '2025-11-29 10:42:02'),
(3, 20, 3, 3, 1000.0000, 0.0000, 90.0000, 0.00, 90.0000, 101.7000, 11.7000, 1, NULL, NULL, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, NULL, NULL, NULL, NULL, '2025-11-25 10:32:28', '2025-11-29 10:42:08'),
(4, 21, 4, 4, 1000.0000, 0.0000, 5.0000, 0.00, 5.0000, 5.6500, 0.6500, 1, NULL, NULL, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, NULL, NULL, NULL, NULL, '2025-11-25 10:34:32', '2025-11-25 10:34:32'),
(5, 22, 6, 6, 10000.0000, 0.0000, 60.0000, 0.00, 60.0000, 67.8000, 7.8000, 1, NULL, NULL, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, NULL, NULL, NULL, NULL, '2025-11-25 10:39:34', '2025-11-25 10:39:34'),
(6, 23, 5, 5, 1000.0000, 0.0000, 5.0000, 0.00, 5.0000, 5.6500, 0.6500, 1, NULL, NULL, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, NULL, NULL, NULL, NULL, '2025-11-25 10:39:52', '2025-11-25 10:39:52'),
(7, 24, 7, 7, 100.0000, 0.0000, 65.0000, 0.00, 65.0000, 73.4500, 8.4500, 1, NULL, NULL, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, NULL, NULL, NULL, NULL, '2025-11-25 10:51:23', '2025-11-25 10:51:23'),
(8, 25, 8, 8, 1000.0000, 0.0000, 30.0000, 0.00, 30.0000, 33.9000, 3.9000, 1, NULL, NULL, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, NULL, NULL, NULL, NULL, '2025-11-25 10:57:06', '2025-11-25 10:57:06'),
(9, 26, 9, 9, 1000.0000, 0.0000, 90.0000, 0.00, 90.0000, 101.7000, 11.7000, 1, NULL, NULL, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, NULL, NULL, NULL, NULL, '2025-11-25 10:58:37', '2025-11-29 10:42:03'),
(10, 27, 10, 10, 1000.0000, 0.0000, 5.0000, 0.00, 5.0000, 5.6500, 0.6500, 1, NULL, NULL, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, NULL, NULL, NULL, NULL, '2025-11-25 11:00:01', '2025-11-29 10:43:00'),
(11, 34, 11, 11, 1000.0000, 0.0000, 20.0000, 0.00, 20.0000, 22.6000, 2.6000, 1, NULL, NULL, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, NULL, NULL, NULL, NULL, '2025-11-26 12:31:12', '2025-11-26 12:31:12'),
(12, 35, 12, 12, 1000.0000, 0.0000, 60.0000, 0.00, 60.0000, 67.8000, 7.8000, 1, NULL, NULL, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, NULL, NULL, NULL, NULL, '2025-11-26 12:34:27', '2025-11-26 12:34:27'),
(13, 36, 13, 13, 10000.0000, 0.0000, 5.0000, 0.00, 5.0000, 5.6500, 0.6500, 1, NULL, NULL, 1.0000, 0.0000, 0.0000, 0.0000, 0.0000, NULL, NULL, NULL, NULL, '2025-11-26 12:36:18', '2025-11-29 10:44:17');

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

--
-- Table structure for table `reference_counts`
--

CREATE TABLE `reference_counts` (
  `id` int(10) UNSIGNED NOT NULL,
  `ref_type` varchar(191) NOT NULL,
  `ref_count` int(11) NOT NULL,
  `business_id` int(11) 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 `reference_counts`
--

INSERT INTO `reference_counts` (`id`, `ref_type`, `ref_count`, `business_id`, `created_at`, `updated_at`) VALUES
(1, 'contacts', 23, 1, '2025-11-24 02:41:04', '2025-12-02 09:11:44'),
(2, 'business_location', 1, 1, '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(3, 'contacts', 1, 2, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(4, 'business_location', 1, 2, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(5, 'sell_payment', 36, 1, '2025-11-24 16:13:34', '2025-12-03 14:37:35'),
(6, 'draft', 1, 1, '2025-11-25 21:36:19', '2025-11-25 21:36:19'),
(7, 'sell_return', 1, 1, '2025-11-26 12:47:53', '2025-11-26 12:47:53'),
(8, 'contacts', 1, 3, '2025-12-02 09:40:05', '2025-12-02 09:40:05'),
(9, 'business_location', 1, 3, '2025-12-02 09:40:05', '2025-12-02 09:40:05'),
(10, 'expense', 3, 1, '2025-12-02 05:31:57', '2025-12-03 03:05:21');

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

--
-- Table structure for table `repair_device_models`
--

CREATE TABLE `repair_device_models` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `repair_checklist` text DEFAULT NULL,
  `brand_id` int(10) UNSIGNED DEFAULT NULL,
  `device_id` int(10) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `repair_statuses`
--

CREATE TABLE `repair_statuses` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `color` varchar(191) DEFAULT NULL,
  `sort_order` int(11) DEFAULT NULL,
  `business_id` int(11) NOT NULL,
  `is_completed_status` tinyint(1) NOT NULL DEFAULT 0,
  `sms_template` text DEFAULT NULL,
  `email_subject` text DEFAULT NULL,
  `email_body` text 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 `res_product_modifier_sets`
--

CREATE TABLE `res_product_modifier_sets` (
  `modifier_set_id` int(10) UNSIGNED NOT NULL,
  `product_id` int(10) UNSIGNED NOT NULL COMMENT 'Table use to store the modifier sets applicable for a product'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `res_tables`
--

CREATE TABLE `res_tables` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `location_id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `description` text DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT 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 `roles`
--

CREATE TABLE `roles` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `guard_name` varchar(191) NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT 0,
  `is_service_staff` 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;

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

INSERT INTO `roles` (`id`, `name`, `guard_name`, `business_id`, `is_default`, `is_service_staff`, `created_at`, `updated_at`) VALUES
(1, 'Admin#1', 'web', 1, 1, 0, '2025-11-24 02:41:04', '2025-11-24 02:41:04'),
(2, 'Sales#1', 'web', 1, 0, 0, '2025-11-24 02:41:04', '2025-11-23 21:15:28'),
(3, 'Admin#2', 'web', 2, 1, 0, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(4, 'Cashier#2', 'web', 2, 0, 0, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(5, 'Managment#1', 'web', 1, 0, 0, '2025-11-23 21:18:02', '2025-11-23 21:18:02'),
(6, 'Admin#3', 'web', 3, 1, 0, '2025-12-02 09:40:05', '2025-12-02 09:40:05'),
(7, 'Cashier#3', 'web', 3, 0, 0, '2025-12-02 09:40:05', '2025-12-02 09:40:05');

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

--
-- Table structure for table `role_has_permissions`
--

CREATE TABLE `role_has_permissions` (
  `permission_id` int(10) UNSIGNED NOT NULL,
  `role_id` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `role_has_permissions`
--

INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES
(1, 5),
(2, 5),
(3, 2),
(3, 5),
(6, 5),
(7, 5),
(8, 2),
(8, 5),
(9, 2),
(9, 5),
(10, 2),
(10, 5),
(11, 5),
(12, 5),
(13, 5),
(14, 5),
(15, 5),
(16, 5),
(17, 5),
(18, 5),
(19, 5),
(20, 2),
(20, 5),
(21, 2),
(21, 5),
(22, 5),
(23, 5),
(24, 5),
(25, 5),
(26, 5),
(27, 5),
(28, 5),
(29, 5),
(30, 2),
(30, 5),
(32, 5),
(34, 5),
(35, 5),
(36, 5),
(37, 2),
(37, 5),
(38, 2),
(38, 5),
(39, 2),
(39, 5),
(40, 5),
(41, 5),
(42, 5),
(48, 2),
(48, 4),
(48, 5),
(48, 7),
(49, 2),
(49, 4),
(49, 5),
(49, 7),
(50, 2),
(50, 5),
(51, 2),
(51, 5),
(52, 2),
(52, 5),
(53, 2),
(53, 5),
(54, 2),
(54, 5),
(55, 5),
(56, 5),
(57, 5),
(58, 5),
(59, 2),
(59, 5),
(60, 2),
(60, 5),
(61, 2),
(61, 5),
(62, 2),
(62, 5),
(63, 2),
(63, 5),
(64, 2),
(64, 5),
(65, 2),
(65, 5),
(66, 2),
(66, 5),
(67, 5),
(68, 5),
(69, 5),
(70, 5),
(71, 2),
(71, 4),
(71, 5),
(71, 7),
(72, 2),
(72, 4),
(72, 5),
(72, 7),
(73, 2),
(73, 4),
(73, 5),
(73, 7),
(74, 2),
(74, 4),
(74, 5),
(74, 7),
(75, 5),
(76, 5),
(77, 5),
(78, 5),
(79, 5),
(80, 5),
(81, 5),
(82, 5),
(83, 5),
(84, 5),
(85, 5),
(86, 2),
(86, 5),
(87, 2),
(87, 5),
(88, 2),
(88, 5),
(89, 2),
(89, 5),
(90, 2),
(90, 5),
(91, 2),
(91, 5),
(92, 2),
(92, 5),
(93, 2),
(93, 5),
(94, 2),
(94, 5),
(95, 2),
(95, 5),
(96, 2),
(96, 5),
(97, 2),
(97, 5),
(98, 2),
(98, 5),
(99, 2),
(99, 5),
(100, 2),
(100, 5),
(101, 2),
(101, 5),
(103, 4),
(103, 7),
(104, 5),
(107, 2),
(107, 5),
(108, 2),
(108, 5),
(109, 2),
(109, 5),
(110, 2),
(110, 5),
(111, 2),
(111, 5),
(112, 2),
(112, 5),
(113, 2),
(113, 5),
(114, 2),
(114, 5),
(115, 2),
(115, 5),
(116, 2),
(116, 5),
(117, 2),
(117, 5),
(118, 2),
(118, 5),
(119, 2),
(119, 5),
(120, 2),
(120, 5),
(121, 2),
(121, 5),
(122, 2),
(122, 5),
(123, 2),
(123, 5),
(124, 2),
(124, 5),
(125, 2),
(125, 5),
(126, 2),
(126, 5),
(127, 2),
(127, 5),
(128, 2),
(128, 5),
(129, 2),
(129, 5),
(130, 2),
(130, 5),
(131, 2),
(131, 5),
(132, 2),
(132, 5),
(133, 2),
(133, 5),
(134, 2),
(134, 5),
(135, 2),
(135, 5),
(136, 2),
(136, 5),
(137, 2),
(137, 5),
(138, 2),
(138, 5),
(139, 2),
(139, 5),
(140, 5),
(141, 5),
(142, 5),
(143, 5),
(144, 5),
(145, 5),
(146, 5),
(147, 5),
(148, 5),
(149, 5),
(150, 5),
(151, 5),
(152, 5),
(153, 5),
(154, 5),
(155, 5),
(156, 5),
(157, 5),
(158, 5),
(159, 5),
(160, 5),
(161, 5),
(162, 5),
(163, 5),
(165, 5),
(166, 5),
(167, 5),
(168, 5),
(169, 5),
(170, 5),
(171, 5),
(172, 5),
(173, 5),
(174, 5),
(175, 5),
(176, 5),
(177, 5),
(178, 5),
(179, 5),
(180, 5),
(181, 5),
(182, 5),
(183, 5),
(184, 5),
(185, 5),
(186, 5),
(187, 5),
(188, 5),
(189, 5),
(190, 5),
(191, 5),
(192, 5),
(193, 5),
(194, 5),
(195, 5);

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

--
-- Table structure for table `selling_price_groups`
--

CREATE TABLE `selling_price_groups` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `description` text DEFAULT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `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 `sell_line_warranties`
--

CREATE TABLE `sell_line_warranties` (
  `sell_line_id` int(11) NOT NULL,
  `warranty_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `sessions` (
  `id` varchar(191) NOT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `ip_address` varchar(45) DEFAULT NULL,
  `user_agent` text DEFAULT NULL,
  `payload` text NOT NULL,
  `last_activity` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `stock_adjustments_temp`
--

CREATE TABLE `stock_adjustments_temp` (
  `id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `stock_adjustment_lines`
--

CREATE TABLE `stock_adjustment_lines` (
  `id` int(10) UNSIGNED NOT NULL,
  `transaction_id` int(10) UNSIGNED NOT NULL,
  `product_id` int(10) UNSIGNED NOT NULL,
  `variation_id` int(10) UNSIGNED NOT NULL,
  `quantity` decimal(22,4) NOT NULL,
  `secondary_unit_quantity` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `unit_price` decimal(22,4) DEFAULT NULL COMMENT 'Last purchase unit price',
  `removed_purchase_line` int(11) DEFAULT NULL,
  `lot_no_line_id` 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 `subscriptions`
--

CREATE TABLE `subscriptions` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `package_id` int(10) UNSIGNED NOT NULL,
  `start_date` date DEFAULT NULL,
  `trial_end_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `package_price` decimal(22,4) NOT NULL,
  `original_price` decimal(22,4) DEFAULT NULL,
  `coupon_code` varchar(191) DEFAULT NULL,
  `package_details` longtext NOT NULL,
  `created_id` int(10) UNSIGNED NOT NULL,
  `paid_via` varchar(191) DEFAULT NULL,
  `payment_transaction_id` varchar(191) DEFAULT NULL,
  `status` enum('approved','waiting','declined') NOT NULL DEFAULT 'waiting',
  `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 `subscriptions`
--

INSERT INTO `subscriptions` (`id`, `business_id`, `package_id`, `start_date`, `trial_end_date`, `end_date`, `package_price`, `original_price`, `coupon_code`, `package_details`, `created_id`, `paid_via`, `payment_transaction_id`, `status`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 1, '2025-11-23', '3635-05-25', '2390-11-23', 0.0000, 0.0000, NULL, '{\"location_count\":\"0\",\"user_count\":\"0\",\"product_count\":\"0\",\"invoice_count\":\"0\",\"name\":\"AdminPackage\",\"accounting_module\":\"1\",\"aiassistance_module\":\"1\",\"aiassistance_max_token\":null,\"assetmanagement_module\":\"1\",\"connector_module\":\"1\",\"crm_module\":\"1\",\"essentials_module\":\"1\",\"manufacturing_module\":\"1\",\"productcatalogue_module\":\"1\",\"project_module\":\"1\",\"repair_module\":\"1\",\"woocommerce_module\":\"1\"}', 1, 'offline', '5454', 'approved', NULL, '2025-11-24 02:49:10', '2025-11-23 16:19:31'),
(2, 3, 1, '2025-12-02', '3635-06-02', '2390-12-02', 0.0000, 0.0000, NULL, '{\"location_count\":0,\"user_count\":0,\"product_count\":0,\"invoice_count\":0,\"name\":\"AdminPackage\",\"accounting_module\":\"1\",\"aiassistance_module\":\"1\",\"aiassistance_max_token\":null,\"assetmanagement_module\":\"1\",\"connector_module\":\"1\",\"crm_module\":\"1\",\"essentials_module\":\"1\",\"manufacturing_module\":\"1\",\"productcatalogue_module\":\"1\",\"project_module\":\"1\",\"repair_module\":\"1\",\"woocommerce_module\":\"1\"}', 5, NULL, 'FREE', 'approved', NULL, '2025-12-02 10:10:51', '2025-12-02 10:10:51');

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

--
-- Table structure for table `superadmin_communicator_logs`
--

CREATE TABLE `superadmin_communicator_logs` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_ids` text DEFAULT NULL,
  `subject` varchar(191) DEFAULT NULL,
  `message` text 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 `superadmin_coupons`
--

CREATE TABLE `superadmin_coupons` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `coupon_code` varchar(191) NOT NULL,
  `discount_type` varchar(191) NOT NULL,
  `discount` decimal(8,2) NOT NULL,
  `expiry_date` date DEFAULT NULL,
  `applied_on_packages` varchar(191) DEFAULT NULL,
  `applied_on_business` varchar(191) DEFAULT NULL,
  `is_active` tinyint(1) 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 `superadmin_frontend_pages`
--

CREATE TABLE `superadmin_frontend_pages` (
  `id` int(10) UNSIGNED NOT NULL,
  `title` varchar(191) DEFAULT NULL,
  `slug` varchar(191) NOT NULL,
  `content` longtext NOT NULL,
  `is_shown` tinyint(1) NOT NULL,
  `menu_order` int(11) 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 `tax_rates`
--

CREATE TABLE `tax_rates` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `amount` double(22,4) NOT NULL,
  `is_tax_group` tinyint(1) NOT NULL DEFAULT 0,
  `for_tax_group` tinyint(1) NOT NULL DEFAULT 0,
  `created_by` int(10) UNSIGNED NOT NULL,
  `woocommerce_tax_rate_id` int(11) 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 `tax_rates`
--

INSERT INTO `tax_rates` (`id`, `business_id`, `name`, `amount`, `is_tax_group`, `for_tax_group`, `created_by`, `woocommerce_tax_rate_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 'HST', 13.0000, 0, 0, 1, NULL, NULL, '2025-11-24 16:12:39', '2025-11-24 16:12:39');

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

--
-- Table structure for table `transaction_sell_lines`
--

CREATE TABLE `transaction_sell_lines` (
  `id` int(10) UNSIGNED NOT NULL,
  `transaction_id` int(10) UNSIGNED NOT NULL,
  `product_id` int(10) UNSIGNED NOT NULL,
  `variation_id` int(10) UNSIGNED NOT NULL,
  `quantity` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `secondary_unit_quantity` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `mfg_waste_percent` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `mfg_ingredient_group_id` int(11) DEFAULT NULL,
  `quantity_returned` decimal(20,4) NOT NULL DEFAULT 0.0000,
  `unit_price_before_discount` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `unit_price` decimal(22,4) DEFAULT NULL COMMENT 'Sell price excluding tax',
  `line_discount_type` enum('fixed','percentage') DEFAULT NULL,
  `line_discount_amount` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `unit_price_inc_tax` decimal(22,4) DEFAULT NULL COMMENT 'Sell price including tax',
  `item_tax` decimal(22,4) NOT NULL COMMENT 'Tax for one quantity',
  `tax_id` int(10) UNSIGNED DEFAULT NULL,
  `discount_id` int(11) DEFAULT NULL,
  `lot_no_line_id` int(11) DEFAULT NULL,
  `sell_line_note` text DEFAULT NULL,
  `so_line_id` int(11) DEFAULT NULL,
  `so_quantity_invoiced` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `res_service_staff_id` int(11) DEFAULT NULL,
  `res_line_order_status` varchar(191) DEFAULT NULL,
  `woocommerce_line_items_id` int(11) DEFAULT NULL,
  `parent_sell_line_id` int(11) DEFAULT NULL,
  `children_type` varchar(191) NOT NULL DEFAULT '' COMMENT 'Type of children for the parent, like modifier or combo',
  `sub_unit_id` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `transaction_sell_lines`
--

INSERT INTO `transaction_sell_lines` (`id`, `transaction_id`, `product_id`, `variation_id`, `quantity`, `secondary_unit_quantity`, `mfg_waste_percent`, `mfg_ingredient_group_id`, `quantity_returned`, `unit_price_before_discount`, `unit_price`, `line_discount_type`, `line_discount_amount`, `unit_price_inc_tax`, `item_tax`, `tax_id`, `discount_id`, `lot_no_line_id`, `sell_line_note`, `so_line_id`, `so_quantity_invoiced`, `res_service_staff_id`, `res_line_order_status`, `woocommerce_line_items_id`, `parent_sell_line_id`, `children_type`, `sub_unit_id`, `created_at`, `updated_at`) VALUES
(19, 29, 1, 1, 1.0000, 0.0000, 0.0000, NULL, 0.0000, 45.0000, 45.0000, 'fixed', 0.0000, 50.8500, 5.8500, 1, NULL, NULL, '', NULL, 0.0000, NULL, NULL, NULL, NULL, '', NULL, '2025-11-25 21:36:19', '2025-11-25 21:36:19'),
(20, 29, 6, 6, 1.0000, 0.0000, 0.0000, NULL, 0.0000, 65.0100, 65.0100, 'fixed', 0.0000, 73.4600, 8.4500, 1, NULL, NULL, '', NULL, 0.0000, NULL, NULL, NULL, NULL, '', NULL, '2025-11-25 21:36:19', '2025-11-25 21:36:19'),
(21, 29, 10, 10, 1.0000, 0.0000, 0.0000, NULL, 0.0000, 7.0000, 7.0000, 'fixed', 0.0000, 7.9100, 0.9100, 1, NULL, NULL, '', NULL, 0.0000, NULL, NULL, NULL, NULL, '', NULL, '2025-11-25 21:36:19', '2025-11-25 21:36:19'),
(24, 31, 2, 2, 1.0000, 0.0000, 0.0000, NULL, 1.0000, 20.0000, 20.0000, 'fixed', 0.0000, 22.6000, 2.6000, 1, NULL, NULL, '', NULL, 0.0000, NULL, NULL, NULL, NULL, '', NULL, '2025-11-25 22:02:27', '2025-11-26 12:55:18'),
(40, 50, 13, 13, 1.0000, 0.0000, 0.0000, NULL, 0.0000, 8.0000, 8.0000, 'fixed', 0.0000, 9.0400, 1.0400, 1, NULL, NULL, '', NULL, 0.0000, NULL, NULL, NULL, NULL, '', NULL, '2025-11-29 10:44:17', '2025-11-29 10:44:17');

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

--
-- Table structure for table `transaction_sell_lines_purchase_lines`
--

CREATE TABLE `transaction_sell_lines_purchase_lines` (
  `id` int(10) UNSIGNED NOT NULL,
  `sell_line_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'id from transaction_sell_lines',
  `stock_adjustment_line_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'id from stock_adjustment_lines',
  `purchase_line_id` int(10) UNSIGNED NOT NULL COMMENT 'id from purchase_lines',
  `quantity` decimal(22,4) NOT NULL,
  `qty_returned` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `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 `transaction_sell_lines_purchase_lines`
--

INSERT INTO `transaction_sell_lines_purchase_lines` (`id`, `sell_line_id`, `stock_adjustment_line_id`, `purchase_line_id`, `quantity`, `qty_returned`, `created_at`, `updated_at`) VALUES
(21, 24, NULL, 2, 1.0000, 1.0000, '2025-11-25 22:02:27', '2025-11-26 12:47:53'),
(37, 40, NULL, 13, 1.0000, 0.0000, '2025-11-29 10:44:17', '2025-11-29 10:44:17');

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

--
-- Table structure for table `types_of_services`
--

CREATE TABLE `types_of_services` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `description` text DEFAULT NULL,
  `business_id` int(11) NOT NULL,
  `location_price_group` text DEFAULT NULL,
  `packing_charge` decimal(22,4) DEFAULT NULL,
  `packing_charge_type` enum('fixed','percent') DEFAULT NULL,
  `enable_custom_fields` 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 `units`
--

CREATE TABLE `units` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `actual_name` varchar(191) NOT NULL,
  `short_name` varchar(191) NOT NULL,
  `allow_decimal` tinyint(1) NOT NULL,
  `base_unit_id` int(11) DEFAULT NULL,
  `base_unit_multiplier` decimal(20,4) DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT 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`, `business_id`, `actual_name`, `short_name`, `allow_decimal`, `base_unit_id`, `base_unit_multiplier`, `created_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, '25 LBs', '25 LBs', 0, NULL, NULL, 1, NULL, '2025-11-24 02:41:04', '2025-11-24 15:30:37'),
(2, 2, 'Pieces', 'Pc(s)', 0, NULL, NULL, 2, NULL, '2025-11-24 07:39:46', '2025-11-24 07:39:46'),
(3, 1, '1 Yard', '1 Yard', 0, NULL, NULL, 1, NULL, '2025-11-24 15:29:19', '2025-11-24 15:29:19'),
(4, 1, '50 LBs', '50 LBs', 0, NULL, NULL, 1, NULL, '2025-11-24 15:31:05', '2025-11-24 15:31:05'),
(5, 1, '3 Yards', '3 Yards', 0, NULL, NULL, 1, NULL, '2025-11-24 15:31:36', '2025-11-24 15:31:36'),
(6, 1, '100 Ft Roll', '100 Ft Roll', 0, NULL, NULL, 1, NULL, '2025-11-24 15:32:05', '2025-11-24 15:32:05'),
(7, 1, '1 Skid', '1 Skid', 0, NULL, NULL, 1, NULL, '2025-11-24 15:32:44', '2025-11-24 15:32:44'),
(8, 1, 'Bag', 'Bag', 0, NULL, NULL, 1, NULL, '2025-11-24 15:32:55', '2025-11-24 15:32:55'),
(9, 3, 'Pieces', 'Pc(s)', 0, NULL, NULL, 5, NULL, '2025-12-02 09:40:05', '2025-12-02 09:40:05');

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

--
-- Table structure for table `user_contact_access`
--

CREATE TABLE `user_contact_access` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(11) NOT NULL,
  `contact_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `variations`
--

CREATE TABLE `variations` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `product_id` int(10) UNSIGNED NOT NULL,
  `sub_sku` varchar(191) DEFAULT NULL,
  `product_variation_id` int(10) UNSIGNED NOT NULL,
  `woocommerce_variation_id` int(11) DEFAULT NULL,
  `variation_value_id` int(11) DEFAULT NULL,
  `default_purchase_price` decimal(22,4) DEFAULT NULL,
  `dpp_inc_tax` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `profit_percent` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `default_sell_price` decimal(22,4) DEFAULT NULL,
  `sell_price_inc_tax` decimal(22,4) DEFAULT NULL COMMENT 'Sell price including tax',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `combo_variations` text DEFAULT NULL COMMENT 'Contains the combo variation details'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `variations`
--

INSERT INTO `variations` (`id`, `name`, `product_id`, `sub_sku`, `product_variation_id`, `woocommerce_variation_id`, `variation_value_id`, `default_purchase_price`, `dpp_inc_tax`, `profit_percent`, `default_sell_price`, `sell_price_inc_tax`, `created_at`, `updated_at`, `deleted_at`, `combo_variations`) VALUES
(1, 'DUMMY', 1, '0001', 1, NULL, NULL, 30.0000, 33.9000, 50.0000, 45.0000, 50.8500, '2025-11-24 15:51:43', '2025-11-24 16:13:09', NULL, '[]'),
(2, 'DUMMY', 2, '0002', 2, NULL, NULL, 16.0000, 18.0800, 25.0000, 20.0000, 22.6000, '2025-11-25 10:29:18', '2025-11-25 10:29:18', NULL, '[]'),
(3, 'DUMMY', 3, '0003', 3, NULL, NULL, 90.0000, 101.7000, 45.0000, 130.5000, 147.4700, '2025-11-25 10:31:40', '2025-11-25 10:31:40', NULL, '[]'),
(4, 'DUMMY', 4, '0004', 4, NULL, NULL, 5.0000, 5.6500, 50.0000, 7.5000, 8.4800, '2025-11-25 10:34:04', '2025-11-25 10:34:04', NULL, '[]'),
(5, 'DUMMY', 5, '0005', 5, NULL, NULL, 5.0000, 5.6500, 50.0000, 7.5000, 8.4800, '2025-11-25 10:36:14', '2025-11-25 10:36:14', NULL, '[]'),
(6, 'DUMMY', 6, '0006', 6, NULL, NULL, 60.0000, 67.8000, 8.3500, 65.0100, 73.4600, '2025-11-25 10:38:44', '2025-11-25 10:39:24', NULL, '[]'),
(7, 'DUMMY', 7, '0007', 7, NULL, NULL, 65.0000, 73.4500, 53.8500, 100.0000, 113.0000, '2025-11-25 10:50:55', '2025-11-25 10:50:55', NULL, '[]'),
(8, 'DUMMY', 8, '0008', 8, NULL, NULL, 30.0000, 33.9000, 33.3000, 39.9900, 45.1900, '2025-11-25 10:56:43', '2025-11-26 12:37:39', NULL, '[]'),
(9, 'DUMMY', 9, '0009', 9, NULL, NULL, 90.0000, 101.7000, 33.3500, 120.0200, 135.6200, '2025-11-25 10:58:18', '2025-11-25 22:30:48', NULL, '[]'),
(10, 'DUMMY', 10, '0010', 10, NULL, NULL, 5.0000, 5.6500, 40.0000, 7.0000, 7.9100, '2025-11-25 10:59:37', '2025-11-26 12:37:05', NULL, '[]'),
(11, 'DUMMY', 11, '0011', 11, NULL, NULL, 20.0000, 22.6000, 75.0000, 35.0000, 39.5500, '2025-11-26 12:30:46', '2025-11-26 12:34:03', NULL, '[]'),
(12, 'DUMMY', 12, '0012', 12, NULL, NULL, 60.0000, 67.8000, 66.6700, 100.0000, 113.0000, '2025-11-26 12:33:44', '2025-11-26 12:34:22', NULL, '[]'),
(13, 'DUMMY', 13, '0013', 13, NULL, NULL, 5.0000, 5.6500, 60.0000, 8.0000, 9.0400, '2025-11-26 12:36:13', '2025-11-26 12:36:13', NULL, '[]');

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

--
-- Table structure for table `variation_group_prices`
--

CREATE TABLE `variation_group_prices` (
  `id` int(10) UNSIGNED NOT NULL,
  `variation_id` int(10) UNSIGNED NOT NULL,
  `price_group_id` int(10) UNSIGNED NOT NULL,
  `price_inc_tax` decimal(22,4) NOT NULL,
  `price_type` varchar(191) NOT NULL DEFAULT 'fixed',
  `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 `variation_location_details`
--

CREATE TABLE `variation_location_details` (
  `id` int(10) UNSIGNED NOT NULL,
  `product_id` int(10) UNSIGNED NOT NULL,
  `product_variation_id` int(10) UNSIGNED NOT NULL COMMENT 'id from product_variations table',
  `variation_id` int(10) UNSIGNED NOT NULL,
  `location_id` int(10) UNSIGNED NOT NULL,
  `qty_available` decimal(22,4) NOT NULL DEFAULT 0.0000,
  `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 `variation_location_details`
--

INSERT INTO `variation_location_details` (`id`, `product_id`, `product_variation_id`, `variation_id`, `location_id`, `qty_available`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 1, 1, 100.0000, '2025-11-24 15:55:28', '2025-11-29 10:42:08'),
(2, 2, 2, 2, 1, 10000.0000, '2025-11-25 10:29:45', '2025-11-29 10:42:02'),
(3, 3, 3, 3, 1, 1000.0000, '2025-11-25 10:32:28', '2025-11-29 10:42:08'),
(4, 4, 4, 4, 1, 1000.0000, '2025-11-25 10:34:32', '2025-11-25 10:34:32'),
(5, 6, 6, 6, 1, 10000.0000, '2025-11-25 10:39:34', '2025-11-25 10:39:34'),
(6, 5, 5, 5, 1, 1000.0000, '2025-11-25 10:39:52', '2025-11-25 10:39:52'),
(7, 7, 7, 7, 1, 100.0000, '2025-11-25 10:51:23', '2025-11-25 10:51:23'),
(8, 8, 8, 8, 1, 1000.0000, '2025-11-25 10:57:06', '2025-11-25 10:57:06'),
(9, 9, 9, 9, 1, 1000.0000, '2025-11-25 10:58:37', '2025-11-29 10:42:03'),
(10, 10, 10, 10, 1, 1000.0000, '2025-11-25 11:00:01', '2025-11-29 10:43:00'),
(11, 11, 11, 11, 1, 1000.0000, '2025-11-26 12:31:12', '2025-11-26 12:31:12'),
(12, 12, 12, 12, 1, 1000.0000, '2025-11-26 12:34:27', '2025-11-26 12:34:27'),
(13, 13, 13, 13, 1, 9999.0000, '2025-11-26 12:36:18', '2025-11-29 10:44:17');

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

--
-- Table structure for table `variation_templates`
--

CREATE TABLE `variation_templates` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `business_id` int(10) UNSIGNED NOT NULL,
  `woocommerce_attr_id` 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 `variation_value_templates`
--

CREATE TABLE `variation_value_templates` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `variation_template_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `warranties`
--

CREATE TABLE `warranties` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `business_id` int(11) NOT NULL,
  `description` text DEFAULT NULL,
  `duration` int(11) NOT NULL,
  `duration_type` enum('days','months','years') 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 `woocommerce_sync_logs`
--

CREATE TABLE `woocommerce_sync_logs` (
  `id` int(10) UNSIGNED NOT NULL,
  `business_id` int(11) NOT NULL,
  `sync_type` varchar(191) NOT NULL,
  `operation_type` varchar(191) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `details` longtext DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

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

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

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

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

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

--
-- Indexes for table `accounts`
--
ALTER TABLE `accounts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `accounts_business_id_index` (`business_id`),
  ADD KEY `accounts_account_type_id_index` (`account_type_id`),
  ADD KEY `accounts_created_by_index` (`created_by`);

--
-- Indexes for table `account_transactions`
--
ALTER TABLE `account_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `account_transactions_account_id_index` (`account_id`),
  ADD KEY `account_transactions_transaction_id_index` (`transaction_id`),
  ADD KEY `account_transactions_transaction_payment_id_index` (`transaction_payment_id`),
  ADD KEY `account_transactions_transfer_transaction_id_index` (`transfer_transaction_id`),
  ADD KEY `account_transactions_created_by_index` (`created_by`),
  ADD KEY `account_transactions_type_index` (`type`),
  ADD KEY `account_transactions_sub_type_index` (`sub_type`),
  ADD KEY `account_transactions_operation_date_index` (`operation_date`);

--
-- Indexes for table `account_types`
--
ALTER TABLE `account_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `account_types_parent_account_type_id_index` (`parent_account_type_id`),
  ADD KEY `account_types_business_id_index` (`business_id`);

--
-- Indexes for table `activity_log`
--
ALTER TABLE `activity_log`
  ADD PRIMARY KEY (`id`),
  ADD KEY `activity_log_log_name_index` (`log_name`);

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

--
-- Indexes for table `assets`
--
ALTER TABLE `assets`
  ADD PRIMARY KEY (`id`),
  ADD KEY `assets_business_id_foreign` (`business_id`),
  ADD KEY `assets_category_id_foreign` (`category_id`),
  ADD KEY `assets_created_by_foreign` (`created_by`);

--
-- Indexes for table `asset_maintenances`
--
ALTER TABLE `asset_maintenances`
  ADD PRIMARY KEY (`id`),
  ADD KEY `asset_maintenances_business_id_index` (`business_id`),
  ADD KEY `asset_maintenances_asset_id_index` (`asset_id`),
  ADD KEY `asset_maintenances_status_index` (`status`),
  ADD KEY `asset_maintenances_priority_index` (`priority`),
  ADD KEY `asset_maintenances_created_by_index` (`created_by`),
  ADD KEY `asset_maintenances_assigned_to_index` (`assigned_to`);

--
-- Indexes for table `asset_transactions`
--
ALTER TABLE `asset_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `asset_transactions_business_id_foreign` (`business_id`),
  ADD KEY `asset_transactions_asset_id_foreign` (`asset_id`),
  ADD KEY `asset_transactions_receiver_foreign` (`receiver`),
  ADD KEY `asset_transactions_parent_id_foreign` (`parent_id`),
  ADD KEY `asset_transactions_created_by_foreign` (`created_by`);

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

--
-- Indexes for table `barcodes`
--
ALTER TABLE `barcodes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `barcodes_business_id_foreign` (`business_id`);

--
-- Indexes for table `bookings`
--
ALTER TABLE `bookings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `bookings_contact_id_foreign` (`contact_id`),
  ADD KEY `bookings_business_id_foreign` (`business_id`),
  ADD KEY `bookings_created_by_foreign` (`created_by`),
  ADD KEY `bookings_table_id_index` (`table_id`),
  ADD KEY `bookings_waiter_id_index` (`waiter_id`),
  ADD KEY `bookings_location_id_index` (`location_id`),
  ADD KEY `bookings_booking_status_index` (`booking_status`),
  ADD KEY `bookings_correspondent_id_index` (`correspondent_id`);

--
-- Indexes for table `brands`
--
ALTER TABLE `brands`
  ADD PRIMARY KEY (`id`),
  ADD KEY `brands_business_id_foreign` (`business_id`),
  ADD KEY `brands_created_by_foreign` (`created_by`);

--
-- Indexes for table `business_locations`
--
ALTER TABLE `business_locations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `business_locations_business_id_index` (`business_id`),
  ADD KEY `business_locations_invoice_scheme_id_foreign` (`invoice_scheme_id`),
  ADD KEY `business_locations_invoice_layout_id_foreign` (`invoice_layout_id`),
  ADD KEY `business_locations_sale_invoice_layout_id_index` (`sale_invoice_layout_id`),
  ADD KEY `business_locations_selling_price_group_id_index` (`selling_price_group_id`),
  ADD KEY `business_locations_receipt_printer_type_index` (`receipt_printer_type`),
  ADD KEY `business_locations_printer_id_index` (`printer_id`);

--
-- Indexes for table `cash_denominations`
--
ALTER TABLE `cash_denominations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cash_denominations_model_type_model_id_index` (`model_type`,`model_id`);

--
-- Indexes for table `cash_registers`
--
ALTER TABLE `cash_registers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cash_registers_business_id_foreign` (`business_id`),
  ADD KEY `cash_registers_user_id_foreign` (`user_id`),
  ADD KEY `cash_registers_location_id_index` (`location_id`);

--
-- Indexes for table `cash_register_transactions`
--
ALTER TABLE `cash_register_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cash_register_transactions_cash_register_id_foreign` (`cash_register_id`),
  ADD KEY `cash_register_transactions_transaction_id_index` (`transaction_id`),
  ADD KEY `cash_register_transactions_type_index` (`type`),
  ADD KEY `cash_register_transactions_transaction_type_index` (`transaction_type`);

--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `categories_business_id_foreign` (`business_id`),
  ADD KEY `categories_created_by_foreign` (`created_by`),
  ADD KEY `categories_parent_id_index` (`parent_id`),
  ADD KEY `categories_woocommerce_cat_id_index` (`woocommerce_cat_id`);

--
-- Indexes for table `categorizables`
--
ALTER TABLE `categorizables`
  ADD KEY `categorizables_categorizable_type_categorizable_id_index` (`categorizable_type`,`categorizable_id`);

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

--
-- Indexes for table `cms_page_metas`
--
ALTER TABLE `cms_page_metas`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cms_page_metas_cms_page_id_foreign` (`cms_page_id`);

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

--
-- Indexes for table `contacts`
--
ALTER TABLE `contacts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `contacts_business_id_foreign` (`business_id`),
  ADD KEY `contacts_created_by_foreign` (`created_by`),
  ADD KEY `contacts_type_index` (`type`),
  ADD KEY `contacts_contact_status_index` (`contact_status`),
  ADD KEY `contacts_crm_source_index` (`crm_source`),
  ADD KEY `contacts_crm_life_stage_index` (`crm_life_stage`),
  ADD KEY `contacts_converted_by_index` (`converted_by`);

--
-- Indexes for table `crm_call_logs`
--
ALTER TABLE `crm_call_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `crm_call_logs_business_id_index` (`business_id`),
  ADD KEY `crm_call_logs_user_id_index` (`user_id`),
  ADD KEY `crm_call_logs_contact_id_index` (`contact_id`),
  ADD KEY `crm_call_logs_created_by_index` (`created_by`);

--
-- Indexes for table `crm_campaigns`
--
ALTER TABLE `crm_campaigns`
  ADD PRIMARY KEY (`id`),
  ADD KEY `crm_campaigns_business_id_foreign` (`business_id`),
  ADD KEY `crm_campaigns_created_by_index` (`created_by`);

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

--
-- Indexes for table `crm_lead_users`
--
ALTER TABLE `crm_lead_users`
  ADD PRIMARY KEY (`id`),
  ADD KEY `crm_lead_users_user_id_index` (`user_id`),
  ADD KEY `crm_lead_users_contact_id_index` (`contact_id`);

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

--
-- Indexes for table `crm_proposals`
--
ALTER TABLE `crm_proposals`
  ADD PRIMARY KEY (`id`),
  ADD KEY `crm_proposals_business_id_foreign` (`business_id`),
  ADD KEY `crm_proposals_contact_id_foreign` (`contact_id`),
  ADD KEY `crm_proposals_sent_by_index` (`sent_by`);

--
-- Indexes for table `crm_proposal_templates`
--
ALTER TABLE `crm_proposal_templates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `crm_proposal_templates_business_id_foreign` (`business_id`),
  ADD KEY `crm_proposal_templates_created_by_index` (`created_by`);

--
-- Indexes for table `crm_schedules`
--
ALTER TABLE `crm_schedules`
  ADD PRIMARY KEY (`id`),
  ADD KEY `crm_schedules_created_by_index` (`created_by`),
  ADD KEY `crm_schedules_business_id_index` (`business_id`),
  ADD KEY `crm_schedules_contact_id_index` (`contact_id`),
  ADD KEY `crm_schedules_schedule_type_index` (`schedule_type`),
  ADD KEY `crm_schedules_notify_type_index` (`notify_type`);

--
-- Indexes for table `crm_schedule_logs`
--
ALTER TABLE `crm_schedule_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `crm_schedule_logs_schedule_id_foreign` (`schedule_id`),
  ADD KEY `crm_schedule_logs_created_by_index` (`created_by`);

--
-- Indexes for table `crm_schedule_users`
--
ALTER TABLE `crm_schedule_users`
  ADD PRIMARY KEY (`id`),
  ADD KEY `crm_schedule_users_schedule_id_foreign` (`schedule_id`),
  ADD KEY `crm_schedule_users_user_id_index` (`user_id`);

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

--
-- Indexes for table `customer_groups`
--
ALTER TABLE `customer_groups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `customer_groups_business_id_foreign` (`business_id`),
  ADD KEY `customer_groups_created_by_index` (`created_by`),
  ADD KEY `customer_groups_price_calculation_type_index` (`price_calculation_type`),
  ADD KEY `customer_groups_selling_price_group_id_index` (`selling_price_group_id`);

--
-- Indexes for table `dashboard_configurations`
--
ALTER TABLE `dashboard_configurations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `dashboard_configurations_business_id_foreign` (`business_id`);

--
-- Indexes for table `discounts`
--
ALTER TABLE `discounts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `discounts_business_id_index` (`business_id`),
  ADD KEY `discounts_brand_id_index` (`brand_id`),
  ADD KEY `discounts_category_id_index` (`category_id`),
  ADD KEY `discounts_location_id_index` (`location_id`),
  ADD KEY `discounts_priority_index` (`priority`),
  ADD KEY `discounts_spg_index` (`spg`);

--
-- Indexes for table `discount_variations`
--
ALTER TABLE `discount_variations`
  ADD KEY `discount_variations_discount_id_index` (`discount_id`),
  ADD KEY `discount_variations_variation_id_index` (`variation_id`);

--
-- Indexes for table `document_and_notes`
--
ALTER TABLE `document_and_notes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `document_and_notes_business_id_index` (`business_id`),
  ADD KEY `document_and_notes_notable_id_index` (`notable_id`),
  ADD KEY `document_and_notes_created_by_index` (`created_by`);

--
-- Indexes for table `essentials_allowances_and_deductions`
--
ALTER TABLE `essentials_allowances_and_deductions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_allowances_and_deductions_business_id_index` (`business_id`);

--
-- Indexes for table `essentials_attendances`
--
ALTER TABLE `essentials_attendances`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_attendances_user_id_index` (`user_id`),
  ADD KEY `essentials_attendances_business_id_index` (`business_id`),
  ADD KEY `essentials_attendances_essentials_shift_id_index` (`essentials_shift_id`);

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

--
-- Indexes for table `essentials_document_shares`
--
ALTER TABLE `essentials_document_shares`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_document_shares_document_id_index` (`document_id`),
  ADD KEY `essentials_document_shares_value_type_index` (`value_type`);

--
-- Indexes for table `essentials_holidays`
--
ALTER TABLE `essentials_holidays`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_holidays_business_id_index` (`business_id`),
  ADD KEY `essentials_holidays_location_id_index` (`location_id`);

--
-- Indexes for table `essentials_kb`
--
ALTER TABLE `essentials_kb`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_kb_business_id_index` (`business_id`),
  ADD KEY `essentials_kb_parent_id_index` (`parent_id`),
  ADD KEY `essentials_kb_created_by_index` (`created_by`);

--
-- Indexes for table `essentials_kb_users`
--
ALTER TABLE `essentials_kb_users`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_kb_users_kb_id_index` (`kb_id`),
  ADD KEY `essentials_kb_users_user_id_index` (`user_id`);

--
-- Indexes for table `essentials_leaves`
--
ALTER TABLE `essentials_leaves`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_leaves_essentials_leave_type_id_index` (`essentials_leave_type_id`),
  ADD KEY `essentials_leaves_business_id_index` (`business_id`),
  ADD KEY `essentials_leaves_user_id_index` (`user_id`);

--
-- Indexes for table `essentials_leave_types`
--
ALTER TABLE `essentials_leave_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_leave_types_business_id_index` (`business_id`);

--
-- Indexes for table `essentials_messages`
--
ALTER TABLE `essentials_messages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_messages_business_id_index` (`business_id`),
  ADD KEY `essentials_messages_user_id_index` (`user_id`),
  ADD KEY `essentials_messages_location_id_index` (`location_id`);

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

--
-- Indexes for table `essentials_payroll_group_transactions`
--
ALTER TABLE `essentials_payroll_group_transactions`
  ADD KEY `essentials_payroll_group_transactions_payroll_group_id_foreign` (`payroll_group_id`);

--
-- Indexes for table `essentials_reminders`
--
ALTER TABLE `essentials_reminders`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_reminders_business_id_index` (`business_id`),
  ADD KEY `essentials_reminders_user_id_index` (`user_id`);

--
-- Indexes for table `essentials_shifts`
--
ALTER TABLE `essentials_shifts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_shifts_type_index` (`type`),
  ADD KEY `essentials_shifts_business_id_index` (`business_id`);

--
-- Indexes for table `essentials_todo_comments`
--
ALTER TABLE `essentials_todo_comments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_todo_comments_task_id_index` (`task_id`),
  ADD KEY `essentials_todo_comments_comment_by_index` (`comment_by`);

--
-- Indexes for table `essentials_to_dos`
--
ALTER TABLE `essentials_to_dos`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_to_dos_status_index` (`status`),
  ADD KEY `essentials_to_dos_priority_index` (`priority`),
  ADD KEY `essentials_to_dos_created_by_index` (`created_by`),
  ADD KEY `essentials_to_dos_business_id_index` (`business_id`),
  ADD KEY `essentials_to_dos_task_id_index` (`task_id`);

--
-- Indexes for table `essentials_user_allowance_and_deductions`
--
ALTER TABLE `essentials_user_allowance_and_deductions`
  ADD KEY `essentials_user_allowance_and_deductions_user_id_index` (`user_id`),
  ADD KEY `allow_deduct_index` (`allowance_deduction_id`);

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

--
-- Indexes for table `essentials_user_shifts`
--
ALTER TABLE `essentials_user_shifts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `essentials_user_shifts_user_id_index` (`user_id`),
  ADD KEY `essentials_user_shifts_essentials_shift_id_index` (`essentials_shift_id`);

--
-- Indexes for table `expense_categories`
--
ALTER TABLE `expense_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `expense_categories_business_id_foreign` (`business_id`);

--
-- Indexes for table `group_sub_taxes`
--
ALTER TABLE `group_sub_taxes`
  ADD KEY `group_sub_taxes_group_tax_id_foreign` (`group_tax_id`),
  ADD KEY `group_sub_taxes_tax_id_foreign` (`tax_id`);

--
-- Indexes for table `invoice_layouts`
--
ALTER TABLE `invoice_layouts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoice_layouts_business_id_foreign` (`business_id`);

--
-- Indexes for table `invoice_schemes`
--
ALTER TABLE `invoice_schemes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoice_schemes_business_id_foreign` (`business_id`),
  ADD KEY `invoice_schemes_scheme_type_index` (`scheme_type`),
  ADD KEY `invoice_schemes_number_type_index` (`number_type`);

--
-- Indexes for table `media`
--
ALTER TABLE `media`
  ADD PRIMARY KEY (`id`),
  ADD KEY `media_model_type_model_id_index` (`model_type`,`model_id`),
  ADD KEY `media_business_id_index` (`business_id`),
  ADD KEY `media_uploaded_by_index` (`uploaded_by`),
  ADD KEY `media_woocommerce_media_id_index` (`woocommerce_media_id`);

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

--
-- Indexes for table `mfg_recipes`
--
ALTER TABLE `mfg_recipes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `mfg_recipes_product_id_index` (`product_id`),
  ADD KEY `mfg_recipes_variation_id_index` (`variation_id`);

--
-- Indexes for table `mfg_recipe_ingredients`
--
ALTER TABLE `mfg_recipe_ingredients`
  ADD PRIMARY KEY (`id`),
  ADD KEY `mfg_recipe_ingredients_mfg_recipe_id_index` (`mfg_recipe_id`),
  ADD KEY `mfg_recipe_ingredients_variation_id_index` (`variation_id`),
  ADD KEY `mfg_recipe_ingredients_sub_unit_id_index` (`sub_unit_id`);

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

--
-- Indexes for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
  ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
  ADD KEY `model_has_permissions_model_type_model_id_index` (`model_type`,`model_id`);

--
-- Indexes for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
  ADD KEY `model_has_roles_model_type_model_id_index` (`model_type`,`model_id`);

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`);

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

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

--
-- Indexes for table `oauth_personal_access_clients`
--
ALTER TABLE `oauth_personal_access_clients`
  ADD PRIMARY KEY (`id`),
  ADD KEY `oauth_personal_access_clients_client_id_index` (`client_id`);

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

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

--
-- Indexes for table `pjt_invoice_lines`
--
ALTER TABLE `pjt_invoice_lines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pjt_invoice_lines_transaction_id_foreign` (`transaction_id`),
  ADD KEY `pjt_invoice_lines_tax_rate_id_index` (`tax_rate_id`);

--
-- Indexes for table `pjt_projects`
--
ALTER TABLE `pjt_projects`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pjt_projects_business_id_index` (`business_id`),
  ADD KEY `pjt_projects_contact_id_index` (`contact_id`),
  ADD KEY `pjt_projects_lead_id_index` (`lead_id`),
  ADD KEY `pjt_projects_created_by_index` (`created_by`);

--
-- Indexes for table `pjt_project_members`
--
ALTER TABLE `pjt_project_members`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pjt_project_members_project_id_foreign` (`project_id`),
  ADD KEY `pjt_project_members_user_id_index` (`user_id`);

--
-- Indexes for table `pjt_project_tasks`
--
ALTER TABLE `pjt_project_tasks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pjt_project_tasks_project_id_foreign` (`project_id`),
  ADD KEY `pjt_project_tasks_business_id_index` (`business_id`),
  ADD KEY `pjt_project_tasks_created_by_index` (`created_by`);

--
-- Indexes for table `pjt_project_task_comments`
--
ALTER TABLE `pjt_project_task_comments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pjt_project_task_comments_project_task_id_foreign` (`project_task_id`);

--
-- Indexes for table `pjt_project_task_members`
--
ALTER TABLE `pjt_project_task_members`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pjt_project_task_members_project_task_id_foreign` (`project_task_id`),
  ADD KEY `pjt_project_task_members_user_id_index` (`user_id`);

--
-- Indexes for table `pjt_project_time_logs`
--
ALTER TABLE `pjt_project_time_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pjt_project_time_logs_project_id_foreign` (`project_id`),
  ADD KEY `pjt_project_time_logs_project_task_id_foreign` (`project_task_id`),
  ADD KEY `pjt_project_time_logs_user_id_index` (`user_id`),
  ADD KEY `pjt_project_time_logs_created_by_index` (`created_by`);

--
-- Indexes for table `printers`
--
ALTER TABLE `printers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `printers_business_id_foreign` (`business_id`);

--
-- Indexes for table `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`id`),
  ADD KEY `products_brand_id_foreign` (`brand_id`),
  ADD KEY `products_category_id_foreign` (`category_id`),
  ADD KEY `products_sub_category_id_foreign` (`sub_category_id`),
  ADD KEY `products_tax_foreign` (`tax`),
  ADD KEY `products_name_index` (`name`),
  ADD KEY `products_business_id_index` (`business_id`),
  ADD KEY `products_unit_id_index` (`unit_id`),
  ADD KEY `products_created_by_index` (`created_by`),
  ADD KEY `products_warranty_id_index` (`warranty_id`),
  ADD KEY `products_type_index` (`type`),
  ADD KEY `products_tax_type_index` (`tax_type`),
  ADD KEY `products_barcode_type_index` (`barcode_type`),
  ADD KEY `products_repair_model_id_index` (`repair_model_id`),
  ADD KEY `products_woocommerce_product_id_index` (`woocommerce_product_id`),
  ADD KEY `products_woocommerce_media_id_index` (`woocommerce_media_id`),
  ADD KEY `products_secondary_unit_id_index` (`secondary_unit_id`);

--
-- Indexes for table `product_locations`
--
ALTER TABLE `product_locations`
  ADD KEY `product_locations_product_id_index` (`product_id`),
  ADD KEY `product_locations_location_id_index` (`location_id`);

--
-- Indexes for table `product_racks`
--
ALTER TABLE `product_racks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_racks_business_id_index` (`business_id`),
  ADD KEY `product_racks_location_id_index` (`location_id`),
  ADD KEY `product_racks_product_id_index` (`product_id`);

--
-- Indexes for table `product_variations`
--
ALTER TABLE `product_variations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_variations_name_index` (`name`),
  ADD KEY `product_variations_product_id_index` (`product_id`);

--
-- Indexes for table `purchase_lines`
--
ALTER TABLE `purchase_lines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `purchase_lines_transaction_id_foreign` (`transaction_id`),
  ADD KEY `purchase_lines_product_id_foreign` (`product_id`),
  ADD KEY `purchase_lines_variation_id_foreign` (`variation_id`),
  ADD KEY `purchase_lines_tax_id_foreign` (`tax_id`),
  ADD KEY `purchase_lines_sub_unit_id_index` (`sub_unit_id`),
  ADD KEY `purchase_lines_lot_number_index` (`lot_number`);

--
-- Indexes for table `reference_counts`
--
ALTER TABLE `reference_counts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `reference_counts_business_id_index` (`business_id`);

--
-- Indexes for table `repair_device_models`
--
ALTER TABLE `repair_device_models`
  ADD PRIMARY KEY (`id`),
  ADD KEY `repair_device_models_business_id_index` (`business_id`),
  ADD KEY `repair_device_models_brand_id_index` (`brand_id`),
  ADD KEY `repair_device_models_device_id_index` (`device_id`),
  ADD KEY `repair_device_models_created_by_index` (`created_by`);

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

--
-- Indexes for table `res_product_modifier_sets`
--
ALTER TABLE `res_product_modifier_sets`
  ADD KEY `res_product_modifier_sets_modifier_set_id_foreign` (`modifier_set_id`);

--
-- Indexes for table `res_tables`
--
ALTER TABLE `res_tables`
  ADD PRIMARY KEY (`id`),
  ADD KEY `res_tables_business_id_foreign` (`business_id`);

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

--
-- Indexes for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
  ADD PRIMARY KEY (`permission_id`,`role_id`),
  ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);

--
-- Indexes for table `selling_price_groups`
--
ALTER TABLE `selling_price_groups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `selling_price_groups_business_id_foreign` (`business_id`);

--
-- Indexes for table `sessions`
--
ALTER TABLE `sessions`
  ADD UNIQUE KEY `sessions_id_unique` (`id`);

--
-- Indexes for table `stock_adjustment_lines`
--
ALTER TABLE `stock_adjustment_lines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_adjustment_lines_product_id_foreign` (`product_id`),
  ADD KEY `stock_adjustment_lines_variation_id_foreign` (`variation_id`),
  ADD KEY `stock_adjustment_lines_transaction_id_index` (`transaction_id`),
  ADD KEY `stock_adjustment_lines_lot_no_line_id_index` (`lot_no_line_id`);

--
-- Indexes for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `subscriptions_business_id_foreign` (`business_id`),
  ADD KEY `subscriptions_package_id_index` (`package_id`),
  ADD KEY `subscriptions_created_id_index` (`created_id`);

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

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

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

--
-- Indexes for table `tax_rates`
--
ALTER TABLE `tax_rates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `tax_rates_business_id_foreign` (`business_id`),
  ADD KEY `tax_rates_created_by_foreign` (`created_by`),
  ADD KEY `tax_rates_woocommerce_tax_rate_id_index` (`woocommerce_tax_rate_id`);

--
-- Indexes for table `transaction_sell_lines`
--
ALTER TABLE `transaction_sell_lines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `transaction_sell_lines_transaction_id_foreign` (`transaction_id`),
  ADD KEY `transaction_sell_lines_product_id_foreign` (`product_id`),
  ADD KEY `transaction_sell_lines_variation_id_foreign` (`variation_id`),
  ADD KEY `transaction_sell_lines_tax_id_foreign` (`tax_id`),
  ADD KEY `transaction_sell_lines_children_type_index` (`children_type`),
  ADD KEY `transaction_sell_lines_parent_sell_line_id_index` (`parent_sell_line_id`),
  ADD KEY `transaction_sell_lines_line_discount_type_index` (`line_discount_type`),
  ADD KEY `transaction_sell_lines_discount_id_index` (`discount_id`),
  ADD KEY `transaction_sell_lines_lot_no_line_id_index` (`lot_no_line_id`),
  ADD KEY `transaction_sell_lines_sub_unit_id_index` (`sub_unit_id`),
  ADD KEY `transaction_sell_lines_woocommerce_line_items_id_index` (`woocommerce_line_items_id`);

--
-- Indexes for table `transaction_sell_lines_purchase_lines`
--
ALTER TABLE `transaction_sell_lines_purchase_lines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `sell_line_id` (`sell_line_id`),
  ADD KEY `stock_adjustment_line_id` (`stock_adjustment_line_id`),
  ADD KEY `purchase_line_id` (`purchase_line_id`);

--
-- Indexes for table `types_of_services`
--
ALTER TABLE `types_of_services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `types_of_services_business_id_index` (`business_id`);

--
-- Indexes for table `units`
--
ALTER TABLE `units`
  ADD PRIMARY KEY (`id`),
  ADD KEY `units_business_id_foreign` (`business_id`),
  ADD KEY `units_created_by_foreign` (`created_by`),
  ADD KEY `units_base_unit_id_index` (`base_unit_id`);

--
-- Indexes for table `user_contact_access`
--
ALTER TABLE `user_contact_access`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_contact_access_user_id_index` (`user_id`),
  ADD KEY `user_contact_access_contact_id_index` (`contact_id`);

--
-- Indexes for table `variations`
--
ALTER TABLE `variations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `variations_product_id_foreign` (`product_id`),
  ADD KEY `variations_product_variation_id_foreign` (`product_variation_id`),
  ADD KEY `variations_name_index` (`name`),
  ADD KEY `variations_sub_sku_index` (`sub_sku`),
  ADD KEY `variations_variation_value_id_index` (`variation_value_id`),
  ADD KEY `variations_woocommerce_variation_id_index` (`woocommerce_variation_id`);

--
-- Indexes for table `variation_group_prices`
--
ALTER TABLE `variation_group_prices`
  ADD PRIMARY KEY (`id`),
  ADD KEY `variation_group_prices_variation_id_foreign` (`variation_id`),
  ADD KEY `variation_group_prices_price_group_id_foreign` (`price_group_id`);

--
-- Indexes for table `variation_location_details`
--
ALTER TABLE `variation_location_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `variation_location_details_location_id_foreign` (`location_id`),
  ADD KEY `variation_location_details_product_id_index` (`product_id`),
  ADD KEY `variation_location_details_product_variation_id_index` (`product_variation_id`),
  ADD KEY `variation_location_details_variation_id_index` (`variation_id`);

--
-- Indexes for table `variation_templates`
--
ALTER TABLE `variation_templates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `variation_templates_business_id_foreign` (`business_id`),
  ADD KEY `variation_templates_woocommerce_attr_id_index` (`woocommerce_attr_id`);

--
-- Indexes for table `variation_value_templates`
--
ALTER TABLE `variation_value_templates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `variation_value_templates_name_index` (`name`),
  ADD KEY `variation_value_templates_variation_template_id_index` (`variation_template_id`);

--
-- Indexes for table `warranties`
--
ALTER TABLE `warranties`
  ADD PRIMARY KEY (`id`),
  ADD KEY `warranties_business_id_index` (`business_id`),
  ADD KEY `warranties_duration_type_index` (`duration_type`);

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

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

--
-- AUTO_INCREMENT for table `accounts`
--
ALTER TABLE `accounts`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `account_transactions`
--
ALTER TABLE `account_transactions`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `account_types`
--
ALTER TABLE `account_types`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

--
-- AUTO_INCREMENT for table `assets`
--
ALTER TABLE `assets`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `asset_transactions`
--
ALTER TABLE `asset_transactions`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

--
-- AUTO_INCREMENT for table `bookings`
--
ALTER TABLE `bookings`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `brands`
--
ALTER TABLE `brands`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `customer_groups`
--
ALTER TABLE `customer_groups`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `dashboard_configurations`
--
ALTER TABLE `dashboard_configurations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `discounts`
--
ALTER TABLE `discounts`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `document_and_notes`
--
ALTER TABLE `document_and_notes`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `essentials_allowances_and_deductions`
--
ALTER TABLE `essentials_allowances_and_deductions`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `essentials_attendances`
--
ALTER TABLE `essentials_attendances`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `essentials_documents`
--
ALTER TABLE `essentials_documents`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `essentials_document_shares`
--
ALTER TABLE `essentials_document_shares`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `essentials_holidays`
--
ALTER TABLE `essentials_holidays`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

--
-- AUTO_INCREMENT for table `essentials_leaves`
--
ALTER TABLE `essentials_leaves`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `essentials_leave_types`
--
ALTER TABLE `essentials_leave_types`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `essentials_messages`
--
ALTER TABLE `essentials_messages`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `essentials_reminders`
--
ALTER TABLE `essentials_reminders`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `essentials_shifts`
--
ALTER TABLE `essentials_shifts`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `essentials_todo_comments`
--
ALTER TABLE `essentials_todo_comments`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `essentials_to_dos`
--
ALTER TABLE `essentials_to_dos`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `essentials_user_shifts`
--
ALTER TABLE `essentials_user_shifts`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `expense_categories`
--
ALTER TABLE `expense_categories`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

--
-- AUTO_INCREMENT for table `mfg_ingredient_groups`
--
ALTER TABLE `mfg_ingredient_groups`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mfg_recipes`
--
ALTER TABLE `mfg_recipes`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mfg_recipe_ingredients`
--
ALTER TABLE `mfg_recipe_ingredients`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

--
-- AUTO_INCREMENT for table `oauth_personal_access_clients`
--
ALTER TABLE `oauth_personal_access_clients`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

--
-- AUTO_INCREMENT for table `pjt_invoice_lines`
--
ALTER TABLE `pjt_invoice_lines`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pjt_projects`
--
ALTER TABLE `pjt_projects`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pjt_project_members`
--
ALTER TABLE `pjt_project_members`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pjt_project_tasks`
--
ALTER TABLE `pjt_project_tasks`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pjt_project_task_comments`
--
ALTER TABLE `pjt_project_task_comments`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pjt_project_task_members`
--
ALTER TABLE `pjt_project_task_members`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pjt_project_time_logs`
--
ALTER TABLE `pjt_project_time_logs`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `printers`
--
ALTER TABLE `printers`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `product_racks`
--
ALTER TABLE `product_racks`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

--
-- AUTO_INCREMENT for table `repair_device_models`
--
ALTER TABLE `repair_device_models`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `repair_statuses`
--
ALTER TABLE `repair_statuses`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `res_tables`
--
ALTER TABLE `res_tables`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `selling_price_groups`
--
ALTER TABLE `selling_price_groups`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `stock_adjustment_lines`
--
ALTER TABLE `stock_adjustment_lines`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `superadmin_communicator_logs`
--
ALTER TABLE `superadmin_communicator_logs`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `superadmin_frontend_pages`
--
ALTER TABLE `superadmin_frontend_pages`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

--
-- AUTO_INCREMENT for table `types_of_services`
--
ALTER TABLE `types_of_services`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `user_contact_access`
--
ALTER TABLE `user_contact_access`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `variation_group_prices`
--
ALTER TABLE `variation_group_prices`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `variation_templates`
--
ALTER TABLE `variation_templates`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `variation_value_templates`
--
ALTER TABLE `variation_value_templates`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `warranties`
--
ALTER TABLE `warranties`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `woocommerce_sync_logs`
--
ALTER TABLE `woocommerce_sync_logs`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `assets`
--
ALTER TABLE `assets`
  ADD CONSTRAINT `assets_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `assets_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`),
  ADD CONSTRAINT `assets_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `asset_transactions`
--
ALTER TABLE `asset_transactions`
  ADD CONSTRAINT `asset_transactions_asset_id_foreign` FOREIGN KEY (`asset_id`) REFERENCES `assets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `asset_transactions_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `asset_transactions_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `asset_transactions_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `asset_transactions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `asset_transactions_receiver_foreign` FOREIGN KEY (`receiver`) REFERENCES `users` (`id`);

--
-- Constraints for table `barcodes`
--
ALTER TABLE `barcodes`
  ADD CONSTRAINT `barcodes_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `bookings`
--
ALTER TABLE `bookings`
  ADD CONSTRAINT `bookings_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `bookings_contact_id_foreign` FOREIGN KEY (`contact_id`) REFERENCES `contacts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `bookings_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `brands`
--
ALTER TABLE `brands`
  ADD CONSTRAINT `brands_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `brands_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `business_locations`
--
ALTER TABLE `business_locations`
  ADD CONSTRAINT `business_locations_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `business_locations_invoice_layout_id_foreign` FOREIGN KEY (`invoice_layout_id`) REFERENCES `invoice_layouts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `business_locations_invoice_scheme_id_foreign` FOREIGN KEY (`invoice_scheme_id`) REFERENCES `invoice_schemes` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `cash_registers`
--
ALTER TABLE `cash_registers`
  ADD CONSTRAINT `cash_registers_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `cash_registers_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `cash_register_transactions`
--
ALTER TABLE `cash_register_transactions`
  ADD CONSTRAINT `cash_register_transactions_cash_register_id_foreign` FOREIGN KEY (`cash_register_id`) REFERENCES `cash_registers` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `categories`
--
ALTER TABLE `categories`
  ADD CONSTRAINT `categories_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `categories_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `cms_page_metas`
--
ALTER TABLE `cms_page_metas`
  ADD CONSTRAINT `cms_page_metas_cms_page_id_foreign` FOREIGN KEY (`cms_page_id`) REFERENCES `cms_pages` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `contacts`
--
ALTER TABLE `contacts`
  ADD CONSTRAINT `contacts_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `contacts_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `crm_campaigns`
--
ALTER TABLE `crm_campaigns`
  ADD CONSTRAINT `crm_campaigns_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `crm_lead_users`
--
ALTER TABLE `crm_lead_users`
  ADD CONSTRAINT `crm_lead_users_contact_id_foreign` FOREIGN KEY (`contact_id`) REFERENCES `contacts` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `crm_proposals`
--
ALTER TABLE `crm_proposals`
  ADD CONSTRAINT `crm_proposals_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `crm_proposals_contact_id_foreign` FOREIGN KEY (`contact_id`) REFERENCES `contacts` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `crm_proposal_templates`
--
ALTER TABLE `crm_proposal_templates`
  ADD CONSTRAINT `crm_proposal_templates_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `crm_schedules`
--
ALTER TABLE `crm_schedules`
  ADD CONSTRAINT `crm_schedules_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `crm_schedule_logs`
--
ALTER TABLE `crm_schedule_logs`
  ADD CONSTRAINT `crm_schedule_logs_schedule_id_foreign` FOREIGN KEY (`schedule_id`) REFERENCES `crm_schedules` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `crm_schedule_users`
--
ALTER TABLE `crm_schedule_users`
  ADD CONSTRAINT `crm_schedule_users_schedule_id_foreign` FOREIGN KEY (`schedule_id`) REFERENCES `crm_schedules` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `customer_groups`
--
ALTER TABLE `customer_groups`
  ADD CONSTRAINT `customer_groups_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `dashboard_configurations`
--
ALTER TABLE `dashboard_configurations`
  ADD CONSTRAINT `dashboard_configurations_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `essentials_kb`
--
ALTER TABLE `essentials_kb`
  ADD CONSTRAINT `essentials_kb_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `essentials_kb` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `essentials_payroll_group_transactions`
--
ALTER TABLE `essentials_payroll_group_transactions`
  ADD CONSTRAINT `essentials_payroll_group_transactions_payroll_group_id_foreign` FOREIGN KEY (`payroll_group_id`) REFERENCES `essentials_payroll_groups` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `expense_categories`
--
ALTER TABLE `expense_categories`
  ADD CONSTRAINT `expense_categories_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `group_sub_taxes`
--
ALTER TABLE `group_sub_taxes`
  ADD CONSTRAINT `group_sub_taxes_group_tax_id_foreign` FOREIGN KEY (`group_tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `group_sub_taxes_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `invoice_layouts`
--
ALTER TABLE `invoice_layouts`
  ADD CONSTRAINT `invoice_layouts_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `invoice_schemes`
--
ALTER TABLE `invoice_schemes`
  ADD CONSTRAINT `invoice_schemes_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `mfg_recipe_ingredients`
--
ALTER TABLE `mfg_recipe_ingredients`
  ADD CONSTRAINT `mfg_recipe_ingredients_mfg_recipe_id_foreign` FOREIGN KEY (`mfg_recipe_id`) REFERENCES `mfg_recipes` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
  ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `pjt_invoice_lines`
--
ALTER TABLE `pjt_invoice_lines`
  ADD CONSTRAINT `pjt_invoice_lines_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `pjt_project_members`
--
ALTER TABLE `pjt_project_members`
  ADD CONSTRAINT `pjt_project_members_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `pjt_projects` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `pjt_project_tasks`
--
ALTER TABLE `pjt_project_tasks`
  ADD CONSTRAINT `pjt_project_tasks_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `pjt_projects` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `pjt_project_task_comments`
--
ALTER TABLE `pjt_project_task_comments`
  ADD CONSTRAINT `pjt_project_task_comments_project_task_id_foreign` FOREIGN KEY (`project_task_id`) REFERENCES `pjt_project_tasks` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `pjt_project_task_members`
--
ALTER TABLE `pjt_project_task_members`
  ADD CONSTRAINT `pjt_project_task_members_project_task_id_foreign` FOREIGN KEY (`project_task_id`) REFERENCES `pjt_project_tasks` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `pjt_project_time_logs`
--
ALTER TABLE `pjt_project_time_logs`
  ADD CONSTRAINT `pjt_project_time_logs_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `pjt_projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `pjt_project_time_logs_project_task_id_foreign` FOREIGN KEY (`project_task_id`) REFERENCES `pjt_project_tasks` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `printers`
--
ALTER TABLE `printers`
  ADD CONSTRAINT `printers_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `products`
--
ALTER TABLE `products`
  ADD CONSTRAINT `products_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `products_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `products_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `products_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `products_repair_model_id_foreign` FOREIGN KEY (`repair_model_id`) REFERENCES `repair_device_models` (`id`),
  ADD CONSTRAINT `products_sub_category_id_foreign` FOREIGN KEY (`sub_category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `products_tax_foreign` FOREIGN KEY (`tax`) REFERENCES `tax_rates` (`id`),
  ADD CONSTRAINT `products_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `product_variations`
--
ALTER TABLE `product_variations`
  ADD CONSTRAINT `product_variations_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `purchase_lines`
--
ALTER TABLE `purchase_lines`
  ADD CONSTRAINT `purchase_lines_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `purchase_lines_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `purchase_lines_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `purchase_lines_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `repair_device_models`
--
ALTER TABLE `repair_device_models`
  ADD CONSTRAINT `repair_device_models_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`),
  ADD CONSTRAINT `repair_device_models_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `repair_device_models_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `repair_device_models_device_id_foreign` FOREIGN KEY (`device_id`) REFERENCES `categories` (`id`);

--
-- Constraints for table `res_product_modifier_sets`
--
ALTER TABLE `res_product_modifier_sets`
  ADD CONSTRAINT `res_product_modifier_sets_modifier_set_id_foreign` FOREIGN KEY (`modifier_set_id`) REFERENCES `products` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `res_tables`
--
ALTER TABLE `res_tables`
  ADD CONSTRAINT `res_tables_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `roles`
--
ALTER TABLE `roles`
  ADD CONSTRAINT `roles_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
  ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `selling_price_groups`
--
ALTER TABLE `selling_price_groups`
  ADD CONSTRAINT `selling_price_groups_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stock_adjustment_lines`
--
ALTER TABLE `stock_adjustment_lines`
  ADD CONSTRAINT `stock_adjustment_lines_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_adjustment_lines_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_adjustment_lines_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD CONSTRAINT `subscriptions_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `tax_rates`
--
ALTER TABLE `tax_rates`
  ADD CONSTRAINT `tax_rates_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `tax_rates_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `transaction_sell_lines`
--
ALTER TABLE `transaction_sell_lines`
  ADD CONSTRAINT `transaction_sell_lines_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transaction_sell_lines_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transaction_sell_lines_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transaction_sell_lines_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `units`
--
ALTER TABLE `units`
  ADD CONSTRAINT `units_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `units_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `variations`
--
ALTER TABLE `variations`
  ADD CONSTRAINT `variations_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `variations_product_variation_id_foreign` FOREIGN KEY (`product_variation_id`) REFERENCES `product_variations` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `variation_group_prices`
--
ALTER TABLE `variation_group_prices`
  ADD CONSTRAINT `variation_group_prices_price_group_id_foreign` FOREIGN KEY (`price_group_id`) REFERENCES `selling_price_groups` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `variation_group_prices_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `variation_location_details`
--
ALTER TABLE `variation_location_details`
  ADD CONSTRAINT `variation_location_details_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `business_locations` (`id`),
  ADD CONSTRAINT `variation_location_details_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`);

--
-- Constraints for table `variation_templates`
--
ALTER TABLE `variation_templates`
  ADD CONSTRAINT `variation_templates_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `variation_value_templates`
--
ALTER TABLE `variation_value_templates`
  ADD CONSTRAINT `variation_value_templates_variation_template_id_foreign` FOREIGN KEY (`variation_template_id`) REFERENCES `variation_templates` (`id`) ON DELETE CASCADE;
COMMIT;

