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

START TRANSACTION;



--
-- Database: `pmsdev`
--

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

--
-- Table structure for table `accept_estimates`
--

CREATE TABLE `accept_estimates` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `estimate_id` int(10) UNSIGNED NOT NULL,
  `full_name` varchar(191) NOT NULL,
  `email` varchar(191) NOT NULL,
  `signature` 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;

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

--
-- Table structure for table `appreciations`
--

CREATE TABLE `appreciations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `award_id` bigint(20) UNSIGNED NOT NULL,
  `award_to` int(10) UNSIGNED NOT NULL,
  `award_date` date NOT NULL,
  `image` varchar(191) DEFAULT NULL,
  `summary` text DEFAULT NULL,
  `added_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 `attendances`
--

CREATE TABLE `attendances` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `location_id` bigint(20) UNSIGNED DEFAULT NULL,
  `clock_in_time` datetime NOT NULL,
  `clock_out_time` datetime DEFAULT NULL,
  `clock_in_ip` varchar(191) NOT NULL,
  `clock_out_ip` varchar(191) DEFAULT NULL,
  `working_from` varchar(191) DEFAULT 'office',
  `late` enum('yes','no') NOT NULL DEFAULT 'no',
  `half_day` enum('yes','no') NOT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `latitude` decimal(10,8) DEFAULT NULL,
  `longitude` decimal(11,8) DEFAULT NULL,
  `shift_start_time` datetime DEFAULT NULL,
  `shift_end_time` datetime DEFAULT NULL,
  `employee_shift_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `work_from_type` enum('home','office','other') NOT NULL DEFAULT 'other'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `attendance_settings`
--

CREATE TABLE `attendance_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `auto_clock_in` enum('yes','no') NOT NULL DEFAULT 'no',
  `auto_clock_in_location` enum('office','home') NOT NULL DEFAULT 'office',
  `office_start_time` time NOT NULL,
  `office_end_time` time NOT NULL,
  `halfday_mark_time` time DEFAULT NULL,
  `late_mark_duration` tinyint(4) NOT NULL,
  `clockin_in_day` int(11) NOT NULL DEFAULT 1,
  `employee_clock_in_out` enum('yes','no') NOT NULL DEFAULT 'yes',
  `office_open_days` varchar(191) NOT NULL DEFAULT '[1,2,3,4,5]',
  `ip_address` text DEFAULT NULL,
  `radius` int(11) DEFAULT NULL,
  `radius_check` enum('yes','no') NOT NULL DEFAULT 'no',
  `ip_check` enum('yes','no') NOT NULL DEFAULT 'no',
  `alert_after` int(11) DEFAULT NULL,
  `alert_after_status` tinyint(1) NOT NULL DEFAULT 1,
  `save_current_location` tinyint(1) NOT NULL DEFAULT 0,
  `default_employee_shift` bigint(20) UNSIGNED DEFAULT 1,
  `week_start_from` varchar(191) NOT NULL DEFAULT '1',
  `allow_shift_change` tinyint(1) NOT NULL DEFAULT 1,
  `show_clock_in_button` enum('yes','no') NOT NULL DEFAULT 'no',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `monthly_report` tinyint(1) NOT NULL DEFAULT 0,
  `monthly_report_roles` varchar(191) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `attendance_settings`
--

INSERT INTO `attendance_settings` (`id`, `company_id`, `auto_clock_in`, `auto_clock_in_location`, `office_start_time`, `office_end_time`, `halfday_mark_time`, `late_mark_duration`, `clockin_in_day`, `employee_clock_in_out`, `office_open_days`, `ip_address`, `radius`, `radius_check`, `ip_check`, `alert_after`, `alert_after_status`, `save_current_location`, `default_employee_shift`, `week_start_from`, `allow_shift_change`, `show_clock_in_button`, `created_at`, `updated_at`, `monthly_report`, `monthly_report_roles`) VALUES
(1, 1, 'no', 'office', '09:00:00', '18:00:00', NULL, 20, 1, 'yes', '[1,2,3,4,5]', NULL, NULL, 'no', 'no', NULL, 0, 0, 2, '1', 1, 'no', '2024-07-10 05:39:23', '2024-07-10 05:39:23', 0, NULL);

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

--
-- Table structure for table `awards`
--

CREATE TABLE `awards` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `title` varchar(191) NOT NULL,
  `award_icon_id` bigint(20) UNSIGNED DEFAULT NULL,
  `summary` text DEFAULT NULL,
  `status` enum('active','inactive') NOT NULL DEFAULT 'active',
  `color_code` 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;

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

--
-- Table structure for table `award_icons`
--

CREATE TABLE `award_icons` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(191) NOT NULL,
  `icon` 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 `award_icons`
--

INSERT INTO `award_icons` (`id`, `title`, `icon`, `created_at`, `updated_at`) VALUES
(1, 'Trophy', 'trophy-fill', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(2, 'Thumbs Up', 'hand-thumbs-up-fill', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(3, 'Award', 'award-fill', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(4, 'Book', 'book-fill', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(5, 'Gift', 'gift-fill', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(6, 'Watch', 'watch', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(7, 'Cup', 'cup-hot-fill', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(8, 'Puzzle', 'puzzle-fill', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(9, 'Plane', 'airplane-fill', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(10, 'Money', 'piggy-bank-fill', '2024-07-10 05:39:21', '2024-07-10 05:39:21');

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

--
-- Table structure for table `bank_accounts`
--

CREATE TABLE `bank_accounts` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `type` varchar(191) DEFAULT NULL,
  `bank_name` varchar(191) DEFAULT NULL,
  `account_name` varchar(191) DEFAULT NULL,
  `account_number` varchar(191) DEFAULT NULL,
  `account_type` varchar(191) DEFAULT NULL,
  `currency_id` int(10) UNSIGNED DEFAULT NULL,
  `contact_number` varchar(191) DEFAULT NULL,
  `opening_balance` double(15,2) DEFAULT NULL,
  `bank_logo` varchar(191) DEFAULT NULL,
  `status` tinyint(1) DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `bank_balance` double(16,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `bank_transactions`
--

CREATE TABLE `bank_transactions` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `bank_account_id` int(10) UNSIGNED DEFAULT NULL,
  `payment_id` int(10) UNSIGNED DEFAULT NULL,
  `invoice_id` int(10) UNSIGNED DEFAULT NULL,
  `expense_id` int(10) UNSIGNED DEFAULT NULL,
  `amount` double(15,2) DEFAULT NULL,
  `type` enum('Cr','Dr') NOT NULL DEFAULT 'Cr',
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `memo` text DEFAULT NULL,
  `transaction_relation` varchar(191) DEFAULT NULL,
  `transaction_related_to` varchar(191) DEFAULT NULL,
  `title` text DEFAULT NULL,
  `transaction_date` date DEFAULT NULL,
  `bank_balance` double(16,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `carriers`
--

CREATE TABLE `carriers` (
  `id` int(11) NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `status` enum('Publish','Unpublish','Draft') DEFAULT 'Publish' COMMENT 'Default Status Set Publish',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `client_categories`
--

CREATE TABLE `client_categories` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `category_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;

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

--
-- Table structure for table `client_contacts`
--

CREATE TABLE `client_contacts` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `contact_name` varchar(191) NOT NULL,
  `phone` varchar(191) DEFAULT NULL,
  `email` varchar(191) DEFAULT NULL,
  `title` varchar(191) DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `client_details`
--

CREATE TABLE `client_details` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `company_name` varchar(191) DEFAULT NULL,
  `address` text DEFAULT NULL,
  `shipping_address` text DEFAULT NULL,
  `postal_code` varchar(191) DEFAULT NULL,
  `state` varchar(191) DEFAULT NULL,
  `city` varchar(191) DEFAULT NULL,
  `office` varchar(191) DEFAULT NULL,
  `website` varchar(191) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `linkedin` varchar(191) DEFAULT NULL,
  `facebook` varchar(191) DEFAULT NULL,
  `twitter` varchar(191) DEFAULT NULL,
  `skype` varchar(191) DEFAULT NULL,
  `gst_number` varchar(191) DEFAULT NULL,
  `category_id` bigint(20) UNSIGNED DEFAULT NULL,
  `sub_category_id` bigint(20) UNSIGNED DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `company_logo` varchar(191) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `quickbooks_client_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `client_details`
--

INSERT INTO `client_details` (`id`, `company_id`, `user_id`, `company_name`, `address`, `shipping_address`, `postal_code`, `state`, `city`, `office`, `website`, `note`, `linkedin`, `facebook`, `twitter`, `skype`, `gst_number`, `category_id`, `sub_category_id`, `added_by`, `last_updated_by`, `company_logo`, `created_at`, `updated_at`, `quickbooks_client_id`) VALUES
(1, 1, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, '2024-07-10 05:42:05', '2024-07-10 05:42:05', NULL);

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

--
-- Table structure for table `client_docs`
--

CREATE TABLE `client_docs` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `name` varchar(200) NOT NULL,
  `filename` varchar(200) NOT NULL,
  `hashname` varchar(200) NOT NULL,
  `size` varchar(200) DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `client_notes`
--

CREATE TABLE `client_notes` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `title` varchar(191) NOT NULL,
  `type` tinyint(1) NOT NULL DEFAULT 0,
  `member_id` int(10) UNSIGNED DEFAULT NULL,
  `is_client_show` tinyint(1) NOT NULL DEFAULT 0,
  `ask_password` tinyint(1) NOT NULL DEFAULT 0,
  `details` longtext NOT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `client_sub_categories`
--

CREATE TABLE `client_sub_categories` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `category_id` bigint(20) UNSIGNED NOT NULL,
  `category_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;

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

--
-- Table structure for table `client_user_notes`
--

CREATE TABLE `client_user_notes` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `client_note_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 `company_addresses`
--

CREATE TABLE `company_addresses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `address` mediumtext NOT NULL,
  `is_default` tinyint(1) NOT NULL,
  `tax_number` varchar(191) DEFAULT NULL,
  `tax_name` varchar(191) DEFAULT NULL,
  `location` varchar(191) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `latitude` decimal(10,8) DEFAULT NULL,
  `longitude` decimal(11,8) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_addresses`
--

INSERT INTO `company_addresses` (`id`, `company_id`, `address`, `is_default`, `tax_number`, `tax_name`, `location`, `created_at`, `updated_at`, `latitude`, `longitude`) VALUES
(1, 1, 'Your Company address here', 1, NULL, NULL, 'PMS', '2024-07-10 05:39:23', '2024-07-10 05:39:23', NULL, NULL);

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

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

CREATE TABLE `contracts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `contract_number` bigint(20) DEFAULT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `client_id` int(10) UNSIGNED NOT NULL,
  `project_id` int(10) UNSIGNED DEFAULT NULL,
  `subject` varchar(191) NOT NULL,
  `amount` varchar(191) NOT NULL,
  `original_amount` decimal(15,2) NOT NULL,
  `contract_type_id` bigint(20) UNSIGNED DEFAULT NULL,
  `start_date` date NOT NULL,
  `original_start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `original_end_date` date DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `contract_name` varchar(191) DEFAULT NULL,
  `alternate_address` varchar(191) DEFAULT NULL,
  `contract_note` text DEFAULT NULL,
  `cell` varchar(191) DEFAULT NULL,
  `office` varchar(191) DEFAULT NULL,
  `city` varchar(191) DEFAULT NULL,
  `state` varchar(191) DEFAULT NULL,
  `country` varchar(191) DEFAULT NULL,
  `postal_code` varchar(191) DEFAULT NULL,
  `contract_detail` longtext DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `hash` text DEFAULT NULL,
  `currency_id` int(10) UNSIGNED DEFAULT NULL,
  `event_id` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_sign` varchar(191) DEFAULT NULL,
  `sign_date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `contract_discussions`
--

CREATE TABLE `contract_discussions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `contract_id` bigint(20) UNSIGNED NOT NULL,
  `from` int(10) UNSIGNED NOT NULL,
  `message` longtext NOT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `contract_files`
--

CREATE TABLE `contract_files` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `contract_id` bigint(20) UNSIGNED NOT NULL,
  `filename` varchar(191) NOT NULL,
  `hashname` varchar(191) NOT NULL,
  `size` varchar(191) NOT NULL,
  `google_url` varchar(191) NOT NULL,
  `dropbox_link` varchar(191) NOT NULL,
  `external_link_name` varchar(191) NOT NULL,
  `external_link` varchar(191) NOT NULL,
  `description` text DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `contract_renews`
--

CREATE TABLE `contract_renews` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `renewed_by` int(10) UNSIGNED NOT NULL,
  `contract_id` bigint(20) UNSIGNED NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `amount` decimal(12,2) NOT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `contract_signs`
--

CREATE TABLE `contract_signs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `contract_id` bigint(20) UNSIGNED NOT NULL,
  `full_name` varchar(191) NOT NULL,
  `email` varchar(191) NOT NULL,
  `signature` varchar(191) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `place` varchar(191) DEFAULT NULL,
  `date` varchar(191) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `contract_templates`
--

CREATE TABLE `contract_templates` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `contract_template_number` bigint(20) DEFAULT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `subject` varchar(191) NOT NULL,
  `description` longtext DEFAULT NULL,
  `amount` varchar(191) NOT NULL,
  `contract_type_id` bigint(20) UNSIGNED NOT NULL,
  `currency_id` int(10) UNSIGNED DEFAULT NULL,
  `contract_detail` longtext DEFAULT NULL,
  `added_by` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `contract_types`
--

CREATE TABLE `contract_types` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `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;

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

--
-- Table structure for table `conversation`
--

CREATE TABLE `conversation` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_one` int(10) UNSIGNED NOT NULL,
  `user_two` 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 `conversation_reply`
--

CREATE TABLE `conversation_reply` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `conversation_id` int(10) UNSIGNED NOT NULL,
  `reply` text NOT NULL,
  `user_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 `countries`
--

CREATE TABLE `countries` (
  `id` int(10) UNSIGNED NOT NULL,
  `iso` char(2) NOT NULL,
  `name` varchar(80) NOT NULL,
  `nicename` varchar(80) NOT NULL,
  `iso3` char(3) DEFAULT NULL,
  `numcode` smallint(6) DEFAULT NULL,
  `phonecode` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `countries` (`id`, `iso`, `name`, `nicename`, `iso3`, `numcode`, `phonecode`) VALUES
(1, 'AF', 'AFGHANISTAN', 'Afghanistan', 'AFG', 4, 93),
(2, 'AL', 'ALBANIA', 'Albania', 'ALB', 8, 355),
(3, 'DZ', 'ALGERIA', 'Algeria', 'DZA', 12, 213),
(4, 'AS', 'AMERICAN SAMOA', 'American Samoa', 'ASM', 16, 1684),
(5, 'AD', 'ANDORRA', 'Andorra', 'AND', 20, 376),
(6, 'AO', 'ANGOLA', 'Angola', 'AGO', 24, 244),
(7, 'AI', 'ANGUILLA', 'Anguilla', 'AIA', 660, 1264),
(8, 'AQ', 'ANTARCTICA', 'Antarctica', NULL, NULL, 0),
(9, 'AG', 'ANTIGUA AND BARBUDA', 'Antigua and Barbuda', 'ATG', 28, 1268),
(10, 'AR', 'ARGENTINA', 'Argentina', 'ARG', 32, 54),
(11, 'AM', 'ARMENIA', 'Armenia', 'ARM', 51, 374),
(12, 'AW', 'ARUBA', 'Aruba', 'ABW', 533, 297),
(13, 'AU', 'AUSTRALIA', 'Australia', 'AUS', 36, 61),
(14, 'AT', 'AUSTRIA', 'Austria', 'AUT', 40, 43),
(15, 'AZ', 'AZERBAIJAN', 'Azerbaijan', 'AZE', 31, 994),
(16, 'BS', 'BAHAMAS', 'Bahamas', 'BHS', 44, 1242),
(17, 'BH', 'BAHRAIN', 'Bahrain', 'BHR', 48, 973),
(18, 'BD', 'BANGLADESH', 'Bangladesh', 'BGD', 50, 880),
(19, 'BB', 'BARBADOS', 'Barbados', 'BRB', 52, 1246),
(20, 'BY', 'BELARUS', 'Belarus', 'BLR', 112, 375),
(21, 'BE', 'BELGIUM', 'Belgium', 'BEL', 56, 32),
(22, 'BZ', 'BELIZE', 'Belize', 'BLZ', 84, 501),
(23, 'BJ', 'BENIN', 'Benin', 'BEN', 204, 229),
(24, 'BM', 'BERMUDA', 'Bermuda', 'BMU', 60, 1441),
(25, 'BT', 'BHUTAN', 'Bhutan', 'BTN', 64, 975),
(26, 'BO', 'BOLIVIA', 'Bolivia', 'BOL', 68, 591),
(27, 'BA', 'BOSNIA AND HERZEGOVINA', 'Bosnia and Herzegovina', 'BIH', 70, 387),
(28, 'BW', 'BOTSWANA', 'Botswana', 'BWA', 72, 267),
(29, 'BV', 'BOUVET ISLAND', 'Bouvet Island', NULL, NULL, 0),
(30, 'BR', 'BRAZIL', 'Brazil', 'BRA', 76, 55),
(31, 'IO', 'BRITISH INDIAN OCEAN TERRITORY', 'British Indian Ocean Territory', NULL, NULL, 246),
(32, 'BN', 'BRUNEI DARUSSALAM', 'Brunei Darussalam', 'BRN', 96, 673),
(33, 'BG', 'BULGARIA', 'Bulgaria', 'BGR', 100, 359),
(34, 'BF', 'BURKINA FASO', 'Burkina Faso', 'BFA', 854, 226),
(35, 'BI', 'BURUNDI', 'Burundi', 'BDI', 108, 257),
(36, 'KH', 'CAMBODIA', 'Cambodia', 'KHM', 116, 855),
(37, 'CM', 'CAMEROON', 'Cameroon', 'CMR', 120, 237),
(38, 'CA', 'CANADA', 'Canada', 'CAN', 124, 1),
(39, 'CV', 'CAPE VERDE', 'Cape Verde', 'CPV', 132, 238),
(40, 'KY', 'CAYMAN ISLANDS', 'Cayman Islands', 'CYM', 136, 1345),
(41, 'CF', 'CENTRAL AFRICAN REPUBLIC', 'Central African Republic', 'CAF', 140, 236),
(42, 'TD', 'CHAD', 'Chad', 'TCD', 148, 235),
(43, 'CL', 'CHILE', 'Chile', 'CHL', 152, 56),
(44, 'CN', 'CHINA', 'China', 'CHN', 156, 86),
(45, 'CX', 'CHRISTMAS ISLAND', 'Christmas Island', NULL, NULL, 61),
(46, 'CC', 'COCOS (KEELING) ISLANDS', 'Cocos (Keeling) Islands', NULL, NULL, 672),
(47, 'CO', 'COLOMBIA', 'Colombia', 'COL', 170, 57),
(48, 'KM', 'COMOROS', 'Comoros', 'COM', 174, 269),
(49, 'CG', 'CONGO', 'Congo', 'COG', 178, 242),
(50, 'CD', 'CONGO, THE DEMOCRATIC REPUBLIC OF THE', 'Congo, the Democratic Republic of the', 'COD', 180, 242),
(51, 'CK', 'COOK ISLANDS', 'Cook Islands', 'COK', 184, 682),
(52, 'CR', 'COSTA RICA', 'Costa Rica', 'CRI', 188, 506),
(53, 'CI', 'COTE D\'IVOIRE', 'Cote D\'Ivoire', 'CIV', 384, 225),
(54, 'HR', 'CROATIA', 'Croatia', 'HRV', 191, 385),
(55, 'CU', 'CUBA', 'Cuba', 'CUB', 192, 53),
(56, 'CY', 'CYPRUS', 'Cyprus', 'CYP', 196, 357),
(57, 'CZ', 'CZECH REPUBLIC', 'Czech Republic', 'CZE', 203, 420),
(58, 'DK', 'DENMARK', 'Denmark', 'DNK', 208, 45),
(59, 'DJ', 'DJIBOUTI', 'Djibouti', 'DJI', 262, 253),
(60, 'DM', 'DOMINICA', 'Dominica', 'DMA', 212, 1767),
(61, 'DO', 'DOMINICAN REPUBLIC', 'Dominican Republic', 'DOM', 214, 1809),
(62, 'EC', 'ECUADOR', 'Ecuador', 'ECU', 218, 593),
(63, 'EG', 'EGYPT', 'Egypt', 'EGY', 818, 20),
(64, 'SV', 'EL SALVADOR', 'El Salvador', 'SLV', 222, 503),
(65, 'GQ', 'EQUATORIAL GUINEA', 'Equatorial Guinea', 'GNQ', 226, 240),
(66, 'ER', 'ERITREA', 'Eritrea', 'ERI', 232, 291),
(67, 'EE', 'ESTONIA', 'Estonia', 'EST', 233, 372),
(68, 'ET', 'ETHIOPIA', 'Ethiopia', 'ETH', 231, 251),
(69, 'FK', 'FALKLAND ISLANDS (MALVINAS)', 'Falkland Islands (Malvinas)', 'FLK', 238, 500),
(70, 'FO', 'FAROE ISLANDS', 'Faroe Islands', 'FRO', 234, 298),
(71, 'FJ', 'FIJI', 'Fiji', 'FJI', 242, 679),
(72, 'FI', 'FINLAND', 'Finland', 'FIN', 246, 358),
(73, 'FR', 'FRANCE', 'France', 'FRA', 250, 33),
(74, 'GF', 'FRENCH GUIANA', 'French Guiana', 'GUF', 254, 594),
(75, 'PF', 'FRENCH POLYNESIA', 'French Polynesia', 'PYF', 258, 689),
(76, 'TF', 'FRENCH SOUTHERN TERRITORIES', 'French Southern Territories', NULL, NULL, 0),
(77, 'GA', 'GABON', 'Gabon', 'GAB', 266, 241),
(78, 'GM', 'GAMBIA', 'Gambia', 'GMB', 270, 220),
(79, 'GE', 'GEORGIA', 'Georgia', 'GEO', 268, 995),
(80, 'DE', 'GERMANY', 'Germany', 'DEU', 276, 49),
(81, 'GH', 'GHANA', 'Ghana', 'GHA', 288, 233),
(82, 'GI', 'GIBRALTAR', 'Gibraltar', 'GIB', 292, 350),
(83, 'GR', 'GREECE', 'Greece', 'GRC', 300, 30),
(84, 'GL', 'GREENLAND', 'Greenland', 'GRL', 304, 299),
(85, 'GD', 'GRENADA', 'Grenada', 'GRD', 308, 1473),
(86, 'GP', 'GUADELOUPE', 'Guadeloupe', 'GLP', 312, 590),
(87, 'GU', 'GUAM', 'Guam', 'GUM', 316, 1671),
(88, 'GT', 'GUATEMALA', 'Guatemala', 'GTM', 320, 502),
(89, 'GN', 'GUINEA', 'Guinea', 'GIN', 324, 224),
(90, 'GW', 'GUINEA-BISSAU', 'Guinea-Bissau', 'GNB', 624, 245),
(91, 'GY', 'GUYANA', 'Guyana', 'GUY', 328, 592),
(92, 'HT', 'HAITI', 'Haiti', 'HTI', 332, 509),
(93, 'HM', 'HEARD ISLAND AND MCDONALD ISLANDS', 'Heard Island and Mcdonald Islands', NULL, NULL, 0),
(94, 'VA', 'HOLY SEE (VATICAN CITY STATE)', 'Holy See (Vatican City State)', 'VAT', 336, 39),
(95, 'HN', 'HONDURAS', 'Honduras', 'HND', 340, 504),
(96, 'HK', 'HONG KONG', 'Hong Kong', 'HKG', 344, 852),
(97, 'HU', 'HUNGARY', 'Hungary', 'HUN', 348, 36),
(98, 'IS', 'ICELAND', 'Iceland', 'ISL', 352, 354),
(99, 'IN', 'INDIA', 'India', 'IND', 356, 91),
(100, 'ID', 'INDONESIA', 'Indonesia', 'IDN', 360, 62),
(101, 'IR', 'IRAN, ISLAMIC REPUBLIC OF', 'Iran, Islamic Republic of', 'IRN', 364, 98),
(102, 'IQ', 'IRAQ', 'Iraq', 'IRQ', 368, 964),
(103, 'IE', 'IRELAND', 'Ireland', 'IRL', 372, 353),
(104, 'IL', 'ISRAEL', 'Israel', 'ISR', 376, 972),
(105, 'IT', 'ITALY', 'Italy', 'ITA', 380, 39),
(106, 'JM', 'JAMAICA', 'Jamaica', 'JAM', 388, 1876),
(107, 'JP', 'JAPAN', 'Japan', 'JPN', 392, 81),
(108, 'JO', 'JORDAN', 'Jordan', 'JOR', 400, 962),
(109, 'KZ', 'KAZAKHSTAN', 'Kazakhstan', 'KAZ', 398, 7),
(110, 'KE', 'KENYA', 'Kenya', 'KEN', 404, 254),
(111, 'KI', 'KIRIBATI', 'Kiribati', 'KIR', 296, 686),
(112, 'KP', 'KOREA, DEMOCRATIC PEOPLE\'S REPUBLIC OF', 'Korea, Democratic People\'s Republic of', 'PRK', 408, 850),
(113, 'KR', 'KOREA, REPUBLIC OF', 'Korea, Republic of', 'KOR', 410, 82),
(114, 'KW', 'KUWAIT', 'Kuwait', 'KWT', 414, 965),
(115, 'KG', 'KYRGYZSTAN', 'Kyrgyzstan', 'KGZ', 417, 996),
(116, 'LA', 'LAO PEOPLE\'S DEMOCRATIC REPUBLIC', 'Lao People\'s Democratic Republic', 'LAO', 418, 856),
(117, 'LV', 'LATVIA', 'Latvia', 'LVA', 428, 371),
(118, 'LB', 'LEBANON', 'Lebanon', 'LBN', 422, 961),
(119, 'LS', 'LESOTHO', 'Lesotho', 'LSO', 426, 266),
(120, 'LR', 'LIBERIA', 'Liberia', 'LBR', 430, 231),
(121, 'LY', 'LIBYAN ARAB JAMAHIRIYA', 'Libyan Arab Jamahiriya', 'LBY', 434, 218),
(122, 'LI', 'LIECHTENSTEIN', 'Liechtenstein', 'LIE', 438, 423),
(123, 'LT', 'LITHUANIA', 'Lithuania', 'LTU', 440, 370),
(124, 'LU', 'LUXEMBOURG', 'Luxembourg', 'LUX', 442, 352),
(125, 'MO', 'MACAO', 'Macao', 'MAC', 446, 853),
(126, 'MK', 'MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF', 'Macedonia, the Former Yugoslav Republic of', 'MKD', 807, 389),
(127, 'MG', 'MADAGASCAR', 'Madagascar', 'MDG', 450, 261),
(128, 'MW', 'MALAWI', 'Malawi', 'MWI', 454, 265),
(129, 'MY', 'MALAYSIA', 'Malaysia', 'MYS', 458, 60),
(130, 'MV', 'MALDIVES', 'Maldives', 'MDV', 462, 960),
(131, 'ML', 'MALI', 'Mali', 'MLI', 466, 223),
(132, 'MT', 'MALTA', 'Malta', 'MLT', 470, 356),
(133, 'MH', 'MARSHALL ISLANDS', 'Marshall Islands', 'MHL', 584, 692),
(134, 'MQ', 'MARTINIQUE', 'Martinique', 'MTQ', 474, 596),
(135, 'MR', 'MAURITANIA', 'Mauritania', 'MRT', 478, 222),
(136, 'MU', 'MAURITIUS', 'Mauritius', 'MUS', 480, 230),
(137, 'YT', 'MAYOTTE', 'Mayotte', NULL, NULL, 269),
(138, 'MX', 'MEXICO', 'Mexico', 'MEX', 484, 52),
(139, 'FM', 'MICRONESIA, FEDERATED STATES OF', 'Micronesia, Federated States of', 'FSM', 583, 691),
(140, 'MD', 'MOLDOVA, REPUBLIC OF', 'Moldova, Republic of', 'MDA', 498, 373),
(141, 'MC', 'MONACO', 'Monaco', 'MCO', 492, 377),
(142, 'MN', 'MONGOLIA', 'Mongolia', 'MNG', 496, 976),
(143, 'MS', 'MONTSERRAT', 'Montserrat', 'MSR', 500, 1664),
(144, 'MA', 'MOROCCO', 'Morocco', 'MAR', 504, 212),
(145, 'MZ', 'MOZAMBIQUE', 'Mozambique', 'MOZ', 508, 258),
(146, 'MM', 'MYANMAR', 'Myanmar', 'MMR', 104, 95),
(147, 'NA', 'NAMIBIA', 'Namibia', 'NAM', 516, 264),
(148, 'NR', 'NAURU', 'Nauru', 'NRU', 520, 674),
(149, 'NP', 'NEPAL', 'Nepal', 'NPL', 524, 977),
(150, 'NL', 'NETHERLANDS', 'Netherlands', 'NLD', 528, 31),
(151, 'AN', 'NETHERLANDS ANTILLES', 'Netherlands Antilles', 'ANT', 530, 599),
(152, 'NC', 'NEW CALEDONIA', 'New Caledonia', 'NCL', 540, 687),
(153, 'NZ', 'NEW ZEALAND', 'New Zealand', 'NZL', 554, 64),
(154, 'NI', 'NICARAGUA', 'Nicaragua', 'NIC', 558, 505),
(155, 'NE', 'NIGER', 'Niger', 'NER', 562, 227),
(156, 'NG', 'NIGERIA', 'Nigeria', 'NGA', 566, 234),
(157, 'NU', 'NIUE', 'Niue', 'NIU', 570, 683),
(158, 'NF', 'NORFOLK ISLAND', 'Norfolk Island', 'NFK', 574, 672),
(159, 'MP', 'NORTHERN MARIANA ISLANDS', 'Northern Mariana Islands', 'MNP', 580, 1670),
(160, 'NO', 'NORWAY', 'Norway', 'NOR', 578, 47),
(161, 'OM', 'OMAN', 'Oman', 'OMN', 512, 968),
(162, 'PK', 'PAKISTAN', 'Pakistan', 'PAK', 586, 92),
(163, 'PW', 'PALAU', 'Palau', 'PLW', 585, 680),
(164, 'PS', 'PALESTINIAN TERRITORY, OCCUPIED', 'Palestinian Territory, Occupied', NULL, NULL, 970),
(165, 'PA', 'PANAMA', 'Panama', 'PAN', 591, 507),
(166, 'PG', 'PAPUA NEW GUINEA', 'Papua New Guinea', 'PNG', 598, 675),
(167, 'PY', 'PARAGUAY', 'Paraguay', 'PRY', 600, 595),
(168, 'PE', 'PERU', 'Peru', 'PER', 604, 51),
(169, 'PH', 'PHILIPPINES', 'Philippines', 'PHL', 608, 63),
(170, 'PN', 'PITCAIRN', 'Pitcairn', 'PCN', 612, 0),
(171, 'PL', 'POLAND', 'Poland', 'POL', 616, 48),
(172, 'PT', 'PORTUGAL', 'Portugal', 'PRT', 620, 351),
(173, 'PR', 'PUERTO RICO', 'Puerto Rico', 'PRI', 630, 1787),
(174, 'QA', 'QATAR', 'Qatar', 'QAT', 634, 974),
(175, 'RE', 'REUNION', 'Reunion', 'REU', 638, 262),
(176, 'RO', 'ROMANIA', 'Romania', 'ROM', 642, 40),
(177, 'RU', 'RUSSIAN FEDERATION', 'Russian Federation', 'RUS', 643, 70),
(178, 'RW', 'RWANDA', 'Rwanda', 'RWA', 646, 250),
(179, 'SH', 'SAINT HELENA', 'Saint Helena', 'SHN', 654, 290),
(180, 'KN', 'SAINT KITTS AND NEVIS', 'Saint Kitts and Nevis', 'KNA', 659, 1869),
(181, 'LC', 'SAINT LUCIA', 'Saint Lucia', 'LCA', 662, 1758),
(182, 'PM', 'SAINT PIERRE AND MIQUELON', 'Saint Pierre and Miquelon', 'SPM', 666, 508),
(183, 'VC', 'SAINT VINCENT AND THE GRENADINES', 'Saint Vincent and the Grenadines', 'VCT', 670, 1784),
(184, 'WS', 'SAMOA', 'Samoa', 'WSM', 882, 684),
(185, 'SM', 'SAN MARINO', 'San Marino', 'SMR', 674, 378),
(186, 'ST', 'SAO TOME AND PRINCIPE', 'Sao Tome and Principe', 'STP', 678, 239),
(187, 'SA', 'SAUDI ARABIA', 'Saudi Arabia', 'SAU', 682, 966),
(188, 'SN', 'SENEGAL', 'Senegal', 'SEN', 686, 221),
(189, 'CS', 'SERBIA AND MONTENEGRO', 'Serbia and Montenegro', NULL, NULL, 381),
(190, 'SC', 'SEYCHELLES', 'Seychelles', 'SYC', 690, 248),
(191, 'SL', 'SIERRA LEONE', 'Sierra Leone', 'SLE', 694, 232),
(192, 'SG', 'SINGAPORE', 'Singapore', 'SGP', 702, 65),
(193, 'SK', 'SLOVAKIA', 'Slovakia', 'SVK', 703, 421),
(194, 'SI', 'SLOVENIA', 'Slovenia', 'SVN', 705, 386),
(195, 'SB', 'SOLOMON ISLANDS', 'Solomon Islands', 'SLB', 90, 677),
(196, 'SO', 'SOMALIA', 'Somalia', 'SOM', 706, 252),
(197, 'ZA', 'SOUTH AFRICA', 'South Africa', 'ZAF', 710, 27),
(198, 'GS', 'SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS', 'South Georgia and the South Sandwich Islands', NULL, NULL, 0),
(199, 'ES', 'SPAIN', 'Spain', 'ESP', 724, 34),
(200, 'LK', 'SRI LANKA', 'Sri Lanka', 'LKA', 144, 94),
(201, 'SD', 'SUDAN', 'Sudan', 'SDN', 736, 249),
(202, 'SR', 'SURINAME', 'Suriname', 'SUR', 740, 597),
(203, 'SJ', 'SVALBARD AND JAN MAYEN', 'Svalbard and Jan Mayen', 'SJM', 744, 47),
(204, 'SZ', 'SWAZILAND', 'Swaziland', 'SWZ', 748, 268),
(205, 'SE', 'SWEDEN', 'Sweden', 'SWE', 752, 46),
(206, 'CH', 'SWITZERLAND', 'Switzerland', 'CHE', 756, 41),
(207, 'SY', 'SYRIAN ARAB REPUBLIC', 'Syrian Arab Republic', 'SYR', 760, 963),
(208, 'TW', 'TAIWAN, PROVINCE OF CHINA', 'Taiwan, Province of China', 'TWN', 158, 886),
(209, 'TJ', 'TAJIKISTAN', 'Tajikistan', 'TJK', 762, 992),
(210, 'TZ', 'TANZANIA, UNITED REPUBLIC OF', 'Tanzania, United Republic of', 'TZA', 834, 255),
(211, 'TH', 'THAILAND', 'Thailand', 'THA', 764, 66),
(212, 'TL', 'TIMOR-LESTE', 'Timor-Leste', NULL, NULL, 670),
(213, 'TG', 'TOGO', 'Togo', 'TGO', 768, 228),
(214, 'TK', 'TOKELAU', 'Tokelau', 'TKL', 772, 690),
(215, 'TO', 'TONGA', 'Tonga', 'TON', 776, 676),
(216, 'TT', 'TRINIDAD AND TOBAGO', 'Trinidad and Tobago', 'TTO', 780, 1868),
(217, 'TN', 'TUNISIA', 'Tunisia', 'TUN', 788, 216),
(218, 'TR', 'TURKEY', 'Turkey', 'TUR', 792, 90),
(219, 'TM', 'TURKMENISTAN', 'Turkmenistan', 'TKM', 795, 7370),
(220, 'TC', 'TURKS AND CAICOS ISLANDS', 'Turks and Caicos Islands', 'TCA', 796, 1649),
(221, 'TV', 'TUVALU', 'Tuvalu', 'TUV', 798, 688),
(222, 'UG', 'UGANDA', 'Uganda', 'UGA', 800, 256),
(223, 'UA', 'UKRAINE', 'Ukraine', 'UKR', 804, 380),
(224, 'AE', 'UNITED ARAB EMIRATES', 'United Arab Emirates', 'ARE', 784, 971),
(225, 'GB', 'UNITED KINGDOM', 'United Kingdom', 'GBR', 826, 44),
(226, 'US', 'UNITED STATES', 'United States', 'USA', 840, 1),
(227, 'UM', 'UNITED STATES MINOR OUTLYING ISLANDS', 'United States Minor Outlying Islands', NULL, NULL, 1),
(228, 'UY', 'URUGUAY', 'Uruguay', 'URY', 858, 598),
(229, 'UZ', 'UZBEKISTAN', 'Uzbekistan', 'UZB', 860, 998),
(230, 'VU', 'VANUATU', 'Vanuatu', 'VUT', 548, 678),
(231, 'VE', 'VENEZUELA', 'Venezuela', 'VEN', 862, 58),
(232, 'VN', 'VIET NAM', 'Viet Nam', 'VNM', 704, 84),
(233, 'VG', 'VIRGIN ISLANDS, BRITISH', 'Virgin Islands, British', 'VGB', 92, 1284),
(234, 'VI', 'VIRGIN ISLANDS, U.S.', 'Virgin Islands, U.s.', 'VIR', 850, 1340),
(235, 'WF', 'WALLIS AND FUTUNA', 'Wallis and Futuna', 'WLF', 876, 681),
(236, 'EH', 'WESTERN SAHARA', 'Western Sahara', 'ESH', 732, 212),
(237, 'YE', 'YEMEN', 'Yemen', 'YEM', 887, 967),
(238, 'ZM', 'ZAMBIA', 'Zambia', 'ZMB', 894, 260),
(239, 'ZW', 'ZIMBABWE', 'Zimbabwe', 'ZWE', 716, 263),
(240, 'RS', 'SERBIA', 'Serbia', 'SRB', 688, 381),
(241, 'AP', 'ASIA PACIFIC REGION', 'Asia / Pacific Region', '0', 0, 0),
(242, 'ME', 'MONTENEGRO', 'Montenegro', 'MNE', 499, 382),
(243, 'AX', 'ALAND ISLANDS', 'Aland Islands', 'ALA', 248, 358),
(244, 'BQ', 'BONAIRE, SINT EUSTATIUS AND SABA', 'Bonaire, Sint Eustatius and Saba', 'BES', 535, 599),
(245, 'CW', 'CURACAO', 'Curacao', 'CUW', 531, 599),
(246, 'GG', 'GUERNSEY', 'Guernsey', 'GGY', 831, 44),
(247, 'IM', 'ISLE OF MAN', 'Isle of Man', 'IMN', 833, 44),
(248, 'JE', 'JERSEY', 'Jersey', 'JEY', 832, 44),
(249, 'XK', 'KOSOVO', 'Kosovo', '---', 0, 381),
(250, 'BL', 'SAINT BARTHELEMY', 'Saint Barthelemy', 'BLM', 652, 590),
(251, 'MF', 'SAINT MARTIN', 'Saint Martin', 'MAF', 663, 590),
(252, 'SX', 'SINT MAARTEN', 'Sint Maarten', 'SXM', 534, 1),
(253, 'SS', 'SOUTH SUDAN', 'South Sudan', 'SSD', 728, 211);

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

--
-- Table structure for table `credit_notes`
--

CREATE TABLE `credit_notes` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `project_id` int(10) UNSIGNED DEFAULT NULL,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `cn_number` varchar(191) NOT NULL,
  `invoice_id` int(10) UNSIGNED DEFAULT NULL,
  `issue_date` date NOT NULL,
  `due_date` date NOT NULL,
  `discount` double NOT NULL DEFAULT 0,
  `discount_type` enum('percent','fixed') NOT NULL DEFAULT 'percent',
  `sub_total` double(15,2) NOT NULL,
  `total` double(15,2) NOT NULL,
  `adjustment_amount` double(8,2) DEFAULT NULL,
  `currency_id` int(10) UNSIGNED DEFAULT NULL,
  `status` enum('closed','open') NOT NULL DEFAULT 'open',
  `recurring` enum('yes','no') NOT NULL DEFAULT 'no',
  `billing_frequency` varchar(191) DEFAULT NULL,
  `billing_interval` int(11) DEFAULT NULL,
  `billing_cycle` int(11) DEFAULT NULL,
  `file` varchar(191) DEFAULT NULL,
  `file_original_name` varchar(191) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `calculate_tax` enum('after_discount','before_discount') NOT NULL DEFAULT 'after_discount',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `unit_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `credit_note_items`
--

CREATE TABLE `credit_note_items` (
  `id` int(10) UNSIGNED NOT NULL,
  `credit_note_id` int(10) UNSIGNED NOT NULL,
  `item_name` varchar(191) NOT NULL,
  `type` enum('item','discount','tax') NOT NULL DEFAULT 'item',
  `quantity` int(11) NOT NULL,
  `unit_price` double(8,2) NOT NULL,
  `amount` double(8,2) NOT NULL,
  `taxes` varchar(191) DEFAULT NULL,
  `hsn_sac_code` varchar(191) DEFAULT NULL,
  `item_summary` 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 `credit_note_item_images`
--

CREATE TABLE `credit_note_item_images` (
  `id` int(10) UNSIGNED NOT NULL,
  `credit_note_item_id` int(10) UNSIGNED NOT NULL,
  `filename` varchar(191) DEFAULT NULL,
  `hashname` varchar(191) DEFAULT NULL,
  `size` varchar(191) DEFAULT NULL,
  `external_link` 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 `currencies`
--

CREATE TABLE `currencies` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `currency_name` varchar(191) NOT NULL,
  `currency_symbol` varchar(191) DEFAULT NULL,
  `currency_code` varchar(191) NOT NULL,
  `exchange_rate` double DEFAULT NULL,
  `is_cryptocurrency` enum('yes','no') NOT NULL DEFAULT 'no',
  `usd_price` double DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `currency_position` enum('left','right','left_with_space','right_with_space') NOT NULL DEFAULT 'left',
  `no_of_decimal` int(10) UNSIGNED NOT NULL,
  `thousand_separator` varchar(191) DEFAULT NULL,
  `decimal_separator` varchar(191) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `currencies` (`id`, `company_id`, `currency_name`, `currency_symbol`, `currency_code`, `exchange_rate`, `is_cryptocurrency`, `usd_price`, `created_at`, `updated_at`, `currency_position`, `no_of_decimal`, `thousand_separator`, `decimal_separator`) VALUES
(1, 1, 'Dollars', '$', 'USD', 1, 'no', NULL, '2024-07-10 05:39:23', '2024-07-10 05:39:23', 'left', 2, ',', '.'),
(2, 1, 'Pounds', '£', 'GBP', 1, 'no', NULL, '2024-07-10 05:39:23', '2024-07-10 05:39:23', 'left', 2, ',', '.'),
(3, 1, 'Euros', '€', 'EUR', 1, 'no', NULL, '2024-07-10 05:39:23', '2024-07-10 05:39:23', 'left', 2, ',', '.'),
(4, 1, 'Rupee', '₹', 'INR', 1, 'no', NULL, '2024-07-10 05:39:23', '2024-07-10 05:39:23', 'left', 2, ',', '.');

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

--
-- Table structure for table `currency_format_settings`
--

CREATE TABLE `currency_format_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `currency_position` enum('left','right','left_with_space','right_with_space') NOT NULL DEFAULT 'left',
  `no_of_decimal` int(10) UNSIGNED NOT NULL,
  `thousand_separator` varchar(191) DEFAULT NULL,
  `decimal_separator` varchar(191) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `custom_fields`
--

CREATE TABLE `custom_fields` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `custom_field_group_id` int(10) UNSIGNED DEFAULT NULL,
  `label` varchar(100) NOT NULL,
  `name` varchar(100) NOT NULL,
  `type` varchar(10) NOT NULL,
  `required` enum('yes','no') NOT NULL DEFAULT 'no',
  `values` varchar(5000) DEFAULT NULL,
  `export` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `custom_fields_data`
--

CREATE TABLE `custom_fields_data` (
  `id` int(10) UNSIGNED NOT NULL,
  `custom_field_id` int(10) UNSIGNED NOT NULL,
  `model_id` int(10) UNSIGNED NOT NULL,
  `model` varchar(191) DEFAULT NULL,
  `value` varchar(10000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `custom_field_groups`
--

CREATE TABLE `custom_field_groups` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `name` varchar(191) NOT NULL,
  `model` varchar(191) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `custom_field_groups`
--

INSERT INTO `custom_field_groups` (`id`, `company_id`, `name`, `model`) VALUES
(1, 1, 'Client', 'App\\Models\\ClientDetails'),
(2, 1, 'Employee', 'App\\Models\\EmployeeDetails'),
(3, 1, 'Project', 'App\\Models\\Project'),
(4, 1, 'Invoice', 'App\\Models\\Invoice'),
(5, 1, 'Estimate', 'App\\Models\\Estimate'),
(6, 1, 'Task', 'App\\Models\\Task'),
(7, 1, 'Expense', 'App\\Models\\Expense'),
(8, 1, 'Lead', 'App\\Models\\Lead'),
(9, 1, 'Product', 'App\\Models\\Product'),
(10, 1, 'Ticket', 'App\\Models\\Ticket'),
(11, 1, 'Time Log', 'App\\Models\\ProjectTimeLog'),
(12, 1, 'Contract', 'App\\Models\\Contract');

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

--
-- Table structure for table `dashboard_widgets`
--

CREATE TABLE `dashboard_widgets` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `widget_name` varchar(191) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `dashboard_type` 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;

--
-- Dumping data for table `dashboard_widgets`
--

INSERT INTO `dashboard_widgets` (`id`, `company_id`, `widget_name`, `status`, `dashboard_type`, `created_at`, `updated_at`) VALUES
(1, 1, 'total_clients', 1, 'admin-dashboard', NULL, NULL),
(2, 1, 'total_employees', 1, 'admin-dashboard', NULL, NULL),
(3, 1, 'total_projects', 1, 'admin-dashboard', NULL, NULL),
(4, 1, 'total_unpaid_invoices', 1, 'admin-dashboard', NULL, NULL),
(5, 1, 'total_hours_logged', 1, 'admin-dashboard', NULL, NULL),
(6, 1, 'total_pending_tasks', 1, 'admin-dashboard', NULL, NULL),
(7, 1, 'total_today_attendance', 1, 'admin-dashboard', NULL, NULL),
(8, 1, 'total_unresolved_tickets', 1, 'admin-dashboard', NULL, NULL),
(9, 1, 'recent_earnings', 1, 'admin-dashboard', NULL, NULL),
(10, 1, 'settings_leaves', 1, 'admin-dashboard', NULL, NULL),
(11, 1, 'new_tickets', 1, 'admin-dashboard', NULL, NULL),
(12, 1, 'overdue_tasks', 1, 'admin-dashboard', NULL, NULL),
(13, 1, 'pending_follow_up', 1, 'admin-dashboard', NULL, NULL),
(14, 1, 'project_activity_timeline', 1, 'admin-dashboard', NULL, NULL),
(15, 1, 'user_activity_timeline', 1, 'admin-dashboard', NULL, NULL),
(16, 1, 'timelogs', 1, 'admin-dashboard', NULL, NULL),
(17, 1, 'total_clients', 1, 'admin-client-dashboard', NULL, NULL),
(18, 1, 'total_leads', 1, 'admin-client-dashboard', NULL, NULL),
(19, 1, 'total_lead_conversions', 1, 'admin-client-dashboard', NULL, NULL),
(20, 1, 'total_contracts_generated', 1, 'admin-client-dashboard', NULL, NULL),
(21, 1, 'total_contracts_signed', 1, 'admin-client-dashboard', NULL, NULL),
(22, 1, 'client_wise_earnings', 1, 'admin-client-dashboard', NULL, NULL),
(23, 1, 'client_wise_timelogs', 1, 'admin-client-dashboard', NULL, NULL),
(24, 1, 'lead_vs_status', 1, 'admin-client-dashboard', NULL, NULL),
(25, 1, 'lead_vs_source', 1, 'admin-client-dashboard', NULL, NULL),
(26, 1, 'latest_client', 1, 'admin-client-dashboard', NULL, NULL),
(27, 1, 'recent_login_activities', 1, 'admin-client-dashboard', NULL, NULL),
(28, 1, 'total_paid_invoices', 1, 'admin-finance-dashboard', NULL, NULL),
(29, 1, 'total_expenses', 1, 'admin-finance-dashboard', NULL, NULL),
(30, 1, 'total_earnings', 1, 'admin-finance-dashboard', NULL, NULL),
(31, 1, 'total_pending_amount', 1, 'admin-finance-dashboard', NULL, NULL),
(32, 1, 'invoice_overview', 1, 'admin-finance-dashboard', NULL, NULL),
(33, 1, 'estimate_overview', 1, 'admin-finance-dashboard', NULL, NULL),
(34, 1, 'proposal_overview', 1, 'admin-finance-dashboard', NULL, NULL),
(35, 1, 'earnings_by_client', 1, 'admin-finance-dashboard', NULL, NULL),
(36, 1, 'earnings_by_projects', 1, 'admin-finance-dashboard', NULL, NULL),
(37, 1, 'total_unpaid_invoices', 1, 'admin-finance-dashboard', NULL, NULL),
(38, 1, 'total_leaves_approved', 1, 'admin-hr-dashboard', NULL, NULL),
(39, 1, 'total_new_employee', 1, 'admin-hr-dashboard', NULL, NULL),
(40, 1, 'total_employee_exits', 1, 'admin-hr-dashboard', NULL, NULL),
(41, 1, 'average_attendance', 1, 'admin-hr-dashboard', NULL, NULL),
(42, 1, 'department_wise_employee', 1, 'admin-hr-dashboard', NULL, NULL),
(43, 1, 'designation_wise_employee', 1, 'admin-hr-dashboard', NULL, NULL),
(44, 1, 'gender_wise_employee', 1, 'admin-hr-dashboard', NULL, NULL),
(45, 1, 'role_wise_employee', 1, 'admin-hr-dashboard', NULL, NULL),
(46, 1, 'leaves_taken', 1, 'admin-hr-dashboard', NULL, NULL),
(47, 1, 'late_attendance_mark', 1, 'admin-hr-dashboard', NULL, NULL),
(48, 1, 'headcount', 1, 'admin-hr-dashboard', NULL, NULL),
(49, 1, 'joining_vs_attrition', 1, 'admin-hr-dashboard', NULL, NULL),
(50, 1, 'birthday', 1, 'admin-hr-dashboard', NULL, NULL),
(51, 1, 'total_today_attendance', 1, 'admin-hr-dashboard', NULL, NULL),
(52, 1, 'total_project', 1, 'admin-project-dashboard', NULL, NULL),
(53, 1, 'total_hours_logged', 1, 'admin-project-dashboard', NULL, NULL),
(54, 1, 'total_overdue_project', 1, 'admin-project-dashboard', NULL, NULL),
(55, 1, 'status_wise_project', 1, 'admin-project-dashboard', NULL, NULL),
(56, 1, 'pending_milestone', 1, 'admin-project-dashboard', NULL, NULL),
(57, 1, 'total_tickets', 1, 'admin-ticket-dashboard', NULL, NULL),
(58, 1, 'total_unassigned_ticket', 1, 'admin-ticket-dashboard', NULL, NULL),
(59, 1, 'type_wise_ticket', 1, 'admin-ticket-dashboard', NULL, NULL),
(60, 1, 'status_wise_ticket', 1, 'admin-ticket-dashboard', NULL, NULL),
(61, 1, 'channel_wise_ticket', 1, 'admin-ticket-dashboard', NULL, NULL),
(62, 1, 'new_tickets', 1, 'admin-ticket-dashboard', NULL, NULL),
(63, 1, 'profile', 1, 'private-dashboard', NULL, NULL),
(64, 1, 'shift_schedule', 1, 'private-dashboard', NULL, NULL),
(65, 1, 'birthday', 1, 'private-dashboard', NULL, NULL),
(66, 1, 'notices', 1, 'private-dashboard', NULL, NULL),
(67, 1, 'tasks', 1, 'private-dashboard', NULL, NULL),
(68, 1, 'projects', 1, 'private-dashboard', NULL, NULL),
(69, 1, 'my_task', 1, 'private-dashboard', NULL, NULL),
(70, 1, 'my_calender', 1, 'private-dashboard', NULL, NULL),
(71, 1, 'week_timelog', 1, 'private-dashboard', NULL, NULL),
(72, 1, 'leave', 1, 'private-dashboard', NULL, NULL),
(73, 1, 'lead', 1, 'private-dashboard', NULL, NULL),
(74, 1, 'work_from_home', 1, 'private-dashboard', NULL, NULL),
(75, 1, 'appreciation', 1, 'private-dashboard', NULL, NULL),
(76, 1, 'work_anniversary', 1, 'private-dashboard', NULL, NULL),
(77, 1, 'ticket', 1, 'private-dashboard', NULL, NULL),
(78, 1, 'notice_period_duration', 1, 'private-dashboard', NULL, NULL),
(79, 1, 'probation_date', 1, 'private-dashboard', NULL, NULL),
(80, 1, 'contract_date', 1, 'private-dashboard', NULL, NULL),
(81, 1, 'internship_date', 1, 'private-dashboard', NULL, NULL);

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

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

CREATE TABLE `database_backups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `filename` varchar(191) DEFAULT NULL,
  `size` varchar(191) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `database_backup_cron_settings`
--

CREATE TABLE `database_backup_cron_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `status` enum('active','inactive') NOT NULL DEFAULT 'inactive',
  `hour_of_day` time DEFAULT NULL,
  `backup_after_days` varchar(191) DEFAULT NULL,
  `delete_backup_after_days` varchar(191) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `database_backup_cron_settings`
--

INSERT INTO `database_backup_cron_settings` (`id`, `status`, `hour_of_day`, `backup_after_days`, `delete_backup_after_days`) VALUES
(1, 'inactive', '00:00:00', '0', '0');

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

--
-- Table structure for table `designations`
--

CREATE TABLE `designations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `name` varchar(191) NOT NULL,
  `parent_id` int(10) UNSIGNED DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `discussions`
--

CREATE TABLE `discussions` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `discussion_category_id` int(10) UNSIGNED DEFAULT 1,
  `project_id` int(10) UNSIGNED DEFAULT NULL,
  `title` varchar(191) NOT NULL,
  `color` varchar(20) DEFAULT '#232629',
  `user_id` int(10) UNSIGNED NOT NULL,
  `pinned` tinyint(1) NOT NULL DEFAULT 0,
  `closed` tinyint(1) NOT NULL DEFAULT 0,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `last_reply_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `best_answer_id` int(10) UNSIGNED DEFAULT NULL,
  `last_reply_by_id` int(10) UNSIGNED DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `discussion_categories`
--

CREATE TABLE `discussion_categories` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `order` int(11) NOT NULL DEFAULT 1,
  `name` varchar(191) NOT NULL,
  `color` varchar(20) 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 `discussion_categories`
--

INSERT INTO `discussion_categories` (`id`, `company_id`, `order`, `name`, `color`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 'General', '#3498DB', '2024-07-10 05:39:23', '2024-07-10 05:39:23');

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

--
-- Table structure for table `discussion_files`
--

CREATE TABLE `discussion_files` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `discussion_id` int(10) UNSIGNED DEFAULT NULL,
  `discussion_reply_id` int(10) UNSIGNED DEFAULT NULL,
  `filename` varchar(191) NOT NULL,
  `description` text DEFAULT NULL,
  `google_url` varchar(191) DEFAULT NULL,
  `hashname` varchar(191) DEFAULT NULL,
  `size` varchar(191) DEFAULT NULL,
  `dropbox_link` varchar(191) DEFAULT NULL,
  `external_link_name` 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 `discussion_replies`
--

CREATE TABLE `discussion_replies` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `discussion_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `body` longtext 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 `email_notification_settings`
--

CREATE TABLE `email_notification_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `slug` varchar(191) DEFAULT NULL,
  `setting_name` varchar(191) NOT NULL,
  `send_email` enum('yes','no') NOT NULL DEFAULT 'no',
  `send_slack` enum('yes','no') NOT NULL DEFAULT 'no',
  `send_push` enum('yes','no') NOT NULL DEFAULT 'no'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `email_notification_settings`
--

INSERT INTO `email_notification_settings` (`id`, `company_id`, `created_at`, `updated_at`, `slug`, `setting_name`, `send_email`, `send_slack`, `send_push`) VALUES
(1, 1, NULL, NULL, 'new-expenseadded-by-admin', 'New Expense/Added by Admin', 'yes', 'no', 'no'),
(2, 1, NULL, NULL, 'new-expenseadded-by-member', 'New Expense/Added by Member', 'yes', 'no', 'no'),
(3, 1, NULL, NULL, 'expense-status-changed', 'Expense Status Changed', 'yes', 'no', 'no'),
(4, 1, NULL, NULL, 'new-support-ticket-request', 'New Support Ticket Request', 'yes', 'no', 'no'),
(5, 1, NULL, NULL, 'new-leave-application', 'New Leave Application', 'yes', 'no', 'no'),
(6, 1, NULL, NULL, 'task-completed', 'Task Completed', 'yes', 'no', 'no'),
(7, 1, NULL, NULL, 'invoice-createupdate-notification', 'Invoice Create/Update Notification', 'yes', 'no', 'no'),
(8, 1, NULL, NULL, 'discussion-reply', 'Discussion Reply', 'yes', 'no', 'no'),
(9, 1, NULL, NULL, 'new-product-purchase-request', 'New Product Purchase Request', 'yes', 'no', 'no'),
(10, 1, NULL, NULL, 'lead-notification', 'Lead notification', 'yes', 'no', 'no'),
(11, 1, NULL, NULL, 'order-createupdate-notification', 'Order Create/Update Notification', 'no', 'no', 'no'),
(12, 1, NULL, NULL, 'user-join-via-invitation', 'User Join via Invitation', 'no', 'no', 'no'),
(13, 1, NULL, NULL, 'follow-up-reminder', 'Follow Up Reminder', 'no', 'no', 'no'),
(14, 1, NULL, NULL, 'user-registrationadded-by-admin', 'User Registration/Added by Admin', 'yes', 'no', 'no'),
(15, 1, NULL, NULL, 'employee-assign-to-project', 'Employee Assign to Project', 'yes', 'no', 'no'),
(16, 1, NULL, NULL, 'new-notice-published', 'New Notice Published', 'no', 'no', 'no'),
(17, 1, NULL, NULL, 'user-assign-to-task', 'User Assign to Task', 'yes', 'no', 'no'),
(18, 1, NULL, NULL, 'birthday-notification', 'Birthday notification', 'yes', 'yes', 'no'),
(19, 1, NULL, NULL, 'payment-notification', 'Payment Notification', 'yes', 'no', 'no'),
(20, 1, NULL, NULL, 'appreciation-notification', 'Employee Appreciation', 'yes', 'no', 'no'),
(21, 1, NULL, NULL, 'clock-in-notification', 'Clock In Notification', 'no', 'no', 'no'),
(22, 1, NULL, NULL, 'holiday-notification', 'Holiday Notification', 'no', 'no', 'no'),
(23, 1, NULL, NULL, 'estimate-notification', 'Estimate Notification', 'yes', 'no', 'no'),
(24, 1, NULL, NULL, 'event-notification', 'Event Notification', 'yes', 'no', 'no'),
(25, 1, NULL, NULL, 'message-notification', 'Message Notification', 'yes', 'no', 'no');

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

--
-- Table structure for table `emergency_contacts`
--

CREATE TABLE `emergency_contacts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) DEFAULT NULL,
  `email` varchar(191) DEFAULT NULL,
  `mobile` varchar(191) DEFAULT NULL,
  `relation` varchar(191) DEFAULT NULL,
  `address` varchar(191) DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `employee_details`
--

CREATE TABLE `employee_details` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `employee_id` varchar(191) DEFAULT NULL,
  `address` text DEFAULT NULL,
  `hourly_rate` double DEFAULT NULL,
  `slack_username` varchar(191) DEFAULT NULL,
  `department_id` int(10) UNSIGNED DEFAULT NULL,
  `designation_id` bigint(20) UNSIGNED DEFAULT NULL,
  `joining_date` timestamp NOT NULL DEFAULT current_timestamp(),
  `last_date` date DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `attendance_reminder` date DEFAULT NULL,
  `date_of_birth` date DEFAULT NULL,
  `calendar_view` text DEFAULT NULL,
  `about_me` text DEFAULT NULL,
  `reporting_to` int(10) UNSIGNED DEFAULT NULL,
  `contract_end_date` date DEFAULT NULL,
  `internship_end_date` date DEFAULT NULL,
  `employment_type` varchar(191) DEFAULT NULL,
  `marriage_anniversary_date` date DEFAULT NULL,
  `marital_status` varchar(191) DEFAULT NULL,
  `notice_period_end_date` date DEFAULT NULL,
  `notice_period_start_date` date DEFAULT NULL,
  `probation_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;

--
-- Dumping data for table `employee_details`
--

INSERT INTO `employee_details` (`id`, `company_id`, `user_id`, `employee_id`, `address`, `hourly_rate`, `slack_username`, `department_id`, `designation_id`, `joining_date`, `last_date`, `added_by`, `last_updated_by`, `attendance_reminder`, `date_of_birth`, `calendar_view`, `about_me`, `reporting_to`, `contract_end_date`, `internship_end_date`, `employment_type`, `marriage_anniversary_date`, `marital_status`, `notice_period_end_date`, `notice_period_start_date`, `probation_end_date`, `created_at`, `updated_at`) VALUES
(1, 1, 1, '1', NULL, NULL, NULL, NULL, NULL, '2024-07-10 11:39:23', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-07-10 05:39:23', '2024-07-10 05:39:23');

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

--
-- Table structure for table `employee_docs`
--

CREATE TABLE `employee_docs` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `name` varchar(200) NOT NULL,
  `filename` varchar(200) NOT NULL,
  `hashname` varchar(200) NOT NULL,
  `size` varchar(200) DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `employee_leave_quotas`
--

CREATE TABLE `employee_leave_quotas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `leave_type_id` int(10) UNSIGNED NOT NULL,
  `no_of_leaves` double 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 `employee_leave_quotas`
--

INSERT INTO `employee_leave_quotas` (`id`, `user_id`, `leave_type_id`, `no_of_leaves`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 5, '2024-07-10 05:39:23', '2024-07-10 05:39:23'),
(2, 1, 2, 5, '2024-07-10 05:39:23', '2024-07-10 05:39:23'),
(3, 1, 3, 5, '2024-07-10 05:39:23', '2024-07-10 05:39:23');

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

--
-- Table structure for table `employee_shifts`
--

CREATE TABLE `employee_shifts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `shift_name` varchar(191) NOT NULL,
  `shift_short_code` varchar(191) NOT NULL,
  `color` varchar(191) NOT NULL,
  `office_start_time` time NOT NULL,
  `office_end_time` time NOT NULL,
  `halfday_mark_time` time DEFAULT NULL,
  `late_mark_duration` tinyint(4) NOT NULL,
  `clockin_in_day` tinyint(4) NOT NULL,
  `office_open_days` text 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 `employee_shifts`
--

INSERT INTO `employee_shifts` (`id`, `company_id`, `shift_name`, `shift_short_code`, `color`, `office_start_time`, `office_end_time`, `halfday_mark_time`, `late_mark_duration`, `clockin_in_day`, `office_open_days`, `created_at`, `updated_at`) VALUES
(1, 1, 'Day Off', 'DO', '', '00:00:00', '00:00:00', NULL, 0, 0, '', '2024-07-10 05:39:23', '2024-07-10 05:39:23'),
(2, 1, 'General Shift', 'GS', '#99C7F1', '09:00:00', '18:00:00', NULL, 20, 2, '[\"1\",\"2\",\"3\",\"4\",\"5\"]', '2024-07-10 05:39:23', '2024-07-10 05:39:23');

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

--
-- Table structure for table `employee_shift_change_requests`
--

CREATE TABLE `employee_shift_change_requests` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `shift_schedule_id` bigint(20) UNSIGNED NOT NULL,
  `employee_shift_id` bigint(20) UNSIGNED NOT NULL,
  `status` enum('waiting','accepted','rejected') NOT NULL DEFAULT 'waiting',
  `reason` 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 `employee_shift_schedules`
--

CREATE TABLE `employee_shift_schedules` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `employee_shift_id` bigint(20) UNSIGNED NOT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `shift_start_time` datetime DEFAULT NULL,
  `shift_end_time` datetime DEFAULT NULL,
  `remarks` 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 `employee_skills`
--

CREATE TABLE `employee_skills` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `skill_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 `employee_teams`
--

CREATE TABLE `employee_teams` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `team_id` int(10) UNSIGNED NOT NULL,
  `user_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 `estimates`
--

CREATE TABLE `estimates` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `client_id` int(10) UNSIGNED NOT NULL,
  `estimate_number` bigint(20) DEFAULT NULL,
  `valid_till` date NOT NULL,
  `sub_total` double(16,2) NOT NULL,
  `discount` double NOT NULL DEFAULT 0,
  `discount_type` enum('percent','fixed') NOT NULL DEFAULT 'percent',
  `total` double(16,2) NOT NULL,
  `currency_id` int(10) UNSIGNED DEFAULT NULL,
  `status` enum('declined','accepted','waiting','sent','draft','canceled') NOT NULL DEFAULT 'waiting',
  `note` mediumtext DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `send_status` tinyint(1) NOT NULL DEFAULT 1,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `hash` text DEFAULT NULL,
  `calculate_tax` enum('after_discount','before_discount') NOT NULL DEFAULT 'after_discount',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `last_viewed` timestamp NULL DEFAULT NULL,
  `ip_address` varchar(191) DEFAULT NULL,
  `unit_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `estimate_items`
--

CREATE TABLE `estimate_items` (
  `id` int(10) UNSIGNED NOT NULL,
  `estimate_id` int(10) UNSIGNED NOT NULL,
  `item_name` varchar(191) NOT NULL,
  `item_summary` text DEFAULT NULL,
  `type` enum('item','discount','tax') NOT NULL DEFAULT 'item',
  `quantity` double(16,2) NOT NULL,
  `unit_price` double(16,2) NOT NULL,
  `amount` double(16,2) NOT NULL,
  `taxes` varchar(191) DEFAULT NULL,
  `hsn_sac_code` 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 `estimate_item_images`
--

CREATE TABLE `estimate_item_images` (
  `id` int(10) UNSIGNED NOT NULL,
  `estimate_item_id` int(10) UNSIGNED NOT NULL,
  `filename` varchar(191) NOT NULL,
  `hashname` varchar(191) DEFAULT NULL,
  `size` varchar(191) DEFAULT NULL,
  `external_link` 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 `estimate_templates`
--

CREATE TABLE `estimate_templates` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `name` varchar(191) NOT NULL,
  `sub_total` double NOT NULL,
  `total` double NOT NULL,
  `currency_id` int(10) UNSIGNED DEFAULT NULL,
  `discount_type` enum('percent','fixed') NOT NULL,
  `discount` double NOT NULL,
  `invoice_convert` tinyint(1) NOT NULL DEFAULT 0,
  `status` enum('declined','accepted','waiting') NOT NULL DEFAULT 'waiting',
  `note` mediumtext DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `calculate_tax` enum('after_discount','before_discount') NOT NULL DEFAULT 'after_discount',
  `client_comment` text DEFAULT NULL,
  `signature_approval` tinyint(1) NOT NULL DEFAULT 1,
  `hash` text DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `unit_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `estimate_template_items`
--

CREATE TABLE `estimate_template_items` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `estimate_template_id` bigint(20) UNSIGNED NOT NULL,
  `hsn_sac_code` varchar(191) DEFAULT NULL,
  `item_name` varchar(191) NOT NULL,
  `type` enum('item','discount','tax') NOT NULL DEFAULT 'item',
  `quantity` tinyint(4) NOT NULL,
  `unit_price` double NOT NULL,
  `amount` double NOT NULL,
  `item_summary` text DEFAULT NULL,
  `taxes` 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 `estimate_template_item_images`
--

CREATE TABLE `estimate_template_item_images` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `estimate_template_item_id` int(10) UNSIGNED NOT NULL,
  `filename` varchar(191) NOT NULL,
  `hashname` varchar(191) DEFAULT NULL,
  `size` varchar(191) DEFAULT NULL,
  `external_link` 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 `events`
--

CREATE TABLE `events` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `event_name` varchar(191) NOT NULL,
  `label_color` varchar(191) NOT NULL,
  `where` varchar(191) NOT NULL,
  `description` mediumtext NOT NULL,
  `start_date_time` datetime NOT NULL,
  `end_date_time` datetime NOT NULL,
  `repeat` enum('yes','no') NOT NULL DEFAULT 'no',
  `repeat_every` int(11) DEFAULT NULL,
  `repeat_cycles` int(11) DEFAULT NULL,
  `repeat_type` enum('day','week','month','year') NOT NULL DEFAULT 'day',
  `send_reminder` enum('yes','no') NOT NULL DEFAULT 'no',
  `remind_time` int(11) DEFAULT NULL,
  `remind_type` enum('day','hour','minute') NOT NULL DEFAULT 'day',
  `event_link` varchar(191) DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `event_id` 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 `event_attendees`
--

CREATE TABLE `event_attendees` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `event_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 `event_files`
--

CREATE TABLE `event_files` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `event_id` int(10) UNSIGNED NOT NULL,
  `filename` varchar(200) DEFAULT NULL,
  `hashname` varchar(200) DEFAULT NULL,
  `size` varchar(200) DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

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

CREATE TABLE `expenses` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `item_name` varchar(191) NOT NULL,
  `purchase_date` date NOT NULL,
  `purchase_from` varchar(191) DEFAULT NULL,
  `price` double(16,2) NOT NULL,
  `currency_id` int(10) UNSIGNED NOT NULL,
  `default_currency_id` int(10) UNSIGNED DEFAULT NULL,
  `exchange_rate` double DEFAULT NULL,
  `project_id` int(10) UNSIGNED DEFAULT NULL,
  `bill` varchar(191) DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `status` enum('pending','approved','rejected') NOT NULL DEFAULT 'pending',
  `can_claim` tinyint(1) NOT NULL DEFAULT 1,
  `category_id` bigint(20) UNSIGNED DEFAULT NULL,
  `expenses_recurring_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `description` text DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `approver_id` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `bank_account_id` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `expenses_category`
--

CREATE TABLE `expenses_category` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `category_name` varchar(191) NOT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `expenses_category_roles`
--

CREATE TABLE `expenses_category_roles` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `expenses_category_id` bigint(20) UNSIGNED DEFAULT NULL,
  `role_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 `expenses_recurring`
--

CREATE TABLE `expenses_recurring` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `category_id` bigint(20) UNSIGNED DEFAULT NULL,
  `currency_id` int(10) UNSIGNED DEFAULT NULL,
  `project_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `item_name` varchar(191) NOT NULL,
  `day_of_month` int(11) DEFAULT 1,
  `day_of_week` int(11) DEFAULT 1,
  `payment_method` varchar(191) DEFAULT NULL,
  `rotation` enum('monthly','weekly','bi-weekly','quarterly','half-yearly','annually','daily') NOT NULL,
  `billing_cycle` int(11) DEFAULT NULL,
  `issue_date` date NOT NULL,
  `next_expense_date` date DEFAULT NULL,
  `unlimited_recurring` tinyint(1) NOT NULL DEFAULT 0,
  `price` double NOT NULL,
  `bill` varchar(191) DEFAULT NULL,
  `status` enum('active','inactive') NOT NULL DEFAULT 'active',
  `description` text DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `purchase_from` varchar(191) DEFAULT NULL,
  `immediate_expense` 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 `failed_jobs`
--

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

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

--
-- Table structure for table `file_storage`
--

CREATE TABLE `file_storage` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `path` varchar(191) NOT NULL,
  `filename` varchar(191) NOT NULL,
  `type` varchar(50) DEFAULT NULL,
  `size` int(10) UNSIGNED NOT NULL,
  `storage_location` enum('local','aws_s3','digitalocean','wasabi') NOT NULL DEFAULT 'local',
  `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 `file_storage_settings`
--

CREATE TABLE `file_storage_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `filesystem` varchar(191) NOT NULL,
  `auth_keys` text DEFAULT NULL,
  `status` enum('enabled','disabled') NOT NULL DEFAULT 'disabled',
  `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 `file_storage_settings`
--

INSERT INTO `file_storage_settings` (`id`, `filesystem`, `auth_keys`, `status`, `created_at`, `updated_at`) VALUES
(1, 'local', NULL, 'enabled', '2024-07-10 05:39:21', '2024-07-10 05:39:21');

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

--
-- Table structure for table `flags`
--

CREATE TABLE `flags` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `capital` varchar(191) DEFAULT NULL,
  `code` varchar(191) DEFAULT NULL,
  `continent` varchar(191) DEFAULT NULL,
  `name` varchar(191) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `flags`
--

INSERT INTO `flags` (`id`, `capital`, `code`, `continent`, `name`) VALUES
(1, 'Kabul', 'af', 'Asia', 'Afghanistan'),
(2, 'Mariehamn', 'ax', 'Europe', 'Aland Islands'),
(3, 'Tirana', 'al', 'Europe', 'Albania'),
(4, 'Algiers', 'dz', 'Africa', 'Algeria'),
(5, 'Pago Pago', 'as', 'Oceania', 'American Samoa'),
(6, 'Andorra la Vella', 'ad', 'Europe', 'Andorra'),
(7, 'Luanda', 'ao', 'Africa', 'Angola'),
(8, 'The Valley', 'ai', 'North America', 'Anguilla'),
(9, '', 'aq', '', 'Antarctica'),
(10, 'St. John\'s', 'ag', 'North America', 'Antigua and Barbuda'),
(11, 'Buenos Aires', 'ar', 'South America', 'Argentina'),
(12, 'Yerevan', 'am', 'Asia', 'Armenia'),
(13, 'Oranjestad', 'aw', 'South America', 'Aruba'),
(14, 'Georgetown', 'ac', 'Africa', 'Ascension Island'),
(15, 'Canberra', 'au', 'Oceania', 'Australia'),
(16, 'Vienna', 'at', 'Europe', 'Austria'),
(17, 'Baku', 'az', 'Asia', 'Azerbaijan'),
(18, 'Nassau', 'bs', 'North America', 'Bahamas'),
(19, 'Manama', 'bh', 'Asia', 'Bahrain'),
(20, 'Dhaka', 'bd', 'Asia', 'Bangladesh'),
(21, 'Bridgetown', 'bb', 'North America', 'Barbados'),
(22, 'Minsk', 'by', 'Europe', 'Belarus'),
(23, 'Brussels', 'be', 'Europe', 'Belgium'),
(24, 'Belmopan', 'bz', 'North America', 'Belize'),
(25, 'Porto-Novo', 'bj', 'Africa', 'Benin'),
(26, 'Hamilton', 'bm', 'North America', 'Bermuda'),
(27, 'Thimphu', 'bt', 'Asia', 'Bhutan'),
(28, 'Sucre', 'bo', 'South America', 'Bolivia'),
(29, 'Kralendijk', 'bq', 'South America', 'Bonaire, Sint Eustatius and Saba'),
(30, 'Sarajevo', 'ba', 'Europe', 'Bosnia and Herzegovina'),
(31, 'Gaborone', 'bw', 'Africa', 'Botswana'),
(32, '', 'bv', '', 'Bouvet Island'),
(33, 'Brasília', 'br', 'South America', 'Brazil'),
(34, 'Diego Garcia', 'io', 'Asia', 'British Indian Ocean Territory'),
(35, 'Bandar Seri Begawan', 'bn', 'Asia', 'Brunei Darussalam'),
(36, 'Sofia', 'bg', 'Europe', 'Bulgaria'),
(37, 'Ouagadougou', 'bf', 'Africa', 'Burkina Faso'),
(38, 'Bujumbura', 'bi', 'Africa', 'Burundi'),
(39, 'Praia', 'cv', 'Africa', 'Cabo Verde'),
(40, 'Phnom Penh', 'kh', 'Asia', 'Cambodia'),
(41, 'Yaoundé', 'cm', 'Africa', 'Cameroon'),
(42, 'Ottawa', 'ca', 'North America', 'Canada'),
(43, '', 'ic', '', 'Canary Islands'),
(44, '', 'es-ct', '', 'Catalonia'),
(45, 'George Town', 'ky', 'North America', 'Cayman Islands'),
(46, 'Bangui', 'cf', 'Africa', 'Central African Republic'),
(47, '', 'cefta', '', 'Central European Free Trade Agreement'),
(48, '', 'ea', '', 'Ceuta & Melilla'),
(49, 'N\'Djamena', 'td', 'Africa', 'Chad'),
(50, 'Santiago', 'cl', 'South America', 'Chile'),
(51, 'Beijing', 'cn', 'Asia', 'China'),
(52, 'Flying Fish Cove', 'cx', 'Asia', 'Christmas Island'),
(53, '', 'cp', '', 'Clipperton Island'),
(54, 'West Island', 'cc', 'Asia', 'Cocos (Keeling) Islands'),
(55, 'Bogotá', 'co', 'South America', 'Colombia'),
(56, 'Moroni', 'km', 'Africa', 'Comoros'),
(57, 'Avarua', 'ck', 'Oceania', 'Cook Islands'),
(58, 'San José', 'cr', 'North America', 'Costa Rica'),
(59, 'Zagreb', 'hr', 'Europe', 'Croatia'),
(60, 'Havana', 'cu', 'North America', 'Cuba'),
(61, 'Willemstad', 'cw', 'South America', 'Curaçao'),
(62, 'Nicosia', 'cy', 'Europe', 'Cyprus'),
(63, 'Prague', 'cz', 'Europe', 'Czech Republic'),
(64, 'Yamoussoukro', 'ci', 'Africa', 'Côte d\'Ivoire'),
(65, 'Kinshasa', 'cd', 'Africa', 'Democratic Republic of the Congo'),
(66, 'Copenhagen', 'dk', 'Europe', 'Denmark'),
(67, '', 'dg', '', 'Diego Garcia'),
(68, 'Djibouti', 'dj', 'Africa', 'Djibouti'),
(69, 'Roseau', 'dm', 'North America', 'Dominica'),
(70, 'Santo Domingo', 'do', 'North America', 'Dominican Republic'),
(71, 'Quito', 'ec', 'South America', 'Ecuador'),
(72, 'Cairo', 'eg', 'Africa', 'Egypt'),
(73, 'San Salvador', 'sv', 'North America', 'El Salvador'),
(74, 'London', 'gb-eng', 'Europe', 'England'),
(75, 'Malabo', 'gq', 'Africa', 'Equatorial Guinea'),
(76, 'Asmara', 'er', 'Africa', 'Eritrea'),
(77, 'Tallinn', 'ee', 'Europe', 'Estonia'),
(78, 'Lobamba, Mbabane', 'sz', 'Africa', 'Eswatini'),
(79, 'Addis Ababa', 'et', 'Africa', 'Ethiopia'),
(80, '', 'eu', '', 'Europe'),
(81, 'Stanley', 'fk', 'South America', 'Falkland Islands'),
(82, 'Tórshavn', 'fo', 'Europe', 'Faroe Islands'),
(83, 'Palikir', 'fm', 'Oceania', 'Federated States of Micronesia'),
(84, 'Suva', 'fj', 'Oceania', 'Fiji'),
(85, 'Helsinki', 'fi', 'Europe', 'Finland'),
(86, 'Paris', 'fr', 'Europe', 'France'),
(87, 'Cayenne', 'gf', 'South America', 'French Guiana'),
(88, 'Papeete', 'pf', 'Oceania', 'French Polynesia'),
(89, 'Saint-Pierre, Réunion', 'tf', 'Africa', 'French Southern Territories'),
(90, 'Libreville', 'ga', 'Africa', 'Gabon'),
(91, '', 'es-ga', '', 'Galicia'),
(92, 'Banjul', 'gm', 'Africa', 'Gambia'),
(93, 'Tbilisi', 'ge', 'Asia', 'Georgia'),
(94, 'Berlin', 'de', 'Europe', 'Germany'),
(95, 'Accra', 'gh', 'Africa', 'Ghana'),
(96, 'Gibraltar', 'gi', 'Europe', 'Gibraltar'),
(97, 'Athens', 'gr', 'Europe', 'Greece'),
(98, 'Nuuk', 'gl', 'North America', 'Greenland'),
(99, 'St. George\'s', 'gd', 'North America', 'Grenada'),
(100, 'Basse-Terre', 'gp', 'North America', 'Guadeloupe'),
(101, 'Hagåtña', 'gu', 'Oceania', 'Guam'),
(102, 'Guatemala City', 'gt', 'North America', 'Guatemala'),
(103, 'Saint Peter Port', 'gg', 'Europe', 'Guernsey'),
(104, 'Conakry', 'gn', 'Africa', 'Guinea'),
(105, 'Bissau', 'gw', 'Africa', 'Guinea-Bissau'),
(106, 'Georgetown', 'gy', 'South America', 'Guyana'),
(107, 'Port-au-Prince', 'ht', 'North America', 'Haiti'),
(108, '', 'hm', '', 'Heard Island and McDonald Islands'),
(109, 'Vatican City', 'va', 'Europe', 'Holy See'),
(110, 'Tegucigalpa', 'hn', 'North America', 'Honduras'),
(111, 'Hong Kong', 'hk', 'Asia', 'Hong Kong'),
(112, 'Budapest', 'hu', 'Europe', 'Hungary'),
(113, 'Reykjavik', 'is', 'Europe', 'Iceland'),
(114, 'New Delhi', 'in', 'Asia', 'India'),
(115, 'Jakarta', 'id', 'Asia', 'Indonesia'),
(116, 'Tehran', 'ir', 'Asia', 'Iran'),
(117, 'Baghdad', 'iq', 'Asia', 'Iraq'),
(118, 'Dublin', 'ie', 'Europe', 'Ireland'),
(119, 'Douglas', 'im', 'Europe', 'Isle of Man'),
(120, 'Jerusalem', 'il', 'Asia', 'Israel'),
(121, 'Rome', 'it', 'Europe', 'Italy'),
(122, 'Kingston', 'jm', 'North America', 'Jamaica'),
(123, 'Tokyo', 'jp', 'Asia', 'Japan'),
(124, 'Saint Helier', 'je', 'Europe', 'Jersey'),
(125, 'Amman', 'jo', 'Asia', 'Jordan'),
(126, 'Astana', 'kz', 'Asia', 'Kazakhstan'),
(127, 'Nairobi', 'ke', 'Africa', 'Kenya'),
(128, 'South Tarawa', 'ki', 'Oceania', 'Kiribati'),
(129, 'Pristina', 'xk', 'Europe', 'Kosovo'),
(130, 'Kuwait City', 'kw', 'Asia', 'Kuwait'),
(131, 'Bishkek', 'kg', 'Asia', 'Kyrgyzstan'),
(132, 'Vientiane', 'la', 'Asia', 'Laos'),
(133, 'Riga', 'lv', 'Europe', 'Latvia'),
(134, 'Beirut', 'lb', 'Asia', 'Lebanon'),
(135, 'Maseru', 'ls', 'Africa', 'Lesotho'),
(136, 'Monrovia', 'lr', 'Africa', 'Liberia'),
(137, 'Tripoli', 'ly', 'Africa', 'Libya'),
(138, 'Vaduz', 'li', 'Europe', 'Liechtenstein'),
(139, 'Vilnius', 'lt', 'Europe', 'Lithuania'),
(140, 'Luxembourg City', 'lu', 'Europe', 'Luxembourg'),
(141, 'Macau', 'mo', 'Asia', 'Macau'),
(142, 'Antananarivo', 'mg', 'Africa', 'Madagascar'),
(143, 'Lilongwe', 'mw', 'Africa', 'Malawi'),
(144, 'Kuala Lumpur', 'my', 'Asia', 'Malaysia'),
(145, 'Malé', 'mv', 'Asia', 'Maldives'),
(146, 'Bamako', 'ml', 'Africa', 'Mali'),
(147, 'Valletta', 'mt', 'Europe', 'Malta'),
(148, 'Majuro', 'mh', 'Oceania', 'Marshall Islands'),
(149, 'Fort-de-France', 'mq', 'North America', 'Martinique'),
(150, 'Nouakchott', 'mr', 'Africa', 'Mauritania'),
(151, 'Port Louis', 'mu', 'Africa', 'Mauritius'),
(152, 'Mamoudzou', 'yt', 'Africa', 'Mayotte'),
(153, 'Mexico City', 'mx', 'North America', 'Mexico'),
(154, 'Chișinău', 'md', 'Europe', 'Moldova'),
(155, 'Monaco', 'mc', 'Europe', 'Monaco'),
(156, 'Ulaanbaatar', 'mn', 'Asia', 'Mongolia'),
(157, 'Podgorica', 'me', 'Europe', 'Montenegro'),
(158, 'Little Bay, Brades, Plymouth', 'ms', 'North America', 'Montserrat'),
(159, 'Rabat', 'ma', 'Africa', 'Morocco'),
(160, 'Maputo', 'mz', 'Africa', 'Mozambique'),
(161, 'Naypyidaw', 'mm', 'Asia', 'Myanmar'),
(162, 'Windhoek', 'na', 'Africa', 'Namibia'),
(163, 'Yaren District', 'nr', 'Oceania', 'Nauru'),
(164, 'Kathmandu', 'np', 'Asia', 'Nepal'),
(165, 'Amsterdam', 'nl', 'Europe', 'Netherlands'),
(166, 'Nouméa', 'nc', 'Oceania', 'New Caledonia'),
(167, 'Wellington', 'nz', 'Oceania', 'New Zealand'),
(168, 'Managua', 'ni', 'North America', 'Nicaragua'),
(169, 'Niamey', 'ne', 'Africa', 'Niger'),
(170, 'Abuja', 'ng', 'Africa', 'Nigeria'),
(171, 'Alofi', 'nu', 'Oceania', 'Niue'),
(172, 'Kingston', 'nf', 'Oceania', 'Norfolk Island'),
(173, 'Pyongyang', 'kp', 'Asia', 'North Korea'),
(174, 'Skopje', 'mk', 'Europe', 'North Macedonia'),
(175, 'Belfast', 'gb-nir', 'Europe', 'Northern Ireland'),
(176, 'Saipan', 'mp', 'Oceania', 'Northern Mariana Islands'),
(177, 'Oslo', 'no', 'Europe', 'Norway'),
(178, 'Muscat', 'om', 'Asia', 'Oman'),
(179, 'Islamabad', 'pk', 'Asia', 'Pakistan'),
(180, 'Ngerulmud', 'pw', 'Oceania', 'Palau'),
(181, 'Panama City', 'pa', 'North America', 'Panama'),
(182, 'Port Moresby', 'pg', 'Oceania', 'Papua New Guinea'),
(183, 'Asunción', 'py', 'South America', 'Paraguay'),
(184, 'Lima', 'pe', 'South America', 'Peru'),
(185, 'Manila', 'ph', 'Asia', 'Philippines'),
(186, 'Adamstown', 'pn', 'Oceania', 'Pitcairn'),
(187, 'Warsaw', 'pl', 'Europe', 'Poland'),
(188, 'Lisbon', 'pt', 'Europe', 'Portugal'),
(189, 'San Juan', 'pr', 'North America', 'Puerto Rico'),
(190, 'Doha', 'qa', 'Asia', 'Qatar'),
(191, 'Brazzaville', 'cg', 'Africa', 'Republic of the Congo'),
(192, 'Bucharest', 'ro', 'Europe', 'Romania'),
(193, 'Moscow', 'ru', 'Europe', 'Russia'),
(194, 'Kigali', 'rw', 'Africa', 'Rwanda'),
(195, 'Saint-Denis', 're', 'Africa', 'Réunion'),
(196, 'Gustavia', 'bl', 'North America', 'Saint Barthélemy'),
(197, 'Jamestown', 'sh', 'Africa', 'Saint Helena, Ascension and Tristan da Cunha'),
(198, 'Basseterre', 'kn', 'North America', 'Saint Kitts and Nevis'),
(199, 'Castries', 'lc', 'North America', 'Saint Lucia'),
(200, 'Marigot', 'mf', 'North America', 'Saint Martin'),
(201, 'Saint-Pierre', 'pm', 'North America', 'Saint Pierre and Miquelon'),
(202, 'Kingstown', 'vc', 'North America', 'Saint Vincent and the Grenadines'),
(203, 'Apia', 'ws', 'Oceania', 'Samoa'),
(204, 'San Marino', 'sm', 'Europe', 'San Marino'),
(205, 'São Tomé', 'st', 'Africa', 'Sao Tome and Principe'),
(206, 'Riyadh', 'sa', 'Asia', 'Saudi Arabia'),
(207, 'Edinburgh', 'gb-sct', 'Europe', 'Scotland'),
(208, 'Dakar', 'sn', 'Africa', 'Senegal'),
(209, 'Belgrade', 'rs', 'Europe', 'Serbia'),
(210, 'Victoria', 'sc', 'Africa', 'Seychelles'),
(211, 'Freetown', 'sl', 'Africa', 'Sierra Leone'),
(212, 'Singapore', 'sg', 'Asia', 'Singapore'),
(213, 'Philipsburg', 'sx', 'North America', 'Sint Maarten'),
(214, 'Bratislava', 'sk', 'Europe', 'Slovakia'),
(215, 'Ljubljana', 'si', 'Europe', 'Slovenia'),
(216, 'Honiara', 'sb', 'Oceania', 'Solomon Islands'),
(217, 'Mogadishu', 'so', 'Africa', 'Somalia'),
(218, 'Pretoria', 'za', 'Africa', 'South Africa'),
(219, 'King Edward Point', 'gs', 'Antarctica', 'South Georgia and the South Sandwich Islands'),
(220, 'Seoul', 'kr', 'Asia', 'South Korea'),
(221, 'Juba', 'ss', 'Africa', 'South Sudan'),
(222, 'Madrid', 'es', 'Europe', 'Spain'),
(223, 'Sri Jayawardenepura Kotte, Colombo', 'lk', 'Asia', 'Sri Lanka'),
(224, 'Ramallah', 'ps', 'Asia', 'State of Palestine'),
(225, 'Khartoum', 'sd', 'Africa', 'Sudan'),
(226, 'Paramaribo', 'sr', 'South America', 'Suriname'),
(227, 'Longyearbyen', 'sj', 'Europe', 'Svalbard and Jan Mayen'),
(228, 'Stockholm', 'se', 'Europe', 'Sweden'),
(229, 'Bern', 'ch', 'Europe', 'Switzerland'),
(230, 'Damascus', 'sy', 'Asia', 'Syria'),
(231, 'Taipei', 'tw', 'Asia', 'Taiwan'),
(232, 'Dushanbe', 'tj', 'Asia', 'Tajikistan'),
(233, 'Dodoma', 'tz', 'Africa', 'Tanzania'),
(234, 'Bangkok', 'th', 'Asia', 'Thailand'),
(235, 'Dili', 'tl', 'Asia', 'Timor-Leste'),
(236, 'Lomé', 'tg', 'Africa', 'Togo'),
(237, 'Nukunonu, Atafu,Tokelau', 'tk', 'Oceania', 'Tokelau'),
(238, 'Nukuʻalofa', 'to', 'Oceania', 'Tonga'),
(239, 'Port of Spain', 'tt', 'South America', 'Trinidad and Tobago'),
(240, '', 'ta', '', 'Tristan da Cunha'),
(241, 'Tunis', 'tn', 'Africa', 'Tunisia'),
(242, 'Ankara', 'tr', 'Asia', 'Turkey'),
(243, 'Ashgabat', 'tm', 'Asia', 'Turkmenistan'),
(244, 'Cockburn Town', 'tc', 'North America', 'Turks and Caicos Islands'),
(245, 'Funafuti', 'tv', 'Oceania', 'Tuvalu'),
(246, 'Kampala', 'ug', 'Africa', 'Uganda'),
(247, 'Kiev', 'ua', 'Europe', 'Ukraine'),
(248, 'Abu Dhabi', 'ae', 'Asia', 'United Arab Emirates'),
(249, 'London', 'gb', 'Europe', 'United Kingdom'),
(250, '', 'un', '', 'United Nations'),
(251, 'Washington, D.C.', 'um', 'North America', 'United States Minor Outlying Islands'),
(252, 'Washington, D.C.', 'us', 'North America', 'United States of America'),
(253, '', 'xx', '', 'Unknown'),
(254, 'Montevideo', 'uy', 'South America', 'Uruguay'),
(255, 'Tashkent', 'uz', 'Asia', 'Uzbekistan'),
(256, 'Port Vila', 'vu', 'Oceania', 'Vanuatu'),
(257, 'Caracas', 've', 'South America', 'Venezuela'),
(258, 'Hanoi', 'vn', 'Asia', 'Vietnam'),
(259, 'Road Town', 'vg', 'North America', 'Virgin Islands (British)'),
(260, 'Charlotte Amalie', 'vi', 'North America', 'Virgin Islands (U.S.)'),
(261, 'Cardiff', 'gb-wls', 'Europe', 'Wales'),
(262, 'Mata-Utu', 'wf', 'Oceania', 'Wallis and Futuna'),
(263, 'Laayoune', 'eh', 'Africa', 'Western Sahara'),
(264, 'Sana\'a', 'ye', 'Asia', 'Yemen'),
(265, 'Lusaka', 'zm', 'Africa', 'Zambia'),
(266, 'Harare', 'zw', 'Africa', 'Zimbabwe');

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

--
-- Table structure for table `gdpr_settings`
--

CREATE TABLE `gdpr_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `enable_gdpr` tinyint(1) NOT NULL DEFAULT 0,
  `show_customer_area` tinyint(1) NOT NULL DEFAULT 0,
  `show_customer_footer` tinyint(1) NOT NULL DEFAULT 0,
  `top_information_block` longtext DEFAULT NULL,
  `enable_export` tinyint(1) NOT NULL DEFAULT 0,
  `data_removal` tinyint(1) NOT NULL DEFAULT 0,
  `lead_removal_public_form` tinyint(1) NOT NULL DEFAULT 0,
  `terms_customer_footer` tinyint(1) NOT NULL DEFAULT 0,
  `terms` longtext DEFAULT NULL,
  `policy` longtext DEFAULT NULL,
  `public_lead_edit` tinyint(1) NOT NULL DEFAULT 0,
  `consent_customer` tinyint(1) NOT NULL DEFAULT 0,
  `consent_leads` tinyint(1) NOT NULL DEFAULT 0,
  `consent_block` 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 `gdpr_settings`
--

INSERT INTO `gdpr_settings` (`id`, `enable_gdpr`, `show_customer_area`, `show_customer_footer`, `top_information_block`, `enable_export`, `data_removal`, `lead_removal_public_form`, `terms_customer_footer`, `terms`, `policy`, `public_lead_edit`, `consent_customer`, `consent_leads`, `consent_block`, `created_at`, `updated_at`) VALUES
(1, 0, 0, 0, NULL, 0, 0, 0, 0, NULL, NULL, 0, 0, 0, NULL, '2024-07-10 05:39:21', '2024-07-10 05:39:21');

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

--
-- Table structure for table `google_calendar_modules`
--

CREATE TABLE `google_calendar_modules` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `lead_status` tinyint(1) NOT NULL DEFAULT 0,
  `leave_status` tinyint(1) NOT NULL DEFAULT 0,
  `invoice_status` tinyint(1) NOT NULL DEFAULT 0,
  `contract_status` tinyint(1) NOT NULL DEFAULT 0,
  `task_status` tinyint(1) NOT NULL DEFAULT 0,
  `event_status` tinyint(1) NOT NULL DEFAULT 0,
  `holiday_status` 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 `google_calendar_modules`
--

INSERT INTO `google_calendar_modules` (`id`, `company_id`, `lead_status`, `leave_status`, `invoice_status`, `contract_status`, `task_status`, `event_status`, `holiday_status`, `created_at`, `updated_at`) VALUES
(1, 1, 0, 0, 0, 0, 0, 0, 0, '2024-07-10 05:39:23', '2024-07-10 05:39:23');

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

--
-- Table structure for table `holidays`
--

CREATE TABLE `holidays` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `date` date NOT NULL,
  `occassion` varchar(100) DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `event_id` 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 `invoice_items`
--

CREATE TABLE `invoice_items` (
  `id` int(10) UNSIGNED NOT NULL,
  `invoice_id` int(10) UNSIGNED NOT NULL,
  `item_name` varchar(191) NOT NULL,
  `item_summary` text DEFAULT NULL,
  `type` enum('item','discount','tax') NOT NULL DEFAULT 'item',
  `quantity` double(16,2) NOT NULL,
  `actual_price` double(16,2) DEFAULT 1.00,
  `unit_price` double(16,2) NOT NULL,
  `amount` double(16,2) NOT NULL,
  `taxes` varchar(191) DEFAULT NULL,
  `hsn_sac_code` 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;

--
-- Dumping data for table `invoice_items`
--

INSERT INTO `invoice_items` (`id`, `invoice_id`, `item_name`, `item_summary`, `type`, `quantity`, `actual_price`, `unit_price`, `amount`, `taxes`, `hsn_sac_code`, `created_at`, `updated_at`) VALUES
(6, 6, 'Air Ticket', '', 'item', 1.00, 1.00, 500.00, 500.00, NULL, NULL, '2024-07-10 05:58:00', '2024-07-10 05:58:00'),
(7, 7, 'test', NULL, 'item', 1.00, 1.00, 100.00, 100.00, NULL, NULL, '2024-07-14 21:56:30', '2024-07-14 21:59:29'),
(8, 8, 'Air Ticket', NULL, 'item', 1.00, 1.00, 500.00, 500.00, NULL, NULL, '2024-07-14 22:04:51', '2024-07-14 22:07:02'),
(9, 9, '43543543543', '', 'item', 1.00, 1000.00, 1000.00, 1000.00, NULL, NULL, '2024-09-15 02:42:58', '2024-09-15 02:42:58');

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

--
-- Table structure for table `invoice_item_details`
--

CREATE TABLE `invoice_item_details` (
  `id` int(10) UNSIGNED NOT NULL,
  `invoice_item_id` int(10) UNSIGNED DEFAULT NULL,
  `carrier_id` bigint(20) UNSIGNED DEFAULT NULL,
  `trip_type` varchar(255) DEFAULT NULL COMMENT 'One Way, Round Trip, Multi City',
  `name` varchar(255) DEFAULT NULL,
  `gender` varchar(255) DEFAULT NULL COMMENT 'Male, Female, Other',
  `birth_date` date DEFAULT NULL,
  `ticket_type` varchar(255) DEFAULT NULL COMMENT 'Economy, Business Class',
  `job_status` varchar(255) DEFAULT NULL,
  `total_person` int(11) DEFAULT 1,
  `person_type` varchar(255) DEFAULT NULL COMMENT 'Adult, Child, Infant',
  `departure_date` datetime DEFAULT NULL,
  `arrival_date` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `invoice_item_details`
--

INSERT INTO `invoice_item_details` (`id`, `invoice_item_id`, `carrier_id`, `trip_type`, `name`, `gender`, `birth_date`, `ticket_type`, `job_status`, `total_person`, `person_type`, `departure_date`, `arrival_date`, `created_at`, `updated_at`) VALUES
(2, 6, NULL, 'One Way', 'John Doe', 'Male', '1990-07-10', 'Economy', 'Teacher', 1, 'Adult', '2024-07-10 00:00:00', '2024-07-11 00:00:00', '2024-07-10 05:58:00', '2024-07-10 05:58:00'),
(3, 7, NULL, 'One Way', 'test', 'Male', '2024-07-01', 'Economy', 'sdfsdfds', 45454, 'Adult', '2024-07-01 00:00:00', '2024-07-31 00:00:00', '2024-07-14 21:56:30', '2024-07-14 21:59:29'),
(4, 8, NULL, 'One Way', 'monir', 'Male', '2024-07-17', 'Economy', 'dsfdsf', 1, 'Adult', '2024-07-11 00:00:00', '2024-07-21 00:00:00', '2024-07-14 22:04:51', '2024-07-14 22:07:02'),
(5, 9, NULL, 'One Way', 'sfsdfds', 'Female', '2024-09-15', 'Economy', 'dsfdsf', 1, 'Child', '2024-09-15 00:00:00', '2024-09-20 00:00:00', '2024-09-15 02:42:58', '2024-09-15 02:42:58');

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

--
-- Table structure for table `invoice_item_images`
--

CREATE TABLE `invoice_item_images` (
  `id` int(10) UNSIGNED NOT NULL,
  `invoice_item_id` int(10) UNSIGNED NOT NULL,
  `filename` varchar(191) NOT NULL,
  `hashname` varchar(191) DEFAULT NULL,
  `size` varchar(191) DEFAULT NULL,
  `external_link` 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 `invoice_recurring`
--

CREATE TABLE `invoice_recurring` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `currency_id` int(10) UNSIGNED DEFAULT NULL,
  `project_id` int(10) UNSIGNED DEFAULT NULL,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `issue_date` date NOT NULL,
  `next_invoice_date` date DEFAULT NULL,
  `due_date` date NOT NULL,
  `sub_total` double NOT NULL DEFAULT 0,
  `total` double NOT NULL DEFAULT 0,
  `discount` double NOT NULL DEFAULT 0,
  `discount_type` enum('percent','fixed') NOT NULL DEFAULT 'percent',
  `status` enum('active','inactive') NOT NULL DEFAULT 'active',
  `file` varchar(191) DEFAULT NULL,
  `file_original_name` varchar(191) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `show_shipping_address` enum('yes','no') NOT NULL DEFAULT 'no',
  `day_of_month` int(11) DEFAULT 1,
  `day_of_week` int(11) DEFAULT 1,
  `payment_method` varchar(191) DEFAULT NULL,
  `rotation` enum('monthly','weekly','bi-weekly','quarterly','half-yearly','annually','daily') NOT NULL,
  `billing_cycle` int(11) DEFAULT NULL,
  `client_can_stop` tinyint(1) NOT NULL DEFAULT 1,
  `unlimited_recurring` tinyint(1) NOT NULL DEFAULT 0,
  `deleted_at` datetime DEFAULT NULL,
  `shipping_address` text DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `calculate_tax` enum('after_discount','before_discount') NOT NULL DEFAULT 'after_discount',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `unit_id` bigint(20) UNSIGNED DEFAULT NULL,
  `immediate_invoice` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `invoice_recurring_items`
--

CREATE TABLE `invoice_recurring_items` (
  `id` int(10) UNSIGNED NOT NULL,
  `invoice_recurring_id` bigint(20) UNSIGNED NOT NULL,
  `item_name` varchar(191) NOT NULL,
  `quantity` double NOT NULL,
  `unit_price` double NOT NULL,
  `amount` double NOT NULL,
  `taxes` text DEFAULT NULL,
  `type` enum('item','discount','tax') NOT NULL DEFAULT 'item',
  `item_summary` text DEFAULT NULL,
  `hsn_sac_code` 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 `invoice_recurring_item_images`
--

CREATE TABLE `invoice_recurring_item_images` (
  `id` int(10) UNSIGNED NOT NULL,
  `invoice_recurring_item_id` int(10) UNSIGNED NOT NULL,
  `filename` varchar(191) NOT NULL,
  `hashname` varchar(191) DEFAULT NULL,
  `size` varchar(191) DEFAULT NULL,
  `external_link` 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 `invoice_settings`
--

CREATE TABLE `invoice_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `invoice_prefix` varchar(191) NOT NULL,
  `invoice_number_separator` varchar(191) NOT NULL DEFAULT '#',
  `invoice_digit` int(10) UNSIGNED NOT NULL DEFAULT 3,
  `estimate_prefix` varchar(191) NOT NULL DEFAULT 'EST',
  `estimate_number_separator` varchar(191) NOT NULL DEFAULT '#',
  `estimate_digit` int(10) UNSIGNED NOT NULL DEFAULT 3,
  `credit_note_prefix` varchar(191) NOT NULL DEFAULT 'CN',
  `credit_note_number_separator` varchar(191) NOT NULL DEFAULT '#',
  `credit_note_digit` int(10) UNSIGNED NOT NULL DEFAULT 3,
  `contract_prefix` varchar(191) NOT NULL DEFAULT 'CONT',
  `contract_number_separator` varchar(191) NOT NULL DEFAULT '#',
  `contract_digit` int(10) UNSIGNED NOT NULL DEFAULT 3,
  `order_prefix` varchar(191) NOT NULL DEFAULT 'ODR',
  `order_number_separator` varchar(191) NOT NULL DEFAULT '#',
  `order_digit` int(10) UNSIGNED NOT NULL DEFAULT 3,
  `template` varchar(191) NOT NULL,
  `due_after` int(11) NOT NULL,
  `invoice_terms` text NOT NULL,
  `estimate_terms` text DEFAULT NULL,
  `gst_number` varchar(191) DEFAULT NULL,
  `show_gst` enum('yes','no') DEFAULT 'no',
  `logo` varchar(80) DEFAULT NULL,
  `hsn_sac_code_show` tinyint(1) NOT NULL DEFAULT 0,
  `locale` varchar(191) DEFAULT 'en',
  `send_reminder` int(11) NOT NULL DEFAULT 0,
  `reminder` enum('after','every') DEFAULT NULL,
  `send_reminder_after` int(11) NOT NULL DEFAULT 0,
  `tax_calculation_msg` tinyint(1) NOT NULL DEFAULT 0,
  `show_status` tinyint(1) NOT NULL DEFAULT 1,
  `authorised_signatory` tinyint(1) NOT NULL DEFAULT 0,
  `authorised_signatory_signature` varchar(191) DEFAULT NULL,
  `show_project` int(11) NOT NULL DEFAULT 0,
  `show_client_name` enum('yes','no') DEFAULT 'no',
  `show_client_email` enum('yes','no') DEFAULT 'no',
  `show_client_phone` enum('yes','no') DEFAULT 'no',
  `show_client_company_address` enum('yes','no') DEFAULT 'no',
  `show_client_company_name` enum('yes','no') DEFAULT 'no',
  `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_settings`
--

INSERT INTO `invoice_settings` (`id`, `company_id`, `invoice_prefix`, `invoice_number_separator`, `invoice_digit`, `estimate_prefix`, `estimate_number_separator`, `estimate_digit`, `credit_note_prefix`, `credit_note_number_separator`, `credit_note_digit`, `contract_prefix`, `contract_number_separator`, `contract_digit`, `order_prefix`, `order_number_separator`, `order_digit`, `template`, `due_after`, `invoice_terms`, `estimate_terms`, `gst_number`, `show_gst`, `logo`, `hsn_sac_code_show`, `locale`, `send_reminder`, `reminder`, `send_reminder_after`, `tax_calculation_msg`, `show_status`, `authorised_signatory`, `authorised_signatory_signature`, `show_project`, `show_client_name`, `show_client_email`, `show_client_phone`, `show_client_company_address`, `show_client_company_name`, `created_at`, `updated_at`) VALUES
(1, 1, 'INV', '#', 3, 'EST', '#', 3, 'CN', '#', 3, 'CONT', '#', 3, 'ODR', '#', 3, 'invoice-5', 15, 'Thank you for your business.', NULL, NULL, 'no', NULL, 0, 'en', 0, NULL, 0, 0, 1, 0, NULL, 0, 'yes', 'yes', 'yes', 'yes', 'yes', '2024-07-10 05:39:23', '2024-07-10 05:39:23');

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

--
-- Table structure for table `issues`
--

CREATE TABLE `issues` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `description` mediumtext NOT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `project_id` int(10) UNSIGNED DEFAULT NULL,
  `status` enum('pending','resolved') NOT NULL DEFAULT 'pending',
  `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 `jobs`
--

CREATE TABLE `jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `queue` varchar(191) NOT NULL,
  `payload` longtext NOT NULL,
  `attempts` tinyint(3) UNSIGNED NOT NULL,
  `reserved_at` int(10) UNSIGNED DEFAULT NULL,
  `available_at` int(10) UNSIGNED NOT NULL,
  `created_at` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `job_batches`
--

CREATE TABLE `job_batches` (
  `id` varchar(191) NOT NULL,
  `name` varchar(191) NOT NULL,
  `total_jobs` int(11) NOT NULL,
  `pending_jobs` int(11) NOT NULL,
  `failed_jobs` int(11) NOT NULL,
  `failed_job_ids` text NOT NULL,
  `options` mediumtext DEFAULT NULL,
  `cancelled_at` int(11) DEFAULT NULL,
  `created_at` int(11) NOT NULL,
  `finished_at` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `knowledge_bases`
--

CREATE TABLE `knowledge_bases` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `to` varchar(191) NOT NULL DEFAULT 'employee',
  `heading` varchar(191) DEFAULT NULL,
  `category_id` int(10) UNSIGNED DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `added_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 `knowledge_base_files`
--

CREATE TABLE `knowledge_base_files` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `knowledge_base_id` int(10) UNSIGNED NOT NULL,
  `filename` varchar(200) DEFAULT NULL,
  `hashname` varchar(200) DEFAULT NULL,
  `size` varchar(200) DEFAULT NULL,
  `external_link_name` varchar(191) DEFAULT NULL,
  `external_link` text DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `knowledge_categories`
--

CREATE TABLE `knowledge_categories` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `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;

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

--
-- Table structure for table `language_settings`
--

CREATE TABLE `language_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `language_code` varchar(191) NOT NULL,
  `language_name` varchar(191) NOT NULL,
  `status` enum('enabled','disabled') NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `flag_code` varchar(191) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `language_settings`
--

INSERT INTO `language_settings` (`id`, `language_code`, `language_name`, `status`, `created_at`, `updated_at`, `flag_code`) VALUES
(1, 'en', 'English', 'enabled', NULL, NULL, 'en'),
(2, 'ar', 'Arabic', 'disabled', NULL, NULL, 'sa'),
(3, 'de', 'German', 'disabled', NULL, NULL, 'de'),
(4, 'es', 'Spanish', 'disabled', NULL, NULL, 'es'),
(5, 'et', 'Estonian', 'disabled', NULL, NULL, 'et'),
(6, 'fa', 'Farsi', 'disabled', NULL, NULL, 'ir'),
(7, 'fr', 'French', 'disabled', NULL, NULL, 'fr'),
(8, 'gr', 'Greek', 'disabled', NULL, NULL, 'gr'),
(9, 'it', 'Italian', 'disabled', NULL, NULL, 'it'),
(10, 'nl', 'Dutch', 'disabled', NULL, NULL, 'nl'),
(11, 'pl', 'Polish', 'disabled', NULL, NULL, 'pl'),
(12, 'pt', 'Portuguese', 'disabled', NULL, NULL, 'pt'),
(13, 'pt-br', 'Portuguese (Brazil)', 'disabled', NULL, NULL, 'br'),
(14, 'ro', 'Romanian', 'disabled', NULL, NULL, 'ro'),
(15, 'ru', 'Russian', 'disabled', NULL, NULL, 'ru'),
(16, 'tr', 'Turkish', 'disabled', NULL, NULL, 'tr'),
(17, 'zh-CN', 'Chinese (S)', 'disabled', NULL, NULL, 'cn'),
(18, 'zh-TW', 'Chinese (T)', 'disabled', NULL, NULL, 'cn');

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

--
-- Table structure for table `leads`
--

CREATE TABLE `leads` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `client_id` int(11) DEFAULT NULL,
  `source_id` int(11) DEFAULT NULL,
  `status_id` int(11) DEFAULT NULL,
  `column_priority` int(11) NOT NULL,
  `agent_id` bigint(20) UNSIGNED DEFAULT NULL,
  `company_name` varchar(191) DEFAULT NULL,
  `website` varchar(191) DEFAULT NULL,
  `address` text DEFAULT NULL,
  `salutation` enum('mr','mrs','miss','dr','sir','madam') DEFAULT NULL,
  `client_name` varchar(191) NOT NULL,
  `client_email` varchar(191) DEFAULT NULL,
  `mobile` varchar(191) DEFAULT NULL,
  `cell` varchar(191) DEFAULT NULL,
  `office` varchar(191) DEFAULT NULL,
  `city` varchar(191) DEFAULT NULL,
  `state` varchar(191) DEFAULT NULL,
  `country` varchar(191) DEFAULT NULL,
  `postal_code` varchar(191) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `next_follow_up` enum('yes','no') NOT NULL DEFAULT 'yes',
  `value` double DEFAULT 0,
  `currency_id` int(10) UNSIGNED DEFAULT NULL,
  `category_id` int(10) UNSIGNED DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `hash` 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 `lead_agents`
--

CREATE TABLE `lead_agents` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `status` enum('enabled','disabled') NOT NULL DEFAULT 'enabled',
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `lead_category`
--

CREATE TABLE `lead_category` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `category_name` varchar(191) NOT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `lead_custom_forms`
--

CREATE TABLE `lead_custom_forms` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `custom_fields_id` int(10) UNSIGNED DEFAULT NULL,
  `field_display_name` varchar(191) NOT NULL,
  `field_name` varchar(191) NOT NULL,
  `field_order` int(11) NOT NULL,
  `status` enum('active','inactive') NOT NULL DEFAULT 'active',
  `required` tinyint(1) NOT NULL DEFAULT 0,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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 `lead_custom_forms`
--

INSERT INTO `lead_custom_forms` (`id`, `company_id`, `custom_fields_id`, `field_display_name`, `field_name`, `field_order`, `status`, `required`, `added_by`, `last_updated_by`, `created_at`, `updated_at`) VALUES
(1, 1, NULL, 'Name', 'name', 1, 'active', 1, NULL, NULL, NULL, NULL),
(2, 1, NULL, 'Email', 'email', 2, 'active', 0, NULL, NULL, NULL, NULL),
(3, 1, NULL, 'Company Name', 'company_name', 3, 'active', 0, NULL, NULL, NULL, NULL),
(4, 1, NULL, 'Website', 'website', 4, 'active', 0, NULL, NULL, NULL, NULL),
(5, 1, NULL, 'Address', 'address', 5, 'active', 0, NULL, NULL, NULL, NULL),
(6, 1, NULL, 'Mobile', 'mobile', 6, 'active', 0, NULL, NULL, NULL, NULL),
(7, 1, NULL, 'Message', 'message', 7, 'active', 0, NULL, NULL, NULL, NULL),
(8, 1, NULL, 'City', 'city', 1, 'active', 0, NULL, NULL, NULL, NULL),
(9, 1, NULL, 'State', 'state', 2, 'active', 0, NULL, NULL, NULL, NULL),
(10, 1, NULL, 'Country', 'country', 3, 'active', 0, NULL, NULL, NULL, NULL),
(11, 1, NULL, 'Postal Code', 'postal_code', 4, 'active', 0, NULL, NULL, NULL, NULL),
(12, 1, NULL, 'Source', 'source', 8, 'active', 0, NULL, NULL, NULL, NULL),
(13, 1, NULL, 'Product', 'product', 9, 'active', 0, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `lead_files`
--

CREATE TABLE `lead_files` (
  `id` int(10) UNSIGNED NOT NULL,
  `lead_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `filename` varchar(200) NOT NULL,
  `hashname` varchar(200) NOT NULL,
  `size` varchar(200) NOT NULL,
  `description` text DEFAULT NULL,
  `google_url` varchar(191) DEFAULT NULL,
  `dropbox_link` varchar(191) DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `lead_follow_up`
--

CREATE TABLE `lead_follow_up` (
  `id` int(10) UNSIGNED NOT NULL,
  `lead_id` int(10) UNSIGNED NOT NULL,
  `remark` longtext DEFAULT NULL,
  `next_follow_up_date` datetime DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `event_id` text DEFAULT NULL,
  `send_reminder` enum('yes','no') DEFAULT 'no',
  `remind_time` text DEFAULT NULL,
  `remind_type` enum('minute','hour','day') DEFAULT NULL,
  `status` 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 `lead_notes`
--

CREATE TABLE `lead_notes` (
  `id` int(10) UNSIGNED NOT NULL,
  `lead_id` int(10) UNSIGNED DEFAULT NULL,
  `title` varchar(191) NOT NULL,
  `type` tinyint(1) NOT NULL DEFAULT 0,
  `member_id` int(10) UNSIGNED DEFAULT NULL,
  `is_lead_show` tinyint(1) NOT NULL DEFAULT 0,
  `ask_password` tinyint(1) NOT NULL DEFAULT 0,
  `details` longtext NOT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `lead_products`
--

CREATE TABLE `lead_products` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `lead_id` int(10) UNSIGNED NOT NULL,
  `product_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 `lead_sources`
--

CREATE TABLE `lead_sources` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `type` varchar(191) NOT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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 `lead_sources`
--

INSERT INTO `lead_sources` (`id`, `company_id`, `type`, `added_by`, `last_updated_by`, `created_at`, `updated_at`) VALUES
(1, 1, 'email', NULL, NULL, NULL, NULL),
(2, 1, 'google', NULL, NULL, NULL, NULL),
(3, 1, 'facebook', NULL, NULL, NULL, NULL),
(4, 1, 'friend', NULL, NULL, NULL, NULL),
(5, 1, 'direct visit', NULL, NULL, NULL, NULL),
(6, 1, 'tv ad', NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `lead_status`
--

CREATE TABLE `lead_status` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `type` varchar(191) NOT NULL,
  `priority` int(11) NOT NULL,
  `default` tinyint(1) NOT NULL,
  `label_color` varchar(191) NOT NULL DEFAULT '#ff0000',
  `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 `lead_status`
--

INSERT INTO `lead_status` (`id`, `company_id`, `type`, `priority`, `default`, `label_color`, `created_at`, `updated_at`) VALUES
(1, 1, 'pending', 1, 1, '#FFE700', NULL, NULL),
(2, 1, 'inprocess', 2, 0, '#009EFF', NULL, NULL),
(3, 1, 'done', 3, 0, '#1FAE07', NULL, NULL);

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

--
-- Table structure for table `lead_user_notes`
--

CREATE TABLE `lead_user_notes` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `lead_note_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 `leaves`
--

CREATE TABLE `leaves` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `leave_type_id` int(10) UNSIGNED NOT NULL,
  `unique_id` varchar(191) DEFAULT NULL,
  `duration` varchar(191) NOT NULL,
  `leave_date` date NOT NULL,
  `reason` text NOT NULL,
  `status` enum('approved','pending','rejected') NOT NULL,
  `reject_reason` text DEFAULT NULL,
  `paid` tinyint(1) NOT NULL DEFAULT 0,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `event_id` text DEFAULT NULL,
  `approved_by` int(10) UNSIGNED DEFAULT NULL,
  `approved_at` datetime DEFAULT NULL,
  `half_day_type` varchar(191) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `manager_status_permission` enum('pre-approve','approved') DEFAULT NULL,
  `approve_reason` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `leave_files`
--

CREATE TABLE `leave_files` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `leave_id` int(10) UNSIGNED NOT NULL,
  `filename` varchar(191) NOT NULL,
  `hashname` varchar(191) DEFAULT NULL,
  `size` varchar(191) DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `leave_settings`
--

CREATE TABLE `leave_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `manager_permission` enum('pre-approve','approved','cannot-approve') NOT NULL DEFAULT 'pre-approve',
  `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 `leave_settings`
--

INSERT INTO `leave_settings` (`id`, `company_id`, `manager_permission`, `created_at`, `updated_at`) VALUES
(1, 1, 'pre-approve', '2024-07-10 05:39:23', '2024-07-10 05:39:23');

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

--
-- Table structure for table `leave_types`
--

CREATE TABLE `leave_types` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `type_name` varchar(191) NOT NULL,
  `color` varchar(191) NOT NULL,
  `no_of_leaves` int(11) NOT NULL DEFAULT 5,
  `paid` tinyint(1) NOT NULL DEFAULT 1,
  `monthly_limit` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `leave_types`
--

INSERT INTO `leave_types` (`id`, `company_id`, `type_name`, `color`, `no_of_leaves`, `paid`, `monthly_limit`, `created_at`, `updated_at`) VALUES
(1, 1, 'Casual', '#16813D', 5, 1, 0, NULL, NULL),
(2, 1, 'Sick', '#DB1313', 5, 1, 0, NULL, NULL),
(3, 1, 'Earned', '#B078C6', 5, 1, 0, NULL, NULL);

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

--
-- Table structure for table `log_time_for`
--

CREATE TABLE `log_time_for` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `log_time_for` enum('project','task') NOT NULL DEFAULT 'project',
  `auto_timer_stop` enum('yes','no') NOT NULL DEFAULT 'no',
  `approval_required` tinyint(1) NOT NULL,
  `tracker_reminder` tinyint(1) NOT NULL,
  `timelog_report` tinyint(1) NOT NULL,
  `daily_report_roles` varchar(191) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `time` time DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `log_time_for`
--

INSERT INTO `log_time_for` (`id`, `company_id`, `log_time_for`, `auto_timer_stop`, `approval_required`, `tracker_reminder`, `timelog_report`, `daily_report_roles`, `created_at`, `updated_at`, `time`) VALUES
(1, 1, 'project', 'no', 0, 0, 0, NULL, '2024-07-10 05:39:23', '2024-07-10 05:39:23', NULL);

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

--
-- Table structure for table `ltm_translations`
--

CREATE TABLE `ltm_translations` (
  `id` int(10) UNSIGNED NOT NULL,
  `status` int(11) NOT NULL DEFAULT 0,
  `locale` varchar(191) NOT NULL,
  `group` varchar(191) NOT NULL,
  `key` varchar(191) NOT NULL,
  `value` 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 `menus`
--

CREATE TABLE `menus` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `menu_name` varchar(100) NOT NULL,
  `translate_name` varchar(191) DEFAULT NULL,
  `route` varchar(100) DEFAULT NULL,
  `module` varchar(191) DEFAULT NULL,
  `icon` varchar(191) DEFAULT NULL,
  `setting_menu` tinyint(1) 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 `menu_settings`
--

CREATE TABLE `menu_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `main_menu` longtext DEFAULT NULL,
  `default_main_menu` longtext DEFAULT NULL,
  `setting_menu` longtext DEFAULT NULL,
  `default_setting_menu` longtext 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 `message_settings`
--

CREATE TABLE `message_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `allow_client_admin` enum('yes','no') NOT NULL DEFAULT 'no',
  `allow_client_employee` enum('yes','no') NOT NULL DEFAULT 'no',
  `restrict_client` enum('yes','no') NOT NULL DEFAULT 'no',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `send_sound_notification` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `message_settings`
--

INSERT INTO `message_settings` (`id`, `company_id`, `allow_client_admin`, `allow_client_employee`, `restrict_client`, `created_at`, `updated_at`, `send_sound_notification`) VALUES
(1, 1, 'no', 'no', 'no', '2024-07-10 05:39:23', '2024-07-10 05:39:23', 0);

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

--
-- 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_04_02_193005_create_translations_table', 1),
(2, '2014_10_12_000000_create_users_table', 1),
(3, '2014_10_12_100000_create_password_resets_table', 1),
(4, '2016_06_20_112951_create_user_chat_table', 1),
(5, '2017_03_23_110416_add_column_users_table', 1),
(6, '2017_03_23_111036_create_client_details_table', 1),
(7, '2017_03_23_112028_create_client_contacts_table', 1),
(8, '2017_03_23_112353_create_employee_details_table', 1),
(9, '2017_03_23_114438_create_organisation_settings_table', 1),
(10, '2017_03_23_122646_create_project_category_table', 1),
(11, '2017_03_23_123601_create_projects_table', 1),
(12, '2017_03_23_125424_create_project_members_table', 1),
(13, '2017_03_23_125625_create_project_time_logs_table', 1),
(14, '2017_03_23_130413_create_project_files_table', 1),
(15, '2017_03_24_051800_create_tasks_table', 1),
(16, '2017_03_24_054355_create_notices_table', 1),
(17, '2017_03_24_055005_create_conversation_table', 1),
(18, '2017_03_24_055539_create_conversation_reply_table', 1),
(19, '2017_03_24_055859_create_invoices_table', 1),
(20, '2017_03_24_060421_create_invoice_items_table', 1),
(21, '2017_03_24_060751_create_quotations_table', 1),
(22, '2017_03_24_061241_create_quotation_items_table', 1),
(23, '2017_03_24_061505_create_sticky_notes_table', 1),
(24, '2017_03_24_064541_create_issues_table', 1),
(25, '2017_03_29_123858_entrust_setup_tables', 1),
(26, '2017_04_04_193158_AddColumnsProjectFilesTable', 1),
(27, '2017_04_05_063103_change_clientid_projectid_invoice_table', 1),
(28, '2017_04_06_051401_add_discount_column_invoice_table', 1),
(29, '2017_04_06_054728_add_status_column_issues_table', 1),
(30, '2017_04_08_152902_add_total_hours_column_time_log_table', 1),
(31, '2017_04_18_095809_create_project_activity_table', 1),
(32, '2017_04_18_103815_create_user_activities_table', 1),
(33, '2017_04_19_101519_create_email_notification_settings_table', 1),
(34, '2017_04_20_185211_add_colour_column_sticky_notes_table', 1),
(35, '2017_04_28_114154_create_notifications_table', 1),
(36, '2017_05_03_131016_add_project_completion_field_projects', 1),
(37, '2017_05_03_174333_create_currencies_table', 1),
(38, '2017_05_05_124330_create_module_settings_table', 1),
(39, '2017_05_05_233111_add_status_column_invoices', 1),
(40, '2017_05_11_140502_add_currency_symbol_column_invoices', 1),
(41, '2017_05_11_170244_add_currency_id_column_organisation_settings_table', 1),
(42, '2017_05_22_172748_add_timezone_column_settings_table', 1),
(43, '2017_05_24_120216_create_smtp_settings_table', 1),
(44, '2017_05_31_112158_create_universal_search_table', 1),
(45, '2017_06_22_131112_add_locale_organisation_settings_table', 1),
(46, '2017_07_13_091922_add_calculate_task_progress_column_project_table', 1),
(47, '2017_07_20_093528_on_delete_setnull_timelog', 1),
(48, '2017_07_21_120958_create_theme_settings_table', 1),
(49, '2017_07_24_113657_add_link_color_column_theme_settings_table', 1),
(50, '2017_07_24_123050_add_login_background_organisation_settings_table', 1),
(51, '2017_07_27_101351_add_column_type_invoice_items_table', 1),
(52, '2017_07_28_102010_create_estimates_table', 1),
(53, '2017_07_28_103230_create_estimate_items_table', 1),
(54, '2017_08_04_064431_create_payments_table', 1),
(55, '2017_08_05_103940_create_payment_gateway_credential_table', 1),
(56, '2017_08_08_055908_add_enable_paypal_column_payment_gateway_table', 1),
(57, '2017_08_09_054230_create_expenses_table', 1),
(58, '2017_08_21_065430_add_exchange_rate_column_currency_table', 1),
(59, '2017_08_21_131318_create_invoice_setting_table', 1),
(60, '2017_08_22_055908_add_expense_email_setting_to_email_notification_setting_table', 1),
(61, '2017_08_28_110759_add_recurring_columns_in_invoice_table', 1),
(62, '2017_08_30_061016_add_plan_id_to_payments_table', 1),
(63, '2017_08_30_093400_create_settings_table', 1),
(64, '2017_08_30_123956_add_slack_username_column_employee_details_table', 1),
(65, '2017_08_30_133725_add_send_slack_column_email_notification_settings_table', 1),
(66, '2017_09_01_060715_add_stipe_column_to_payment_credentials_table', 1),
(67, '2017_09_01_090124_add_customer_id_column_to_payments_table', 1),
(68, '2017_09_02_084049_add_locale_column_users_table', 1),
(69, '2017_09_14_095429_create_ticket_reply_templates_table', 1),
(70, '2017_09_14_095815_create_ticket_types_table', 1),
(71, '2017_09_14_100400_create_ticket_groups_table', 1),
(72, '2017_09_14_100530_create_ticket_tag_list_table', 1),
(73, '2017_09_14_114900_create_ticket_channels_table', 1),
(74, '2017_09_14_115003_create_ticket_agent_groups_table', 1),
(75, '2017_09_14_115004_create_tickets_table', 1),
(76, '2017_09_14_115005_create_ticket_tags_table', 1),
(77, '2017_09_18_064917_add_status_column_ticket_agent_group_table', 1),
(78, '2017_09_24_101700_create_ticket_replies_table', 1),
(79, '2017_09_25_060229_drop_description_column_ticket_table', 1),
(80, '2017_09_25_072611_add_deleted_at_column_tickets', 1),
(81, '2017_09_25_072627_add_deleted_at_column_ticket_reply', 1),
(82, '2017_10_03_094922_ticket_notification_migration', 1),
(83, '2017_10_03_134003_add_latitude_longitude_column', 1),
(84, '2017_10_12_111741_create_attendance_setting_table', 1),
(85, '2017_10_13_051909_create_attendance_table', 1),
(86, '2017_10_26_051335_add_mail_from_email_column_smtp_settings_table', 1),
(87, '2017_10_26_112253_add_office_open_days_column_attendance_settings_table', 1),
(88, '2017_11_01_054603_add_columns_to_client_details', 1),
(89, '2017_11_02_045542_change_on_cascade_project_members', 1),
(90, '2017_11_07_054438_add_project_admin_column_project_table', 1),
(91, '2017_11_07_125619_remove_project_admin_role', 1),
(92, '2017_11_08_045549_make_project_id_nullable_tasks_table', 1),
(93, '2017_11_09_071318_create_taskboard_columns_table', 1),
(94, '2017_11_09_092817_add_column_tasks_table', 1),
(95, '2017_11_20_070830_create_custom_fields_table', 1),
(96, '2017_11_20_071758_create_custom_fields__data_table', 1),
(97, '2017_11_22_071535_create_events_table', 1),
(98, '2017_11_23_065323_add_cryptocurrency_columns', 1),
(99, '2017_11_24_103957_create_event_attendees_table', 1),
(100, '2017_12_07_034433_change cascade users in time log table', 1),
(101, '2017_12_12_071823_create_modules_table', 1),
(102, '2017_12_12_073501_add_module_id_column_permissions_table', 1),
(103, '2017_12_21_114839_change_upload_folder', 1),
(104, '2017_12_28_112910_create_leave_types_table', 1),
(105, '2017_12_30_184422_create_leaves_table', 1),
(106, '2018_01_02_122442_add_leaves_notification_setting', 1),
(107, '2018_01_05_062543_add_user_css_column_theme_settings', 1),
(108, '2018_01_09_180937_add_task_completed_notification_setting', 1),
(109, '2018_01_29_073527_create_message_setting_table', 1),
(110, '2018_04_12_100452_add_dropbox_link_column_project_files_table', 1),
(111, '2018_04_12_123243_create_file_storage_table', 1),
(112, '2018_04_13_072732_create_groups_table', 1),
(113, '2018_04_13_092757_create_employee_groups_table', 1),
(114, '2018_04_17_113657_set_attendance_late_column_default', 1),
(115, '2018_05_07_065407_alter_invoice_id_null_payments', 1),
(116, '2018_05_07_065557_add_currency_id_column_payments_table', 1),
(117, '2018_05_08_064539_add_note_column_invoices', 1),
(118, '2018_05_15_072536_add_project_id_column_payments', 1),
(119, '2018_05_28_094515_set_gateway_column_null_payments_table', 1),
(120, '2018_05_29_070343_change_completed_on_column_to_datetime', 1),
(121, '2018_05_29_114402_populate_file_storage_settings_table', 1),
(122, '2018_05_30_051128_add_google_url_to_project_files_table', 1),
(123, '2018_06_05_092136_create_sub_tasks_table', 1),
(124, '2018_06_06_091511_create_task_comments_table', 1),
(125, '2018_06_11_054204_create_push_subscriptions_table', 1),
(126, '2018_06_14_094059_create_taxes_table', 1),
(127, '2018_06_18_065034_add_tax_id_column_invoice_items_table', 1),
(128, '2018_06_18_071442_add_discount_column_invoice_items_table', 1),
(129, '2018_06_21_052408_change_default_taskboard_columns', 1),
(130, '2018_06_26_160023_add_leave_count_column_leave_types_table', 1),
(131, '2018_06_27_072813_add_leaves_start_from_column', 1),
(132, '2018_06_27_075233_add_joining_date_column', 1),
(133, '2018_06_27_113713_add_gender_column_users_table', 1),
(134, '2018_06_28_054604_add_client_view_task_column_project_table', 1),
(135, '2018_06_28_191256_create_language_settings_table', 1),
(136, '2018_06_29_060331_add_active_theme_column_settings', 1),
(137, '2018_06_29_081128_add_manual_timelog_column_project_timelog', 1),
(138, '2018_06_29_104709_seed_languages', 1),
(139, '2018_08_02_121259_add_minutes_column_time_log_table', 1),
(140, '2018_08_22_103829_add_leaves_module', 1),
(141, '2018_08_22_104302_add_leaves_permissions', 1),
(142, '2018_08_27_114329_add_module_list_in_module_settings', 1),
(143, '2018_08_30_065158_add_status_column_users_table', 1),
(144, '2018_08_31_095814_create_lead_table', 1),
(145, '2018_08_31_095815_create_lead_source_table', 1),
(146, '2018_08_31_095815_create_lead_status_table', 1),
(147, '2018_08_31_095816_create_lead_follow_up_table', 1),
(148, '2018_09_04_095158_alter_lead_table', 1),
(149, '2018_09_04_095816_add_lead_module', 1),
(150, '2018_09_05_102010_create_proposal_table', 1),
(151, '2018_09_05_113230_create_proposal_items_table', 1),
(152, '2018_09_07_051239_alter_lead_website_table', 1),
(153, '2018_09_15_174026_add_default_lead_settings', 1),
(154, '2018_09_17_045718_add_leads_permission', 1),
(155, '2018_09_19_091643_add_remarks_to_payments_table', 1),
(156, '2018_09_19_100708_create_products_table', 1),
(157, '2018_09_21_095816_create_offline_payment_method_table', 1),
(158, '2018_09_25_065158_alter_payment_table', 1),
(159, '2018_09_28_110029_create_log_time_for_table', 1),
(160, '2018_09_28_965158_alter_project_time_log_table', 1),
(161, '2018_10_08_091643_alter_project_table', 1),
(162, '2018_10_08_110029_create_lead_files_table', 1),
(163, '2018_10_10_110029_create_holidays_table', 1),
(164, '2018_10_10_123601_create_project_templates_table', 1),
(165, '2018_10_10_125424_create_project_template_members_table', 1),
(166, '2018_10_10_135816_add_holiday_module', 1),
(167, '2018_10_10_251800_create_project_template_tasks_table', 1),
(168, '2018_10_16_095816_add_holiday_module_detail', 1),
(169, '2018_10_17_081757_remove_config_datatable_file', 1),
(170, '2018_10_17_965158_alter_leads_address_table', 1),
(171, '2018_10_17_965168_alter_leads_phone_table', 1),
(172, '2018_10_18_091643_alter_attendance_setting_table', 1),
(173, '2018_10_19_045718_add_holidays_permission', 1),
(174, '2018_10_20_094413_add_products_module', 1),
(175, '2018_10_20_094504_add_products_permissions', 1),
(176, '2018_10_21_051239_alter_holiday_website_table', 1),
(177, '2018_10_24_071300_add_file_column_to_invoices_table', 1),
(178, '2018_10_24_965158_alter_employee_detail_table', 1),
(179, '2018_10_29_965158_alter_attendance_setting_default_table', 1),
(180, '2018_11_10_071300_alter_user_table', 1),
(181, '2018_11_10_122646_create_task_category_table', 1),
(182, '2018_11_30_965158_alter_invoice_item_table', 1),
(183, '2018_12_12_965158_alter_invoice_estimate_response_table', 1),
(184, '2018_12_14_094504_add_expenses_permissions', 1),
(185, '2018_12_14_194504_add_expenses_permissions_detail', 1),
(186, '2018_12_20_1065158_alter_company_setting_table', 1),
(187, '2018_12_20_965158_alter_estimate_quantity_table', 1),
(188, '2018_12_27_074504_check_verify_purchase_file', 1),
(189, '2018_12_28_075730_create_push_notification_settings_table', 1),
(190, '2018_12_28_082056_add_send_push_column_email_notification_table', 1),
(191, '2018_12_28_123245_add_onesignal_player_id_column_users_table', 1),
(192, '2019_01_02_1065158_alter_module_setting_table', 1),
(193, '2019_01_02_2065158_insert_module_setting_client_table', 1),
(194, '2019_01_04_110029_create_employee_docs_table', 1),
(195, '2019_01_21_1065158_alter_task_creator_table', 1),
(196, '2019_02_06_1065158_alter_attendance_check_table', 1),
(197, '2019_02_11_1065158_alter_log_time_for_table', 1),
(198, '2019_02_12_2065158_insert_module_setting_client_task_table', 1),
(199, '2019_02_13_110029_create_skills_table', 1),
(200, '2019_02_13_130029_create_employee_skills_table', 1),
(201, '2019_02_15_1065158_alter_employee_end_date_table', 1),
(202, '2019_02_15_1165158_alter_custom_status_table', 1),
(203, '2019_02_20_074848_create_jobs_table', 1),
(204, '2019_02_22_1165158_add_company_currency_api_google_api', 1),
(205, '2019_03_11_965158_alter_expenses_quantity_table', 1),
(206, '2019_04_03_965158_alter_project_deadline_table', 1),
(207, '2019_04_04_074848_alter_invoice_setting_table', 1),
(208, '2019_04_04_075848_alter_client_Details_table', 1),
(209, '2019_04_10_075848_alter_setting_task_table', 1),
(210, '2019_04_10_122921_add_weather_key_column', 1),
(211, '2019_04_12_100242_add_columns_projects_table', 1),
(212, '2019_04_15_115700_add_budget_columns_projects_table', 1),
(213, '2019_04_17_070105_create_project_milestones_table', 1),
(214, '2019_04_23_062017_add_item_summary_column_invoice_item_table', 1),
(215, '2019_04_23_083812_add_invoice_created_column_project_milestones_table', 1),
(216, '2019_04_23_101747_add_milestone_id_column_tasks_table', 1),
(217, '2019_06_04_180628_change_project_budget_field_type', 1),
(218, '2019_06_07_070913_add_tax_id_column_estimate_items_table', 1),
(219, '2019_06_07_080053_add_discount_column_estimates_table', 1),
(220, '2019_07_01_192543_change_size_price_in_double', 1),
(221, '2019_07_02_072314_add_description_column_products_table', 1),
(222, '2019_07_15_110127_add_project_id_column_in_expenses_table', 1),
(223, '2019_08_13_073129_update_settings_add_envato_key', 1),
(224, '2019_08_13_073129_update_settings_add_support_key', 1),
(225, '2019_08_16_080219_change_price_size_proposal', 1),
(226, '2019_08_17_072443_add_datepicker_format_column_in_settings', 1),
(227, '2019_08_19_000000_create_failed_jobs_table', 1),
(228, '2019_08_19_085009_add_google_recaptcha_columns_in_organisation_settings_table', 1),
(229, '2019_08_19_120826_add_app_debug_column_in_organisation_settings_table', 1),
(230, '2019_08_22_055908_add_invoice_email_setting_to_email_notification_setting_table', 1),
(231, '2019_08_22_121805_add_external_link_column_project_files_table', 1),
(232, '2019_08_26_120718_add_offline_method_id_column_payments_table', 1),
(233, '2019_08_28_081847_update_smtp_setting_verified', 1),
(234, '2019_08_29_140115_make_smtp_type_nullable', 1),
(235, '2019_08_30_102114_add_reminder_fields_in_events_table', 1),
(236, '2019_09_03_103533_add_razorpay_column', 1),
(237, '2019_09_04_115714_add_recurring_task_id_column_in_tasks_table', 1),
(238, '2019_09_05_061308_create_project_settings_table', 1),
(239, '2019_09_09_045256_add_estimate_number_column_in_estimates_table', 1),
(240, '2019_09_09_081030_add_rounded_theme_column', 1),
(241, '2019_09_09_115714_add_cron_job_message_hide_table', 1),
(242, '2019_09_10_1074848_create_designation_table', 1),
(243, '2019_09_10_111909_add_columns_in_invoice_settings_table', 1),
(244, '2019_09_10_115714_add_team_field_employee_table', 1),
(245, '2019_09_10_161408_create_credit_note_table', 1),
(246, '2019_09_10_161418_create_credit_note_item_table', 1),
(247, '2019_09_10_161428_add_credit_note_column_in_invoices_table', 1),
(248, '2019_09_14_074854_add_status_column_projects_table', 1),
(249, '2019_09_16_101138_create_gdpr_settings_table', 1),
(250, '2019_09_17_091214_create_removal_requests_table', 1),
(251, '2019_09_18_191957_add_payments_module_clients', 1),
(252, '2019_09_25_095015_create_removal_requests_lead_table', 1),
(253, '2019_09_25_183130_create_dashboard_widgets_table', 1),
(254, '2019_09_27_212735_add_timelog_module_clients', 1),
(255, '2019_10_04_101818_add_paypal_mode_in_payment_gateway_credentials_table', 1),
(256, '2019_10_10_115133_alter_status_column_in_estimates_table', 1),
(257, '2019_10_14_060314_create_accept_estimates_table', 1),
(258, '2019_10_14_090840_alter_project_id_column_in_invoices_table', 1),
(259, '2019_10_14_110606_add_estimate_id_column_in_invoices_table', 1),
(260, '2019_10_15_052931_create_contract_types_table', 1),
(261, '2019_10_15_052932_create_contracts_table', 1),
(262, '2019_10_15_084310_add_contract_module_in_module_settings', 1),
(263, '2019_10_15_115655_create_contract_signs_table', 1),
(264, '2019_10_15_120940_create_invoice_credit_note_pivot_table', 1),
(265, '2019_10_17_051544_create_contract_discussions_table', 1),
(266, '2019_10_18_045028_alter_credit_note_status_in_credit_notes_table', 1),
(267, '2019_10_21_130413_create_task_files_table', 1),
(268, '2019_10_21_230413_create_ticket_files_table', 1),
(269, '2019_10_22_063419_add_dependent_task_id_in_tasks_table', 1),
(270, '2019_10_23_122412_create_contract_renews_table', 1),
(271, '2019_10_24_045038_add_column_module_type_in_universal_search_table', 1),
(272, '2019_10_24_120220_add_origin_amount_column_in_contracts_table', 1),
(273, '2019_10_30_045045_add_column_invoice_item_table', 1),
(274, '2019_10_30_122412_create_lead_agent_table', 1),
(275, '2019_10_31_045055_add_column_credit_note_item_table', 1),
(276, '2019_10_31_045065_add_column_estimate_item_table', 1),
(277, '2019_11_01_045075_add_column_products_table', 1),
(278, '2019_11_01_142619_add_column_to_in_notices_table', 1),
(279, '2019_11_05_082637_add_client_id_in_invoices_table', 1),
(280, '2019_11_07_082637_add_purchase_allow_in_product_table', 1),
(281, '2019_11_12_054145_add_system_update_column_in_organisation_settings_table', 1),
(282, '2019_11_13_054155_add_employee_id_column_in_employee_details_table', 1),
(283, '2019_11_14_054145_add_discount_column_in_proposal_table', 1),
(284, '2019_11_14_064145_add_tax_column_in_proposal_item_table', 1),
(285, '2019_11_21_064155_add_task_module_in_module_setting_table', 1),
(286, '2019_12_01_115133_alter_invoice_status_table', 1),
(287, '2019_12_09_171149_make_taxes_nullable_propsal_items_table', 1),
(288, '2019_12_18_115133_alter_proposal_items_table', 1),
(289, '2019_12_19_115850_add_timelogs_client_modules', 1),
(290, '2019_12_20_143625_add_logo_background_color_column_settings_table', 1),
(291, '2020_01_09_100241_add_client_id_credit_note_table', 1),
(292, '2020_01_09_105514_set_default_status_credit_note_open', 1),
(293, '2020_01_09_121406_add_task_reminder_columns', 1),
(294, '2020_01_22_122009_add_is_private_column_tasks_table', 1),
(295, '2020_01_23_062328_create_task_history_table', 1),
(296, '2020_01_24_134008_add_default_task_status_column_organisation_settings', 1),
(297, '2020_01_27_122145_create_pusher_settings_table', 1),
(298, '2020_02_01_101914_update_settings_review', 1),
(299, '2020_02_04_061753_add_team_id_field_in_projects_table', 1),
(300, '2020_02_04_132100_add_contracts_permission', 1),
(301, '2020_02_10_093726_create_table_menu', 1),
(302, '2020_02_14_102832_create_task_users_table', 1),
(303, '2020_02_17_143257_add_slug_email_notification_table', 1),
(304, '2020_02_21_121956_update_storage_settings_to_local', 1),
(305, '2020_02_24_060416_update_invoice_setting_logo', 1),
(306, '2020_03_11_054833_add_shipping_address_field_in_client_details_table', 1),
(307, '2020_03_11_085729_add_show_shipping_field_in_invoices_table', 1),
(308, '2020_03_17_411909_alter_invocie_number_in_invoice_table', 1),
(309, '2020_03_19_112832_create_project_template_task_users_table', 1),
(310, '2020_03_20_2065158_insert_modules_setting_client_table', 1),
(311, '2020_03_23_185549_make_message_nullable_ticket_reply_table', 1),
(312, '2020_04_06_130331_create_discussion_categories_table', 1),
(313, '2020_04_06_132027_create_discussions_table', 1),
(314, '2020_04_06_133759_create_discussion_replies_table', 1),
(315, '2020_04_08_094325_add_best_answer_id_discussions_table', 1),
(316, '2020_04_08_125803_add_discussion_reply_email_notification_settings_table', 1),
(317, '2020_04_09_102411_add_last_reply_by_discussions_table', 1),
(318, '2020_04_12_2065158_insert_contract_employee_modules_setting_table', 1),
(319, '2020_04_14_144941_add_last_login_column_users_table', 1),
(320, '2020_04_20_083724_add_hourly_rate_project_timelogs', 1),
(321, '2020_04_20_114349_add_hourly_rate_project_members', 1),
(322, '2020_04_20_173833_add_project_id_value_for_tasks_timelogs', 1),
(323, '2020_04_23_124301_add_billable_column_tasks_table', 1),
(324, '2020_04_24_115049_add_approved_invoice_id_column_project_time_logs', 1),
(325, '2020_04_24_122510_add_approval_required_column_log_time_for', 1),
(326, '2020_05_13_070505_change_earning_by_minutes_timelogs', 1),
(327, '2020_05_13_113533_add_receipt_column_payments_table', 1),
(328, '2020_05_19_114539_add_custom_field_groups', 1),
(329, '2020_05_20_131017_change_project_team_id_cascade', 1),
(330, '2020_05_21_041143_create_social_auth_settings_table', 1),
(331, '2020_05_26_084027_add_column_expenses_table', 1),
(332, '2020_05_30_093624_add_send_status_column_invoices_table', 1),
(333, '2020_06_01_080620_add_send_status_column_estimates_table', 1),
(334, '2020_06_02_160923_add_email_notifications_column_users_table', 1),
(335, '2020_06_15_100530_create_task_tag_list_table', 1),
(336, '2020_06_15_116005_create_task_tags_table', 1),
(337, '2020_06_16_160933_alter_date_format_table', 1),
(338, '2020_06_20_030225_alter_task_tags_to_label_table', 1),
(339, '2020_06_26_131840_add_column_priority_column_leads_table', 1),
(340, '2020_06_29_141051_create_sessions_table', 1),
(341, '2020_07_06_171614_add_phone_country_code_column_users_table', 1),
(342, '2020_07_07_2065158_insert_module_setting_client_expense_payment_table', 1),
(343, '2020_07_08_2065258_enter_lead_status_id_table', 1),
(344, '2020_07_08_2931840_add_column_category_id_in_template_task_table', 1),
(345, '2020_07_15_112558_add_default_currency_projects', 1),
(346, '2020_07_16_583130_alter_dashboard_widgets_table', 1),
(347, '2020_07_21_583130_add_due_amount_column_in_invoice_table', 1),
(348, '2020_08_13_114705_set_task_category_id_column_null', 1),
(349, '2020_08_19_051839_create_employee_leave_quotas_table', 1),
(350, '2020_08_25_081839_add_columns_in_notices_table', 1),
(351, '2020_08_25_081839_alter_leads_value_table', 1),
(352, '2020_08_28_081839_add_columns_parent_in_invoice_table', 1),
(353, '2020_09_17_114705_set_credit_note_amount', 1),
(354, '2020_09_17_196005_create_task_notes_table', 1),
(355, '2020_09_18_104145_add_estimate_fields_tasks_table', 1),
(356, '2020_09_24_522646_create_expenses_category_table', 1),
(357, '2020_09_28_054230_create_expenses_recurring_table', 1),
(358, '2020_10_06_522646_create_product_category_table', 1),
(359, '2020_10_07_522646_create_pinned_table', 1),
(360, '2020_10_15_054230_create_invoice_recurring_table', 1),
(361, '2020_10_20_094043_add_dashboard_clock_column_organisation_setting_table', 1),
(362, '2020_10_29_111515_add_companylogo_address_column_in_contracts_table', 1),
(363, '2020_11_02_130413_create_contract_files_table', 1),
(364, '2020_11_17_115634_add_lead_custom_field_group', 1),
(365, '2020_11_18_065533_create_lead_custom_forms_table', 1),
(366, '2020_11_18_083624_add_city_state_to_client_details', 1),
(367, '2020_11_18_090244_add_city_state_to_leads_table', 1),
(368, '2020_11_19_063807_add_city_state_column_in_contracts_table', 1),
(369, '2020_11_19_091349_alter_country_cell_column_in_client_details', 1),
(370, '2020_11_20_104942_create_lead_category_table', 1),
(371, '2020_11_23_052427_add_category_id_column_in_leads_table', 1),
(372, '2020_11_25_114705_cancel_status_estimate', 1),
(373, '2020_11_27_092136_create_project_template_sub_tasks_table', 1),
(374, '2020_12_01_092136_create_notice_view_table', 1),
(375, '2020_12_02_055908_add_product_purchase_email_notification_setting_table', 1),
(376, '2020_12_03_065533_create_ticket_custom_forms_table', 1),
(377, '2020_12_04_114305_create_client_category_table', 1),
(378, '2020_12_08_075308_create_project_rating_table', 1),
(379, '2020_12_08_082101_add_paid_column_in_leave_types', 1),
(380, '2020_12_08_110140_add_paid_column_in_leaves_table', 1),
(381, '2020_12_21_072055_create_permission_types_table', 1),
(382, '2020_12_21_072058_create_user_permissions_table', 1),
(383, '2020_12_21_132255_add_user_permisisons', 1),
(384, '2020_12_22_071337_add_owned_by_added_by_last_updated_by_columns', 1),
(385, '2020_12_28_200000_add_two_factor_columns_to_users_table', 1),
(386, '2020_12_30_101513_add_owned_by_added_by_last_updated_by_columns_projects', 1),
(387, '2021_01_11_110041_add_owned_by_added_by_last_updated_by_columns_tasks', 1),
(388, '2021_01_18_084827_add_estimate_terms_column_invoice_settings', 1),
(389, '2021_01_19_060745_add_slug_new_product_purchase_in_email_notification_table', 1),
(390, '2021_01_29_152503_lead_custom_field_name_change', 1),
(391, '2021_02_05_055908_add_lead_proposal_email_setting', 1),
(392, '2021_02_05_114041_create_user_taskboard_settings_table', 1),
(393, '2021_02_08_115655_create_proposal_signs_table', 1),
(394, '2021_02_15_085425_modify_status_column_in_projects_table', 1),
(395, '2021_02_15_135533_alter_lead_custom_forms_table', 1),
(396, '2021_02_16_082106_add_mobile_column_in_tickets_table', 1),
(397, '2021_02_16_100313_add_added_by_last_updated_by_columns_to_events_table', 1),
(398, '2021_02_16_102604_add_added_by_last_updated_by_columns_to_products_table', 1),
(399, '2021_02_16_102906_add_added_by_last_updated_by_columns_to_notices_table', 1),
(400, '2021_02_17_122943_change_client_details_foreign_table', 1),
(401, '2021_02_19_102125_add_salutation_column_to_leads_table', 1),
(402, '2021_02_20_185545_add_owned_by_added_by_last_updated_by_columns_invoices', 1),
(403, '2021_02_22_101316_add_owned_by_added_by_last_updated_by_columns_payments', 1),
(404, '2021_02_23_173243_add_column_length_column', 1),
(405, '2021_02_24_084749_add_owned_by_added_by_last_updated_by_columns_estimates', 1),
(406, '2021_02_25_052941_add_owned_by_added_by_last_updated_by_columns_leads', 1),
(407, '2021_02_26_092320_create_currency_format_settings_table', 1),
(408, '2021_02_26_092817_add_sac_code_invoice_table', 1),
(409, '2021_02_27_070155_add_added_by_last_updated_by_columns_to_leaves_table', 1),
(410, '2021_02_28_095653_add_owned_by_added_by_last_updated_by_columns_expenses', 1),
(411, '2021_03_01_133056_create_user_leadboard_settings_table', 1),
(412, '2021_03_03_071758_add_owned_by_added_by_last_updated_by_columns_tinelogs', 1),
(413, '2021_03_03_130641_add_moment_format_column_settings_table', 1),
(414, '2021_03_04_060745_add_new_for_null_slug_email_notification_table', 1),
(415, '2021_03_08_022302_add_added_by_last_updated_by_columns_to_holidays_table', 1),
(416, '2021_03_09_123344_add_owned_by_added_by_last_updated_by_columns_contracts', 1),
(417, '2021_03_11_070400_update_contract_type_cascade', 1),
(418, '2021_03_15_112622_add_owned_by_added_by_last_updated_by_columns_attendance', 1),
(419, '2021_03_15_145533_add_last_cron_run_in_organisation_settings_table', 1),
(420, '2021_03_19_091501_add_favicon_in_organisation_settings_table', 1),
(421, '2021_03_19_123557_add_owned_by_added_by_last_updated_by_columns_tickets', 1),
(422, '2021_04_06_111105_sync_default_role_permission', 1),
(423, '2021_04_08_021853_add_owned_by_added_by_last_updated_by_columns_invoice_recurring', 1),
(424, '2021_04_14_080502_add_decription_column_in_proposals_table', 1),
(425, '2021_05_01_220324_add_dashboard_permissions', 1),
(426, '2021_05_03_055859_add_owned_by_added_by_last_updated_by_columns_credit_notes_table', 1),
(427, '2021_05_17_133302_reset_theme_default_colors', 1),
(428, '2021_05_26_102905_craete_client_notes_table', 1),
(429, '2021_05_30_174638_craete_project_notes_table', 1),
(430, '2021_05_31_050747_add_send_reminder_in_invoice_setting_table', 1),
(431, '2021_05_31_102117_task_share_unique_hash', 1),
(432, '2021_06_03_104606_add_owned_by_added_by_last_updated_by_columns_project_ratings', 1),
(433, '2021_06_07_132858_create_user_invitations_table', 1),
(434, '2021_06_08_072201_add_close_date_in_ticket_table', 1),
(435, '2021_06_09_101110_remove_visible_rating_employee_column_from_projects_table', 1),
(436, '2021_06_16_185748_add_dark_theme_column_users_table', 1),
(437, '2021_06_24_185748_add_column_payment_gateway_credentials_table', 1),
(438, '2021_06_29_104606_add_manage_project_template_permission', 1),
(439, '2021_07_07_093528_alter_userid_on_project_template_member', 1),
(440, '2021_07_20_102117_invoice_client_fix', 1),
(441, '2021_07_23_181545_add_status_column_to_slack_settings_table', 1),
(442, '2021_07_25_041851_add_report_permissions', 1),
(443, '2021_08_04_171200_add_mail_connection_column_email_settings', 1),
(444, '2021_08_06_085318_remove_on_delete_cascade_from_category_id_on_products_table', 1),
(445, '2021_08_10_081641_change_default_value_of_paypal_and_stripe_on_payment_gateway_credentials_table', 1),
(446, '2021_08_10_092728_add_allowed_permission_column_permissions_table', 1),
(447, '2021_08_10_092728_alter_allowed_permission_column_permissions_table', 1),
(448, '2021_08_13_094921_change_notification_notifications_table', 1),
(449, '2021_08_16_161256_set_discussion_category_id_null_on_category_delete', 1),
(450, '2021_08_17_095756_change_details_columns_type_to_longtext_on_client_note_and_project_note_tables', 1),
(451, '2021_08_19_174641_change_text_longtext', 1),
(452, '2021_08_20_100009_change_hourly_rate_double', 1),
(453, '2021_08_20_121027_add_dashboard_module_permission', 1),
(454, '2021_08_23_125630_create_orders_table', 1),
(455, '2021_08_26_120755_add_order_id_column_to_payments_table', 1),
(456, '2021_08_27_100840_add_order_id_to_invoices_table', 1),
(457, '2021_08_31_071303_add_failed_status_on_payments_table', 1),
(458, '2021_09_01_124609_add_order_module_and_permissions', 1),
(459, '2021_09_02_080343_add_hash_columns', 1),
(460, '2021_09_02_182736_add_notice_module_clients', 1),
(461, '2021_09_03_182020_add_default_permissions', 1),
(462, '2021_09_06_182020_change_dashboard_widget_name', 1),
(463, '2021_09_07_084452_delete_notices_module_from_client', 1),
(464, '2021_09_08_142150_add_payment_gateway_response_column_to_payment_table', 1),
(465, '2021_09_09_085024_add_taskboard_message_pusher_settings', 1),
(466, '2021_09_14_162221_add_payload_id_to_payments_table', 1),
(467, '2021_09_15_072728_copy_credit_notes_invoice_table_data_to_payments_table', 1),
(468, '2021_09_15_190915_add_column_calculate_tax', 1),
(469, '2021_09_17_115037_remove_credit_notes_invoice_table', 1),
(470, '2021_09_20_095509_alter_and_add_payment_gateways_credentials', 1),
(471, '2021_09_22_045939_change_subtask_in_notifications_table', 1),
(472, '2021_09_22_085009_change_google_recaptcha_columns_in_organisation_settings_table', 1),
(473, '2021_09_24_083220_add_currency_id_to_contracts_table', 1),
(474, '2021_09_24_100722_add_view_hourly_rate_permission', 1),
(475, '2021_09_29_071418_add_salutation_column_on_users_table', 1),
(476, '2021_09_29_075245_add_lead_status_change_permission', 1),
(477, '2021_09_30_130413_attendance_setting_alert', 1),
(478, '2021_10_01_074809_add_leave_change_permission', 1),
(479, '2021_10_03_190531_add_sidebar_logo_style_column_global_settings', 1),
(480, '2021_10_04_045942_add_2fa_columns_on_users_table', 1),
(481, '2021_10_04_130413_create_expenses_category_roles_table', 1),
(482, '2021_10_05_064140_change_date_null_in_task_table', 1),
(483, '2021_10_05_130413_custom_field_group_change_table', 1),
(484, '2021_10_06_130413_create_sub_task_files_table', 1),
(485, '2021_10_11_092617_add_session_driver_column_organisation_settings', 1),
(486, '2021_10_12_062814_change_authenticate_via_column', 1),
(487, '2021_10_12_073058_make_email_nullable_users_table', 1),
(488, '2021_10_12_121613_add_approve_reject_leaves_permissions', 1),
(489, '2021_10_13_103621_add_client_signup_columns_settings_table', 1),
(490, '2021_10_14_073904_add_admin_approval_column_users_table', 1),
(491, '2021_10_16_113306_add_two_factor_confirmed_column_users_table', 1),
(492, '2021_10_18_131815_allow_gender_null', 1),
(493, '2021_10_21_104332_add_employee_owned_permissions', 1),
(494, '2021_10_26_175349_change_ticket_permissions', 1),
(495, '2021_10_28_120427_add_recurring_columns_tasks', 1),
(496, '2021_11_11_145726_add_allowed_file_types_column', 1),
(497, '2021_11_13_063519_add_paystack_to_payment_gateway_credentials', 1),
(498, '2021_11_16_105840_change_product_sub_cat_relation', 1),
(499, '2021_11_17_111317_add_mollie_to_payment_gateway_credentials', 1),
(500, '2021_11_17_173210_create_company_addresses_table', 1),
(501, '2021_11_18_053337_add_tax_calculation_msg_to_invoice_settings_table', 1),
(502, '2021_11_19_115843_add_project_type_column_projects', 1),
(503, '2021_11_22_114532_move_gst_to_compane_address', 1),
(504, '2021_11_24_093356_add_payfast_to_payment_gateway_credentials', 1),
(505, '2021_11_24_093619_create_invoice_item_images_table', 1),
(506, '2021_11_25_134531_fix_timelog_time', 1),
(507, '2021_11_26_063416_add_authorize_to_payment_gateway_credentials', 1),
(508, '2021_11_29_060348_create_discussion_files_table', 1),
(509, '2021_11_30_063441_add_square_to_payment_gateway_credentials', 1),
(510, '2021_12_08_100451_add_image_column_to_products_table', 1),
(511, '2021_12_10_112406_add_permission_sync_column_users_table', 1),
(512, '2021_12_13_070928_add_proposal_items_images_table', 1),
(513, '2021_12_14_112039_add_location_column_company_addresses', 1),
(514, '2021_12_15_090905_create_recurring_invoice_item_images_table', 1),
(515, '2021_12_15_112911_add_recurring_expense_permission', 1),
(516, '2021_12_17_041814_create_job_batches_table', 1),
(517, '2021_12_20_053945_add_order_item_image_table', 1),
(518, '2021_12_21_044934_add_google_event_id_to_several_tables', 1),
(519, '2021_12_21_064709_add_title_field_in_client_contact_table', 1),
(520, '2021_12_21_121710_create_google_calendar_modules_table', 1),
(521, '2021_12_23_102347_change_clock_out_ip_make_nullable_to_attendances_table', 1),
(522, '2021_12_24_045226_add_paystack_mode_to_payment_gateway_credentials', 1),
(523, '2021_12_24_085109_add_save_location_column_attendance_settings', 1),
(524, '2021_12_27_065645_create_knowledgebase_categories_table', 1),
(525, '2021_12_27_090829_create_knowledge_bases_table', 1),
(526, '2021_12_28_112808_add_module_knowledgebase_and_permissions', 1),
(527, '2021_12_29_124232_add_lead_notes_table', 1),
(528, '2021_12_30_082542_add_added_by_column_knowledge_base_table', 1),
(529, '2022_01_03_090136_add_downloadable_to_products_table', 1),
(530, '2022_01_03_103014_create_database_backup_settings_table', 1),
(531, '2022_01_03_125020_add_product_id_to_order_items_table', 1),
(532, '2022_01_06_053854_set_product_description_to_nullable_in_products_table', 1),
(533, '2022_01_06_093627_add_default_permission_to_knowledge_bases_table', 1),
(534, '2022_01_11_104355_create_translate_settings_table', 1),
(535, '2022_01_13_080729_add_flutterwave_to_payment_gateway_credentials', 1),
(536, '2022_01_14_122713_add_change_role_permission', 1),
(537, '2022_01_15_055907_create_product_files_table', 1),
(538, '2022_01_19_112914_create_client_docs_table', 1),
(539, '2022_01_31_090302_add_missing_permissions_to_admin_role', 1),
(540, '2022_01_31_111358_change_reference_column_to_lead_notes_table', 1),
(541, '2022_02_01_104951_add_role_permissions_settings_permission', 1),
(542, '2022_02_01_113853_fix_permission_types', 1),
(543, '2022_02_03_065848_add_order_notification_to_email_notification_settings_table', 1),
(544, '2022_02_03_095618_change_quantity_type_in_order_items_table', 1),
(545, '2022_02_06_150726_add_product_custom_field_group', 1),
(546, '2022_02_07_175605_create_project_time_log_breaks_table', 1),
(547, '2022_02_09_084910_add_two_columns_in_sub_tasks_table', 1),
(548, '2022_02_10_083543_add_description_column_to_estimates_table', 1),
(549, '2022_02_11_182041_change_discussion_category_permission', 1),
(550, '2022_02_14_061344_add_birth_date_in_employee_detail_table', 1),
(551, '2022_02_14_101407_add_data_in_dashboard_widgets_table', 1),
(552, '2022_02_14_133011_remove_edit_project_file_permission', 1),
(553, '2022_02_14_180229_make_lead_email_nullable', 1),
(554, '2022_02_15_111216_update_notice_permissions', 1),
(555, '2022_02_15_151924_remove_product_file_permission', 1),
(556, '2022_02_16_063017_add_user_notification_to_email_notification_settings_table', 1),
(557, '2022_02_16_072041_remove_lead_file_permission', 1),
(558, '2022_02_16_173650_add_english_language', 1),
(559, '2022_02_17_083521_update_order_status_to_orders_table', 1),
(560, '2022_02_18_102942_create_emergency_contacts_table', 1),
(561, '2022_02_21_061830_add_emergency_contact_module_and_permission', 1),
(562, '2022_02_22_170153_add_item_summary_column_credit_note', 1),
(563, '2022_02_24_070325_add_allowed_file_size_global', 1),
(564, '2022_02_25_095712_add_discout_to_orders_table', 1),
(565, '2022_03_01_173825_add_approve_expense_permission', 1),
(566, '2022_03_03_024807_modify_signature_column_on_proposal_signs_table', 1),
(567, '2022_03_04_055054_add_few_fields_in_lead_follow_up_table', 1),
(568, '2022_03_07_053249_add_flutterwave_webhook_secret_hash_to_payment_gateway_credentials_table', 1),
(569, '2022_03_08_063640_add_added_by_and_updated_by_columns_to_ticket_agent_groups_table', 1),
(570, '2022_03_09_060457_add_several_fields_to_lead_custom_forms_table', 1),
(571, '2022_03_10_094321_add_unassigned_task_permission', 1),
(572, '2022_03_15_104220_add_several_fields_to_invoice_settings_table', 1),
(573, '2022_03_16_060139_add_missing_hash_in_invoices_table', 1),
(574, '2022_03_16_093939_change_chat_length', 1),
(575, '2022_03_22_101553_remove_html_tags_in_products', 1),
(576, '2022_03_28_081634_create_ticket_email_settings_table', 1),
(577, '2022_03_30_075758_add_imap_columns_tickets_table', 1),
(578, '2022_04_06_050532_create_files_table', 1),
(579, '2022_04_11_094350_add_company_address_id_to_orders_table', 1),
(580, '2022_04_20_173756_change_milestone_cost_limit', 1),
(581, '2022_04_21_074927_add_currency_key_version_column', 1),
(582, '2022_04_22_054036_add_view_earning_permission_timelogs', 1),
(583, '2022_04_22_102709_create_employee_shifts_table', 1),
(584, '2022_04_25_085447_ad_missing_admin_permissions', 1),
(585, '2022_05_03_180927_add_soft_delete_tax', 1),
(586, '2022_05_04_060741_fix_delete_cacade_recur_invoice', 1),
(587, '2022_05_06_065647_create_employee_shift_change_requests_table', 1),
(588, '2022_05_06_100620_add_location_column_in_attendance', 1),
(589, '2022_05_17_095236_add_show_clock_in_button_in_attendace_table', 1),
(590, '2022_05_23_062159_add_project_show_in_invoice_setting_table', 1),
(591, '2022_05_25_064410_add_column_employee_details_table', 1),
(592, '2022_05_25_072526_add_custom_fields_id_to_lead_custom_form_table', 1),
(593, '2022_05_27_002220_add_custom_fields_id_to_ticket_custom_form_table', 1),
(594, '2022_05_31_070019_add_ticket_to_custom_field_groups', 1),
(595, '2022_06_09_114831_add_view_shift_roster_permission', 1),
(596, '2022_06_13_084344_add_google_calender_status_to_users_table', 1),
(597, '2022_06_20_102221_add_private_dashboard_type_to_dashboard_widgets_table', 1),
(598, '2022_06_20_102234_add_date_in_project_milestones_table', 1),
(599, '2022_06_20_202945_add_shift_time_columns_attendance_table', 1),
(600, '2022_06_21_051915_add_reminder_and_send_reminder_after_column_to_invoice_settings_table', 1),
(601, '2022_06_22_072625_add_shift_time_columns_employee_shift_schedule_table', 1),
(602, '2022_06_23_124453_add_default_status_in_calendar_view_employee_details_table', 1),
(603, '2022_06_24_084953_add_project_id_column_to_task_label_list', 1),
(604, '2022_06_28_045956_add_column_to_message_setting_table', 1),
(605, '2022_07_01_063756_add_app_name_column_organisation_settings_table', 1),
(606, '2022_07_01_111241_add_parent_id_column_to_teams', 1),
(607, '2022_07_04_092625_change_date_format_in_organization_setting_table', 1),
(608, '2022_07_11_051015_add_timelog_to_cutom_field_groups', 1),
(609, '2022_07_13_115914_add_remark_column_shift', 1),
(610, '2022_07_13_191406_add_custom_invoice_number_column_invoices', 1),
(611, '2022_07_14_203040_remove_dashboards_employee_type', 1),
(612, '2022_07_19_144705_add_week_timelog_widget_setting_private_dashboard', 1),
(613, '2022_07_22_073943_update_settings_add_license_type', 1),
(614, '2022_07_24_115433_add_expense_report_permission', 1),
(615, '2022_07_25_122923_add_task_soft_delete', 1),
(616, '2022_07_25_141508_add_today_attendance_widget_hr_dashbaord', 1),
(617, '2022_07_28_043824_add_export_column_custom_fields_table', 1),
(618, '2022_07_28_175448_create_knowledge_base_files_table', 1),
(619, '2022_07_29_101111_add_indexes_to_table_columns', 1),
(620, '2022_08_01_104602_add_columns_to_employee_details', 1),
(621, '2022_08_02_113623_add_external_link_column_knowledge_base_files_table', 1),
(622, '2022_08_02_121434_add_timestamps_knowledge_base_files_table', 1),
(623, '2022_08_03_103344_add_auto_clock_in_column_to_attendance_settings_table', 1),
(624, '2022_08_04_075744_add_approved_columns_on_leaves', 1),
(625, '2022_08_04_122512_add_columns_in_leave_types', 1),
(626, '2022_08_04_184937_add_half_day_type_in_leaves_table', 1),
(627, '2018_01_01_000000_create_worksuite_new_table', 1),
(628, '2022_07_04_111754_add_project_short_code_column_project_table', 2),
(629, '2022_07_14_063826_contract_templates', 2),
(630, '2022_07_22_042424_create_proposal_templates_table', 2),
(631, '2022_08_03_101616_create_event_files_table', 2),
(632, '2022_08_12_000000_create_other_migration_till_date_table', 2),
(633, '2022_08_13_070443_add_task_unique_id_column_tasks_table', 2),
(634, '2022_08_18_120924_create_task_settings_table', 2),
(635, '2022_08_19_100314_add_leave_widget_in_dashboard_widget_table', 2),
(636, '2022_08_19_115209_create_project_status_settings_table', 2),
(637, '2022_08_22_104028_knowledge_heading_missing', 2),
(638, '2022_08_23_065943_change_status_type_projects_table', 2),
(639, '2022_08_24_122345_add_lead_widget_in_dashboard_widget_table', 2),
(640, '2022_08_25_085025_add_other_location_to_attendances_table', 2),
(641, '2022_08_25_123713_add_work_from_home_widget_in_dashboard_widgets_table', 2),
(642, '2022_08_26_042542_remove_on_delete_cascade_from_invoice_recurring_id_to_invoices', 2),
(643, '2022_08_26_053139_add_parent_id_column_designation_table', 2),
(644, '2022_08_29_064339_add_added_by_to_project_template', 2),
(645, '2022_08_29_103443_add_flag_code_column_to_language_settings', 2),
(646, '2022_09_00_000000_create_company_table', 2),
(647, '2022_09_01_000000_add_company_id_in_all_table', 2),
(648, '2022_09_01_060824_create_appreciations_table', 2),
(649, '2022_09_01_083053_create_global_settings_table', 2),
(650, '2022_09_02_151515_create_flags_table', 2),
(651, '2022_09_05_064405_add_miro_board_column_in_project_table', 2),
(652, '2022_09_07_172743_add_lead_status_column_to_permissions', 2),
(653, '2022_09_13_075642_add_customised_permission_column', 2),
(654, '2022_09_13_075642_create_leave_settings_table', 2),
(655, '2022_09_16_071005_add_headcount_and_joining_vs_attrition_widget_in_dashboard_widget_table', 2),
(656, '2022_09_16_105720_update_permission_of_client_and_employee_document', 2),
(657, '2022_09_19_124014_add_delete_approve_leave_in_permission_table', 2),
(658, '2022_09_20_045836_add_bank_account_module_in_module_table', 2),
(659, '2022_09_23_053942_update_type_of_hsn_sac_code_to_proposal_template_items', 2),
(660, '2022_09_23_181722_add_approve_reason_column_to_leaves_table', 2),
(661, '2022_10_09_155207_add_custom_year_to_companies_table', 2),
(662, '2022_10_31_130459_order_with_order_number', 2),
(663, '2022_11_03_115958_add_auto_clock_in_location_to_attendance_settings_table', 2),
(664, '2022_11_16_122431_add_contract_note_to_contracts_table', 2),
(665, '2022_11_23_070556_show_new_webhook_alert', 2),
(666, '2022_11_25_083742_add_company_id_for_null_values', 2),
(667, '2022_12_01_070705_create_leave_files_table', 2),
(668, '2022_12_05_062331_create_emoji_address_ticket_widget_table', 2),
(669, '2022_12_12_113800_add_wasabi_hash_test_payfast', 2),
(670, '2022_12_13_071454_add_currency_id_in_currency_format_table', 2),
(671, '2022_12_13_112213_add_new_fields_in_employee_details_table', 2),
(672, '2022_12_28_112213_add_new_fields_in_companies_table', 2),
(673, '2022_12_29_061634_add_column_in_invoice_table', 2),
(674, '2022_12_29_084526_create_subscriptions_table', 2),
(675, '2022_12_30_045028_add_number_separator_to_invoice_settings_table', 2),
(676, '2022_12_30_090615_move_google_map_key', 2),
(677, '2023_01_05_084453_add_column_in_log_time_table', 2),
(678, '2023_01_09_162235_create_estimate_templates_table', 2),
(679, '2023_01_20_052539_create_unit_types_table', 2),
(680, '2023_01_23_122023_add_column_in_invoice_recurring_table', 2),
(681, '2023_01_31_072924_add_settings_to_email_notification_settings', 2),
(682, '2023_02_01_085841_add_company_sign_contracts_table', 2),
(683, '2023_02_04_064358_create_lead_products_table', 2),
(684, '2023_02_07_122807_create_quick_books_settings_table', 2),
(685, '2023_02_09_083357_create_passprt_and_visa_table', 2),
(686, '2023_02_13_045833_add_report_column_in_log_time_table', 2),
(687, '2023_02_15_045950_add_unit_id_orders_table', 2),
(688, '2023_02_15_121548_add_data_in_ticket_custom_forms_table', 2),
(689, '2023_02_17_052112_add_permissions_for_lead_report', 2),
(690, '2023_03_16_105629_add_manage_ticket_group_field_in_permission_table', 2),
(691, '2023_03_17_045842_lead_custom_field', 2),
(692, '2023_03_21_090422_add_order_prefix_in_invoice_settings_table', 2),
(693, '2023_03_23_064221_add_country_phonecode_column_in_users_table', 2),
(694, '2023_03_24_073030_add_payment_columns_in_invoices_table', 2),
(695, '2023_03_24_081626_add_permission_for_sales_report', 2),
(696, '2023_03_29_072032_create_order_carts_table', 2),
(697, '2023_03_31_123237_fix_timelog_project_id', 2);

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

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

CREATE TABLE `modules` (
  `id` int(10) UNSIGNED NOT NULL,
  `module_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;

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

INSERT INTO `modules` (`id`, `module_name`, `description`, `created_at`, `updated_at`) VALUES
(1, 'clients', NULL, '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(2, 'employees', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(3, 'projects', 'User can view the basic details of projects assigned to him even without any permission.', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(4, 'attendance', 'User can view his own attendance even without any permission.', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(5, 'tasks', 'User can view the tasks assigned to him even without any permission.', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(6, 'estimates', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(7, 'invoices', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(8, 'payments', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(9, 'timelogs', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(10, 'tickets', 'User can view the tickets generated by him as default even without any permission.', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(11, 'events', 'User can view the events to be attended by him as default even without any permission.', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(12, 'notices', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(13, 'leaves', 'User can view the leaves applied by him as default even without any permission.', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(14, 'leads', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(15, 'holidays', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(16, 'products', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(17, 'expenses', 'User can view and add(self expenses) the expenses as default even without any permission.', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(18, 'contracts', 'User can view all contracts', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(19, 'reports', 'User can manage permission of particular report', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(20, 'settings', 'User can manage settings', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(21, 'dashboards', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(22, 'orders', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(23, 'knowledgebase', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(24, 'bankaccount', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(25, 'messages', NULL, '2024-07-10 05:39:22', '2024-07-10 05:39:22');

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

--
-- Table structure for table `module_settings`
--

CREATE TABLE `module_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `module_name` varchar(191) NOT NULL,
  `status` enum('active','deactive') NOT NULL,
  `type` enum('admin','employee','client') NOT NULL DEFAULT 'admin',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `module_settings`
--

INSERT INTO `module_settings` (`id`, `company_id`, `module_name`, `status`, `type`, `created_at`, `updated_at`) VALUES
(1, 1, 'clients', 'active', 'admin', NULL, NULL),
(2, 1, 'projects', 'active', 'admin', NULL, NULL),
(3, 1, 'tickets', 'active', 'admin', NULL, NULL),
(4, 1, 'invoices', 'active', 'admin', NULL, NULL),
(5, 1, 'estimates', 'active', 'admin', NULL, NULL),
(6, 1, 'events', 'active', 'admin', NULL, NULL),
(7, 1, 'messages', 'active', 'admin', NULL, NULL),
(8, 1, 'tasks', 'active', 'admin', NULL, NULL),
(9, 1, 'timelogs', 'active', 'admin', NULL, NULL),
(10, 1, 'contracts', 'active', 'admin', NULL, NULL),
(11, 1, 'notices', 'active', 'admin', NULL, NULL),
(12, 1, 'payments', 'active', 'admin', NULL, NULL),
(13, 1, 'orders', 'active', 'admin', NULL, NULL),
(14, 1, 'knowledgebase', 'active', 'admin', NULL, NULL),
(15, 1, 'employees', 'active', 'admin', NULL, NULL),
(16, 1, 'attendance', 'active', 'admin', NULL, NULL),
(17, 1, 'expenses', 'active', 'admin', NULL, NULL),
(18, 1, 'leaves', 'active', 'admin', NULL, NULL),
(19, 1, 'leads', 'active', 'admin', NULL, NULL),
(20, 1, 'holidays', 'active', 'admin', NULL, NULL),
(21, 1, 'products', 'active', 'admin', NULL, NULL),
(22, 1, 'reports', 'active', 'admin', NULL, NULL),
(23, 1, 'settings', 'active', 'admin', NULL, NULL),
(24, 1, 'bankaccount', 'active', 'admin', NULL, NULL),
(25, 1, 'clients', 'active', 'employee', NULL, NULL),
(26, 1, 'projects', 'active', 'employee', NULL, NULL),
(27, 1, 'tickets', 'active', 'employee', NULL, NULL),
(28, 1, 'invoices', 'active', 'employee', NULL, NULL),
(29, 1, 'estimates', 'active', 'employee', NULL, NULL),
(30, 1, 'events', 'active', 'employee', NULL, NULL),
(31, 1, 'messages', 'active', 'employee', NULL, NULL),
(32, 1, 'tasks', 'active', 'employee', NULL, NULL),
(33, 1, 'timelogs', 'active', 'employee', NULL, NULL),
(34, 1, 'contracts', 'active', 'employee', NULL, NULL),
(35, 1, 'notices', 'active', 'employee', NULL, NULL),
(36, 1, 'payments', 'active', 'employee', NULL, NULL),
(37, 1, 'orders', 'active', 'employee', NULL, NULL),
(38, 1, 'knowledgebase', 'active', 'employee', NULL, NULL),
(39, 1, 'employees', 'active', 'employee', NULL, NULL),
(40, 1, 'attendance', 'active', 'employee', NULL, NULL),
(41, 1, 'expenses', 'active', 'employee', NULL, NULL),
(42, 1, 'leaves', 'active', 'employee', NULL, NULL),
(43, 1, 'leads', 'active', 'employee', NULL, NULL),
(44, 1, 'holidays', 'active', 'employee', NULL, NULL),
(45, 1, 'products', 'active', 'employee', NULL, NULL),
(46, 1, 'reports', 'active', 'employee', NULL, NULL),
(47, 1, 'settings', 'active', 'employee', NULL, NULL),
(48, 1, 'bankaccount', 'active', 'employee', NULL, NULL),
(49, 1, 'clients', 'active', 'client', NULL, NULL),
(50, 1, 'projects', 'active', 'client', NULL, NULL),
(51, 1, 'tickets', 'active', 'client', NULL, NULL),
(52, 1, 'invoices', 'active', 'client', NULL, NULL),
(53, 1, 'estimates', 'active', 'client', NULL, NULL),
(54, 1, 'events', 'active', 'client', NULL, NULL),
(55, 1, 'messages', 'active', 'client', NULL, NULL),
(56, 1, 'tasks', 'active', 'client', NULL, NULL),
(57, 1, 'timelogs', 'active', 'client', NULL, NULL),
(58, 1, 'contracts', 'active', 'client', NULL, NULL),
(59, 1, 'notices', 'active', 'client', NULL, NULL),
(60, 1, 'payments', 'active', 'client', NULL, NULL),
(61, 1, 'orders', 'active', 'client', NULL, NULL),
(62, 1, 'knowledgebase', 'active', 'client', NULL, NULL);

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

--
-- Table structure for table `notices`
--

CREATE TABLE `notices` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `to` varchar(191) NOT NULL DEFAULT 'employee',
  `heading` varchar(191) NOT NULL,
  `description` mediumtext DEFAULT NULL,
  `department_id` int(10) UNSIGNED DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` 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;

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

--
-- Table structure for table `notice_views`
--

CREATE TABLE `notice_views` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `notice_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `read` 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 `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;

--
-- Dumping data for table `notifications`
--

INSERT INTO `notifications` (`id`, `type`, `notifiable_type`, `notifiable_id`, `data`, `read_at`, `created_at`, `updated_at`) VALUES
('3f63b23f-440e-430a-a8f7-cee74c456407', 'App\\Notifications\\NewPayment', 'App\\Models\\User', 2, '{\"id\":4,\"company_id\":1,\"project_id\":2,\"invoice_id\":8,\"order_id\":null,\"credit_notes_id\":null,\"total_payable_amount\":0,\"amount\":100,\"gateway\":null,\"transaction_id\":null,\"currency_id\":1,\"default_currency_id\":1,\"exchange_rate\":1,\"plan_id\":null,\"customer_id\":null,\"event_id\":null,\"status\":\"complete\",\"paid_on\":\"2024-07-15T00:00:00+00:00\",\"remarks\":\"stest\",\"offline_method_id\":null,\"bill\":null,\"added_by\":1,\"last_updated_by\":1,\"payment_gateway_response\":null,\"payload_id\":null,\"bank_account_id\":null,\"quickbooks_payment_id\":null,\"total_amount\":100,\"paid_date\":\"15 July, 2024 00:00 AM\",\"file_url\":\"http:\\/\\/127.0.0.1:8000\\/user-uploads\\/payment-receipt\",\"currency\":{\"id\":1,\"company_id\":1,\"currency_name\":\"Dollars\",\"currency_symbol\":\"$\",\"currency_code\":\"USD\",\"exchange_rate\":1,\"is_cryptocurrency\":\"no\",\"usd_price\":null,\"currency_position\":\"left\",\"no_of_decimal\":2,\"thousand_separator\":\",\",\"decimal_separator\":\".\"},\"order\":null,\"invoice\":{\"id\":8,\"company_id\":1,\"project_id\":2,\"client_id\":2,\"order_id\":null,\"invoice_number\":\"INV#003\",\"issue_date\":\"2024-07-15T00:00:00+00:00\",\"due_date\":\"2024-07-30T00:00:00+00:00\",\"sub_total\":500,\"discount\":0,\"discount_type\":\"percent\",\"total\":500,\"currency_id\":1,\"default_currency_id\":1,\"exchange_rate\":1,\"status\":\"unpaid\",\"recurring\":\"\",\"billing_cycle\":null,\"billing_interval\":null,\"billing_frequency\":null,\"file\":null,\"file_original_name\":null,\"note\":\"test\",\"credit_note\":0,\"show_shipping_address\":\"no\",\"estimate_id\":null,\"send_status\":1,\"due_amount\":400,\"parent_id\":null,\"invoice_recurring_id\":null,\"created_by\":null,\"added_by\":1,\"last_updated_by\":1,\"hash\":\"ade0127967ef990ea364afc81a8a792d\",\"calculate_tax\":\"after_discount\",\"company_address_id\":1,\"event_id\":null,\"custom_invoice_number\":\"INV#003\",\"payment_status\":\"1\",\"offline_method_id\":1,\"transaction_id\":\"fdfdfds\",\"gateway\":\"Offline\",\"bank_account_id\":null,\"last_viewed\":null,\"ip_address\":null,\"unit_id\":1,\"quickbooks_invoice_id\":null,\"total_amount\":\"$500\",\"issue_on\":\"15 July, 2024\",\"original_invoice_number\":\"003\",\"currency\":{\"id\":1,\"company_id\":1,\"currency_name\":\"Dollars\",\"currency_symbol\":\"$\",\"currency_code\":\"USD\",\"exchange_rate\":1,\"is_cryptocurrency\":\"no\",\"usd_price\":null,\"currency_position\":\"left\",\"no_of_decimal\":2,\"thousand_separator\":\",\",\"decimal_separator\":\".\"},\"address\":{\"id\":1,\"company_id\":1,\"address\":\"Your Company address here\",\"is_default\":1,\"tax_number\":null,\"tax_name\":null,\"location\":\"PMS\",\"latitude\":null,\"longitude\":null}},\"company\":{\"id\":1,\"company_name\":\"PMS\",\"app_name\":\"PMS\",\"company_email\":\"company@email.com\",\"company_phone\":\"1234567891\",\"logo\":null,\"login_background\":null,\"address\":\"Your Company address here\",\"website\":\"https:\\/\\/website.com\",\"currency_id\":1,\"timezone\":\"Asia\\/Kolkata\",\"date_format\":\"d-m-Y\",\"date_picker_format\":\"dd-mm-yyyy\",\"year_starts_from\":\"1\",\"moment_format\":\"DD-MM-YYYY\",\"time_format\":\"h:i a\",\"locale\":\"en\",\"latitude\":\"26.91243360\",\"longitude\":\"75.78727090\",\"leaves_start_from\":\"joining_date\",\"active_theme\":\"default\",\"status\":\"active\",\"last_updated_by\":null,\"google_map_key\":null,\"task_self\":\"yes\",\"rounded_theme\":1,\"logo_background_color\":\"1\",\"header_color\":\"#1D82F5\",\"before_days\":0,\"after_days\":0,\"on_deadline\":\"yes\",\"default_task_status\":1,\"dashboard_clock\":1,\"ticket_form_google_captcha\":0,\"lead_form_google_captcha\":0,\"taskboard_length\":10,\"datatable_row_limit\":10,\"favicon\":null,\"auth_theme\":\"light\",\"light_logo\":null,\"sidebar_logo_style\":\"square\",\"allow_client_signup\":0,\"admin_client_signup_approval\":0,\"google_calendar_status\":\"inactive\",\"google_client_id\":null,\"google_client_secret\":null,\"google_calendar_verification_status\":\"non_verified\",\"google_id\":null,\"name\":null,\"token\":null,\"hash\":\"854900023ee8efb2f6d889e6b1598c02\",\"last_login\":null,\"rtl\":0,\"show_new_webhook_alert\":0,\"pm_type\":null,\"pm_last_four\":null,\"logo_url\":\"http:\\/\\/127.0.0.1:8000\\/img\\/worksuite-logo.png\",\"login_background_url\":null,\"moment_date_format\":\"DD-MM-YYYY\",\"favicon_url\":\"http:\\/\\/127.0.0.1:8000\\/favicon.png\",\"invoice_setting\":{\"id\":1,\"company_id\":1,\"invoice_prefix\":\"INV\",\"invoice_number_separator\":\"#\",\"invoice_digit\":3,\"estimate_prefix\":\"EST\",\"estimate_number_separator\":\"#\",\"estimate_digit\":3,\"credit_note_prefix\":\"CN\",\"credit_note_number_separator\":\"#\",\"credit_note_digit\":3,\"contract_prefix\":\"CONT\",\"contract_number_separator\":\"#\",\"contract_digit\":3,\"order_prefix\":\"ODR\",\"order_number_separator\":\"#\",\"order_digit\":3,\"template\":\"invoice-5\",\"due_after\":15,\"invoice_terms\":\"Thank you for your business.\",\"estimate_terms\":null,\"gst_number\":null,\"show_gst\":\"no\",\"logo\":null,\"hsn_sac_code_show\":0,\"locale\":\"en\",\"send_reminder\":0,\"reminder\":null,\"send_reminder_after\":0,\"tax_calculation_msg\":0,\"show_status\":1,\"authorised_signatory\":0,\"authorised_signatory_signature\":null,\"show_project\":0,\"show_client_name\":\"yes\",\"show_client_email\":\"yes\",\"show_client_phone\":\"yes\",\"show_client_company_address\":\"yes\",\"show_client_company_name\":\"yes\",\"logo_url\":\"http:\\/\\/127.0.0.1:8000\\/img\\/worksuite-logo.png\",\"authorised_signatory_signature_url\":\"\",\"is_chinese_lang\":false,\"company\":{\"id\":1,\"company_name\":\"PMS\",\"app_name\":\"PMS\",\"company_email\":\"company@email.com\",\"company_phone\":\"1234567891\",\"logo\":null,\"login_background\":null,\"address\":\"Your Company address here\",\"website\":\"https:\\/\\/website.com\",\"currency_id\":1,\"timezone\":\"Asia\\/Kolkata\",\"date_format\":\"d-m-Y\",\"date_picker_format\":\"dd-mm-yyyy\",\"year_starts_from\":\"1\",\"moment_format\":\"DD-MM-YYYY\",\"time_format\":\"h:i a\",\"locale\":\"en\",\"latitude\":\"26.91243360\",\"longitude\":\"75.78727090\",\"leaves_start_from\":\"joining_date\",\"active_theme\":\"default\",\"status\":\"active\",\"last_updated_by\":null,\"google_map_key\":null,\"task_self\":\"yes\",\"rounded_theme\":1,\"logo_background_color\":\"1\",\"header_color\":\"#1D82F5\",\"before_days\":0,\"after_days\":0,\"on_deadline\":\"yes\",\"default_task_status\":1,\"dashboard_clock\":1,\"ticket_form_google_captcha\":0,\"lead_form_google_captcha\":0,\"taskboard_length\":10,\"datatable_row_limit\":10,\"favicon\":null,\"auth_theme\":\"light\",\"light_logo\":null,\"sidebar_logo_style\":\"square\",\"allow_client_signup\":0,\"admin_client_signup_approval\":0,\"google_calendar_status\":\"inactive\",\"google_client_id\":null,\"google_client_secret\":null,\"google_calendar_verification_status\":\"non_verified\",\"google_id\":null,\"name\":null,\"token\":null,\"hash\":\"854900023ee8efb2f6d889e6b1598c02\",\"last_login\":null,\"rtl\":0,\"show_new_webhook_alert\":0,\"pm_type\":null,\"pm_last_four\":null,\"logo_url\":\"http:\\/\\/127.0.0.1:8000\\/img\\/worksuite-logo.png\",\"login_background_url\":null,\"moment_date_format\":\"DD-MM-YYYY\",\"favicon_url\":\"http:\\/\\/127.0.0.1:8000\\/favicon.png\"}}},\"project\":{\"id\":2,\"company_id\":1,\"project_name\":\"tanzawa\",\"project_short_code\":\"dsfsdf\",\"project_summary\":\"\",\"project_admin\":null,\"start_date\":\"2024-07-01T00:00:00+00:00\",\"deadline\":null,\"notes\":\"\",\"category_id\":1,\"client_id\":2,\"team_id\":null,\"feedback\":null,\"manual_timelog\":\"disable\",\"client_view_task\":\"disable\",\"allow_client_notification\":\"disable\",\"completion_percent\":0,\"calculate_task_progress\":\"true\",\"project_budget\":null,\"currency_id\":1,\"hours_allocated\":null,\"status\":\"in progress\",\"added_by\":1,\"last_updated_by\":1,\"hash\":\"ddef10554fa68f83d3383c2db96a49f4\",\"public\":0,\"deleted_at\":null,\"enable_miroboard\":0,\"miro_board_id\":null,\"client_access\":0,\"isProjectAdmin\":false}}', NULL, '2024-07-14 22:24:14', '2024-07-14 22:24:14'),
('4b84a4ea-8e27-458d-884a-abe609429186', 'App\\Notifications\\NewProject', 'App\\Models\\User', 2, '{\"id\":2,\"company_id\":1,\"project_name\":\"tanzawa\",\"project_short_code\":\"dsfsdf\",\"project_summary\":\"\",\"project_admin\":null,\"start_date\":\"2024-07-01T00:00:00+00:00\",\"deadline\":null,\"notes\":\"\",\"category_id\":1,\"client_id\":2,\"team_id\":null,\"feedback\":null,\"manual_timelog\":\"disable\",\"client_view_task\":\"disable\",\"allow_client_notification\":\"disable\",\"completion_percent\":0,\"calculate_task_progress\":\"true\",\"project_budget\":null,\"currency_id\":1,\"hours_allocated\":null,\"status\":\"in progress\",\"added_by\":1,\"last_updated_by\":1,\"hash\":\"ddef10554fa68f83d3383c2db96a49f4\",\"public\":0,\"deleted_at\":null,\"enable_miroboard\":0,\"miro_board_id\":null,\"client_access\":0,\"isProjectAdmin\":false,\"client\":{\"id\":2,\"company_id\":1,\"name\":\"John Doe\",\"email\":\"john@gmail.com\",\"two_factor_secret\":null,\"two_factor_recovery_codes\":null,\"two_factor_confirmed\":0,\"two_factor_email_confirmed\":0,\"image\":null,\"country_phonecode\":null,\"mobile\":null,\"gender\":null,\"salutation\":null,\"locale\":\"en\",\"status\":\"active\",\"login\":\"disable\",\"onesignal_player_id\":null,\"last_login\":null,\"email_notifications\":0,\"country_id\":null,\"dark_theme\":0,\"rtl\":0,\"two_fa_verify_via\":null,\"two_factor_code\":null,\"two_factor_expires_at\":null,\"admin_approval\":1,\"permission_sync\":1,\"google_calendar_status\":1,\"customised_permissions\":0,\"stripe_id\":null,\"pm_type\":null,\"pm_last_four\":null,\"trial_ends_at\":null,\"image_url\":\"https:\\/\\/www.gravatar.com\\/avatar\\/1f9d9a9efc2f523b2f09629444632b5c.png?s=200&d=mp\",\"modules\":[\"clients\",\"projects\",\"tickets\",\"invoices\",\"estimates\",\"events\",\"messages\",\"tasks\",\"timelogs\",\"contracts\",\"notices\",\"payments\",\"orders\",\"knowledgebase\",\"employees\",\"attendance\",\"expenses\",\"leaves\",\"leads\",\"holidays\",\"products\",\"reports\",\"settings\",\"bankaccount\"],\"user_other_role\":null,\"mobile_with_phonecode\":\"--\",\"client_details\":{\"id\":1,\"company_id\":1,\"user_id\":2,\"company_name\":null,\"address\":null,\"shipping_address\":null,\"postal_code\":null,\"state\":null,\"city\":null,\"office\":null,\"website\":null,\"note\":null,\"linkedin\":null,\"facebook\":null,\"twitter\":null,\"skype\":null,\"gst_number\":null,\"category_id\":null,\"sub_category_id\":null,\"added_by\":1,\"last_updated_by\":1,\"company_logo\":null,\"quickbooks_client_id\":null,\"image_url\":\"http:\\/\\/127.0.0.1:8000\\/img\\/worksuite-logo.png\",\"company\":{\"id\":1,\"company_name\":\"PMS\",\"app_name\":\"PMS\",\"company_email\":\"company@email.com\",\"company_phone\":\"1234567891\",\"logo\":null,\"login_background\":null,\"address\":\"Your Company address here\",\"website\":\"https:\\/\\/website.com\",\"currency_id\":1,\"timezone\":\"Asia\\/Kolkata\",\"date_format\":\"d-m-Y\",\"date_picker_format\":\"dd-mm-yyyy\",\"year_starts_from\":\"1\",\"moment_format\":\"DD-MM-YYYY\",\"time_format\":\"h:i a\",\"locale\":\"en\",\"latitude\":\"26.91243360\",\"longitude\":\"75.78727090\",\"leaves_start_from\":\"joining_date\",\"active_theme\":\"default\",\"status\":\"active\",\"last_updated_by\":null,\"google_map_key\":null,\"task_self\":\"yes\",\"rounded_theme\":1,\"logo_background_color\":\"1\",\"header_color\":\"#1D82F5\",\"before_days\":0,\"after_days\":0,\"on_deadline\":\"yes\",\"default_task_status\":1,\"dashboard_clock\":1,\"ticket_form_google_captcha\":0,\"lead_form_google_captcha\":0,\"taskboard_length\":10,\"datatable_row_limit\":10,\"favicon\":null,\"auth_theme\":\"light\",\"light_logo\":null,\"sidebar_logo_style\":\"square\",\"allow_client_signup\":0,\"admin_client_signup_approval\":0,\"google_calendar_status\":\"inactive\",\"google_client_id\":null,\"google_client_secret\":null,\"google_calendar_verification_status\":\"non_verified\",\"google_id\":null,\"name\":null,\"token\":null,\"hash\":\"854900023ee8efb2f6d889e6b1598c02\",\"last_login\":null,\"rtl\":0,\"show_new_webhook_alert\":0,\"pm_type\":null,\"pm_last_four\":null,\"logo_url\":\"http:\\/\\/127.0.0.1:8000\\/img\\/worksuite-logo.png\",\"login_background_url\":null,\"moment_date_format\":\"DD-MM-YYYY\",\"favicon_url\":\"http:\\/\\/127.0.0.1:8000\\/favicon.png\"}},\"employee_detail\":null,\"role\":[{\"user_id\":2,\"role_id\":3}]},\"company\":{\"id\":1,\"company_name\":\"PMS\",\"app_name\":\"PMS\",\"company_email\":\"company@email.com\",\"company_phone\":\"1234567891\",\"logo\":null,\"login_background\":null,\"address\":\"Your Company address here\",\"website\":\"https:\\/\\/website.com\",\"currency_id\":1,\"timezone\":\"Asia\\/Kolkata\",\"date_format\":\"d-m-Y\",\"date_picker_format\":\"dd-mm-yyyy\",\"year_starts_from\":\"1\",\"moment_format\":\"DD-MM-YYYY\",\"time_format\":\"h:i a\",\"locale\":\"en\",\"latitude\":\"26.91243360\",\"longitude\":\"75.78727090\",\"leaves_start_from\":\"joining_date\",\"active_theme\":\"default\",\"status\":\"active\",\"last_updated_by\":null,\"google_map_key\":null,\"task_self\":\"yes\",\"rounded_theme\":1,\"logo_background_color\":\"1\",\"header_color\":\"#1D82F5\",\"before_days\":0,\"after_days\":0,\"on_deadline\":\"yes\",\"default_task_status\":1,\"dashboard_clock\":1,\"ticket_form_google_captcha\":0,\"lead_form_google_captcha\":0,\"taskboard_length\":10,\"datatable_row_limit\":10,\"favicon\":null,\"auth_theme\":\"light\",\"light_logo\":null,\"sidebar_logo_style\":\"square\",\"allow_client_signup\":0,\"admin_client_signup_approval\":0,\"google_calendar_status\":\"inactive\",\"google_client_id\":null,\"google_client_secret\":null,\"google_calendar_verification_status\":\"non_verified\",\"google_id\":null,\"name\":null,\"token\":null,\"hash\":\"854900023ee8efb2f6d889e6b1598c02\",\"last_login\":null,\"rtl\":0,\"show_new_webhook_alert\":0,\"pm_type\":null,\"pm_last_four\":null,\"logo_url\":\"http:\\/\\/127.0.0.1:8000\\/img\\/worksuite-logo.png\",\"login_background_url\":null,\"moment_date_format\":\"DD-MM-YYYY\",\"favicon_url\":\"http:\\/\\/127.0.0.1:8000\\/favicon.png\"}}', NULL, '2024-07-14 22:03:37', '2024-07-14 22:03:37'),
('58790fab-d4b8-428f-a738-1414b9f7c2be', 'App\\Notifications\\InvoicePaymentReceived', 'App\\Models\\User', 1, '{\"id\":8,\"invoice_number\":\"INV#003\"}', NULL, '2024-07-14 22:24:10', '2024-07-14 22:24:10'),
('5a646f43-2f80-4436-8899-fc952b3b9f8d', 'App\\Notifications\\NewProject', 'App\\Models\\User', 2, '{\"id\":1,\"company_id\":1,\"project_name\":\"test by amin\",\"project_short_code\":\"sfsdfsd\",\"project_summary\":\"\",\"project_admin\":null,\"start_date\":\"2024-07-01T00:00:00+00:00\",\"deadline\":null,\"notes\":\"\",\"category_id\":1,\"client_id\":2,\"team_id\":null,\"feedback\":null,\"manual_timelog\":\"disable\",\"client_view_task\":\"disable\",\"allow_client_notification\":\"disable\",\"completion_percent\":0,\"calculate_task_progress\":\"true\",\"project_budget\":null,\"currency_id\":1,\"hours_allocated\":null,\"status\":\"in progress\",\"added_by\":1,\"last_updated_by\":1,\"hash\":\"0cd35e7399a1b3248593f3c125d94f14\",\"public\":1,\"deleted_at\":null,\"enable_miroboard\":0,\"miro_board_id\":null,\"client_access\":0,\"isProjectAdmin\":false,\"client\":{\"id\":2,\"company_id\":1,\"name\":\"John Doe\",\"email\":\"john@gmail.com\",\"two_factor_secret\":null,\"two_factor_recovery_codes\":null,\"two_factor_confirmed\":0,\"two_factor_email_confirmed\":0,\"image\":null,\"country_phonecode\":null,\"mobile\":null,\"gender\":null,\"salutation\":null,\"locale\":\"en\",\"status\":\"active\",\"login\":\"disable\",\"onesignal_player_id\":null,\"last_login\":null,\"email_notifications\":0,\"country_id\":null,\"dark_theme\":0,\"rtl\":0,\"two_fa_verify_via\":null,\"two_factor_code\":null,\"two_factor_expires_at\":null,\"admin_approval\":1,\"permission_sync\":1,\"google_calendar_status\":1,\"customised_permissions\":0,\"stripe_id\":null,\"pm_type\":null,\"pm_last_four\":null,\"trial_ends_at\":null,\"image_url\":\"https:\\/\\/www.gravatar.com\\/avatar\\/1f9d9a9efc2f523b2f09629444632b5c.png?s=200&d=mp\",\"modules\":[\"clients\",\"projects\",\"tickets\",\"invoices\",\"estimates\",\"events\",\"messages\",\"tasks\",\"timelogs\",\"contracts\",\"notices\",\"payments\",\"orders\",\"knowledgebase\",\"employees\",\"attendance\",\"expenses\",\"leaves\",\"leads\",\"holidays\",\"products\",\"reports\",\"settings\",\"bankaccount\"],\"user_other_role\":null,\"mobile_with_phonecode\":\"--\",\"client_details\":{\"id\":1,\"company_id\":1,\"user_id\":2,\"company_name\":null,\"address\":null,\"shipping_address\":null,\"postal_code\":null,\"state\":null,\"city\":null,\"office\":null,\"website\":null,\"note\":null,\"linkedin\":null,\"facebook\":null,\"twitter\":null,\"skype\":null,\"gst_number\":null,\"category_id\":null,\"sub_category_id\":null,\"added_by\":1,\"last_updated_by\":1,\"company_logo\":null,\"quickbooks_client_id\":null,\"image_url\":\"http:\\/\\/127.0.0.1:8000\\/img\\/worksuite-logo.png\",\"company\":{\"id\":1,\"company_name\":\"PMS\",\"app_name\":\"PMS\",\"company_email\":\"company@email.com\",\"company_phone\":\"1234567891\",\"logo\":null,\"login_background\":null,\"address\":\"Your Company address here\",\"website\":\"https:\\/\\/website.com\",\"currency_id\":1,\"timezone\":\"Asia\\/Kolkata\",\"date_format\":\"d-m-Y\",\"date_picker_format\":\"dd-mm-yyyy\",\"year_starts_from\":\"1\",\"moment_format\":\"DD-MM-YYYY\",\"time_format\":\"h:i a\",\"locale\":\"en\",\"latitude\":\"26.91243360\",\"longitude\":\"75.78727090\",\"leaves_start_from\":\"joining_date\",\"active_theme\":\"default\",\"status\":\"active\",\"last_updated_by\":null,\"google_map_key\":null,\"task_self\":\"yes\",\"rounded_theme\":1,\"logo_background_color\":\"1\",\"header_color\":\"#1D82F5\",\"before_days\":0,\"after_days\":0,\"on_deadline\":\"yes\",\"default_task_status\":1,\"dashboard_clock\":1,\"ticket_form_google_captcha\":0,\"lead_form_google_captcha\":0,\"taskboard_length\":10,\"datatable_row_limit\":10,\"favicon\":null,\"auth_theme\":\"light\",\"light_logo\":null,\"sidebar_logo_style\":\"square\",\"allow_client_signup\":0,\"admin_client_signup_approval\":0,\"google_calendar_status\":\"inactive\",\"google_client_id\":null,\"google_client_secret\":null,\"google_calendar_verification_status\":\"non_verified\",\"google_id\":null,\"name\":null,\"token\":null,\"hash\":\"854900023ee8efb2f6d889e6b1598c02\",\"last_login\":null,\"rtl\":0,\"show_new_webhook_alert\":0,\"pm_type\":null,\"pm_last_four\":null,\"logo_url\":\"http:\\/\\/127.0.0.1:8000\\/img\\/worksuite-logo.png\",\"login_background_url\":null,\"moment_date_format\":\"DD-MM-YYYY\",\"favicon_url\":\"http:\\/\\/127.0.0.1:8000\\/favicon.png\"}},\"employee_detail\":null,\"role\":[{\"user_id\":2,\"role_id\":3}]},\"company\":{\"id\":1,\"company_name\":\"PMS\",\"app_name\":\"PMS\",\"company_email\":\"company@email.com\",\"company_phone\":\"1234567891\",\"logo\":null,\"login_background\":null,\"address\":\"Your Company address here\",\"website\":\"https:\\/\\/website.com\",\"currency_id\":1,\"timezone\":\"Asia\\/Kolkata\",\"date_format\":\"d-m-Y\",\"date_picker_format\":\"dd-mm-yyyy\",\"year_starts_from\":\"1\",\"moment_format\":\"DD-MM-YYYY\",\"time_format\":\"h:i a\",\"locale\":\"en\",\"latitude\":\"26.91243360\",\"longitude\":\"75.78727090\",\"leaves_start_from\":\"joining_date\",\"active_theme\":\"default\",\"status\":\"active\",\"last_updated_by\":null,\"google_map_key\":null,\"task_self\":\"yes\",\"rounded_theme\":1,\"logo_background_color\":\"1\",\"header_color\":\"#1D82F5\",\"before_days\":0,\"after_days\":0,\"on_deadline\":\"yes\",\"default_task_status\":1,\"dashboard_clock\":1,\"ticket_form_google_captcha\":0,\"lead_form_google_captcha\":0,\"taskboard_length\":10,\"datatable_row_limit\":10,\"favicon\":null,\"auth_theme\":\"light\",\"light_logo\":null,\"sidebar_logo_style\":\"square\",\"allow_client_signup\":0,\"admin_client_signup_approval\":0,\"google_calendar_status\":\"inactive\",\"google_client_id\":null,\"google_client_secret\":null,\"google_calendar_verification_status\":\"non_verified\",\"google_id\":null,\"name\":null,\"token\":null,\"hash\":\"854900023ee8efb2f6d889e6b1598c02\",\"last_login\":null,\"rtl\":0,\"show_new_webhook_alert\":0,\"pm_type\":null,\"pm_last_four\":null,\"logo_url\":\"http:\\/\\/127.0.0.1:8000\\/img\\/worksuite-logo.png\",\"login_background_url\":null,\"moment_date_format\":\"DD-MM-YYYY\",\"favicon_url\":\"http:\\/\\/127.0.0.1:8000\\/favicon.png\"}}', NULL, '2024-07-14 22:02:53', '2024-07-14 22:02:53'),
('abe5204f-9c74-4ec5-9adc-e43befd459b6', 'App\\Notifications\\InvoiceUpdated', 'App\\Models\\User', 2, '{\"id\":8,\"invoice_number\":\"INV#003\"}', NULL, '2024-07-14 22:07:02', '2024-07-14 22:07:02'),
('da103ebf-5323-4333-a463-7722ce1b7ffe', 'App\\Notifications\\InvoiceUpdated', 'App\\Models\\User', 2, '{\"id\":7,\"invoice_number\":\"INV#002\"}', NULL, '2024-07-14 21:59:29', '2024-07-14 21:59:29');

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

--
-- Table structure for table `offline_payment_methods`
--

CREATE TABLE `offline_payment_methods` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `name` varchar(191) NOT NULL,
  `description` longtext DEFAULT NULL,
  `status` enum('yes','no') DEFAULT 'yes',
  `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 `offline_payment_methods`
--

INSERT INTO `offline_payment_methods` (`id`, `company_id`, `name`, `description`, `status`, `created_at`, `updated_at`) VALUES
(1, 1, 'Cash', 'Cash Payment', 'yes', '2024-07-10 05:51:21', '2024-07-10 05:51:21');

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

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `order_number` bigint(20) DEFAULT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `order_date` date NOT NULL,
  `sub_total` double NOT NULL,
  `discount` double NOT NULL DEFAULT 0,
  `discount_type` enum('percent','fixed') NOT NULL DEFAULT 'percent',
  `total` double(8,2) NOT NULL,
  `status` enum('pending','on-hold','failed','processing','completed','canceled','refunded') NOT NULL DEFAULT 'pending',
  `currency_id` int(10) UNSIGNED DEFAULT NULL,
  `show_shipping_address` enum('yes','no') NOT NULL DEFAULT 'no',
  `note` varchar(191) DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `company_address_id` bigint(20) UNSIGNED DEFAULT NULL,
  `custom_order_number` varchar(191) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `unit_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `order_carts` (
  `id` int(10) UNSIGNED NOT NULL,
  `product_id` int(10) UNSIGNED NOT NULL,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `item_name` varchar(191) NOT NULL,
  `description` text DEFAULT NULL,
  `type` enum('item','discount','tax') NOT NULL DEFAULT 'item',
  `quantity` double(16,2) NOT NULL,
  `unit_price` double(16,2) NOT NULL,
  `amount` double(16,2) NOT NULL,
  `taxes` varchar(191) DEFAULT NULL,
  `hsn_sac_code` 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 `order_items`
--

CREATE TABLE `order_items` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `order_id` bigint(20) UNSIGNED NOT NULL,
  `product_id` int(10) UNSIGNED DEFAULT NULL,
  `item_name` varchar(191) NOT NULL,
  `item_summary` text DEFAULT NULL,
  `type` enum('item','discount','tax') NOT NULL DEFAULT 'item',
  `quantity` double(16,2) NOT NULL,
  `unit_price` int(11) NOT NULL,
  `amount` double(8,2) NOT NULL,
  `hsn_sac_code` varchar(191) DEFAULT NULL,
  `taxes` 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 `order_item_images`
--

CREATE TABLE `order_item_images` (
  `id` int(10) UNSIGNED NOT NULL,
  `order_item_id` bigint(20) UNSIGNED DEFAULT NULL,
  `external_link` 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 `passport_details`
--

CREATE TABLE `passport_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `country_id` int(10) UNSIGNED DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `passport_number` varchar(191) NOT NULL,
  `issue_date` date NOT NULL,
  `expiry_date` date NOT NULL,
  `file` 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 `password_resets`
--

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

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

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_id` int(10) UNSIGNED DEFAULT NULL,
  `project_id` int(10) UNSIGNED DEFAULT NULL,
  `invoice_id` int(10) UNSIGNED DEFAULT NULL,
  `order_id` bigint(20) UNSIGNED DEFAULT NULL,
  `credit_notes_id` int(10) UNSIGNED DEFAULT NULL,
  `total_payable_amount` double NOT NULL,
  `amount` double NOT NULL,
  `gateway` varchar(191) DEFAULT NULL,
  `transaction_id` varchar(191) DEFAULT NULL,
  `currency_id` int(10) UNSIGNED DEFAULT NULL,
  `default_currency_id` int(10) UNSIGNED DEFAULT NULL,
  `exchange_rate` double DEFAULT NULL,
  `plan_id` varchar(191) DEFAULT NULL,
  `customer_id` varchar(191) DEFAULT NULL,
  `event_id` varchar(191) DEFAULT NULL,
  `status` enum('complete','pending','failed') NOT NULL DEFAULT 'pending',
  `paid_on` datetime DEFAULT NULL,
  `remarks` text DEFAULT NULL,
  `offline_method_id` int(10) UNSIGNED DEFAULT NULL,
  `bill` varchar(191) DEFAULT NULL,
  `added_by` int(10) UNSIGNED DEFAULT NULL,
  `last_updated_by` int(10) UNSIGNED DEFAULT NULL,
  `payment_gateway_response` text DEFAULT NULL COMMENT 'null = success',
  `payload_id` varchar(191) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `bank_account_id` int(10) UNSIGNED DEFAULT NULL,
  `quickbooks_payment_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payments`
--

INSERT INTO `payments` (`id`, `company_id`, `project_id`, `invoice_id`, `order_id`, `credit_notes_id`, `total_payable_amount`, `amount`, `gateway`, `transaction_id`, `currency_id`, `default_currency_id`, `exchange_rate`, `plan_id`, `customer_id`, `event_id`, `status`, `paid_on`, `remarks`, `offline_method_id`, `bill`, `added_by`, `last_updated_by`, `payment_gateway_response`, `payload_id`, `created_at`, `updated_at`, `bank_account_id`, `quickbooks_payment_id`) VALUES
(1, 1, NULL, 6, NULL, NULL, 500, 100, 'Offline', NULL, 1, 1, 1, NULL, NULL, NULL, 'pending', '2024-07-10 00:00:00', NULL, 1, NULL, 1, 1, NULL, NULL, '2024-07-10 05:58:00', '2024-07-10 06:00:58', NULL, NULL),
(2, 1, NULL, 7, NULL, NULL, 100, 30, 'Offline', '454353', 1, 1, 1, NULL, NULL, NULL, 'pending', '2024-07-15 00:00:00', NULL, 1, NULL, 1, 1, NULL, NULL, '2024-07-14 21:59:29', '2024-07-14 22:00:52', NULL, NULL),
(3, 1, 2, 8, NULL, NULL, 500, 100, 'Offline', 'fdfdfds', 1, 1, 1, NULL, NULL, NULL, 'pending', '2024-07-15 00:00:00', NULL, 1, NULL, 1, 1, NULL, NULL, '2024-07-14 22:07:02', '2024-07-14 22:09:06', NULL, NULL),
(4, 1, 2, 8, NULL, NULL, 0, 100, NULL, NULL, 1, 1, 1, NULL, NULL, NULL, 'complete', '2024-07-15 00:00:00', 'stest', NULL, NULL, 1, 1, NULL, NULL, '2024-07-14 22:24:10', '2024-07-14 22:24:10', NULL, NULL);

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

--
-- Table structure for table `payment_histories`
--

CREATE TABLE `payment_histories` (
  `id` int(10) UNSIGNED NOT NULL,
  `payment_id` int(10) UNSIGNED DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `paid_amount` double(16,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `payment_histories`
--

INSERT INTO `payment_histories` (`id`, `payment_id`, `date`, `paid_amount`, `created_at`, `updated_at`) VALUES
(1, 1, '2024-07-10 00:00:00', 100.00, '2024-07-10 06:00:58', '2024-07-10 06:00:58'),
(2, 2, '2024-07-20 00:00:00', 30.00, '2024-07-14 22:00:52', '2024-07-14 22:00:52'),
(3, 3, '2024-07-16 00:00:00', 100.00, '2024-07-14 22:09:06', '2024-07-14 22:09:06');

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

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

CREATE TABLE `permissions` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `display_name` varchar(191) DEFAULT NULL,
  `description` varchar(191) DEFAULT NULL,
  `module_id` int(10) UNSIGNED NOT NULL,
  `is_custom` tinyint(1) NOT NULL DEFAULT 0,
  `allowed_permissions` 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 `permissions`
--

INSERT INTO `permissions` (`id`, `name`, `display_name`, `description`, `module_id`, `is_custom`, `allowed_permissions`, `created_at`, `updated_at`) VALUES
(1, 'add_clients', 'Add Clients', NULL, 1, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(2, 'view_clients', 'View Clients', NULL, 1, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(3, 'edit_clients', 'Edit Clients', NULL, 1, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(4, 'delete_clients', 'Delete Clients', NULL, 1, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(5, 'manage_client_category', 'Manage Client Category', NULL, 1, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(6, 'manage_client_subcategory', 'Manage Client Subcategory', NULL, 1, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:21', '2024-07-10 05:39:21'),
(7, 'add_client_contacts', 'Add Client Contacts', NULL, 1, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(8, 'view_client_contacts', 'View Client Contacts', NULL, 1, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(9, 'edit_client_contacts', 'Edit Client Contacts', NULL, 1, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(10, 'delete_client_contacts', 'Delete Client Contacts', NULL, 1, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(11, 'add_client_note', 'Add Client Note', NULL, 1, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(12, 'view_client_note', 'View Client Note', NULL, 1, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(13, 'edit_client_note', 'Edit Client Note', NULL, 1, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(14, 'delete_client_note', 'Delete Client Note', NULL, 1, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(15, 'add_client_document', 'Add Client Document', NULL, 1, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(16, 'view_client_document', 'View Client Document', NULL, 1, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(17, 'edit_client_document', 'Edit Client Document', NULL, 1, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(18, 'delete_client_document', 'Delete Client Document', NULL, 1, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(19, 'add_employees', 'Add Employees', NULL, 2, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(20, 'view_employees', 'View Employees', NULL, 2, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(21, 'edit_employees', 'Edit Employees', NULL, 2, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(22, 'delete_employees', 'Delete Employees', NULL, 2, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(23, 'add_designation', 'Add Designation', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(24, 'view_designation', 'View Designation', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(25, 'edit_designation', 'Edit Designation', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(26, 'delete_designation', 'Delete Designation', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(27, 'add_department', 'Add Department', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(28, 'view_department', 'View Department', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(29, 'edit_department', 'Edit Department', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(30, 'delete_department', 'Delete Department', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(31, 'add_documents', 'Add Documents', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(32, 'view_documents', 'View Documents', NULL, 2, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(33, 'edit_documents', 'Edit Documents', NULL, 2, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(34, 'delete_documents', 'Delete Documents', NULL, 2, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(35, 'view_leaves_taken', 'View Leaves Taken', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(36, 'update_leaves_quota', 'Update Leaves Quota', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(37, 'view_employee_tasks', 'View Employee Tasks', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(38, 'view_employee_projects', 'View Employee Projects', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(39, 'view_employee_timelogs', 'View Employee Timelogs', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(40, 'change_employee_role', 'Change Employee Role', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(41, 'manage_emergency_contact', 'Manage Emergency Contact', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(42, 'manage_award', 'Manage Award', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(43, 'add_appreciation', 'Add Appreciation', NULL, 2, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(44, 'view_appreciation', 'View Appreciation', NULL, 2, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(45, 'edit_appreciation', 'Edit Appreciation', NULL, 2, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(46, 'delete_appreciation', 'Delete Appreciation', NULL, 2, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(47, 'add_immigration', 'Add Immigration', NULL, 2, 1, '{\"all\":4, \"owned\":2, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(48, 'view_immigration', 'View Immigration', NULL, 2, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(49, 'edit_immigration', 'Edit Immigration', NULL, 2, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(50, 'delete_immigration', 'Delete Immigration', NULL, 2, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(51, 'add_projects', 'Add Projects', NULL, 3, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(52, 'view_projects', 'View Projects', NULL, 3, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(53, 'edit_projects', 'Edit Projects', NULL, 3, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(54, 'delete_projects', 'Delete Projects', NULL, 3, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(55, 'manage_project_category', 'Manage Project Category', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(56, 'view_project_files', 'View Project Files', NULL, 3, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(57, 'add_project_files', 'Add Project Files', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(58, 'delete_project_files', 'Delete Project Files', NULL, 3, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(59, 'view_project_discussions', 'View Project Discussions', NULL, 3, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(60, 'add_project_discussions', 'Add Project Discussions', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(61, 'edit_project_discussions', 'Edit Project Discussions', NULL, 3, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(62, 'delete_project_discussions', 'Delete Project Discussions', NULL, 3, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(63, 'manage_discussion_category', 'Manage Discussion Category', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(64, 'view_project_milestones', 'View Project Milestones', NULL, 3, 1, '{\"all\":4, \"added\":1, \"owned\":2, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(65, 'add_project_milestones', 'Add Project Milestones', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(66, 'edit_project_milestones', 'Edit Project Milestones', NULL, 3, 1, '{\"all\":4, \"added\":1, \"owned\":2, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(67, 'delete_project_milestones', 'Delete Project Milestones', NULL, 3, 1, '{\"all\":4, \"added\":1, \"owned\":2, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(68, 'view_project_members', 'View Project Members', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(69, 'add_project_members', 'Add Project Members', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(70, 'edit_project_members', 'Edit Project Members', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(71, 'delete_project_members', 'Delete Project Members', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(72, 'view_project_rating', 'View Project Rating', NULL, 3, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(73, 'add_project_rating', 'Add Project Rating', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(74, 'edit_project_rating', 'Edit Project Rating', NULL, 3, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(75, 'delete_project_rating', 'Delete Project Rating', NULL, 3, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(76, 'view_project_budget', 'View Project Budget', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(77, 'view_project_timelogs', 'View Project Timelogs', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(78, 'view_project_expenses', 'View Project Expenses', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(79, 'view_project_tasks', 'View Project Tasks', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(80, 'view_project_invoices', 'View Project Invoices', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(81, 'view_project_burndown_chart', 'View Project Burndown Chart', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(82, 'view_project_payments', 'View Project Payments', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(83, 'view_project_gantt_chart', 'View Project Gantt Chart', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(84, 'add_project_note', 'Add Project Note', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(85, 'view_project_note', 'View Project Note', NULL, 3, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(86, 'edit_project_note', 'Edit Project Note', NULL, 3, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(87, 'delete_project_note', 'Delete Project Note', NULL, 3, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(88, 'manage_project_template', 'Manage Project Template', NULL, 3, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(89, 'view_project_template', 'View Project Template', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(90, 'view_project_hourly_rates', 'View Project Hourly Rates', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(91, 'create_public_project', 'Create Public Project', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(92, 'view_miroboard', 'View Miroboard', NULL, 3, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(93, 'manage_employee_shifts', 'Manage Employee Shifts', NULL, 4, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(94, 'view_shift_roster', 'View Shift Roster', NULL, 4, 1, '{\"all\":4, \"owned\":2, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(95, 'add_attendance', 'Add Attendance', NULL, 4, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(96, 'view_attendance', 'View Attendance', NULL, 4, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(97, 'edit_attendance', 'Edit Attendance', NULL, 4, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(98, 'delete_attendance', 'Delete Attendance', NULL, 4, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(99, 'add_tasks', 'Add Tasks', NULL, 5, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(100, 'view_tasks', 'View Tasks', NULL, 5, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(101, 'edit_tasks', 'Edit Tasks', NULL, 5, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(102, 'delete_tasks', 'Delete Tasks', NULL, 5, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(103, 'view_task_category', 'View Task Category', NULL, 5, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(104, 'add_task_category', 'Add Task Category', NULL, 5, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(105, 'edit_task_category', 'Edit Task Category', NULL, 5, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(106, 'delete_task_category', 'Delete Task Category', NULL, 5, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(107, 'view_task_files', 'View Task Files', NULL, 5, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(108, 'add_task_files', 'Add Task Files', NULL, 5, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(109, 'delete_task_files', 'Delete Task Files', NULL, 5, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(110, 'view_sub_tasks', 'View Sub Tasks', NULL, 5, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(111, 'add_sub_tasks', 'Add Sub Tasks', NULL, 5, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(112, 'edit_sub_tasks', 'Edit Sub Tasks', NULL, 5, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(113, 'delete_sub_tasks', 'Delete Sub Tasks', NULL, 5, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(114, 'view_task_comments', 'View Task Comments', NULL, 5, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(115, 'add_task_comments', 'Add Task Comments', NULL, 5, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(116, 'edit_task_comments', 'Edit Task Comments', NULL, 5, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(117, 'delete_task_comments', 'Delete Task Comments', NULL, 5, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(118, 'view_task_notes', 'View Task Notes', NULL, 5, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(119, 'add_task_notes', 'Add Task Notes', NULL, 5, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(120, 'edit_task_notes', 'Edit Task Notes', NULL, 5, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(121, 'delete_task_notes', 'Delete Task Notes', NULL, 5, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(122, 'task_labels', 'Task Labels', NULL, 5, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(123, 'change_status', 'Change Status', NULL, 5, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(124, 'send_reminder', 'Send Reminder', NULL, 5, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(125, 'add_status', 'Add Status', NULL, 5, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(126, 'view_unassigned_tasks', 'View Unassigned Tasks', NULL, 5, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(127, 'create_unassigned_tasks', 'Create Unassigned Tasks', NULL, 5, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(128, 'add_estimates', 'Add Estimates', NULL, 6, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(129, 'view_estimates', 'View Estimates', NULL, 6, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(130, 'edit_estimates', 'Edit Estimates', NULL, 6, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(131, 'delete_estimates', 'Delete Estimates', NULL, 6, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(132, 'add_invoices', 'Add Invoices', NULL, 7, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(133, 'view_invoices', 'View Invoices', NULL, 7, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(134, 'edit_invoices', 'Edit Invoices', NULL, 7, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(135, 'delete_invoices', 'Delete Invoices', NULL, 7, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(136, 'manage_tax', 'Manage Tax', NULL, 7, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(137, 'link_invoice_bank_account', 'Link Invoice Bank Account', NULL, 7, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(138, 'manage_recurring_invoice', 'Manage Recurring Invoice', NULL, 7, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(139, 'add_payments', 'Add Payments', NULL, 8, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(140, 'view_payments', 'View Payments', NULL, 8, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(141, 'edit_payments', 'Edit Payments', NULL, 8, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(142, 'delete_payments', 'Delete Payments', NULL, 8, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(143, 'link_payment_bank_account', 'Link Payment Bank Account', NULL, 8, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(144, 'add_timelogs', 'Add Timelogs', NULL, 9, 0, '{\"all\":4,\"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(145, 'view_timelogs', 'View Timelogs', NULL, 9, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(146, 'edit_timelogs', 'Edit Timelogs', NULL, 9, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(147, 'delete_timelogs', 'Delete Timelogs', NULL, 9, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(148, 'approve_timelogs', 'Approve Timelogs', NULL, 9, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(149, 'manage_active_timelogs', 'Manage Active Timelogs', NULL, 9, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(150, 'view_timelog_earnings', 'View Timelog Earnings', NULL, 9, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(151, 'add_tickets', 'Add Tickets', NULL, 10, 0, '{\"all\":4,\"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(152, 'view_tickets', 'View Tickets', NULL, 10, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(153, 'edit_tickets', 'Edit Tickets', NULL, 10, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(154, 'delete_tickets', 'Delete Tickets', NULL, 10, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(155, 'manage_ticket_type', 'Manage Ticket Type', NULL, 10, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(156, 'manage_ticket_agent', 'Manage Ticket Agent', NULL, 10, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(157, 'manage_ticket_channel', 'Manage Ticket Channel', NULL, 10, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(158, 'manage_ticket_tags', 'Manage Ticket Tags', NULL, 10, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(159, 'manage_ticket_groups', 'Manage Ticket Groups', NULL, 10, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(160, 'add_events', 'Add Events', NULL, 11, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(161, 'view_events', 'View Events', NULL, 11, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(162, 'edit_events', 'Edit Events', NULL, 11, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(163, 'delete_events', 'Delete Events', NULL, 11, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(164, 'add_notice', 'Add Notice', NULL, 12, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(165, 'view_notice', 'View Notice', NULL, 12, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(166, 'edit_notice', 'Edit Notice', NULL, 12, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(167, 'delete_notice', 'Delete Notice', NULL, 12, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(168, 'add_leave', 'Add Leave', NULL, 13, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(169, 'view_leave', 'View Leave', NULL, 13, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(170, 'edit_leave', 'Edit Leave', NULL, 13, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(171, 'delete_leave', 'Delete Leave', NULL, 13, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(172, 'approve_or_reject_leaves', 'Approve Or Reject Leaves', NULL, 13, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(173, 'delete_approve_leaves', 'Delete Approve Leaves', NULL, 13, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(174, 'add_lead', 'Add Lead', NULL, 14, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(175, 'view_lead', 'View Lead', NULL, 14, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(176, 'edit_lead', 'Edit Lead', NULL, 14, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(177, 'delete_lead', 'Delete Lead', NULL, 14, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(178, 'view_lead_agents', 'View Lead Agents', NULL, 14, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(179, 'add_lead_agent', 'Add Lead Agent', NULL, 14, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(180, 'edit_lead_agent', 'Edit Lead Agent', NULL, 14, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(181, 'delete_lead_agent', 'Delete Lead Agent', NULL, 14, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(182, 'view_lead_category', 'View Lead Category', NULL, 14, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(183, 'add_lead_category', 'Add Lead Category', NULL, 14, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(184, 'edit_lead_category', 'Edit Lead Category', NULL, 14, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(185, 'delete_lead_category', 'Delete Lead Category', NULL, 14, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(186, 'manage_lead_custom_forms', 'Manage Lead Custom Forms', NULL, 14, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(187, 'view_lead_files', 'View Lead Files', NULL, 14, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(188, 'add_lead_files', 'Add Lead Files', NULL, 14, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(189, 'delete_lead_files', 'Delete Lead Files', NULL, 14, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(190, 'view_lead_follow_up', 'View Lead Follow Up', NULL, 14, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(191, 'add_lead_follow_up', 'Add Lead Follow Up', NULL, 14, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(192, 'edit_lead_follow_up', 'Edit Lead Follow Up', NULL, 14, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(193, 'delete_lead_follow_up', 'Delete Lead Follow Up', NULL, 14, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(194, 'view_lead_sources', 'View Lead Sources', NULL, 14, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(195, 'add_lead_sources', 'Add Lead Sources', NULL, 14, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(196, 'edit_lead_sources', 'Edit Lead Sources', NULL, 14, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(197, 'delete_lead_sources', 'Delete Lead Sources', NULL, 14, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(198, 'view_lead_proposals', 'View Lead Proposals', NULL, 14, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(199, 'add_lead_proposals', 'Add Lead Proposals', NULL, 14, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(200, 'edit_lead_proposals', 'Edit Lead Proposals', NULL, 14, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(201, 'delete_lead_proposals', 'Delete Lead Proposals', NULL, 14, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(202, 'manage_proposal_template', 'Manage Proposal Template', NULL, 14, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(203, 'change_lead_status', 'Change Lead Status', NULL, 14, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(204, 'add_lead_note', 'Add Lead Note', NULL, 14, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(205, 'view_lead_note', 'View Lead Note', NULL, 14, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(206, 'edit_lead_note', 'Edit Lead Note', NULL, 14, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(207, 'delete_lead_note', 'Delete Lead Note', NULL, 14, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(208, 'manage_lead_status', 'Manage Lead Status', NULL, 14, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(209, 'add_holiday', 'Add Holiday', NULL, 15, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(210, 'view_holiday', 'View Holiday', NULL, 15, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(211, 'edit_holiday', 'Edit Holiday', NULL, 15, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(212, 'delete_holiday', 'Delete Holiday', NULL, 15, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(213, 'add_product', 'Add Product', NULL, 16, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(214, 'view_product', 'View Product', NULL, 16, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(215, 'edit_product', 'Edit Product', NULL, 16, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(216, 'delete_product', 'Delete Product', NULL, 16, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(217, 'manage_product_category', 'Manage Product Category', NULL, 16, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(218, 'manage_product_sub_category', 'Manage Product Sub Category', NULL, 16, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(219, 'add_expenses', 'Add Expenses', NULL, 17, 0, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(220, 'view_expenses', 'View Expenses', NULL, 17, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(221, 'edit_expenses', 'Edit Expenses', NULL, 17, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(222, 'delete_expenses', 'Delete Expenses', NULL, 17, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(223, 'manage_expense_category', 'Manage Expense Category', NULL, 17, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(224, 'manage_recurring_expense', 'Manage Recurring Expense', NULL, 17, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(225, 'approve_expenses', 'Approve Expenses', NULL, 17, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(226, 'link_expense_bank_account', 'Link Expense Bank Account', NULL, 17, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(227, 'add_contract', 'Add Contract', NULL, 18, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(228, 'view_contract', 'View Contract', NULL, 18, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(229, 'edit_contract', 'Edit Contract', NULL, 18, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(230, 'delete_contract', 'Delete Contract', NULL, 18, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(231, 'manage_contract_type', 'Manage Contract Type', NULL, 18, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(232, 'renew_contract', 'Renew Contract', NULL, 18, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(233, 'add_contract_discussion', 'Add Contract Discussion', NULL, 18, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(234, 'edit_contract_discussion', 'Edit Contract Discussion', NULL, 18, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(235, 'view_contract_discussion', 'View Contract Discussion', NULL, 18, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(236, 'delete_contract_discussion', 'Delete Contract Discussion', NULL, 18, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(237, 'add_contract_files', 'Add Contract Files', NULL, 18, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(238, 'view_contract_files', 'View Contract Files', NULL, 18, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(239, 'delete_contract_files', 'Delete Contract Files', NULL, 18, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(240, 'manage_contract_template', 'Manage Contract Template', NULL, 18, 1, '{\"all\":4, \"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(241, 'view_task_report', 'View Task Report', NULL, 19, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(242, 'view_time_log_report', 'View Time Log Report', NULL, 19, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(243, 'view_finance_report', 'View Finance Report', NULL, 19, 1, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(244, 'view_income_expense_report', 'View Income Vs Expense Report', NULL, 19, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(245, 'view_leave_report', 'View Leave Report', NULL, 19, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(246, 'view_attendance_report', 'View Attendance Report', NULL, 19, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(247, 'view_expense_report', 'View Expense Report', NULL, 19, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(248, 'view_lead_report', 'View Lead Report', NULL, 19, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(249, 'view_sales_report', 'View Sales Report', NULL, 19, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(250, 'manage_company_setting', 'Manage Company Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(251, 'manage_app_setting', 'Manage App Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(252, 'manage_notification_setting', 'Manage Notification Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(253, 'manage_currency_setting', 'Manage Currency Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(254, 'manage_payment_setting', 'Manage Payment Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(255, 'manage_finance_setting', 'Manage Finance Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(256, 'manage_ticket_setting', 'Manage Ticket Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(257, 'manage_project_setting', 'Manage Project Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(258, 'manage_attendance_setting', 'Manage Attendance Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(259, 'manage_leave_setting', 'Manage Leave Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(260, 'manage_custom_field_setting', 'Manage Custom Field Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(261, 'manage_message_setting', 'Manage Message Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(262, 'manage_storage_setting', 'Manage Storage Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(263, 'manage_language_setting', 'Manage Language Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(264, 'manage_lead_setting', 'Manage Lead Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(265, 'manage_time_log_setting', 'Manage Time Log Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(266, 'manage_task_setting', 'Manage Task Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(267, 'manage_social_login_setting', 'Manage Social Login Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(268, 'manage_security_setting', 'Manage Security Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(269, 'manage_gdpr_setting', 'Manage Gdpr Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(270, 'manage_theme_setting', 'Manage Theme Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(271, 'manage_role_permission_setting', 'Manage Role Permission Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(272, 'manage_module_setting', 'Manage Module Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(273, 'manage_google_calendar_setting', 'Manage Google Calendar Setting', NULL, 20, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(274, 'view_overview_dashboard', 'View Overview Dashboard', NULL, 21, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(275, 'view_project_dashboard', 'View Project Dashboard', NULL, 21, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(276, 'view_client_dashboard', 'View Client Dashboard', NULL, 21, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(277, 'view_hr_dashboard', 'View Hr Dashboard', NULL, 21, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(278, 'view_ticket_dashboard', 'View Ticket Dashboard', NULL, 21, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(279, 'view_finance_dashboard', 'View Finance Dashboard', NULL, 21, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(280, 'add_order', 'Add Order', NULL, 22, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(281, 'view_order', 'View Order', NULL, 22, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(282, 'edit_order', 'Edit Order', NULL, 22, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(283, 'delete_order', 'Delete Order', NULL, 22, 0, '{\"all\":4, \"added\":1, \"owned\":2,\"both\":3, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(284, 'add_knowledgebase', 'Add Knowledgebase', NULL, 23, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(285, 'view_knowledgebase', 'View Knowledgebase', NULL, 23, 0, '{\"all\":4,\"added\":1,\"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(286, 'edit_knowledgebase', 'Edit Knowledgebase', NULL, 23, 0, '{\"all\":4,\"added\":1,\"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(287, 'delete_knowledgebase', 'Delete Knowledgebase', NULL, 23, 0, '{\"all\":4,\"added\":1,\"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(288, 'add_bankaccount', 'Add Bankaccount', NULL, 24, 0, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(289, 'view_bankaccount', 'View Bankaccount', NULL, 24, 0, '{\"all\":4,\"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(290, 'edit_bankaccount', 'Edit Bankaccount', NULL, 24, 0, '{\"all\":4,\"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(291, 'delete_bankaccount', 'Delete Bankaccount', NULL, 24, 0, '{\"all\":4,\"added\":1, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(292, 'add_bank_transfer', 'Add Bank Transfer', NULL, 24, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(293, 'add_bank_deposit', 'Add Bank Deposit', NULL, 24, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22'),
(294, 'add_bank_withdraw', 'Add Bank Withdraw', NULL, 24, 1, '{\"all\":4, \"none\":5}', '2024-07-10 05:39:22', '2024-07-10 05:39:22');

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

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

CREATE TABLE `permission_role` (
  `permission_id` int(10) UNSIGNED NOT NULL,
  `role_id` int(10) UNSIGNED NOT NULL,
  `permission_type_id` bigint(20) UNSIGNED NOT NULL DEFAULT 5
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `permission_role` (`permission_id`, `role_id`, `permission_type_id`) VALUES
(48, 2, 1),
(49, 2, 1),
(58, 2, 1),
(58, 3, 1),
(61, 2, 1),
(61, 3, 1),
(62, 2, 1),
(62, 3, 1),
(99, 2, 1),
(101, 2, 1),
(102, 2, 1),
(109, 2, 1),
(112, 2, 1),
(113, 2, 1),
(116, 2, 1),
(116, 3, 1),
(117, 2, 1),
(117, 3, 1),
(120, 2, 1),
(120, 3, 1),
(121, 2, 1),
(121, 3, 1),
(144, 2, 1),
(146, 2, 1),
(151, 2, 1),
(151, 3, 1),
(153, 3, 1),
(154, 2, 1),
(154, 3, 1),
(168, 2, 1),
(174, 2, 1),
(176, 2, 1),
(187, 2, 1),
(192, 2, 1),
(193, 2, 1),
(219, 2, 1),
(221, 2, 1),
(222, 2, 1),
(44, 2, 2),
(52, 2, 2),
(52, 3, 2),
(96, 2, 2),
(100, 3, 2),
(129, 3, 2),
(133, 3, 2),
(140, 3, 2),
(145, 3, 2),
(161, 2, 2),
(161, 3, 2),
(165, 2, 2),
(165, 3, 2),
(228, 3, 2),
(281, 3, 2),
(100, 2, 3),
(145, 2, 3),
(152, 2, 3),
(152, 3, 3),
(153, 2, 3),
(169, 2, 3),
(175, 2, 3),
(203, 2, 3),
(220, 2, 3),
(1, 1, 4),
(2, 1, 4),
(3, 1, 4),
(4, 1, 4),
(5, 1, 4),
(6, 1, 4),
(7, 1, 4),
(8, 1, 4),
(9, 1, 4),
(10, 1, 4),
(11, 1, 4),
(12, 1, 4),
(13, 1, 4),
(14, 1, 4),
(15, 1, 4),
(16, 1, 4),
(17, 1, 4),
(18, 1, 4),
(19, 1, 4),
(20, 1, 4),
(21, 1, 4),
(22, 1, 4),
(23, 1, 4),
(24, 1, 4),
(25, 1, 4),
(26, 1, 4),
(27, 1, 4),
(28, 1, 4),
(29, 1, 4),
(30, 1, 4),
(31, 1, 4),
(32, 1, 4),
(33, 1, 4),
(34, 1, 4),
(35, 1, 4),
(35, 2, 4),
(36, 1, 4),
(37, 1, 4),
(38, 1, 4),
(39, 1, 4),
(40, 1, 4),
(41, 1, 4),
(42, 1, 4),
(43, 1, 4),
(44, 1, 4),
(45, 1, 4),
(46, 1, 4),
(47, 1, 4),
(47, 2, 4),
(48, 1, 4),
(49, 1, 4),
(50, 1, 4),
(50, 2, 4),
(51, 1, 4),
(52, 1, 4),
(53, 1, 4),
(54, 1, 4),
(55, 1, 4),
(56, 1, 4),
(56, 2, 4),
(56, 3, 4),
(57, 1, 4),
(57, 2, 4),
(57, 3, 4),
(58, 1, 4),
(59, 1, 4),
(59, 2, 4),
(59, 3, 4),
(60, 1, 4),
(60, 2, 4),
(60, 3, 4),
(61, 1, 4),
(62, 1, 4),
(63, 1, 4),
(64, 1, 4),
(65, 1, 4),
(66, 1, 4),
(67, 1, 4),
(68, 1, 4),
(68, 2, 4),
(68, 3, 4),
(69, 1, 4),
(70, 1, 4),
(71, 1, 4),
(72, 1, 4),
(73, 1, 4),
(74, 1, 4),
(75, 1, 4),
(76, 1, 4),
(77, 1, 4),
(77, 2, 4),
(77, 3, 4),
(78, 1, 4),
(79, 1, 4),
(79, 2, 4),
(79, 3, 4),
(80, 1, 4),
(80, 3, 4),
(81, 1, 4),
(82, 1, 4),
(82, 3, 4),
(83, 1, 4),
(84, 1, 4),
(85, 1, 4),
(85, 2, 4),
(85, 3, 4),
(86, 1, 4),
(87, 1, 4),
(88, 1, 4),
(89, 1, 4),
(90, 1, 4),
(91, 1, 4),
(92, 1, 4),
(93, 1, 4),
(94, 1, 4),
(95, 1, 4),
(96, 1, 4),
(97, 1, 4),
(98, 1, 4),
(99, 1, 4),
(100, 1, 4),
(101, 1, 4),
(102, 1, 4),
(103, 1, 4),
(104, 1, 4),
(105, 1, 4),
(106, 1, 4),
(107, 1, 4),
(107, 2, 4),
(107, 3, 4),
(108, 1, 4),
(108, 2, 4),
(109, 1, 4),
(110, 1, 4),
(110, 2, 4),
(110, 3, 4),
(111, 1, 4),
(111, 2, 4),
(112, 1, 4),
(113, 1, 4),
(114, 1, 4),
(114, 2, 4),
(114, 3, 4),
(115, 1, 4),
(115, 2, 4),
(115, 3, 4),
(116, 1, 4),
(117, 1, 4),
(118, 1, 4),
(118, 2, 4),
(118, 3, 4),
(119, 1, 4),
(119, 2, 4),
(119, 3, 4),
(120, 1, 4),
(121, 1, 4),
(122, 1, 4),
(123, 1, 4),
(124, 1, 4),
(125, 1, 4),
(126, 1, 4),
(127, 1, 4),
(128, 1, 4),
(129, 1, 4),
(130, 1, 4),
(131, 1, 4),
(132, 1, 4),
(133, 1, 4),
(134, 1, 4),
(135, 1, 4),
(136, 1, 4),
(137, 1, 4),
(138, 1, 4),
(139, 1, 4),
(140, 1, 4),
(141, 1, 4),
(142, 1, 4),
(143, 1, 4),
(144, 1, 4),
(145, 1, 4),
(146, 1, 4),
(147, 1, 4),
(148, 1, 4),
(149, 1, 4),
(150, 1, 4),
(151, 1, 4),
(152, 1, 4),
(153, 1, 4),
(154, 1, 4),
(155, 1, 4),
(156, 1, 4),
(157, 1, 4),
(158, 1, 4),
(159, 1, 4),
(160, 1, 4),
(161, 1, 4),
(162, 1, 4),
(163, 1, 4),
(164, 1, 4),
(165, 1, 4),
(166, 1, 4),
(167, 1, 4),
(168, 1, 4),
(169, 1, 4),
(170, 1, 4),
(171, 1, 4),
(172, 1, 4),
(173, 1, 4),
(174, 1, 4),
(175, 1, 4),
(176, 1, 4),
(177, 1, 4),
(178, 1, 4),
(179, 1, 4),
(180, 1, 4),
(181, 1, 4),
(182, 1, 4),
(183, 1, 4),
(184, 1, 4),
(185, 1, 4),
(186, 1, 4),
(187, 1, 4),
(188, 1, 4),
(188, 2, 4),
(189, 1, 4),
(190, 1, 4),
(190, 2, 4),
(191, 1, 4),
(191, 2, 4),
(192, 1, 4),
(193, 1, 4),
(194, 1, 4),
(195, 1, 4),
(196, 1, 4),
(197, 1, 4),
(198, 1, 4),
(199, 1, 4),
(200, 1, 4),
(201, 1, 4),
(202, 1, 4),
(203, 1, 4),
(204, 1, 4),
(205, 1, 4),
(206, 1, 4),
(207, 1, 4),
(208, 1, 4),
(209, 1, 4),
(210, 1, 4),
(210, 2, 4),
(211, 1, 4),
(212, 1, 4),
(213, 1, 4),
(214, 1, 4),
(214, 3, 4),
(215, 1, 4),
(216, 1, 4),
(217, 1, 4),
(218, 1, 4),
(219, 1, 4),
(220, 1, 4),
(221, 1, 4),
(222, 1, 4),
(223, 1, 4),
(224, 1, 4),
(225, 1, 4),
(226, 1, 4),
(227, 1, 4),
(228, 1, 4),
(229, 1, 4),
(230, 1, 4),
(231, 1, 4),
(232, 1, 4),
(233, 1, 4),
(233, 3, 4),
(234, 1, 4),
(235, 1, 4),
(235, 3, 4),
(236, 1, 4),
(237, 1, 4),
(238, 1, 4),
(238, 3, 4),
(239, 1, 4),
(240, 1, 4),
(241, 1, 4),
(242, 1, 4),
(243, 1, 4),
(244, 1, 4),
(245, 1, 4),
(246, 1, 4),
(247, 1, 4),
(248, 1, 4),
(249, 1, 4),
(250, 1, 4),
(251, 1, 4),
(252, 1, 4),
(253, 1, 4),
(254, 1, 4),
(255, 1, 4),
(256, 1, 4),
(257, 1, 4),
(258, 1, 4),
(259, 1, 4),
(260, 1, 4),
(261, 1, 4),
(262, 1, 4),
(263, 1, 4),
(264, 1, 4),
(265, 1, 4),
(266, 1, 4),
(267, 1, 4),
(268, 1, 4),
(269, 1, 4),
(270, 1, 4),
(271, 1, 4),
(272, 1, 4),
(273, 1, 4),
(274, 1, 4),
(275, 1, 4),
(276, 1, 4),
(277, 1, 4),
(278, 1, 4),
(279, 1, 4),
(280, 1, 4),
(280, 3, 4),
(281, 1, 4),
(282, 1, 4),
(283, 1, 4),
(284, 1, 4),
(285, 1, 4),
(286, 1, 4),
(287, 1, 4),
(288, 1, 4),
(289, 1, 4),
(290, 1, 4),
(291, 1, 4),
(292, 1, 4),
(293, 1, 4),
(294, 1, 4),
(1, 2, 5),
(1, 3, 5),
(2, 2, 5),
(2, 3, 5),
(3, 2, 5),
(3, 3, 5),
(4, 2, 5),
(4, 3, 5),
(5, 2, 5),
(5, 3, 5),
(6, 2, 5),
(6, 3, 5),
(7, 2, 5),
(7, 3, 5),
(8, 2, 5),
(8, 3, 5),
(9, 2, 5),
(9, 3, 5),
(10, 2, 5),
(10, 3, 5),
(11, 2, 5),
(11, 3, 5),
(12, 2, 5),
(12, 3, 5),
(13, 2, 5),
(13, 3, 5),
(14, 2, 5),
(14, 3, 5),
(15, 2, 5),
(15, 3, 5),
(16, 2, 5),
(16, 3, 5),
(17, 2, 5),
(17, 3, 5),
(18, 2, 5),
(18, 3, 5),
(19, 2, 5),
(19, 3, 5),
(20, 2, 5),
(20, 3, 5),
(21, 2, 5),
(21, 3, 5),
(22, 2, 5),
(22, 3, 5),
(23, 2, 5),
(23, 3, 5),
(24, 2, 5),
(24, 3, 5),
(25, 2, 5),
(25, 3, 5),
(26, 2, 5),
(26, 3, 5),
(27, 2, 5),
(27, 3, 5),
(28, 2, 5),
(28, 3, 5),
(29, 2, 5),
(29, 3, 5),
(30, 2, 5),
(30, 3, 5),
(31, 2, 5),
(31, 3, 5),
(32, 2, 5),
(32, 3, 5),
(33, 2, 5),
(33, 3, 5),
(34, 2, 5),
(34, 3, 5),
(35, 3, 5),
(36, 2, 5),
(36, 3, 5),
(37, 2, 5),
(37, 3, 5),
(38, 2, 5),
(38, 3, 5),
(39, 2, 5),
(39, 3, 5),
(40, 2, 5),
(40, 3, 5),
(41, 2, 5),
(41, 3, 5),
(42, 2, 5),
(42, 3, 5),
(43, 2, 5),
(43, 3, 5),
(44, 3, 5),
(45, 2, 5),
(45, 3, 5),
(46, 2, 5),
(46, 3, 5),
(47, 3, 5),
(48, 3, 5),
(49, 3, 5),
(50, 3, 5),
(51, 2, 5),
(51, 3, 5),
(53, 2, 5),
(53, 3, 5),
(54, 2, 5),
(54, 3, 5),
(55, 2, 5),
(55, 3, 5),
(63, 2, 5),
(63, 3, 5),
(64, 2, 5),
(64, 3, 5),
(65, 2, 5),
(65, 3, 5),
(66, 2, 5),
(66, 3, 5),
(67, 2, 5),
(67, 3, 5),
(69, 2, 5),
(69, 3, 5),
(70, 2, 5),
(70, 3, 5),
(71, 2, 5),
(71, 3, 5),
(72, 2, 5),
(72, 3, 5),
(73, 2, 5),
(73, 3, 5),
(74, 2, 5),
(74, 3, 5),
(75, 2, 5),
(75, 3, 5),
(76, 2, 5),
(76, 3, 5),
(78, 2, 5),
(78, 3, 5),
(80, 2, 5),
(81, 2, 5),
(81, 3, 5),
(82, 2, 5),
(83, 2, 5),
(83, 3, 5),
(84, 2, 5),
(84, 3, 5),
(86, 2, 5),
(86, 3, 5),
(87, 2, 5),
(87, 3, 5),
(88, 2, 5),
(88, 3, 5),
(89, 2, 5),
(89, 3, 5),
(90, 2, 5),
(90, 3, 5),
(91, 2, 5),
(91, 3, 5),
(92, 2, 5),
(92, 3, 5),
(93, 2, 5),
(93, 3, 5),
(94, 2, 5),
(94, 3, 5),
(95, 2, 5),
(95, 3, 5),
(96, 3, 5),
(97, 2, 5),
(97, 3, 5),
(98, 2, 5),
(98, 3, 5),
(99, 3, 5),
(101, 3, 5),
(102, 3, 5),
(103, 2, 5),
(103, 3, 5),
(104, 2, 5),
(104, 3, 5),
(105, 2, 5),
(105, 3, 5),
(106, 2, 5),
(106, 3, 5),
(108, 3, 5),
(109, 3, 5),
(111, 3, 5),
(112, 3, 5),
(113, 3, 5),
(122, 2, 5),
(122, 3, 5),
(123, 2, 5),
(123, 3, 5),
(124, 2, 5),
(124, 3, 5),
(125, 2, 5),
(125, 3, 5),
(126, 2, 5),
(126, 3, 5),
(127, 2, 5),
(127, 3, 5),
(128, 2, 5),
(128, 3, 5),
(129, 2, 5),
(130, 2, 5),
(130, 3, 5),
(131, 2, 5),
(131, 3, 5),
(132, 2, 5),
(132, 3, 5),
(133, 2, 5),
(134, 2, 5),
(134, 3, 5),
(135, 2, 5),
(135, 3, 5),
(136, 2, 5),
(136, 3, 5),
(137, 2, 5),
(137, 3, 5),
(138, 2, 5),
(138, 3, 5),
(139, 2, 5),
(139, 3, 5),
(140, 2, 5),
(141, 2, 5),
(141, 3, 5),
(142, 2, 5),
(142, 3, 5),
(143, 2, 5),
(143, 3, 5),
(144, 3, 5),
(146, 3, 5),
(147, 2, 5),
(147, 3, 5),
(148, 2, 5),
(148, 3, 5),
(149, 2, 5),
(149, 3, 5),
(150, 2, 5),
(150, 3, 5),
(155, 2, 5),
(155, 3, 5),
(156, 2, 5),
(156, 3, 5),
(157, 2, 5),
(157, 3, 5),
(158, 2, 5),
(158, 3, 5),
(159, 2, 5),
(159, 3, 5),
(160, 2, 5),
(160, 3, 5),
(162, 2, 5),
(162, 3, 5),
(163, 2, 5),
(163, 3, 5),
(164, 2, 5),
(164, 3, 5),
(166, 2, 5),
(166, 3, 5),
(167, 2, 5),
(167, 3, 5),
(168, 3, 5),
(169, 3, 5),
(170, 2, 5),
(170, 3, 5),
(171, 2, 5),
(171, 3, 5),
(172, 2, 5),
(172, 3, 5),
(173, 2, 5),
(173, 3, 5),
(174, 3, 5),
(175, 3, 5),
(176, 3, 5),
(177, 2, 5),
(177, 3, 5),
(178, 2, 5),
(178, 3, 5),
(179, 2, 5),
(179, 3, 5),
(180, 2, 5),
(180, 3, 5),
(181, 2, 5),
(181, 3, 5),
(182, 2, 5),
(182, 3, 5),
(183, 2, 5),
(183, 3, 5),
(184, 2, 5),
(184, 3, 5),
(185, 2, 5),
(185, 3, 5),
(186, 2, 5),
(186, 3, 5),
(187, 3, 5),
(188, 3, 5),
(189, 2, 5),
(189, 3, 5),
(190, 3, 5),
(191, 3, 5),
(192, 3, 5),
(193, 3, 5),
(194, 2, 5),
(194, 3, 5),
(195, 2, 5),
(195, 3, 5),
(196, 2, 5),
(196, 3, 5),
(197, 2, 5),
(197, 3, 5),
(198, 2, 5),
(198, 3, 5),
(199, 2, 5),
(199, 3, 5),
(200, 2, 5),
(200, 3, 5),
(201, 2, 5),
(201, 3, 5),
(202, 2, 5),
(202, 3, 5),
(203, 3, 5),
(204, 2, 5),
(204, 3, 5),
(205, 2, 5),
(205, 3, 5),
(206, 2, 5),
(206, 3, 5),
(207, 2, 5),
(207, 3, 5),
(208, 2, 5),
(208, 3, 5),
(209, 2, 5),
(209, 3, 5),
(210, 3, 5),
(211, 2, 5),
(211, 3, 5),
(212, 2, 5),
(212, 3, 5),
(213, 2, 5),
(213, 3, 5),
(214, 2, 5),
(215, 2, 5),
(215, 3, 5),
(216, 2, 5),
(216, 3, 5),
(217, 2, 5),
(217, 3, 5),
(218, 2, 5),
(218, 3, 5),
(219, 3, 5),
(220, 3, 5),
(221, 3, 5),
(222, 3, 5),
(223, 2, 5),
(223, 3, 5),
(224, 2, 5),
(224, 3, 5),
(225, 2, 5),
(225, 3, 5),
(226, 2, 5),
(226, 3, 5),
(227, 2, 5),
(227, 3, 5),
(228, 2, 5),
(229, 2, 5),
(229, 3, 5),
(230, 2, 5),
(230, 3, 5),
(231, 2, 5),
(231, 3, 5),
(232, 2, 5),
(232, 3, 5),
(233, 2, 5),
(234, 2, 5),
(234, 3, 5),
(235, 2, 5),
(236, 2, 5),
(236, 3, 5),
(237, 2, 5),
(237, 3, 5),
(238, 2, 5),
(239, 2, 5),
(239, 3, 5),
(240, 2, 5),
(240, 3, 5),
(241, 2, 5),
(241, 3, 5),
(242, 2, 5),
(242, 3, 5),
(243, 2, 5),
(243, 3, 5),
(244, 2, 5),
(244, 3, 5),
(245, 2, 5),
(245, 3, 5),
(246, 2, 5),
(246, 3, 5),
(247, 2, 5),
(247, 3, 5),
(248, 2, 5),
(248, 3, 5),
(249, 2, 5),
(249, 3, 5),
(250, 2, 5),
(250, 3, 5),
(251, 2, 5),
(251, 3, 5),
(252, 2, 5),
(252, 3, 5),
(253, 2, 5),
(253, 3, 5),
(254, 2, 5),
(254, 3, 5),
(255, 2, 5),
(255, 3, 5),
(256, 2, 5),
(256, 3, 5),
(257, 2, 5),
(257, 3, 5),
(258, 2, 5),
(258, 3, 5),
(259, 2, 5),
(259, 3, 5),
(260, 2, 5),
(260, 3, 5),
(261, 2, 5),
(261, 3, 5),
(262, 2, 5),
(262, 3, 5),
(263, 2, 5),
(263, 3, 5),
(264, 2, 5),
(264, 3, 5),
(265, 2, 5),
(265, 3, 5),
(266, 2, 5),
(266, 3, 5),
(267, 2, 5),
(267, 3, 5),
(268, 2, 5),
(268, 3, 5),
(269, 2, 5),
(269, 3, 5),
(270, 2, 5),
(270, 3, 5),
(271, 2, 5),
(271, 3, 5),
(272, 2, 5),
(272, 3, 5),
(273, 2, 5),
(273, 3, 5),
(274, 2, 5),
(274, 3, 5),
(275, 2, 5),
(275, 3, 5),
(276, 2, 5),
(276, 3, 5),
(277, 2, 5),
(277, 3, 5),
(278, 2, 5),
(278, 3, 5),
(279, 2, 5),
(279, 3, 5),
(280, 2, 5),
(281, 2, 5),
(282, 2, 5),
(282, 3, 5),
(283, 2, 5),
(283, 3, 5),
(284, 2, 5),
(284, 3, 5),
(285, 2, 5),
(285, 3, 5),
(286, 2, 5),
(286, 3, 5),
(287, 2, 5),
(287, 3, 5),
(288, 2, 5),
(288, 3, 5),
(289, 2, 5),
(289, 3, 5),
(290, 2, 5),
(290, 3, 5),
(291, 2, 5),
(291, 3, 5),
(292, 2, 5),
(292, 3, 5),
(293, 2, 5),
(293, 3, 5),
(294, 2, 5),
(294, 3, 5);

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

--
