-- Table structure for table `service_machines`
--

CREATE TABLE `service_machines` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `machine_name` varchar(255) NOT NULL,
  `brand_id` bigint(20) UNSIGNED DEFAULT NULL,
  `model_id` bigint(20) UNSIGNED DEFAULT NULL,
  `origin` varchar(255) NOT NULL,
  `status_id` int(11) DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `service_machines`
--

INSERT INTO `service_machines` (`id`, `machine_name`, `brand_id`, `model_id`, `origin`, `status_id`, `created_at`, `updated_at`, `company_id`, `branch_id`) VALUES
(1, 'Machine 1', 1, 1, 'Country A', 1, NULL, NULL, 1, 1),
(2, 'Machine 2', 2, 2, 'Country B', 1, NULL, NULL, 1, 1);

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

--
-- Table structure for table `service_models`
--

CREATE TABLE `service_models` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `status_id` int(11) DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `service_models`
--

INSERT INTO `service_models` (`id`, `name`, `status_id`, `created_at`, `updated_at`, `company_id`, `branch_id`) VALUES
(1, 'Model 1', 1, NULL, NULL, 1, 1),
(2, 'Model 2', 1, NULL, NULL, 1, 1);

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

--
-- Table structure for table `service_packages`
--

CREATE TABLE `service_packages` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `package_no` varchar(255) NOT NULL,
  `contract_date` date NOT NULL,
  `status_id` int(11) DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `service_package_details`
--

CREATE TABLE `service_package_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `machine_id` bigint(20) UNSIGNED DEFAULT NULL,
  `brand_id` bigint(20) UNSIGNED DEFAULT NULL,
  `model_id` bigint(20) UNSIGNED DEFAULT NULL,
  `package_id` bigint(20) UNSIGNED DEFAULT NULL,
  `origin` varchar(255) DEFAULT NULL,
  `quantity` int(11) NOT NULL DEFAULT 1,
  `warranty_period` int(11) DEFAULT NULL,
  `status_id` int(11) DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `value` longtext DEFAULT NULL,
  `image_id` bigint(20) DEFAULT NULL,
  `context` varchar(191) DEFAULT 'app',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `status_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` (`id`, `name`, `value`, `image_id`, `context`, `created_at`, `updated_at`, `company_id`, `status_id`) VALUES
(1, 'company_name', 'Nestpro', NULL, 'app', '2024-06-14 03:19:27', '2025-12-07 09:46:36', 1, 1),
(2, 'company_domain', 'hrm.test', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(3, 'company_logo_backend', 'uploads/settings/logo/logo-white.png', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(4, 'company_logo_frontend', NULL, NULL, 'app', '2024-06-14 03:19:27', '2025-12-07 06:38:53', 1, 1),
(5, 'company_icon', 'uploads/settings/logo/favicon.png', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(6, 'android_url', 'https://play.google.com/store/apps/details?id=com.worx24hour.hrm', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(7, 'android_icon', 'assets/favicon.png', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(8, 'ios_url', 'https://apps.apple.com/us/app/24hourworx/id1620313188', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(9, 'ios_icon', 'assets/favicon.png', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(10, 'language', 'en', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(11, 'site_under_maintenance', '0', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(12, 'company_description', 'Demo inc believes in painting the perfect picture of your idea while maintaining industry standards.', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(13, 'default_theme', 'app_theme_1', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(14, 'app_theme_1', 'static/app-screen/screen-1.png', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(15, 'app_theme_2', 'static/app-screen/screen-2.png', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(16, 'app_theme_3', 'static/app-screen/screen-3.png', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(17, 'email', 'info@demo.com', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(18, 'phone', '+62 (0) 000 0000 00', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(19, 'address', 'House #148, Road #13/B, Block-E, Banani, Dhaka, Bangladesh', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(20, 'twitter_link', 'https://twitter.com', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(21, 'linkedin_link', 'https://linkedin.com', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(22, 'facebook_link', 'https://facebook.com', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(23, 'instagram_link', 'https://instagram.com', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(24, 'dribbble_link', 'https://dribbble.com', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(25, 'behance_link', 'https://behance.com', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(26, 'pinterest_link', 'https://pinterest.com', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(27, 'contact_title', 'Send A Message To Get Your Free Quote', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(28, 'contact_short_description', 'Lorem Ipsum Dolor Sit Amet Consectetur. Est Commodo Pharetra Ac Netus Enim A Eget. Tristique Malesuada Donec Condimentum Mi Quis Porttitor Non Vitae Ultrices.', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(29, 'mail_mailer', 'smtp', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(30, 'mail_host', 'smtp.gmail.com', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(31, 'mail_port', '587', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(32, 'mail_username', 'test@test.com', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(33, 'mail_password', '1234512345', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(34, 'mail_from_address', 'test@test.com', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(35, 'mail_encryption', 'tls', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(36, 'mail_from_name', 'Demo inc', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(37, 'file_system_driver', 'local', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(38, 'aws_access_key_id', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(39, 'aws_secret_access_key', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(40, 'aws_default_region', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(41, 'aws_bucket', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(42, 'aws_url', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(43, 'aws_endpoint', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(44, 'aws_use_path_style_endpoint', '0', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(45, 'firebase_api_key', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(46, 'firebase_auth_domain', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(47, 'firebase_auth_database_url', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(48, 'firebase_project_id', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(49, 'firebase_storage_bucket', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(50, 'firebase_messaging_sender_id', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(51, 'firebase_app_id', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(52, 'firebase_measurement_id', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(53, 'firebase_auth_collection_name', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(54, 'geocoding_api_key', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(55, 'geocoding_base_url', 'https://maps.googleapis.com/maps/api/geocode/json', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(56, 'pusher_app_id', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(57, 'pusher_app_key', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(58, 'pusher_app_secret', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(59, 'pusher_app_cluster', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(60, 'stripe_key', 'pk_test_51NaH9CAEFWsTKUlUhOrl8P1yBT5Yx8bOmFFRwRWz7JzmLnk1LxvfWmD49bl31KvRCL9jxLKeKexNCxIzEV0kPl4n00lvX1LLaS', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(61, 'stripe_secret', 'sk_test_51NaH9CAEFWsTKUlUAKFJVBaYapJZr9pHwS8X8eaXcqFDcZbqrUaoQQqKM3iSYuy8Rb6zdm5aXYNpKkuuR6298IrH00697HeaHt', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(62, 'is_recaptcha_enable', '0', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(63, 'recaptcha_sitekey', '6Lc9bg0pAAAAAKoWkSe7B-rNdpvVgpJVTsR9JekP', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(64, 'recaptcha_secret', '6Lc9bg0pAAAAABd90JQSSjznnCaHAt5X2ca35IzQ', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(65, 'is_whatsapp_chat_enable', '1', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(66, 'whatsapp_chat_number', '01234567890', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(67, 'is_tawk_enable', '1', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(68, 'tawk_chat_widget_script', '<script type=\"text/javascript\">\n            var Tawk_API = Tawk_API||{}, Tawk_LoadStart = new Date();\n            (function(){\n            var s1         = document.createElement(\"script\"), s0 = document.getElementsByTagName(\"script\")[0];\n                s1.async   = true;\n                s1.src     = \"https://embed.tawk.to/6551ee59958be55aeaaf15d9/1hf40m3te\";\n                s1.charset = \"UTF-8\";\n            s1.setAttribute(\"crossorigin\",\"*\");\n            s0.parentNode.insertBefore(s1,s0);\n            })();\n            </script>', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(69, 'meta_title', 'Demo inc', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(70, 'meta_description', 'Demo inc revolutionizes human resource management, offering a comprehensive solution for businesses. Streamline your HR processes, from recruitment to employee management, with advanced features and intuitive tools. Optimize workforce efficiency, enhance employee engagement, and stay compliant effortlessly. Explore the power of Demo inc for a seamless and strategic approach to HR.', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(71, 'meta_keywords', 'HR management software, Human resource solution, Employee management tool, Workforce optimization, Employee engagement platform, Compliance management, HR software solution, Talent management system.', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(72, 'meta_image', '', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(73, 'is_demo_checkout', '1', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(74, 'is_payment_type_cash', '1', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(75, 'is_payment_type_cheque', '1', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(76, 'is_payment_type_bank_transfer', '1', NULL, 'app', '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1);

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

--
-- Table structure for table `shifts`
--

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

--
-- Dumping data for table `shifts`
--

INSERT INTO `shifts` (`id`, `name`, `status_id`, `created_at`, `updated_at`, `company_id`, `branch_id`) VALUES
(1, 'Day Shift', 1, NULL, NULL, 1, 1),
(2, 'Evening Shift', 1, NULL, NULL, 1, 1),
(3, 'Night Shift', 1, NULL, NULL, 1, 1),
(4, 'Day Shift', 1, NULL, NULL, 1, 1),
(5, 'Evening Shift', 1, NULL, NULL, 1, 1),
(6, 'Night Shift', 1, NULL, NULL, 1, 1);

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

--
-- Table structure for table `sms_logs`
--

CREATE TABLE `sms_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `receiver_number` varchar(255) DEFAULT NULL,
  `message` longtext DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `social_identities`
--

CREATE TABLE `social_identities` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `provider_name` varchar(255) DEFAULT NULL,
  `provider_id` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `statuses`
--

CREATE TABLE `statuses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(30) NOT NULL COMMENT 'hare name=status situation',
  `class` varchar(50) DEFAULT NULL COMMENT 'hare class=what type of class name property like success,danger,info,purple',
  `color_code` varchar(255) 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 `statuses`
--

INSERT INTO `statuses` (`id`, `name`, `class`, `color_code`, `created_at`, `updated_at`) VALUES
(1, 'Active', 'success', '449d44', NULL, NULL),
(2, 'Pending', 'warning', 'ec971f', NULL, NULL),
(3, 'Suspended', 'danger', 'c9302c', NULL, NULL),
(4, 'Inactive', 'danger', 'c9302c', NULL, NULL),
(5, 'Approve', 'success', '449d44', NULL, NULL),
(6, 'Reject', 'danger', 'c9302c', NULL, NULL),
(7, 'Cancel', 'danger', 'c9302c', NULL, NULL),
(8, 'Paid', 'success', '449d44', NULL, NULL),
(9, 'Unpaid', 'danger', 'c9302c', NULL, NULL),
(10, 'Claimed', 'primary', '337ab7', NULL, NULL),
(11, 'Not Claimed', 'danger', 'c9302c', NULL, NULL),
(12, 'Open', 'danger', 'ffFD815B', NULL, NULL),
(13, 'Close', 'success', '449d44', NULL, NULL),
(14, 'High', 'danger', 'c9302c', NULL, NULL),
(15, 'Medium', 'primary', '337ab7', NULL, NULL),
(16, 'Low', 'warning', 'ec971f', NULL, NULL),
(17, 'Referred', 'warning', 'ec971f', NULL, NULL),
(18, 'Debit', 'danger', 'ffFD815B', NULL, NULL),
(19, 'Credit', 'success', '449d44', NULL, NULL),
(20, 'Partially Paid', 'info', '9DBBCE', NULL, NULL),
(21, 'Partially Returned', 'warning', 'ec971f', NULL, NULL),
(22, 'No', 'danger', 'c9302c', NULL, NULL),
(23, 'Returned', 'success', '449d44', NULL, NULL),
(24, 'Not Started', 'warning', 'ec971f', NULL, NULL),
(25, 'On Hold', 'info', '9DBBCE', NULL, NULL),
(26, 'In Progress', 'main', '7F58FE', NULL, NULL),
(27, 'Completed', 'success', '449d44', NULL, NULL),
(28, 'Cancelled', 'danger', 'c9302c', NULL, NULL),
(29, 'Urgent', 'danger', 'c9302c', NULL, NULL),
(30, 'High', 'danger', 'c9302c', NULL, NULL),
(31, 'Medium', 'primary', '337ab7', NULL, NULL),
(32, 'Low', 'warning', 'ec971f', NULL, NULL),
(33, 'Yes', 'primary', '337ab7', NULL, NULL),
(34, 'Terminated', 'danger', 'c9302c', NULL, NULL),
(35, 'Resign', 'danger', 'c9302c', NULL, NULL);

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

--
-- Table structure for table `subscribers`
--

CREATE TABLE `subscribers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `email` varchar(255) NOT NULL,
  `status_id` bigint(20) UNSIGNED 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 `subscriptions`
--

CREATE TABLE `subscriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `stripe_id` varchar(255) NOT NULL,
  `stripe_status` varchar(255) NOT NULL,
  `stripe_price` varchar(255) DEFAULT NULL,
  `quantity` int(11) DEFAULT NULL,
  `trial_ends_at` timestamp NULL DEFAULT NULL,
  `ends_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 `subscription_items`
--

CREATE TABLE `subscription_items` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `subscription_id` bigint(20) UNSIGNED NOT NULL,
  `stripe_id` varchar(255) NOT NULL,
  `stripe_product` varchar(255) NOT NULL,
  `stripe_price` varchar(255) NOT NULL,
  `quantity` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `subscription_plans`
--

CREATE TABLE `subscription_plans` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(255) NOT NULL,
  `identifier` varchar(191) NOT NULL,
  `stripe_id` varchar(191) NOT NULL,
  `status_id` bigint(20) UNSIGNED 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 `support_tickets`
--

CREATE TABLE `support_tickets` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `date` date DEFAULT NULL,
  `code` varchar(191) NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `assigned_id` bigint(20) UNSIGNED DEFAULT NULL,
  `attachment_file_id` bigint(20) UNSIGNED DEFAULT NULL,
  `image_url` text DEFAULT NULL,
  `subject` varchar(191) DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `type_id` bigint(20) UNSIGNED NOT NULL DEFAULT 12 COMMENT '12 = open , 13 = close',
  `priority_id` bigint(20) UNSIGNED NOT NULL DEFAULT 14 COMMENT '14 = high , 15 = medium , 16 = low',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `tasks`
--

CREATE TABLE `tasks` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `date` date DEFAULT NULL,
  `progress` int(11) DEFAULT 0,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 24,
  `priority` bigint(20) UNSIGNED NOT NULL DEFAULT 24,
  `description` longtext NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `notify_all_users` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=no,1=yes',
  `notify_all_users_email` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=no,1=yes',
  `type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=Regular , 1= Project',
  `project_id` bigint(20) UNSIGNED DEFAULT NULL,
  `reminder` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=no,1=yes',
  `goal_id` bigint(20) UNSIGNED DEFAULT NULL,
  `service_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `task_activities`
--

CREATE TABLE `task_activities` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `description` longtext NOT NULL,
  `task_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `last_activity` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `task_discussions`
--

CREATE TABLE `task_discussions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `subject` varchar(255) NOT NULL,
  `description` longtext NOT NULL,
  `task_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `show_to_customer` bigint(20) UNSIGNED NOT NULL DEFAULT 22,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `file_id` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'this will be attachment file',
  `last_activity` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `task_discussion_comments`
--

CREATE TABLE `task_discussion_comments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `comment_id` bigint(20) UNSIGNED DEFAULT NULL,
  `description` longtext NOT NULL,
  `show_to_customer` tinyint(4) NOT NULL DEFAULT 1 COMMENT '0=no,1=yes',
  `task_discussion_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `attachment` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `task_files`
--

CREATE TABLE `task_files` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `subject` varchar(255) NOT NULL,
  `show_to_customer` bigint(20) UNSIGNED NOT NULL DEFAULT 22,
  `task_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `attachment` bigint(20) UNSIGNED DEFAULT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `last_activity` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `task_file_comments`
--

CREATE TABLE `task_file_comments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `comment_id` bigint(20) UNSIGNED DEFAULT NULL,
  `description` longtext NOT NULL,
  `show_to_customer` tinyint(4) NOT NULL DEFAULT 1 COMMENT '0=no,1=yes',
  `task_file_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `attachment` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `task_followers`
--

CREATE TABLE `task_followers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `task_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `added_by` bigint(20) UNSIGNED NOT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `is_creator` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `task_members`
--

CREATE TABLE `task_members` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `task_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `added_by` bigint(20) UNSIGNED NOT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `task_notes`
--

CREATE TABLE `task_notes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `description` longtext NOT NULL,
  `show_to_customer` bigint(20) UNSIGNED NOT NULL DEFAULT 22,
  `task_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `last_activity` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `teams`
--

CREATE TABLE `teams` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) DEFAULT NULL,
  `attachment_file_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `team_lead_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `team_members`
--

CREATE TABLE `team_members` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `team_id` bigint(20) UNSIGNED DEFAULT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `expire_date` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `tenants`
--

CREATE TABLE `tenants` (
  `id` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`data`)),
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `tenant_subscriptions`
--

CREATE TABLE `tenant_subscriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `subscription_id_in_main_company` bigint(20) UNSIGNED DEFAULT NULL,
  `invoice_no` varchar(255) NOT NULL,
  `plan_name` varchar(255) DEFAULT NULL,
  `price` decimal(8,2) DEFAULT 0.00,
  `payment_gateway` varchar(255) DEFAULT NULL,
  `trx_id` varchar(255) DEFAULT NULL,
  `offline_payment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`offline_payment`)),
  `employee_limit` bigint(20) UNSIGNED DEFAULT 0,
  `is_employee_limit` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'if 1 then employee create have some limit which is define in employee_limit column. If 0 then employee create have no limit.',
  `expiry_date` date DEFAULT NULL,
  `features` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`features`)),
  `features_key` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`features_key`)),
  `is_demo_checkout` tinyint(4) NOT NULL DEFAULT 0,
  `source` enum('Website','Admin') DEFAULT 'Website',
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1 COMMENT '1=Active,2=Pending,4=inactive,5=Approve,6=Reject',
  `payment_status_id` bigint(20) UNSIGNED NOT NULL COMMENT '8=Paid,9=Unpaid',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `tenant_user_impersonation_tokens`
--

CREATE TABLE `tenant_user_impersonation_tokens` (
  `token` varchar(128) NOT NULL,
  `tenant_id` varchar(255) NOT NULL,
  `user_id` varchar(255) NOT NULL,
  `auth_guard` varchar(255) NOT NULL,
  `redirect_url` varchar(255) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `testimonials`
--

CREATE TABLE `testimonials` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `message` varchar(255) DEFAULT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `ticket_replies`
--

CREATE TABLE `ticket_replies` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `support_ticket_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `message` longtext NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `time_zones`
--

CREATE TABLE `time_zones` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `code` varchar(255) DEFAULT NULL,
  `time_zone` varchar(255) DEFAULT NULL,
  `active_status` tinyint(4) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `time_zones`
--

INSERT INTO `time_zones` (`id`, `code`, `time_zone`, `active_status`, `created_at`, `updated_at`) VALUES
(1, 'AD', 'Europe/Andorra', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(2, 'AE', 'Asia/Dubai', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(3, 'AF', 'Asia/Kabul', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(4, 'AG', 'America/Antigua', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(5, 'AI', 'America/Anguilla', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(6, 'AL', 'Europe/Tirane', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(7, 'AM', 'Asia/Yerevan', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(8, 'AO', 'Africa/Luanda', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(9, 'AQ', 'Antarctica/McMurdo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(10, 'AQ', 'Antarctica/Casey', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(11, 'AQ', 'Antarctica/Davis', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(12, 'AQ', 'Antarctica/DumontDUrville', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(13, 'AQ', 'Antarctica/Mawson', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(14, 'AQ', 'Antarctica/Palmer', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(15, 'AQ', 'Antarctica/Rothera', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(16, 'AQ', 'Antarctica/Syowa', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(17, 'AQ', 'Antarctica/Troll', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(18, 'AQ', 'Antarctica/Vostok', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(19, 'AR', 'America/Argentina/Buenos_Aires', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(20, 'AR', 'America/Argentina/Cordoba', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(21, 'AR', 'America/Argentina/Salta', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(22, 'AR', 'America/Argentina/Jujuy', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(23, 'AR', 'America/Argentina/Tucuman', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(24, 'AR', 'America/Argentina/Catamarca', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(25, 'AR', 'America/Argentina/La_Rioja', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(26, 'AR', 'America/Argentina/San_Juan', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(27, 'AR', 'America/Argentina/Mendoza', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(28, 'AR', 'America/Argentina/San_Luis', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(29, 'AR', 'America/Argentina/Rio_Gallegos', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(30, 'AR', 'America/Argentina/Ushuaia', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(31, 'AS', 'Pacific/Pago_Pago', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(32, 'AT', 'Europe/Vienna', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(33, 'AU', 'Australia/Lord_Howe', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(34, 'AU', 'Antarctica/Macquarie', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(35, 'AU', 'Australia/Hobart', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(36, 'AU', 'Australia/Currie', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(37, 'AU', 'Australia/Melbourne', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(38, 'AU', 'Australia/Sydney', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(39, 'AU', 'Australia/Broken_Hill', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(40, 'AU', 'Australia/Brisbane', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(41, 'AU', 'Australia/Lindeman', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(42, 'AU', 'Australia/Adelaide', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(43, 'AU', 'Australia/Darwin', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(44, 'AU', 'Australia/Perth', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(45, 'AU', 'Australia/Eucla', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(46, 'AW', 'America/Aruba', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(47, 'AX', 'Europe/Mariehamn', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(48, 'AZ', 'Asia/Baku', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(49, 'BA', 'Europe/Sarajevo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(50, 'BB', 'America/Barbados', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(51, 'BD', 'Asia/Dhaka', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(52, 'BE', 'Europe/Brussels', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(53, 'BF', 'Africa/Ouagadougou', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(54, 'BG', 'Europe/Sofia', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(55, 'BH', 'Asia/Bahrain', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(56, 'BI', 'Africa/Bujumbura', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(57, 'BJ', 'Africa/Porto-Novo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(58, 'BL', 'America/St_Barthelemy', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(59, 'BM', 'Atlantic/Bermuda', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(60, 'BN', 'Asia/Brunei', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(61, 'BO', 'America/La_Paz', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(62, 'BQ', 'America/Kralendijk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(63, 'BR', 'America/Noronha', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(64, 'BR', 'America/Belem', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(65, 'BR', 'America/Fortaleza', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(66, 'BR', 'America/Recife', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(67, 'BR', 'America/Araguaina', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(68, 'BR', 'America/Maceio', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(69, 'BR', 'America/Bahia', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(70, 'BR', 'America/Sao_Paulo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(71, 'BR', 'America/Campo_Grande', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(72, 'BR', 'America/Cuiaba', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(73, 'BR', 'America/Santarem', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(74, 'BR', 'America/Porto_Velho', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(75, 'BR', 'America/Boa_Vista', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(76, 'BR', 'America/Manaus', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(77, 'BR', 'America/Eirunepe', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(78, 'BR', 'America/Rio_Branco', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(79, 'BS', 'America/Nassau', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(80, 'BT', 'Asia/Thimphu', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(81, 'BW', 'Africa/Gaborone', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(82, 'BY', 'Europe/Minsk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(83, 'BZ', 'America/Belize', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(84, 'CA', 'America/St_Johns', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(85, 'CA', 'America/Halifax', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(86, 'CA', 'America/Glace_Bay', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(87, 'CA', 'America/Moncton', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(88, 'CA', 'America/Goose_Bay', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(89, 'CA', 'America/Blanc-Sablon', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(90, 'CA', 'America/Toronto', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(91, 'CA', 'America/Nipigon', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(92, 'CA', 'America/Thunder_Bay', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(93, 'CA', 'America/Iqaluit', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(94, 'CA', 'America/Pangnirtung', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(95, 'CA', 'America/Atikokan', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(96, 'CA', 'America/Winnipeg', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(97, 'CA', 'America/Rainy_River', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(98, 'CA', 'America/Resolute', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(99, 'CA', 'America/Rankin_Inlet', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(100, 'CA', 'America/Regina', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(101, 'CA', 'America/Swift_Current', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(102, 'CA', 'America/Edmonton', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(103, 'CA', 'America/Cambridge_Bay', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(104, 'CA', 'America/Yellowknife', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(105, 'CA', 'America/Inuvik', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(106, 'CA', 'America/Creston', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(107, 'CA', 'America/Dawson_Creek', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(108, 'CA', 'America/Fort_Nelson', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(109, 'CA', 'America/Vancouver', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(110, 'CA', 'America/Whitehorse', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(111, 'CA', 'America/Dawson', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(112, 'CC', 'Indian/Cocos', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(113, 'CD', 'Africa/Kinshasa', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(114, 'CD', 'Africa/Lubumbashi', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(115, 'CF', 'Africa/Bangui', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(116, 'CG', 'Africa/Brazzaville', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(117, 'CH', 'Europe/Zurich', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(118, 'CI', 'Africa/Abidjan', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(119, 'CK', 'Pacific/Rarotonga', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(120, 'CL', 'America/Santiago', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(121, 'CL', 'America/Punta_Arenas', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(122, 'CL', 'Pacific/Easter', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(123, 'CM', 'Africa/Douala', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(124, 'CN', 'Asia/Shanghai', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(125, 'CN', 'Asia/Urumqi', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(126, 'CO', 'America/Bogota', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(127, 'CR', 'America/Costa_Rica', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(128, 'CU', 'America/Havana', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(129, 'CV', 'Atlantic/Cape_Verde', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(130, 'CW', 'America/Curacao', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(131, 'CX', 'Indian/Christmas', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(132, 'CY', 'Asia/Nicosia', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(133, 'CY', 'Asia/Famagusta', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(134, 'CZ', 'Europe/Prague', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(135, 'DE', 'Europe/Berlin', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(136, 'DE', 'Europe/Busingen', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(137, 'DJ', 'Africa/Djibouti', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(138, 'DK', 'Europe/Copenhagen', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(139, 'DM', 'America/Dominica', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(140, 'DO', 'America/Santo_Domingo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(141, 'DZ', 'Africa/Algiers', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(142, 'EC', 'America/Guayaquil', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(143, 'EC', 'Pacific/Galapagos', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(144, 'EE', 'Europe/Tallinn', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(145, 'EG', 'Africa/Cairo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(146, 'EH', 'Africa/El_Aaiun', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(147, 'ER', 'Africa/Asmara', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(148, 'ES', 'Europe/Madrid', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(149, 'ES', 'Africa/Ceuta', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(150, 'ES', 'Atlantic/Canary', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(151, 'ET', 'Africa/Addis_Ababa', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(152, 'FI', 'Europe/Helsinki', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(153, 'FJ', 'Pacific/Fiji', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(154, 'FK', 'Atlantic/Stanley', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(155, 'FM', 'Pacific/Chuuk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(156, 'FM', 'Pacific/Pohnpei', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(157, 'FM', 'Pacific/Kosrae', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(158, 'FO', 'Atlantic/Faroe', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(159, 'FR', 'Europe/Paris', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(160, 'GA', 'Africa/Libreville', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(161, 'GB', 'Europe/London', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(162, 'GD', 'America/Grenada', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(163, 'GE', 'Asia/Tbilisi', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(164, 'GF', 'America/Cayenne', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(165, 'GG', 'Europe/Guernsey', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(166, 'GH', 'Africa/Accra', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(167, 'GI', 'Europe/Gibraltar', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(168, 'GL', 'America/Godthab', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(169, 'GL', 'America/Danmarkshavn', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(170, 'GL', 'America/Scoresbysund', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(171, 'GL', 'America/Thule', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(172, 'GM', 'Africa/Banjul', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(173, 'GN', 'Africa/Conakry', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(174, 'GP', 'America/Guadeloupe', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(175, 'GQ', 'Africa/Malabo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(176, 'GR', 'Europe/Athens', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(177, 'GS', 'Atlantic/South_Georgia', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(178, 'GT', 'America/Guatemala', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(179, 'GU', 'Pacific/Guam', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(180, 'GW', 'Africa/Bissau', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(181, 'GY', 'America/Guyana', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(182, 'HK', 'Asia/Hong_Kong', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(183, 'HN', 'America/Tegucigalpa', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(184, 'HR', 'Europe/Zagreb', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(185, 'HT', 'America/Port-au-Prince', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(186, 'HU', 'Europe/Budapest', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(187, 'ID', 'Asia/Jakarta', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(188, 'ID', 'Asia/Pontianak', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(189, 'ID', 'Asia/Makassar', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(190, 'ID', 'Asia/Jayapura', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(191, 'IE', 'Europe/Dublin', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(192, 'IL', 'Asia/Jerusalem', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(193, 'IM', 'Europe/Isle_of_Man', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(194, 'IN', 'Asia/Kolkata', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(195, 'IO', 'Indian/Chagos', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(196, 'IQ', 'Asia/Baghdad', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(197, 'IR', 'Asia/Tehran', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(198, 'IS', 'Atlantic/Reykjavik', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(199, 'IT', 'Europe/Rome', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(200, 'JE', 'Europe/Jersey', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(201, 'JM', 'America/Jamaica', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(202, 'JO', 'Asia/Amman', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(203, 'JP', 'Asia/Tokyo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(204, 'KE', 'Africa/Nairobi', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(205, 'KG', 'Asia/Bishkek', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(206, 'KH', 'Asia/Phnom_Penh', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(207, 'KI', 'Pacific/Tarawa', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(208, 'KI', 'Pacific/Enderbury', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(209, 'KI', 'Pacific/Kiritimati', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(210, 'KM', 'Indian/Comoro', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(211, 'KN', 'America/St_Kitts', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(212, 'KP', 'Asia/Pyongyang', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(213, 'KR', 'Asia/Seoul', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(214, 'KW', 'Asia/Kuwait', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(215, 'KY', 'America/Cayman', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(216, 'KZ', 'Asia/Almaty', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(217, 'KZ', 'Asia/Qyzylorda', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(218, 'KZ', 'Asia/Aqtobe', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(219, 'KZ', 'Asia/Aqtau', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(220, 'KZ', 'Asia/Atyrau', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(221, 'KZ', 'Asia/Oral', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(222, 'LA', 'Asia/Vientiane', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(223, 'LB', 'Asia/Beirut', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(224, 'LC', 'America/St_Lucia', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(225, 'LI', 'Europe/Vaduz', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(226, 'LK', 'Asia/Colombo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(227, 'LR', 'Africa/Monrovia', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(228, 'LS', 'Africa/Maseru', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(229, 'LT', 'Europe/Vilnius', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(230, 'LU', 'Europe/Luxembourg', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(231, 'LV', 'Europe/Riga', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(232, 'LY', 'Africa/Tripoli', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(233, 'MA', 'Africa/Casablanca', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(234, 'MC', 'Europe/Monaco', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(235, 'MD', 'Europe/Chisinau', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(236, 'ME', 'Europe/Podgorica', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(237, 'MF', 'America/Marigot', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(238, 'MG', 'Indian/Antananarivo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(239, 'MH', 'Pacific/Majuro', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(240, 'MH', 'Pacific/Kwajalein', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(241, 'MK', 'Europe/Skopje', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(242, 'ML', 'Africa/Bamako', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(243, 'MM', 'Asia/Yangon', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(244, 'MN', 'Asia/Ulaanbaatar', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(245, 'MN', 'Asia/Hovd', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(246, 'MN', 'Asia/Choibalsan', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(247, 'MO', 'Asia/Macau', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(248, 'MP', 'Pacific/Saipan', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(249, 'MQ', 'America/Martinique', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(250, 'MR', 'Africa/Nouakchott', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(251, 'MS', 'America/Montserrat', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(252, 'MT', 'Europe/Malta', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(253, 'MU', 'Indian/Mauritius', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(254, 'MV', 'Indian/Maldives', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(255, 'MW', 'Africa/Blantyre', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(256, 'MX', 'America/Mexico_City', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(257, 'MX', 'America/Cancun', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(258, 'MX', 'America/Merida', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(259, 'MX', 'America/Monterrey', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(260, 'MX', 'America/Matamoros', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(261, 'MX', 'America/Mazatlan', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(262, 'MX', 'America/Chihuahua', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(263, 'MX', 'America/Ojinaga', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(264, 'MX', 'America/Hermosillo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(265, 'MX', 'America/Tijuana', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(266, 'MX', 'America/Bahia_Banderas', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(267, 'MY', 'Asia/Kuala_Lumpur', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(268, 'MY', 'Asia/Kuching', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(269, 'MZ', 'Africa/Maputo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(270, 'NA', 'Africa/Windhoek', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(271, 'NC', 'Pacific/Noumea', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(272, 'NE', 'Africa/Niamey', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(273, 'NF', 'Pacific/Norfolk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(274, 'NG', 'Africa/Lagos', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(275, 'NI', 'America/Managua', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(276, 'NL', 'Europe/Amsterdam', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(277, 'NO', 'Europe/Oslo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(278, 'NP', 'Asia/Kathmandu', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(279, 'NR', 'Pacific/Nauru', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(280, 'NU', 'Pacific/Niue', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(281, 'NZ', 'Pacific/Auckland', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(282, 'NZ', 'Pacific/Chatham', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(283, 'OM', 'Asia/Muscat', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(284, 'PA', 'America/Panama', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(285, 'PE', 'America/Lima', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(286, 'PF', 'Pacific/Tahiti', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(287, 'PF', 'Pacific/Marquesas', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(288, 'PF', 'Pacific/Gambier', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(289, 'PG', 'Pacific/Port_Moresby', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(290, 'PG', 'Pacific/Bougainville', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(291, 'PH', 'Asia/Manila', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(292, 'PK', 'Asia/Karachi', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(293, 'PL', 'Europe/Warsaw', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(294, 'PM', 'America/Miquelon', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(295, 'PN', 'Pacific/Pitcairn', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(296, 'PR', 'America/Puerto_Rico', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(297, 'PS', 'Asia/Gaza', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(298, 'PS', 'Asia/Hebron', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(299, 'PT', 'Europe/Lisbon', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(300, 'PT', 'Atlantic/Madeira', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(301, 'PT', 'Atlantic/Azores', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(302, 'PW', 'Pacific/Palau', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(303, 'PY', 'America/Asuncion', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(304, 'QA', 'Asia/Qatar', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(305, 'RE', 'Indian/Reunion', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(306, 'RO', 'Europe/Bucharest', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(307, 'RS', 'Europe/Belgrade', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(308, 'RU', 'Europe/Kaliningrad', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(309, 'RU', 'Europe/Moscow', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(310, 'RU', 'Europe/Simferopol', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(311, 'RU', 'Europe/Volgograd', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(312, 'RU', 'Europe/Kirov', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(313, 'RU', 'Europe/Astrakhan', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(314, 'RU', 'Europe/Saratov', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(315, 'RU', 'Europe/Ulyanovsk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(316, 'RU', 'Europe/Samara', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(317, 'RU', 'Asia/Yekaterinburg', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(318, 'RU', 'Asia/Omsk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(319, 'RU', 'Asia/Novosibirsk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(320, 'RU', 'Asia/Barnaul', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(321, 'RU', 'Asia/Tomsk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(322, 'RU', 'Asia/Novokuznetsk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(323, 'RU', 'Asia/Krasnoyarsk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(324, 'RU', 'Asia/Irkutsk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(325, 'RU', 'Asia/Chita', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(326, 'RU', 'Asia/Yakutsk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(327, 'RU', 'Asia/Khandyga', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(328, 'RU', 'Asia/Vladivostok', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(329, 'RU', 'Asia/Ust-Nera', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(330, 'RU', 'Asia/Magadan', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(331, 'RU', 'Asia/Sakhalin', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(332, 'RU', 'Asia/Srednekolymsk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(333, 'RU', 'Asia/Kamchatka', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(334, 'RU', 'Asia/Anadyr', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(335, 'RW', 'Africa/Kigali', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(336, 'SA', 'Asia/Riyadh', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(337, 'SB', 'Pacific/Guadalcanal', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(338, 'SC', 'Indian/Mahe', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(339, 'SD', 'Africa/Khartoum', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(340, 'SE', 'Europe/Stockholm', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(341, 'SG', 'Asia/Singapore', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(342, 'SH', 'Atlantic/St_Helena', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(343, 'SI', 'Europe/Ljubljana', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(344, 'SJ', 'Arctic/Longyearbyen', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(345, 'SK', 'Europe/Bratislava', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(346, 'SL', 'Africa/Freetown', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(347, 'SM', 'Europe/San_Marino', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(348, 'SN', 'Africa/Dakar', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(349, 'SO', 'Africa/Mogadishu', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(350, 'SR', 'America/Paramaribo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(351, 'SS', 'Africa/Juba', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(352, 'ST', 'Africa/Sao_Tome', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(353, 'SV', 'America/El_Salvador', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(354, 'SX', 'America/Lower_Princes', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(355, 'SY', 'Asia/Damascus', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(356, 'SZ', 'Africa/Mbabane', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(357, 'TC', 'America/Grand_Turk', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(358, 'TD', 'Africa/Ndjamena', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(359, 'TF', 'Indian/Kerguelen', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(360, 'TG', 'Africa/Lome', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(361, 'TH', 'Asia/Bangkok', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(362, 'TJ', 'Asia/Dushanbe', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(363, 'TK', 'Pacific/Fakaofo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(364, 'TL', 'Asia/Dili', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(365, 'TM', 'Asia/Ashgabat', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(366, 'TN', 'Africa/Tunis', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(367, 'TO', 'Pacific/Tongatapu', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(368, 'TR', 'Europe/Istanbul', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(369, 'TT', 'America/Port_of_Spain', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(370, 'TV', 'Pacific/Funafuti', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(371, 'TW', 'Asia/Taipei', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(372, 'TZ', 'Africa/Dar_es_Salaam', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(373, 'UA', 'Europe/Kiev', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(374, 'UA', 'Europe/Uzhgorod', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(375, 'UA', 'Europe/Zaporozhye', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(376, 'UG', 'Africa/Kampala', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(377, 'UM', 'Pacific/Midway', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(378, 'UM', 'Pacific/Wake', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(379, 'US', 'America/New_York', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(380, 'US', 'America/Detroit', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(381, 'US', 'America/Kentucky/Louisville', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(382, 'US', 'America/Kentucky/Monticello', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(383, 'US', 'America/Indiana/Indianapolis', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(384, 'US', 'America/Indiana/Vincennes', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(385, 'US', 'America/Indiana/Winamac', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(386, 'US', 'America/Indiana/Marengo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(387, 'US', 'America/Indiana/Petersburg', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(388, 'US', 'America/Indiana/Vevay', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(389, 'US', 'America/Chicago', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(390, 'US', 'America/Indiana/Tell_City', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(391, 'US', 'America/Indiana/Knox', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(392, 'US', 'America/Menominee', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(393, 'US', 'America/North_Dakota/Center', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(394, 'US', 'America/North_Dakota/New_Salem', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(395, 'US', 'America/North_Dakota/Beulah', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(396, 'US', 'America/Denver', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(397, 'US', 'America/Boise', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(398, 'US', 'America/Phoenix', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(399, 'US', 'America/Los_Angeles', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(400, 'US', 'America/Anchorage', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(401, 'US', 'America/Juneau', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(402, 'US', 'America/Sitka', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(403, 'US', 'America/Metlakatla', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(404, 'US', 'America/Yakutat', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(405, 'US', 'America/Nome', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(406, 'US', 'America/Adak', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(407, 'US', 'Pacific/Honolulu', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(408, 'UY', 'America/Montevideo', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(409, 'UZ', 'Asia/Samarkand', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(410, 'UZ', 'Asia/Tashkent', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(411, 'VA', 'Europe/Vatican', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(412, 'VC', 'America/St_Vincent', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(413, 'VE', 'America/Caracas', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(414, 'VG', 'America/Tortola', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(415, 'VI', 'America/St_Thomas', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(416, 'VN', 'Asia/Ho_Chi_Minh', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(417, 'VU', 'Pacific/Efate', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(418, 'WF', 'Pacific/Wallis', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(419, 'WS', 'Pacific/Apia', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(420, 'YE', 'Asia/Aden', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(421, 'YT', 'Indian/Mayotte', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(422, 'ZA', 'Africa/Johannesburg', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(423, 'ZM', 'Africa/Lusaka', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23'),
(424, 'ZW', 'Africa/Harare', 1, '2024-06-14 03:19:23', '2024-06-14 03:19:23');

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

--
-- Table structure for table `transactions`
--

CREATE TABLE `transactions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `account_id` bigint(20) UNSIGNED NOT NULL,
  `date` date DEFAULT NULL,
  `description` varchar(400) DEFAULT NULL,
  `amount` double(16,2) NOT NULL DEFAULT 0.00,
  `transaction_type` bigint(20) UNSIGNED NOT NULL DEFAULT 18,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 9,
  `created_by` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `updated_by` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `translations`
--

CREATE TABLE `translations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `default` varchar(191) NOT NULL,
  `en` longtext DEFAULT NULL,
  `bn` longtext DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `travel`
--

CREATE TABLE `travel` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `travel_type_id` bigint(20) UNSIGNED NOT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `expect_amount` double(16,2) DEFAULT NULL,
  `amount` double(16,2) DEFAULT NULL,
  `description` longtext NOT NULL,
  `attachment` bigint(20) UNSIGNED DEFAULT NULL,
  `purpose` varchar(255) DEFAULT NULL,
  `place` varchar(255) DEFAULT NULL,
  `mode` enum('bus','train','plane') DEFAULT NULL,
  `goal_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `travel_expenses`
--

CREATE TABLE `travel_expenses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `employee_id` bigint(20) UNSIGNED NOT NULL,
  `travel_plan_id` bigint(20) UNSIGNED NOT NULL,
  `date` date DEFAULT NULL,
  `mode_of_transportation` enum('Bus','Train','Flight','Taxi','Auto') DEFAULT NULL,
  `total_amount` decimal(8,2) DEFAULT 0.00,
  `request_amount` decimal(8,2) DEFAULT 0.00,
  `approval_amount` decimal(8,2) DEFAULT 0.00,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 2,
  `approved_by` bigint(20) UNSIGNED DEFAULT NULL,
  `approved_at` datetime DEFAULT NULL,
  `rating_of_travel_experience` tinyint(3) UNSIGNED DEFAULT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED 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 `travel_expense_logs`
--

CREATE TABLE `travel_expense_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `travel_expense_id` bigint(20) UNSIGNED NOT NULL,
  `expense_category_id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `amount` decimal(8,2) DEFAULT 0.00,
  `file_id` bigint(20) UNSIGNED DEFAULT NULL,
  `remark` text DEFAULT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED 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 `travel_meetings`
--

CREATE TABLE `travel_meetings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `travel_plan_id` bigint(20) UNSIGNED NOT NULL,
  `employee_id` bigint(20) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `meeting_schedule_time` time DEFAULT NULL,
  `meeting_start_time` time DEFAULT NULL,
  `meeting_end_time` time DEFAULT NULL,
  `customer_company_name` varchar(255) DEFAULT NULL,
  `customer_name` varchar(255) DEFAULT NULL,
  `customer_email` varchar(255) DEFAULT NULL,
  `customer_phone` varchar(255) DEFAULT NULL,
  `purpose` text DEFAULT NULL,
  `remark` text DEFAULT NULL,
  `file_id` bigint(20) UNSIGNED DEFAULT NULL,
  `rating_of_meeting_experience` tinyint(3) UNSIGNED DEFAULT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED 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 `travel_plans`
--

CREATE TABLE `travel_plans` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `employee_id` bigint(20) UNSIGNED NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `from_location` varchar(255) DEFAULT NULL,
  `to_location` varchar(255) DEFAULT NULL,
  `purpose` text DEFAULT NULL,
  `amount` decimal(8,2) DEFAULT NULL,
  `signature` text DEFAULT NULL,
  `signature_date` date DEFAULT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 2,
  `approved_by` bigint(20) UNSIGNED DEFAULT NULL,
  `approved_at` datetime DEFAULT NULL,
  `approved_remark` text DEFAULT NULL,
  `rejected_by` bigint(20) UNSIGNED DEFAULT NULL,
  `rejected_at` datetime DEFAULT NULL,
  `rejected_remark` text DEFAULT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED 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 `travel_types`
--

CREATE TABLE `travel_types` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT 1,
  `updated_by` bigint(20) UNSIGNED DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `travel_workflows`
--

CREATE TABLE `travel_workflows` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `employee_id` bigint(20) UNSIGNED NOT NULL,
  `date` date DEFAULT NULL COMMENT 'Date of report',
  `start_time` time DEFAULT NULL,
  `end_time` time DEFAULT NULL,
  `calls_made` int(10) UNSIGNED DEFAULT NULL COMMENT 'Number of calls made today',
  `positive_leads` int(10) UNSIGNED DEFAULT NULL COMMENT 'Number of positive leads today',
  `total_sales` varchar(255) DEFAULT NULL,
  `is_update_pending_and_leads` enum('Yes','No','Other') DEFAULT NULL,
  `pending_and_leads_other_note` text DEFAULT NULL,
  `is_worked_on_recovery_today` enum('Yes','No','Other') DEFAULT NULL,
  `recovery_today_other_note` text DEFAULT NULL,
  `daily_report_summary` text DEFAULT NULL COMMENT 'Summary of daily work activities',
  `complaints_questions_comments` text DEFAULT NULL COMMENT 'Any complaints, questions, or comments',
  `file_id` bigint(20) UNSIGNED DEFAULT NULL,
  `how_was_your_day_mark` tinyint(3) UNSIGNED DEFAULT NULL COMMENT 'In Terms of Production, How was your day mark from 1-10',
  `created_by` bigint(20) UNSIGNED DEFAULT NULL,
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED 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 `uploads`
--

CREATE TABLE `uploads` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `file_original_name` varchar(255) DEFAULT NULL,
  `file_name` varchar(255) DEFAULT NULL,
  `img_path` varchar(255) DEFAULT NULL,
  `big_path` varchar(255) DEFAULT NULL COMMENT '1920 x 1080',
  `small_path` varchar(255) DEFAULT NULL COMMENT '300 x 300',
  `thumbnail_path` varchar(255) DEFAULT NULL COMMENT '500 x 400',
  `extension` varchar(10) DEFAULT NULL,
  `type` varchar(15) DEFAULT NULL,
  `file_size` int(11) DEFAULT NULL,
  `width` int(11) DEFAULT NULL,
  `height` int(11) DEFAULT NULL,
  `status_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `uploads`
--

INSERT INTO `uploads` (`id`, `user_id`, `file_original_name`, `file_name`, `img_path`, `big_path`, `small_path`, `thumbnail_path`, `extension`, `type`, `file_size`, `width`, `height`, `status_id`, `created_at`, `updated_at`, `company_id`, `branch_id`) VALUES
(1, 1, 'dark_logo', 'dark_logo.png', 'static/dark_logo.png', 'static/dark_logo.png', 'static/dark_logo.png', 'static/dark_logo.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(2, 1, 'white_logo', 'white_logo.png', 'static/white_logo.png', 'static/white_logo.png', 'static/white_logo.png', 'static/white_logo.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(3, 1, 'fav', 'fav.png', 'static/fav.png', 'static/fav.png', 'static/fav.png', 'static/fav.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(4, 1, 'background_image', 'background_image.png', 'static/background_image.png', 'static/background_image.png', 'static/background_image.png', 'static/background_image.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(5, 1, 'android_icon', 'android_icon.png', 'static/android_icon.png', 'static/android_icon.png', 'static/android_icon.png', 'static/android_icon.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(6, 1, 'iso_icon', 'iso_icon.png', 'static/iso_icon.png', 'static/iso_icon.png', 'static/iso_icon.png', 'static/iso_icon.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(7, 1, 'support', 'support.png', 'static/support.png', 'static/support.png', 'static/support.png', 'static/support.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(8, 1, 'attendance', 'attendance.png', 'static/attendance.png', 'static/attendance.png', 'static/attendance.png', 'static/attendance.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(9, 1, 'notice', 'notice.png', 'static/notice.png', 'static/notice.png', 'static/notice.png', 'static/notice.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(10, 1, 'expense', 'expense.png', 'static/expense.png', 'static/expense.png', 'static/expense.png', 'static/expense.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(11, 1, 'leave', 'leave.png', 'static/leave.png', 'static/leave.png', 'static/leave.png', 'static/leave.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(12, 1, 'approval', 'approval.png', 'static/approval.png', 'static/approval.png', 'static/approval.png', 'static/approval.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(13, 1, 'phonebook', 'phonebook.png', 'static/phonebook.png', 'static/phonebook.png', 'static/phonebook.png', 'static/phonebook.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(14, 1, 'visit', 'visit.png', 'static/visit.png', 'static/visit.png', 'static/visit.png', 'static/visit.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(15, 1, 'appointments', 'appointments.png', 'static/appointments.png', 'static/appointments.png', 'static/appointments.png', 'static/appointments.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(16, 1, 'break', 'break.png', 'static/break.png', 'static/break.png', 'static/break.png', 'static/break.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(17, 1, 'report', 'report.png', 'static/report.png', 'static/report.png', 'static/report.png', 'static/report.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(21, 1, 'portfolio1', 'portfolio1.png', 'static/portfolio1.png', 'static/portfolio1.png', 'static/portfolio1.png', 'static/portfolio1.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(22, 1, 'portfolio2', 'portfolio2.png', 'static/portfolio2.png', 'static/portfolio2.png', 'static/portfolio2.png', 'static/portfolio2.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(23, 1, 'portfolio3', 'portfolio3.png', 'static/portfolio3.png', 'static/portfolio3.png', 'static/portfolio3.png', 'static/portfolio3.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(24, 1, 'portfolio4', 'portfolio4.png', 'static/portfolio4.png', 'static/portfolio4.png', 'static/portfolio4.png', 'static/portfolio4.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(25, 1, 'portfolio5', 'portfolio5.png', 'static/portfolio5.png', 'static/portfolio5.png', 'static/portfolio5.png', 'static/portfolio5.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(26, 1, 'portfolio6', 'portfolio6.png', 'static/portfolio6.png', 'static/portfolio6.png', 'static/portfolio6.png', 'static/portfolio6.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(27, 1, 'portfolio7', 'portfolio7.png', 'static/portfolio7.png', 'static/portfolio7.png', 'static/portfolio7.png', 'static/portfolio7.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(28, 1, 'portfolio8', 'portfolio8.png', 'static/portfolio8.png', 'static/portfolio8.png', 'static/portfolio8.png', 'static/portfolio8.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(29, 1, 'team1', 'team1.png', 'static/team1.png', 'static/team1.png', 'static/team1.png', 'static/team1.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(30, 1, 'team2', 'team2.png', 'static/team2.png', 'static/team2.png', 'static/team2.png', 'static/team2.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(31, 1, 'team3', 'team3.png', 'static/team3.png', 'static/team3.png', 'static/team3.png', 'static/team3.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(32, 1, 'team4', 'team4.png', 'static/team4.png', 'static/team4.png', 'static/team4.png', 'static/team4.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(33, 1, 'team5', 'team5.png', 'static/team5.png', 'static/team5.png', 'static/team5.png', 'static/team5.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(34, 1, 'team6', 'team6.png', 'static/team6.png', 'static/team6.png', 'static/team6.png', 'static/team6.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(35, 1, 'team7', 'team7.png', 'static/team7.png', 'static/team7.png', 'static/team7.png', 'static/team7.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(36, 1, 'team8', 'team8.png', 'static/team8.png', 'static/team8.png', 'static/team8.png', 'static/team8.png', '.png', 'png', 0, 100, 100, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(37, 1, 'team8', 'team8.png', 'static/app-screen/screen-1.png', 'static/app-screen/screen-1.png', 'static/app-screen/screen-1.png', 'static/app-screen/screen-1.png', '.png', 'png', 0, 300, 700, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(38, 1, 'team8', 'team8.png', 'static/app-screen/screen-2.png', 'static/app-screen/screen-2.png', 'static/app-screen/screen-2.png', 'static/app-screen/screen-2.png', '.png', 'png', 0, 300, 700, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(39, 1, 'team8', 'team8.png', 'static/app-screen/screen-3.png', 'static/app-screen/screen-3.png', 'static/app-screen/screen-3.png', 'static/app-screen/screen-3.png', '.png', 'png', 0, 300, 700, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(40, 1, 'cms1', 'cms1.png', 'vendor/Saas/Assets/images/img_1.png', 'vendor/Saas/Assets/images/img_1.png', 'vendor/Saas/Assets/images/img_1.png', 'vendor/Saas/Assets/images/img_1.png', '.png', 'png', 0, 500, 500, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(41, 1, 'cms2', 'cms2.png', 'vendor/Saas/Assets/images/img_2.png', 'vendor/Saas/Assets/images/img_2.png', 'vendor/Saas/Assets/images/img_2.png', 'vendor/Saas/Assets/images/img_2.png', '.png', 'png', 0, 500, 500, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(42, 1, 'cms3', 'cms3.png', 'vendor/Saas/Assets/images/img_3.png', 'vendor/Saas/Assets/images/img_3.png', 'vendor/Saas/Assets/images/img_3.png', 'vendor/Saas/Assets/images/img_3.png', '.png', 'png', 0, 500, 500, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(43, 1, 'cms4', 'cms4.png', 'vendor/Saas/Assets/images/img_4.png', 'vendor/Saas/Assets/images/img_4.png', 'vendor/Saas/Assets/images/img_4.png', 'vendor/Saas/Assets/images/img_4.png', '.png', 'png', 0, 500, 500, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(44, 1, 'cms5', 'cms5.png', 'vendor/Saas/Assets/images/img_5.png', 'vendor/Saas/Assets/images/img_5.png', 'vendor/Saas/Assets/images/img_5.png', 'vendor/Saas/Assets/images/img_5.png', '.png', 'png', 0, 500, 500, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(45, 1, 'feature', 'feature.png', 'vendor/Saas/Assets/images/project.png', 'vendor/Saas/Assets/images/project.png', 'vendor/Saas/Assets/images/project.png', 'vendor/Saas/Assets/images/project.png', '.png', 'png', 0, 500, 500, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(46, 1, 'cms6', 'cms6.png', 'vendor/Saas/Assets/images/img_6.png', 'vendor/Saas/Assets/images/img_6.png', 'vendor/Saas/Assets/images/img_6.png', 'vendor/Saas/Assets/images/img_6.png', '.png', 'png', 0, 500, 500, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(47, 1, 'cms7', 'cms7.png', 'vendor/Saas/Assets/images/img_7.png', 'vendor/Saas/Assets/images/img_7.png', 'vendor/Saas/Assets/images/img_7.png', 'vendor/Saas/Assets/images/img_7.png', '.png', 'png', 0, 500, 500, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(48, 1, 'cms8', 'cms8.png', 'vendor/Saas/Assets/images/img_8.png', 'vendor/Saas/Assets/images/img_8.png', 'vendor/Saas/Assets/images/img_8.png', 'vendor/Saas/Assets/images/img_8.png', '.png', 'png', 0, 500, 500, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1),
(49, 1, 'hero-image', 'hero-image.png', 'vendor/Saas/Assets/images/hero-image.png', 'vendor/Saas/Assets/images/hero-image.png', 'vendor/Saas/Assets/images/hero-image.png', 'vendor/Saas/Assets/images/hero-image.png', '.png', 'png', 0, 500, 500, 1, '2024-06-14 03:19:27', '2024-06-14 03:19:27', 1, 1);

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

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `country_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `userID` int(11) DEFAULT NULL,
  `face_recognition` tinyint(4) DEFAULT 1,
  `face_data` longtext DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `is_admin` varchar(255) NOT NULL DEFAULT '0',
  `is_hr` tinyint(4) DEFAULT NULL,
  `role_id` bigint(20) UNSIGNED DEFAULT NULL,
  `department_id` bigint(20) UNSIGNED DEFAULT NULL,
  `shift_id` bigint(20) UNSIGNED DEFAULT NULL,
  `designation_id` bigint(20) UNSIGNED DEFAULT NULL,
  `permissions` text DEFAULT NULL,
  `verification_code` varchar(255) DEFAULT NULL COMMENT 'email verification code',
  `manager_id` bigint(20) UNSIGNED DEFAULT NULL,
  `employee_id` varchar(255) DEFAULT NULL,
  `employee_type` enum('Permanent','On Probation','Contractual','Intern') NOT NULL DEFAULT 'On Probation',
  `grade` varchar(255) DEFAULT NULL,
  `nationality` varchar(255) DEFAULT NULL,
  `facebook_link` varchar(255) DEFAULT NULL,
  `linkedin_link` varchar(255) DEFAULT NULL,
  `instagram_link` varchar(255) DEFAULT NULL,
  `passport_number` varchar(255) DEFAULT NULL,
  `passport_file_id` bigint(20) UNSIGNED DEFAULT NULL,
  `passport_expire_date` varchar(255) DEFAULT NULL,
  `passport_is_notified` tinyint(4) NOT NULL DEFAULT 0,
  `eid_number` varchar(255) DEFAULT NULL,
  `eid_file_id` bigint(20) UNSIGNED DEFAULT NULL,
  `eid_expire_date` varchar(255) DEFAULT NULL,
  `eid_is_notified` tinyint(4) NOT NULL DEFAULT 0,
  `visa_number` varchar(255) DEFAULT NULL,
  `visa_file_id` bigint(20) UNSIGNED DEFAULT NULL,
  `visa_expire_date` varchar(255) DEFAULT NULL,
  `visa_is_notified` tinyint(4) NOT NULL DEFAULT 0,
  `insurance_number` varchar(255) DEFAULT NULL,
  `insurance_file_id` bigint(20) UNSIGNED DEFAULT NULL,
  `insurance_expire_date` varchar(255) DEFAULT NULL,
  `insurance_is_notified` tinyint(4) NOT NULL DEFAULT 0,
  `labour_card_number` varchar(255) DEFAULT NULL,
  `labour_card_file_id` bigint(20) UNSIGNED DEFAULT NULL,
  `labour_card_expire_date` varchar(255) DEFAULT NULL,
  `labour_card_is_notified` tinyint(4) NOT NULL DEFAULT 0,
  `nid_card_number` varchar(255) DEFAULT NULL,
  `nid_card_id` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'this will be uploaded file',
  `tin` varchar(255) DEFAULT NULL,
  `tin_id_front_file` varchar(255) DEFAULT NULL,
  `tin_id_back_file` varchar(255) DEFAULT NULL,
  `bank_name` varchar(255) DEFAULT NULL,
  `bank_account` varchar(255) DEFAULT NULL,
  `last_login_device` varchar(255) DEFAULT NULL,
  `device_uuid` varchar(255) DEFAULT NULL,
  `emergency_name` varchar(255) DEFAULT NULL,
  `emergency_mobile_number` varchar(255) DEFAULT NULL,
  `emergency_mobile_relationship` varchar(255) DEFAULT NULL,
  `_token` varchar(255) DEFAULT NULL COMMENT 'email verify token',
  `email_verify_token` varchar(255) DEFAULT NULL COMMENT 'email verify token',
  `is_email_verified` enum('verified','non-verified') NOT NULL DEFAULT 'verified',
  `email_verified_at` timestamp NULL DEFAULT NULL COMMENT 'email verified at',
  `phone_verify_token` varchar(255) DEFAULT NULL COMMENT 'phone verify token',
  `is_phone_verified` enum('verified','non-verified') NOT NULL DEFAULT 'verified',
  `phone_verified_at` timestamp NULL DEFAULT NULL COMMENT 'phone verified at',
  `password` varchar(255) NOT NULL,
  `password_hints` varchar(255) DEFAULT NULL COMMENT 'user can set a password hint for easy remember',
  `avatar_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `last_login_at` timestamp NULL DEFAULT NULL COMMENT 'last login at',
  `last_logout_at` timestamp NULL DEFAULT NULL COMMENT 'last logout at',
  `last_login_ip` varchar(255) DEFAULT NULL COMMENT 'last login ip',
  `device_token` longtext DEFAULT NULL COMMENT 'device_token from firebase',
  `login_access` tinyint(4) NOT NULL DEFAULT 1 COMMENT '0 = off, 1 = on',
  `address` varchar(191) DEFAULT NULL,
  `gender` enum('Male','Female','Unisex','Others') DEFAULT NULL,
  `birth_date` date DEFAULT NULL,
  `religion` enum('Islam','Hindu','Christian') NOT NULL DEFAULT 'Islam',
  `blood_group` enum('A+','A-','B+','B-','O+','O-','AB+','AB-') DEFAULT NULL,
  `joining_date` date DEFAULT NULL,
  `basic_salary` double(16,2) NOT NULL DEFAULT 0.00,
  `marital_status` enum('Married','Unmarried') NOT NULL DEFAULT 'Unmarried',
  `contract_start_date` date DEFAULT NULL,
  `contract_end_date` date DEFAULT NULL,
  `payslip_type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1 = monthly, 2 = weekly, 3 = daily',
  `late_check_in` int(11) NOT NULL DEFAULT 0,
  `early_check_out` int(11) NOT NULL DEFAULT 0,
  `extra_leave` int(11) NOT NULL DEFAULT 0,
  `monthly_leave` int(11) NOT NULL DEFAULT 0,
  `is_free_location` tinyint(4) NOT NULL DEFAULT 0,
  `time_zone` varchar(191) NOT NULL DEFAULT 'Asia/Dhaka',
  `speak_language` varchar(191) NOT NULL DEFAULT 'english',
  `lang` varchar(255) DEFAULT NULL,
  `social_id` varchar(255) DEFAULT NULL,
  `social_type` varchar(255) DEFAULT NULL,
  `remember_token` varchar(100) DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `face_image` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1,
  `attendance_method` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`attendance_method`)),
  `app_token` text DEFAULT NULL,
  `device_id` text DEFAULT NULL,
  `device_info` text DEFAULT NULL COMMENT 'device name, device model, device board ',
  `duty_schedule_id` bigint(20) UNSIGNED DEFAULT NULL,
  `weekends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`weekends`)),
  `holidays` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`holidays`)),
  `employment_status` enum('resignation','termination','retirement','layoff','probation','permanent') DEFAULT 'permanent',
  `resignation_termination_date` date DEFAULT NULL,
  `exit_protocol` enum('maintained','not maintained') DEFAULT NULL,
  `last_working_day` date DEFAULT NULL,
  `reason` text DEFAULT NULL,
  `stripe_id` varchar(255) DEFAULT NULL,
  `pm_type` varchar(255) DEFAULT NULL,
  `pm_last_four` varchar(4) DEFAULT NULL,
  `trial_ends_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `country_id`, `name`, `userID`, `face_recognition`, `face_data`, `email`, `phone`, `is_admin`, `is_hr`, `role_id`, `department_id`, `shift_id`, `designation_id`, `permissions`, `verification_code`, `manager_id`, `employee_id`, `employee_type`, `grade`, `nationality`, `facebook_link`, `linkedin_link`, `instagram_link`, `passport_number`, `passport_file_id`, `passport_expire_date`, `passport_is_notified`, `eid_number`, `eid_file_id`, `eid_expire_date`, `eid_is_notified`, `visa_number`, `visa_file_id`, `visa_expire_date`, `visa_is_notified`, `insurance_number`, `insurance_file_id`, `insurance_expire_date`, `insurance_is_notified`, `labour_card_number`, `labour_card_file_id`, `labour_card_expire_date`, `labour_card_is_notified`, `nid_card_number`, `nid_card_id`, `tin`, `tin_id_front_file`, `tin_id_back_file`, `bank_name`, `bank_account`, `last_login_device`, `device_uuid`, `emergency_name`, `emergency_mobile_number`, `emergency_mobile_relationship`, `_token`, `email_verify_token`, `is_email_verified`, `email_verified_at`, `phone_verify_token`, `is_phone_verified`, `phone_verified_at`, `password`, `password_hints`, `avatar_id`, `status_id`, `last_login_at`, `last_logout_at`, `last_login_ip`, `device_token`, `login_access`, `address`, `gender`, `birth_date`, `religion`, `blood_group`, `joining_date`, `basic_salary`, `marital_status`, `contract_start_date`, `contract_end_date`, `payslip_type`, `late_check_in`, `early_check_out`, `extra_leave`, `monthly_leave`, `is_free_location`, `time_zone`, `speak_language`, `lang`, `social_id`, `social_type`, `remember_token`, `deleted_at`, `face_image`, `created_at`, `updated_at`, `company_id`, `branch_id`, `attendance_method`, `app_token`, `device_id`, `device_info`, `duty_schedule_id`, `weekends`, `holidays`, `employment_status`, `resignation_termination_date`, `exit_protocol`, `last_working_day`, `reason`, `stripe_id`, `pm_type`, `pm_last_four`, `trial_ends_at`) VALUES
(1, 223, 'Admin', NULL, 1, NULL, 'admin@demo.com', '0XXXXXXXXXXX', '1', 0, 1, NULL, NULL, NULL, '\"[]\"', NULL, NULL, NULL, 'On Probation', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'web', 'd520c7a8-421b-4563-b955-f5abc56b97ec', NULL, NULL, NULL, 'DkS6aRFaO1poBwuiD0FbT4L0JuBBjSfLvWKlZmYf', '9OpKn6uiz2', 'verified', '2024-06-14 03:19:27', NULL, 'verified', NULL, '$2y$10$xN2ZklbzFpjk6Fre6c90G.59U44CzbJ4cJaimzrtBj1MpUCvhGV8C', NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 'Islam', NULL, NULL, 0.00, 'Unmarried', NULL, NULL, 1, 0, 0, 0, 0, 0, 'Asia/Dhaka', 'english', NULL, NULL, NULL, 'iDNa67YjPm', NULL, NULL, '2024-06-14 03:19:27', '2025-12-11 05:53:49', 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'permanent', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(2, 94, 'Test User', NULL, 1, NULL, 'test@mail.com', '9874586958', '0', NULL, 4, 5, 1, 7, '[]', NULL, NULL, 'EMP-11', 'On Probation', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'verified', NULL, NULL, 'verified', NULL, '$2y$10$D9ocdhQD2mdljAljYXSMCOWPFfuES4Aes8s19T1K9LhEmm28krgAG', NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 'Kolkata', 'Male', '1999-06-20', 'Islam', 'O+', '2025-12-02', 0.00, 'Unmarried', NULL, NULL, 1, 0, 0, 0, 0, 1, 'Indian/Maldives', '', NULL, NULL, NULL, NULL, NULL, NULL, '2025-12-07 05:06:46', '2025-12-11 06:43:43', 1, 1, '{\"normal_attendance\": 1}', NULL, NULL, NULL, 1, '[\"saturday\",\"sunday\",\"saturday\",\"sunday\"]', '[]', 'permanent', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `user_breaks`
--

CREATE TABLE `user_breaks` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `break_type_id` bigint(20) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time DEFAULT NULL,
  `duration` varchar(255) DEFAULT '00:00:00',
  `reason` varchar(255) DEFAULT NULL,
  `remark` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1,
  `created_by` bigint(20) UNSIGNED DEFAULT 1,
  `updated_by` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `user_devices`
--

CREATE TABLE `user_devices` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `device_token` longtext DEFAULT NULL COMMENT 'device_token from firebase',
  `device_name` varchar(255) DEFAULT NULL COMMENT 'device_name from firebase',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `user_documents`
--

CREATE TABLE `user_documents` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `document_title` varchar(255) DEFAULT NULL,
  `document_number` varchar(255) DEFAULT NULL,
  `document_expiration` date DEFAULT NULL,
  `document_request_description` text DEFAULT NULL,
  `document_request_approved` tinyint(1) DEFAULT NULL,
  `document_request_date` date DEFAULT NULL,
  `document_notification_date` date DEFAULT NULL,
  `attachment_id` bigint(20) UNSIGNED DEFAULT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `user_document_type_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `user_document_requests`
--

CREATE TABLE `user_document_requests` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `branch_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `company_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `request_type` varchar(255) NOT NULL,
  `request_description` text DEFAULT NULL,
  `approved` tinyint(1) DEFAULT NULL,
  `request_date` date NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `user_document_types`
--

CREATE TABLE `user_document_types` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(91) NOT NULL,
  `status_id` bigint(20) NOT NULL DEFAULT 1 COMMENT '1=active,4=inactive',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `user_document_types`
--

INSERT INTO `user_document_types` (`id`, `name`, `status_id`, `created_at`, `updated_at`, `company_id`, `branch_id`) VALUES
(1, 'Resume/CV', 1, '2024-06-14 03:19:26', '2024-06-14 03:19:26', 1, 1),
(2, 'Job Offer Letter', 1, '2024-06-14 03:19:26', '2024-06-14 03:19:26', 1, 1),
(3, 'Employment Contract', 1, '2024-06-14 03:19:26', '2024-06-14 03:19:26', 1, 1),
(4, 'W-4 Form', 1, '2024-06-14 03:19:26', '2024-06-14 03:19:26', 1, 1),
(5, 'I-9 Form', 1, '2024-06-14 03:19:26', '2024-06-14 03:19:26', 1, 1),
(6, 'Payroll Records', 1, '2024-06-14 03:19:26', '2024-06-14 03:19:26', 1, 1),
(7, 'Employee Handbook', 1, '2024-06-14 03:19:26', '2024-06-14 03:19:26', 1, 1),
(8, 'Passport', 1, '2024-06-14 03:19:26', '2024-06-14 03:19:26', 1, 1),
(9, 'Social Security Number (SSN)', 1, '2024-06-14 03:19:26', '2024-06-14 03:19:26', 1, 1),
(10, 'Work Authorization', 1, '2024-06-14 03:19:26', '2024-06-14 03:19:26', 1, 1);

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

--
-- Table structure for table `user_shift_assigns`
--

CREATE TABLE `user_shift_assigns` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `shift_id` bigint(20) UNSIGNED NOT NULL,
  `status_id` bigint(20) UNSIGNED 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 `user_tenant_mappings`
--

CREATE TABLE `user_tenant_mappings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `company_id` bigint(20) UNSIGNED NOT NULL,
  `tenant_id` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `domain` varchar(255) 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 `virtual_meetings`
--

CREATE TABLE `virtual_meetings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `duration` int(11) DEFAULT 0 COMMENT '0 means unlimited',
  `start_time` timestamp NULL DEFAULT NULL,
  `end_time` timestamp NULL DEFAULT NULL,
  `host` varchar(255) NOT NULL DEFAULT 'jitsi',
  `description` text DEFAULT NULL,
  `datetime` text DEFAULT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL DEFAULT 1,
  `created_by` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `visits`
--

CREATE TABLE `visits` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `status` enum('created','started','reached','completed','cancelled') NOT NULL DEFAULT 'created',
  `cancel_note` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `visit_images`
--

CREATE TABLE `visit_images` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `imageable_id` int(10) UNSIGNED NOT NULL,
  `imageable_type` varchar(255) NOT NULL,
  `file_title` varchar(255) DEFAULT NULL,
  `file_id` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `visit_notes`
--

CREATE TABLE `visit_notes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `visit_id` bigint(20) UNSIGNED NOT NULL,
  `note` text NOT NULL,
  `status` enum('created','started','reached') NOT NULL DEFAULT 'created',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `visit_schedules`
--

CREATE TABLE `visit_schedules` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `visit_id` bigint(20) UNSIGNED NOT NULL,
  `latitude` varchar(255) DEFAULT NULL,
  `longitude` varchar(255) DEFAULT NULL,
  `location` varchar(255) DEFAULT NULL,
  `note` longtext DEFAULT NULL,
  `status` enum('created','started','reached','end') NOT NULL DEFAULT 'created',
  `started_at` timestamp NULL DEFAULT NULL,
  `reached_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `weekends`
--

CREATE TABLE `weekends` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` enum('saturday','sunday','monday','tuesday','wednesday','thursday','friday') NOT NULL,
  `order` int(11) DEFAULT NULL,
  `is_weekend` enum('yes','no') DEFAULT 'no',
  `status_id` bigint(20) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT 1,
  `updated_by` bigint(20) UNSIGNED DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT 1,
  `branch_id` bigint(20) UNSIGNED DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `weekends`
--

INSERT INTO `weekends` (`id`, `name`, `order`, `is_weekend`, `status_id`, `created_by`, `updated_by`, `created_at`, `updated_at`, `company_id`, `branch_id`) VALUES
(1, 'saturday', NULL, 'yes', 1, 1, 1, '2025-12-07 04:47:10', '2025-12-07 04:47:10', 1, 1),
(2, 'sunday', NULL, 'yes', 1, 1, 1, '2025-12-07 04:47:11', '2025-12-07 04:47:11', 1, 1),
(3, 'monday', NULL, 'no', 1, 1, 1, '2025-12-07 04:47:12', '2025-12-07 04:47:12', 1, 1),
(4, 'tuesday', NULL, 'no', 1, 1, 1, '2025-12-07 04:47:12', '2025-12-07 04:47:12', 1, 1),
(5, 'wednesday', NULL, 'no', 1, 1, 1, '2025-12-07 04:47:13', '2025-12-07 04:47:13', 1, 1),
(6, 'thursday', NULL, 'no', 1, 1, 1, '2025-12-07 04:47:13', '2025-12-07 04:47:13', 1, 1),
(7, 'friday', NULL, 'no', 1, 1, 1, '2025-12-07 04:47:14', '2025-12-07 04:47:14', 1, 1),
(8, 'saturday', NULL, 'yes', 1, 1, 1, '2025-12-07 04:53:44', '2025-12-07 04:53:44', 1, 1),
(9, 'sunday', NULL, 'yes', 1, 1, 1, '2025-12-07 04:53:45', '2025-12-07 04:53:45', 1, 1),
(10, 'monday', NULL, 'no', 1, 1, 1, '2025-12-07 04:53:46', '2025-12-07 04:53:46', 1, 1),
(11, 'tuesday', NULL, 'no', 1, 1, 1, '2025-12-07 04:53:46', '2025-12-07 04:53:46', 1, 1),
(12, 'wednesday', NULL, 'no', 1, 1, 1, '2025-12-07 04:53:47', '2025-12-07 04:53:47', 1, 1),
(13, 'thursday', NULL, 'no', 1, 1, 1, '2025-12-07 04:53:48', '2025-12-07 04:53:48', 1, 1),
(14, 'friday', NULL, 'no', 1, 1, 1, '2025-12-07 04:53:48', '2025-12-07 04:53:48', 1, 1);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `accounts`
--
ALTER TABLE `accounts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `accounts_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `activity_log`
--
ALTER TABLE `activity_log`
  ADD PRIMARY KEY (`id`),
  ADD KEY `subject` (`subject_type`,`subject_id`),
  ADD KEY `causer` (`causer_type`,`causer_id`),
  ADD KEY `activity_log_log_name_index` (`log_name`),
  ADD KEY `activity_log_batch_uuid_index` (`batch_uuid`),
  ADD KEY `activity_log_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `advance_salaries`
--
ALTER TABLE `advance_salaries`
  ADD PRIMARY KEY (`id`),
  ADD KEY `advance_salaries_amount_date_index` (`amount`,`date`),
  ADD KEY `advance_salaries_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `advance_type_id` (`advance_type_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `pay` (`pay`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `approver_id` (`approver_id`),
  ADD KEY `return_status` (`return_status`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `advance_salary_logs`
--
ALTER TABLE `advance_salary_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `advance_salary_logs_amount_index` (`amount`),
  ADD KEY `advance_salary_logs_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `advance_salary_id` (`advance_salary_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `advance_types`
--
ALTER TABLE `advance_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `advance_types_id_index` (`id`),
  ADD KEY `advance_types_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `all_contents`
--
ALTER TABLE `all_contents`
  ADD PRIMARY KEY (`id`),
  ADD KEY `all_contents_user_id_foreign` (`user_id`),
  ADD KEY `all_contents_status_id_foreign` (`status_id`),
  ADD KEY `all_contents_type_title_slug_index` (`type`,`title`,`slug`),
  ADD KEY `all_contents_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `api_setups`
--
ALTER TABLE `api_setups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `api_setups_company_id_index` (`company_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `appoinments`
--
ALTER TABLE `appoinments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `appoinments_created_by_foreign` (`created_by`),
  ADD KEY `appoinments_appoinment_with_foreign` (`appoinment_with`),
  ADD KEY `appoinments_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `appoinments_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `appoinment_participants`
--
ALTER TABLE `appoinment_participants`
  ADD PRIMARY KEY (`id`),
  ADD KEY `appoinment_participants_participant_id_foreign` (`participant_id`),
  ADD KEY `appoinment_participants_appoinment_id_foreign` (`appoinment_id`),
  ADD KEY `appoinment_participants_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `appraisals`
--
ALTER TABLE `appraisals`
  ADD PRIMARY KEY (`id`),
  ADD KEY `appraisals_user_id_foreign` (`user_id`),
  ADD KEY `appraisals_added_by_foreign` (`added_by`),
  ADD KEY `appraisals_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `appreciates`
--
ALTER TABLE `appreciates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `appreciates_user_id_foreign` (`user_id`),
  ADD KEY `appreciates_appreciate_by_foreign` (`appreciate_by`),
  ADD KEY `appreciates_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `app_screens`
--
ALTER TABLE `app_screens`
  ADD PRIMARY KEY (`id`),
  ADD KEY `app_screens_status_id_foreign` (`status_id`),
  ADD KEY `app_screens_company_id_index` (`company_id`);

--
-- Indexes for table `assign_leaves`
--
ALTER TABLE `assign_leaves`
  ADD PRIMARY KEY (`id`),
  ADD KEY `assign_leaves_status_id_foreign` (`status_id`),
  ADD KEY `assign_leaves_type_id_status_id_index` (`type_id`,`status_id`),
  ADD KEY `assign_leaves_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `attendances`
--
ALTER TABLE `attendances`
  ADD PRIMARY KEY (`id`),
  ADD KEY `attendances_user_id_foreign` (`user_id`),
  ADD KEY `attendances_shift_id_foreign` (`shift_id`),
  ADD KEY `attendances_status_id_foreign` (`status_id`),
  ADD KEY `attendances_face_image_foreign` (`face_image`),
  ADD KEY `attendances_in_status_approve_by_foreign` (`in_status_approve_by`),
  ADD KEY `attendances_out_status_approve_by_foreign` (`out_status_approve_by`),
  ADD KEY `attendances_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `attendances_check_in_image_foreign` (`check_in_image`),
  ADD KEY `attendances_check_out_image_foreign` (`check_out_image`),
  ADD KEY `attendances_duty_calendar_id_foreign` (`duty_calendar_id`);

--
-- Indexes for table `author_infos`
--
ALTER TABLE `author_infos`
  ADD PRIMARY KEY (`id`),
  ADD KEY `author_infos_authorable_type_authorable_id_index` (`authorable_type`,`authorable_id`),
  ADD KEY `author_infos_created_by_foreign` (`created_by`),
  ADD KEY `author_infos_updated_by_foreign` (`updated_by`),
  ADD KEY `author_infos_approved_by_foreign` (`approved_by`),
  ADD KEY `author_infos_rejected_by_foreign` (`rejected_by`),
  ADD KEY `author_infos_cancelled_by_foreign` (`cancelled_by`),
  ADD KEY `author_infos_published_by_foreign` (`published_by`),
  ADD KEY `author_infos_unpublished_by_foreign` (`unpublished_by`),
  ADD KEY `author_infos_deleted_by_foreign` (`deleted_by`),
  ADD KEY `author_infos_archived_by_foreign` (`archived_by`),
  ADD KEY `author_infos_restored_by_foreign` (`restored_by`),
  ADD KEY `author_infos_referred_by_foreign` (`referred_by`),
  ADD KEY `author_infos_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `awards`
--
ALTER TABLE `awards`
  ADD PRIMARY KEY (`id`),
  ADD KEY `awards_user_id_foreign` (`user_id`),
  ADD KEY `awards_created_by_foreign` (`created_by`),
  ADD KEY `awards_attachment_foreign` (`attachment`),
  ADD KEY `awards_goal_id_foreign` (`goal_id`),
  ADD KEY `awards_award_type_id_status_id_user_id_index` (`award_type_id`,`status_id`,`user_id`),
  ADD KEY `awards_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `award_types`
--
ALTER TABLE `award_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `award_types_id_index` (`id`),
  ADD KEY `award_types_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `bank_accounts`
--
ALTER TABLE `bank_accounts`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_accounts_account_number_unique` (`account_number`),
  ADD KEY `bank_accounts_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `bank_accounts_user_id_index` (`user_id`),
  ADD KEY `bank_accounts_status_id_index` (`status_id`),
  ADD KEY `bank_accounts_author_info_id_index` (`author_info_id`);

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

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

--
-- Indexes for table `break_settings`
--
ALTER TABLE `break_settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `break_settings_company_id_foreign` (`company_id`),
  ADD KEY `break_settings_branch_id_foreign` (`branch_id`);

--
-- Indexes for table `break_types`
--
ALTER TABLE `break_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `break_types_status_id_foreign` (`status_id`),
  ADD KEY `break_types_icon_id_foreign` (`icon_id`),
  ADD KEY `break_types_company_id_foreign` (`company_id`),
  ADD KEY `break_types_branch_id_foreign` (`branch_id`);

--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `categories_name_type_serial_index` (`name`,`type`,`serial`),
  ADD KEY `categories_status_id_index` (`status_id`),
  ADD KEY `categories_author_info_id_index` (`author_info_id`);

--
-- Indexes for table `clients`
--
ALTER TABLE `clients`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `clients_email_unique` (`email`),
  ADD KEY `clients_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `commissions`
--
ALTER TABLE `commissions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `commissions_id_index` (`id`),
  ADD KEY `commissions_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `companies`
--
ALTER TABLE `companies`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `companies_email_unique` (`email`),
  ADD UNIQUE KEY `companies_phone_unique` (`phone`),
  ADD KEY `companies_saas_company_id_foreign` (`saas_company_id`),
  ADD KEY `companies_country_id_foreign` (`country_id`),
  ADD KEY `trade_licence_id` (`trade_licence_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `company_configs`
--
ALTER TABLE `company_configs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `company_configs_company_id_index` (`company_id`);

--
-- Indexes for table `competences`
--
ALTER TABLE `competences`
  ADD PRIMARY KEY (`id`),
  ADD KEY `competences_competence_type_id_foreign` (`competence_type_id`),
  ADD KEY `competences_status_id_index` (`status_id`),
  ADD KEY `competences_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `competence_types`
--
ALTER TABLE `competence_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `competence_types_status_id_index` (`status_id`),
  ADD KEY `competence_types_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

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

--
-- Indexes for table `conference_members`
--
ALTER TABLE `conference_members`
  ADD PRIMARY KEY (`id`),
  ADD KEY `conference_members_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `contacts`
--
ALTER TABLE `contacts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `contacts_company_id_branch_id_index` (`company_id`,`branch_id`);

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

--
-- Indexes for table `conversations`
--
ALTER TABLE `conversations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `conversations_sender_id_foreign` (`sender_id`),
  ADD KEY `conversations_receiver_id_foreign` (`receiver_id`),
  ADD KEY `conversations_image_id_foreign` (`image_id`),
  ADD KEY `conversations_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `countries`
--
ALTER TABLE `countries`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `countries_country_code_unique` (`country_code`),
  ADD UNIQUE KEY `countries_name_unique` (`name`);

--
-- Indexes for table `currencies`
--
ALTER TABLE `currencies`
  ADD PRIMARY KEY (`id`),
  ADD KEY `currencies_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `daily_leaves`
--
ALTER TABLE `daily_leaves`
  ADD PRIMARY KEY (`id`),
  ADD KEY `daily_leaves_user_id_foreign` (`user_id`),
  ADD KEY `daily_leaves_approved_by_tl_foreign` (`approved_by_tl`),
  ADD KEY `daily_leaves_approved_by_hr_foreign` (`approved_by_hr`),
  ADD KEY `daily_leaves_rejected_by_tl_foreign` (`rejected_by_tl`),
  ADD KEY `daily_leaves_rejected_by_hr_foreign` (`rejected_by_hr`),
  ADD KEY `daily_leaves_author_info_id_foreign` (`author_info_id`),
  ADD KEY `daily_leaves_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `database_backups`
--
ALTER TABLE `database_backups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `database_backups_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `date_formats`
--
ALTER TABLE `date_formats`
  ADD PRIMARY KEY (`id`),
  ADD KEY `date_formats_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `deductions`
--
ALTER TABLE `deductions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `deductions_company_id_foreign` (`company_id`),
  ADD KEY `deductions_user_id_foreign` (`user_id`),
  ADD KEY `deductions_appeal_attachment_id_foreign` (`appeal_attachment_id`),
  ADD KEY `deductions_appeal_status_foreign` (`appeal_status`),
  ADD KEY `deductions_appeal_approved_by_foreign` (`appeal_approved_by`),
  ADD KEY `deductions_created_by_foreign` (`created_by`),
  ADD KEY `deductions_updated_by_foreign` (`updated_by`);

--
-- Indexes for table `deduction_details`
--
ALTER TABLE `deduction_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `deduction_details_deduction_id_foreign` (`deduction_id`),
  ADD KEY `deduction_details_created_by_foreign` (`created_by`),
  ADD KEY `deduction_details_updated_by_foreign` (`updated_by`),
  ADD KEY `deduction_details_considered_by_foreign` (`considered_by`);

--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `departments_status_id_foreign` (`status_id`),
  ADD KEY `departments_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `deposits`
--
ALTER TABLE `deposits`
  ADD PRIMARY KEY (`id`),
  ADD KEY `deposits_income_expense_category_id_foreign` (`income_expense_category_id`),
  ADD KEY `deposits_attachment_foreign` (`attachment`),
  ADD KEY `deposits_amount_date_index` (`amount`,`date`),
  ADD KEY `deposits_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `payment_method_id` (`payment_method_id`),
  ADD KEY `transaction_id` (`transaction_id`),
  ADD KEY `pay` (`pay`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `approver_id` (`approver_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `designations`
--
ALTER TABLE `designations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `designations_status_id_foreign` (`status_id`),
  ADD KEY `designations_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `discussions`
--
ALTER TABLE `discussions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `discussions_user_id_foreign` (`user_id`),
  ADD KEY `discussions_project_id_status_id_user_id_index` (`project_id`,`status_id`,`user_id`),
  ADD KEY `discussions_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `show_to_customer` (`show_to_customer`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `discussion_comments`
--
ALTER TABLE `discussion_comments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `discussion_comments_user_id_foreign` (`user_id`),
  ADD KEY `discussion_comments_attachment_foreign` (`attachment`),
  ADD KEY `discussion_comments_discussion_id_user_id_index` (`discussion_id`,`user_id`),
  ADD KEY `discussion_comments_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `discussion_likes`
--
ALTER TABLE `discussion_likes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `discussion_likes_discussion_id_foreign` (`discussion_id`),
  ADD KEY `discussion_likes_user_id_foreign` (`user_id`),
  ADD KEY `discussion_likes_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `domains`
--
ALTER TABLE `domains`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `domains_domain_unique` (`domain`),
  ADD KEY `domains_tenant_id_foreign` (`tenant_id`),
  ADD KEY `domains_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `duty_calendars`
--
ALTER TABLE `duty_calendars`
  ADD PRIMARY KEY (`id`),
  ADD KEY `duty_calendars_employee_id_foreign` (`employee_id`),
  ADD KEY `duty_calendars_duty_schedule_id_foreign` (`duty_schedule_id`),
  ADD KEY `duty_calendars_holiday_id_foreign` (`holiday_id`),
  ADD KEY `duty_calendars_leave_id_foreign` (`leave_id`),
  ADD KEY `duty_calendars_created_by_foreign` (`created_by`),
  ADD KEY `duty_calendars_updated_by_foreign` (`updated_by`);

--
-- Indexes for table `duty_schedules`
--
ALTER TABLE `duty_schedules`
  ADD PRIMARY KEY (`id`),
  ADD KEY `duty_schedules_shift_id_foreign` (`shift_id`),
  ADD KEY `duty_schedules_status_id_foreign` (`status_id`),
  ADD KEY `duty_schedules_id_index` (`id`),
  ADD KEY `duty_schedules_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `email_templates`
--
ALTER TABLE `email_templates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `employee_breaks`
--
ALTER TABLE `employee_breaks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `employee_breaks_user_id_foreign` (`user_id`),
  ADD KEY `employee_breaks_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `employee_tasks`
--
ALTER TABLE `employee_tasks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `employee_tasks_assigned_id_foreign` (`assigned_id`),
  ADD KEY `employee_tasks_created_by_foreign` (`created_by`),
  ADD KEY `employee_tasks_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `employee_tasks_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `expenses`
--
ALTER TABLE `expenses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `expenses_income_expense_category_id_foreign` (`income_expense_category_id`),
  ADD KEY `expenses_attachment_foreign` (`attachment`),
  ADD KEY `expenses_amount_date_index` (`amount`,`date`),
  ADD KEY `expenses_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `pay` (`pay`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `transaction_id` (`transaction_id`),
  ADD KEY `payment_method_id` (`payment_method_id`),
  ADD KEY `approver_id` (`approver_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `expense_claims`
--
ALTER TABLE `expense_claims`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `expense_claims_invoice_number_unique` (`invoice_number`),
  ADD KEY `expense_claims_user_id_foreign` (`user_id`),
  ADD KEY `expense_claims_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `expense_claims_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `expense_claim_details`
--
ALTER TABLE `expense_claim_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `expense_claim_details_user_id_foreign` (`user_id`),
  ADD KEY `expense_claim_details_hrm_expense_id_foreign` (`hrm_expense_id`),
  ADD KEY `expense_claim_details_expense_claim_id_foreign` (`expense_claim_id`),
  ADD KEY `expense_claim_details_company_id_branch_id_index` (`company_id`,`branch_id`);

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

--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`),
  ADD KEY `failed_jobs_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `features`
--
ALTER TABLE `features`
  ADD PRIMARY KEY (`id`),
  ADD KEY `features_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `front_teams`
--
ALTER TABLE `front_teams`
  ADD PRIMARY KEY (`id`),
  ADD KEY `front_teams_attachment_foreign` (`attachment`),
  ADD KEY `front_teams_user_id_foreign` (`user_id`),
  ADD KEY `front_teams_id_status_id_company_id_branch_id_index` (`id`,`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `goals`
--
ALTER TABLE `goals`
  ADD PRIMARY KEY (`id`),
  ADD KEY `goals_goal_type_id_foreign` (`goal_type_id`),
  ADD KEY `goals_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`);

--
-- Indexes for table `goal_types`
--
ALTER TABLE `goal_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `goal_types_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `holidays`
--
ALTER TABLE `holidays`
  ADD PRIMARY KEY (`id`),
  ADD KEY `holidays_attachment_id_foreign` (`attachment_id`),
  ADD KEY `holidays_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `home_pages`
--
ALTER TABLE `home_pages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `home_pages_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `hrm_expenses`
--
ALTER TABLE `hrm_expenses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `hrm_expenses_user_id_foreign` (`user_id`),
  ADD KEY `hrm_expenses_income_expense_category_id_foreign` (`income_expense_category_id`),
  ADD KEY `hrm_expenses_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `hrm_expenses_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `claimed_status_id` (`is_claimed_status_id`),
  ADD KEY `claimed_approved_status_id` (`claimed_approved_status_id`);

--
-- Indexes for table `hrm_languages`
--
ALTER TABLE `hrm_languages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `hrm_languages_status_id_company_id_index` (`status_id`,`company_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `income_expense_categories`
--
ALTER TABLE `income_expense_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `income_expense_categories_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `income_expense_categories_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `indicators`
--
ALTER TABLE `indicators`
  ADD PRIMARY KEY (`id`),
  ADD KEY `indicators_department_id_foreign` (`department_id`),
  ADD KEY `indicators_shift_id_foreign` (`shift_id`),
  ADD KEY `indicators_designation_id_foreign` (`designation_id`),
  ADD KEY `indicators_added_by_foreign` (`added_by`),
  ADD KEY `indicators_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `ip_setups`
--
ALTER TABLE `ip_setups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ip_setups_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `jitsi_meetings`
--
ALTER TABLE `jitsi_meetings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jitsi_meetings_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `jm_message_templates`
--
ALTER TABLE `jm_message_templates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jm_message_templates_notification_type_id_foreign` (`notification_type_id`),
  ADD KEY `jm_message_templates_company_id_foreign` (`company_id`),
  ADD KEY `jm_message_templates_branch_id_foreign` (`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `jm_notifications`
--
ALTER TABLE `jm_notifications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jm_notifications_receiver_id_foreign` (`receiver_id`),
  ADD KEY `jm_notifications_company_id_foreign` (`company_id`),
  ADD KEY `jm_notifications_branch_id_foreign` (`branch_id`);

--
-- Indexes for table `jm_notification_logs`
--
ALTER TABLE `jm_notification_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jm_notification_logs_notification_id_foreign` (`notification_id`);

--
-- Indexes for table `jm_notification_types`
--
ALTER TABLE `jm_notification_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jm_notification_types_company_id_foreign` (`company_id`),
  ADD KEY `jm_notification_types_branch_id_foreign` (`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `jm_user_preferences`
--
ALTER TABLE `jm_user_preferences`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `jm_user_preferences_user_id_notification_type_id_unique` (`user_id`,`notification_type_id`),
  ADD KEY `jm_user_preferences_notification_type_id_foreign` (`notification_type_id`),
  ADD KEY `jm_user_preferences_status_id_foreign` (`status_id`),
  ADD KEY `jm_user_preferences_company_id_foreign` (`company_id`),
  ADD KEY `jm_user_preferences_branch_id_foreign` (`branch_id`);

--
-- Indexes for table `jobs`
--
ALTER TABLE `jobs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jobs_company_id_branch_id_index` (`company_id`,`branch_id`),
  ADD KEY `jobs_queue_index` (`queue`);

--
-- Indexes for table `languages`
--
ALTER TABLE `languages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `languages_status_company_id_branch_id_index` (`status`,`company_id`,`branch_id`);

--
-- Indexes for table `late_in_out_reasons`
--
ALTER TABLE `late_in_out_reasons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `late_in_out_reasons_attendance_id_foreign` (`attendance_id`),
  ADD KEY `late_in_out_reasons_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `leave_requests`
--
ALTER TABLE `leave_requests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_requests_assign_leave_id_foreign` (`assign_leave_id`),
  ADD KEY `leave_requests_user_id_foreign` (`user_id`),
  ADD KEY `leave_requests_substitute_id_foreign` (`substitute_id`),
  ADD KEY `leave_requests_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `leave_requests_author_info_id_foreign` (`author_info_id`),
  ADD KEY `leave_requests_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `leave_settings`
--
ALTER TABLE `leave_settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_settings_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `leave_types`
--
ALTER TABLE `leave_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_types_status_id_foreign` (`status_id`),
  ADD KEY `leave_types_name_status_id_company_id_branch_id_index` (`name`,`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `leave_years`
--
ALTER TABLE `leave_years`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_years_type_id_foreign` (`type_id`),
  ADD KEY `leave_years_status_id_foreign` (`status_id`),
  ADD KEY `leave_years_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `location_binds`
--
ALTER TABLE `location_binds`
  ADD PRIMARY KEY (`id`),
  ADD KEY `location_binds_user_id_foreign` (`user_id`),
  ADD KEY `location_binds_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `location_logs`
--
ALTER TABLE `location_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `location_logs_user_id_company_id_branch_id_date_index` (`user_id`,`company_id`,`branch_id`,`date`);

--
-- Indexes for table `meetings`
--
ALTER TABLE `meetings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `meetings_user_id_foreign` (`user_id`),
  ADD KEY `meetings_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `meetings_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `meeting_members`
--
ALTER TABLE `meeting_members`
  ADD PRIMARY KEY (`id`),
  ADD KEY `meeting_members_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `meeting_participants`
--
ALTER TABLE `meeting_participants`
  ADD PRIMARY KEY (`id`),
  ADD KEY `meeting_participants_participant_id_foreign` (`participant_id`),
  ADD KEY `meeting_participants_meeting_id_foreign` (`meeting_id`),
  ADD KEY `meeting_participants_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `meeting_setups`
--
ALTER TABLE `meeting_setups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `meeting_setups_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `menus`
--
ALTER TABLE `menus`
  ADD PRIMARY KEY (`id`),
  ADD KEY `menus_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `meta_information`
--
ALTER TABLE `meta_information`
  ADD PRIMARY KEY (`id`),
  ADD KEY `meta_information_created_by_foreign` (`created_by`),
  ADD KEY `meta_information_updated_by_foreign` (`updated_by`),
  ADD KEY `meta_information_type_company_id_branch_id_index` (`type`,`company_id`,`branch_id`);

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

--
-- Indexes for table `module_services`
--
ALTER TABLE `module_services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `module_services_institution_id_foreign` (`institution_id`),
  ADD KEY `module_services_package_id_foreign` (`package_id`),
  ADD KEY `module_services_status_id_foreign` (`status_id`),
  ADD KEY `module_services_id_status_id_company_id_branch_id_index` (`id`,`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `module_service_details`
--
ALTER TABLE `module_service_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `module_service_details_status_id_foreign` (`status_id`),
  ADD KEY `module_service_details_id_status_id_company_id_branch_id_index` (`id`,`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `notes`
--
ALTER TABLE `notes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notes_user_id_foreign` (`user_id`),
  ADD KEY `notes_project_id_company_id_status_id_user_id_branch_id_index` (`project_id`,`company_id`,`status_id`,`user_id`,`branch_id`),
  ADD KEY `show_to_customer` (`show_to_customer`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `notices`
--
ALTER TABLE `notices`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notices_created_by_foreign` (`created_by`),
  ADD KEY `notices_department_id_foreign` (`department_id`),
  ADD KEY `notices_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `notices_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `notice_departments`
--
ALTER TABLE `notice_departments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notice_departments_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `notice_view_logs`
--
ALTER TABLE `notice_view_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notice_view_logs_user_id_foreign` (`user_id`),
  ADD KEY `notice_view_logs_notice_id_foreign` (`notice_id`),
  ADD KEY `notice_view_logs_company_id_branch_id_index` (`company_id`,`branch_id`);

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

--
-- Indexes for table `notifications_old`
--
ALTER TABLE `notifications_old`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notifications_old_sender_id_foreign` (`sender_id`),
  ADD KEY `notifications_old_receiver_id_foreign` (`receiver_id`),
  ADD KEY `notifications_old_image_id_foreign` (`image_id`),
  ADD KEY `notifications_old_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `notification_types`
--
ALTER TABLE `notification_types`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `notification_types_type_unique` (`type`),
  ADD KEY `notification_types_icon_foreign` (`icon`),
  ADD KEY `notification_types_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

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

--
-- Indexes for table `payment_histories`
--
ALTER TABLE `payment_histories`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `payment_histories_code_unique` (`code`),
  ADD KEY `payment_histories_user_id_foreign` (`user_id`),
  ADD KEY `payment_histories_expense_claim_id_foreign` (`expense_claim_id`),
  ADD KEY `payment_histories_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `payment_histories_index` (`payment_date`,`payment_status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`payment_status_id`);

--
-- Indexes for table `payment_history_details`
--
ALTER TABLE `payment_history_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payment_history_details_payment_history_id_foreign` (`payment_history_id`),
  ADD KEY `payment_history_details_payment_method_id_foreign` (`payment_method_id`),
  ADD KEY `payment_history_details_paid_by_id_foreign` (`paid_by_id`),
  ADD KEY `payment_history_details_index` (`user_id`,`payment_status_id`,`company_id`,`branch_id`),
  ADD KEY `payment_status_id` (`payment_status_id`);

--
-- Indexes for table `payment_history_logs`
--
ALTER TABLE `payment_history_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payment_history_logs_user_id_foreign` (`user_id`),
  ADD KEY `payment_history_logs_payment_history_id_foreign` (`payment_history_id`),
  ADD KEY `payment_history_logs_expense_claim_id_foreign` (`expense_claim_id`),
  ADD KEY `payment_history_logs_paid_by_id_foreign` (`paid_by_id`),
  ADD KEY `payment_history_logs_date_paid_by_id_company_id_branch_id_index` (`date`,`paid_by_id`,`company_id`,`branch_id`);

--
-- Indexes for table `payment_methods`
--
ALTER TABLE `payment_methods`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payment_methods_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `payment_methods_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `payment_types`
--
ALTER TABLE `payment_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payment_types_status_id_type_company_id_branch_id_index` (`status_id`,`type`,`company_id`,`branch_id`),
  ADD KEY `payment_types_status_id_index` (`status_id`);

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

--
-- Indexes for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);

--
-- Indexes for table `plan_duration_types`
--
ALTER TABLE `plan_duration_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `plan_duration_types_id_status_id_company_id_branch_id_index` (`id`,`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `plan_features`
--
ALTER TABLE `plan_features`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `plan_features_key_unique` (`key`),
  ADD KEY `plan_features_image_id_foreign` (`image_id`);

--
-- Indexes for table `portfolios`
--
ALTER TABLE `portfolios`
  ADD PRIMARY KEY (`id`),
  ADD KEY `portfolios_attachment_foreign` (`attachment`),
  ADD KEY `portfolios_user_id_foreign` (`user_id`),
  ADD KEY `portfolios_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `pricing_plans`
--
ALTER TABLE `pricing_plans`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pricing_plans_id_status_id_company_id_branch_id_index` (`id`,`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `pricing_plan_features`
--
ALTER TABLE `pricing_plan_features`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pricing_plan_features_pricing_plan_id_foreign` (`pricing_plan_id`),
  ADD KEY `pricing_plan_features_plan_feature_id_foreign` (`plan_feature_id`),
  ADD KEY `pricing_plan_features_id_company_id_branch_id_index` (`id`,`company_id`,`branch_id`);

--
-- Indexes for table `pricing_plan_prices`
--
ALTER TABLE `pricing_plan_prices`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pricing_plan_prices_pricing_plan_id_foreign` (`pricing_plan_id`),
  ADD KEY `pricing_plan_prices_plan_duration_type_id_foreign` (`plan_duration_type_id`),
  ADD KEY `pricing_plan_prices_id_status_id_company_id_branch_id_index` (`id`,`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `projects`
--
ALTER TABLE `projects`
  ADD PRIMARY KEY (`id`),
  ADD KEY `projects_goal_id_foreign` (`goal_id`),
  ADD KEY `projects_index` (`client_id`,`status_id`,`priority`,`start_date`,`end_date`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `priority` (`priority`),
  ADD KEY `payment` (`payment`),
  ADD KEY `created_by` (`created_by`);

--
-- Indexes for table `project_activities`
--
ALTER TABLE `project_activities`
  ADD PRIMARY KEY (`id`),
  ADD KEY `project_activities_user_id_foreign` (`user_id`),
  ADD KEY `project_activities_project_id_user_id_company_id_branch_id_index` (`project_id`,`user_id`,`company_id`,`branch_id`);

--
-- Indexes for table `project_files`
--
ALTER TABLE `project_files`
  ADD PRIMARY KEY (`id`),
  ADD KEY `project_files_user_id_foreign` (`user_id`),
  ADD KEY `project_files_attachment_foreign` (`attachment`),
  ADD KEY `project_files_index` (`project_id`,`user_id`,`status_id`,`company_id`,`branch_id`),
  ADD KEY `show_to_customer` (`show_to_customer`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `project_file_comments`
--
ALTER TABLE `project_file_comments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `project_file_comments_user_id_foreign` (`user_id`),
  ADD KEY `project_file_comments_attachment_foreign` (`attachment`),
  ADD KEY `project_file_comments_index` (`project_file_id`,`user_id`,`company_id`,`branch_id`);

--
-- Indexes for table `project_membars`
--
ALTER TABLE `project_membars`
  ADD PRIMARY KEY (`id`),
  ADD KEY `project_membars_user_id_foreign` (`user_id`),
  ADD KEY `project_membars_added_by_foreign` (`added_by`),
  ADD KEY `project_membars_index` (`project_id`,`company_id`,`branch_id`,`status_id`,`user_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `project_payments`
--
ALTER TABLE `project_payments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `project_payments_project_id_company_id_branch_id_amount_index` (`project_id`,`company_id`,`branch_id`,`amount`),
  ADD KEY `transaction_id` (`transaction_id`),
  ADD KEY `payment_method_id` (`payment_method_id`),
  ADD KEY `paid_by` (`paid_by`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`),
  ADD KEY `roles_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `role_users`
--
ALTER TABLE `role_users`
  ADD PRIMARY KEY (`id`),
  ADD KEY `role_users_user_id_foreign` (`user_id`),
  ADD KEY `role_users_role_id_foreign` (`role_id`),
  ADD KEY `role_users_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `saas_cms`
--
ALTER TABLE `saas_cms`
  ADD PRIMARY KEY (`id`),
  ADD KEY `saas_cms_attachment_id_foreign` (`attachment_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `saas_subscriptions`
--
ALTER TABLE `saas_subscriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `saas_subscriptions_company_id_foreign` (`company_id`),
  ADD KEY `saas_subscriptions_pricing_plan_price_id_foreign` (`pricing_plan_price_id`),
  ADD KEY `saas_subscriptions_status_id_foreign` (`status_id`),
  ADD KEY `saas_subscriptions_payment_status_id_foreign` (`payment_status_id`);

--
-- Indexes for table `salary_generates`
--
ALTER TABLE `salary_generates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `salary_generates_index` (`amount`,`date`,`status_id`,`company_id`,`branch_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `salary_payment_logs`
--
ALTER TABLE `salary_payment_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `salary_payment_logs_salary_generate_id_foreign` (`salary_generate_id`),
  ADD KEY `salary_payment_logs_amount_company_id_branch_id_user_id_index` (`amount`,`company_id`,`branch_id`,`user_id`),
  ADD KEY `transaction_id` (`transaction_id`),
  ADD KEY `payment_method_id` (`payment_method_id`),
  ADD KEY `paid_by` (`paid_by`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `salary_setups`
--
ALTER TABLE `salary_setups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `salary_setups_gross_salary_index` (`gross_salary`),
  ADD KEY `salary_setups_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `salary_setup_details`
--
ALTER TABLE `salary_setup_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `salary_setup_details_amount_status_id_company_id_branch_id_index` (`amount`,`status_id`,`company_id`,`branch_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `salary_setup_id` (`salary_setup_id`),
  ADD KEY `commission_id` (`commission_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `salary_sheet_reports`
--
ALTER TABLE `salary_sheet_reports`
  ADD PRIMARY KEY (`id`),
  ADD KEY `salary_sheet_reports_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `services`
--
ALTER TABLE `services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `services_user_id_foreign` (`user_id`),
  ADD KEY `services_attachment_foreign` (`attachment`),
  ADD KEY `services_id_status_id_company_id_branch_id_index` (`id`,`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `service_brands`
--
ALTER TABLE `service_brands`
  ADD PRIMARY KEY (`id`),
  ADD KEY `service_brands_id_status_id_company_id_branch_id_index` (`id`,`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `service_institutions`
--
ALTER TABLE `service_institutions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `service_institutions_slug_unique` (`slug`),
  ADD KEY `service_institutions_id_status_id_company_id_branch_id_index` (`id`,`status_id`,`company_id`,`branch_id`),
  ADD KEY `service_institutions_name_index` (`name`);

--
-- Indexes for table `service_machines`
--
ALTER TABLE `service_machines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `service_machines_brand_id_foreign` (`brand_id`),
  ADD KEY `service_machines_model_id_foreign` (`model_id`),
  ADD KEY `service_machines_id_status_id_company_id_branch_id_index` (`id`,`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `service_models`
--
ALTER TABLE `service_models`
  ADD PRIMARY KEY (`id`),
  ADD KEY `service_models_id_status_id_company_id_branch_id_index` (`id`,`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `service_packages`
--
ALTER TABLE `service_packages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `service_packages_id_status_id_company_id_branch_id_index` (`id`,`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `service_package_details`
--
ALTER TABLE `service_package_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `service_package_details_machine_id_foreign` (`machine_id`),
  ADD KEY `service_package_details_brand_id_foreign` (`brand_id`),
  ADD KEY `service_package_details_model_id_foreign` (`model_id`),
  ADD KEY `service_package_details_package_id_foreign` (`package_id`),
  ADD KEY `service_package_details_id_status_id_company_id_branch_id_index` (`id`,`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `settings_status_id_foreign` (`status_id`),
  ADD KEY `settings_name_context_status_id_company_id_index` (`name`,`context`,`status_id`,`company_id`);

--
-- Indexes for table `shifts`
--
ALTER TABLE `shifts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `shifts_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `sms_logs`
--
ALTER TABLE `sms_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `sms_logs_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `social_identities`
--
ALTER TABLE `social_identities`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `social_identities_provider_id_unique` (`provider_id`),
  ADD KEY `social_identities_user_id_foreign` (`user_id`),
  ADD KEY `social_identities_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `statuses`
--
ALTER TABLE `statuses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `statuses_name_class_index` (`name`,`class`),
  ADD KEY `statuses_name_index` (`name`),
  ADD KEY `statuses_class_index` (`class`);

--
-- Indexes for table `subscribers`
--
ALTER TABLE `subscribers`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscribers_email_unique` (`email`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscriptions_stripe_id_unique` (`stripe_id`),
  ADD KEY `subscriptions_user_id_stripe_status_index` (`user_id`,`stripe_status`);

--
-- Indexes for table `subscription_items`
--
ALTER TABLE `subscription_items`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscription_items_subscription_id_stripe_price_unique` (`subscription_id`,`stripe_price`),
  ADD UNIQUE KEY `subscription_items_stripe_id_unique` (`stripe_id`);

--
-- Indexes for table `subscription_plans`
--
ALTER TABLE `subscription_plans`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscription_plans_identifier_unique` (`identifier`),
  ADD UNIQUE KEY `subscription_plans_stripe_id_unique` (`stripe_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `support_tickets`
--
ALTER TABLE `support_tickets`
  ADD PRIMARY KEY (`id`),
  ADD KEY `support_tickets_user_id_foreign` (`user_id`),
  ADD KEY `support_tickets_assigned_id_foreign` (`assigned_id`),
  ADD KEY `support_tickets_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `support_tickets_type_id_foreign` (`type_id`),
  ADD KEY `support_tickets_priority_id_foreign` (`priority_id`),
  ADD KEY `support_tickets_index` (`status_id`,`assigned_id`,`type_id`,`priority_id`,`company_id`,`branch_id`);

--
-- Indexes for table `tasks`
--
ALTER TABLE `tasks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `tasks_goal_id_foreign` (`goal_id`),
  ADD KEY `tasks_company_id_branch_id_priority_status_id_index` (`company_id`,`branch_id`,`priority`,`status_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `priority` (`priority`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `project_id` (`project_id`);

--
-- Indexes for table `task_activities`
--
ALTER TABLE `task_activities`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_activities_user_id_foreign` (`user_id`),
  ADD KEY `task_activities_task_id_user_id_company_id_branch_id_index` (`task_id`,`user_id`,`company_id`,`branch_id`);

--
-- Indexes for table `task_discussions`
--
ALTER TABLE `task_discussions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_discussions_task_id_foreign` (`task_id`),
  ADD KEY `task_discussions_user_id_foreign` (`user_id`),
  ADD KEY `task_discussions_file_id_foreign` (`file_id`),
  ADD KEY `task_discussions_index` (`status_id`,`company_id`,`branch_id`,`user_id`,`task_id`),
  ADD KEY `show_to_customer` (`show_to_customer`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `task_discussion_comments`
--
ALTER TABLE `task_discussion_comments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_discussion_comments_user_id_foreign` (`user_id`),
  ADD KEY `task_discussion_comments_attachment_foreign` (`attachment`),
  ADD KEY `task_discussion_comments_index` (`task_discussion_id`,`company_id`,`branch_id`,`comment_id`,`user_id`);

--
-- Indexes for table `task_files`
--
ALTER TABLE `task_files`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_files_user_id_foreign` (`user_id`),
  ADD KEY `task_files_attachment_foreign` (`attachment`),
  ADD KEY `task_files_task_id_user_id_status_id_company_id_branch_id_index` (`task_id`,`user_id`,`status_id`,`company_id`,`branch_id`),
  ADD KEY `show_to_customer` (`show_to_customer`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `task_file_comments`
--
ALTER TABLE `task_file_comments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_file_comments_user_id_foreign` (`user_id`),
  ADD KEY `task_file_comments_attachment_foreign` (`attachment`),
  ADD KEY `task_file_comments_index` (`task_file_id`,`user_id`,`company_id`,`branch_id`);

--
-- Indexes for table `task_followers`
--
ALTER TABLE `task_followers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_followers_user_id_foreign` (`user_id`),
  ADD KEY `task_followers_added_by_foreign` (`added_by`),
  ADD KEY `task_followers_is_creator_foreign` (`is_creator`),
  ADD KEY `task_followers_index` (`task_id`,`user_id`,`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `task_members`
--
ALTER TABLE `task_members`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_members_user_id_foreign` (`user_id`),
  ADD KEY `task_members_added_by_foreign` (`added_by`),
  ADD KEY `task_members_index` (`task_id`,`company_id`,`status_id`,`user_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `task_notes`
--
ALTER TABLE `task_notes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_notes_user_id_foreign` (`user_id`),
  ADD KEY `task_notes_task_id_company_id_status_id_user_id_branch_id_index` (`task_id`,`company_id`,`status_id`,`user_id`,`branch_id`),
  ADD KEY `show_to_customer` (`show_to_customer`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `teams`
--
ALTER TABLE `teams`
  ADD PRIMARY KEY (`id`),
  ADD KEY `teams_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `teams_user_id_foreign` (`user_id`),
  ADD KEY `teams_team_lead_id_foreign` (`team_lead_id`),
  ADD KEY `teams_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `team_members`
--
ALTER TABLE `team_members`
  ADD PRIMARY KEY (`id`),
  ADD KEY `team_members_user_id_foreign` (`user_id`),
  ADD KEY `team_members_team_id_company_id_branch_id_index` (`team_id`,`company_id`,`branch_id`);

--
-- Indexes for table `tenants`
--
ALTER TABLE `tenants`
  ADD PRIMARY KEY (`id`),
  ADD KEY `tenants_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `tenant_subscriptions`
--
ALTER TABLE `tenant_subscriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `tenant_subscriptions_status_id_foreign` (`status_id`),
  ADD KEY `tenant_subscriptions_payment_status_id_foreign` (`payment_status_id`);

--
-- Indexes for table `tenant_user_impersonation_tokens`
--
ALTER TABLE `tenant_user_impersonation_tokens`
  ADD PRIMARY KEY (`token`),
  ADD KEY `tenant_user_impersonation_tokens_tenant_id_foreign` (`tenant_id`),
  ADD KEY `tenant_user_impersonation_tokens_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `testimonials`
--
ALTER TABLE `testimonials`
  ADD PRIMARY KEY (`id`),
  ADD KEY `testimonials_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `ticket_replies`
--
ALTER TABLE `ticket_replies`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ticket_replies_support_ticket_id_foreign` (`support_ticket_id`),
  ADD KEY `ticket_replies_user_id_foreign` (`user_id`),
  ADD KEY `ticket_replies_company_id_branch_id_index` (`company_id`,`branch_id`);

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

--
-- Indexes for table `transactions`
--
ALTER TABLE `transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `transactions_account_id_foreign` (`account_id`),
  ADD KEY `transactions_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `transaction_type` (`transaction_type`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `translations`
--
ALTER TABLE `translations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `translations_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `travel`
--
ALTER TABLE `travel`
  ADD PRIMARY KEY (`id`),
  ADD KEY `travel_user_id_foreign` (`user_id`),
  ADD KEY `travel_created_by_foreign` (`created_by`),
  ADD KEY `travel_attachment_foreign` (`attachment`),
  ADD KEY `travel_goal_id_foreign` (`goal_id`),
  ADD KEY `travel_index` (`travel_type_id`,`company_id`,`status_id`,`user_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `travel_expenses`
--
ALTER TABLE `travel_expenses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `travel_expenses_employee_id_foreign` (`employee_id`),
  ADD KEY `travel_expenses_travel_plan_id_foreign` (`travel_plan_id`),
  ADD KEY `travel_expenses_approved_by_foreign` (`approved_by`),
  ADD KEY `travel_expenses_created_by_foreign` (`created_by`),
  ADD KEY `travel_expenses_updated_by_foreign` (`updated_by`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `travel_expense_logs`
--
ALTER TABLE `travel_expense_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `travel_expense_logs_travel_expense_id_foreign` (`travel_expense_id`),
  ADD KEY `travel_expense_logs_expense_category_id_foreign` (`expense_category_id`),
  ADD KEY `travel_expense_logs_file_id_foreign` (`file_id`),
  ADD KEY `travel_expense_logs_created_by_foreign` (`created_by`),
  ADD KEY `travel_expense_logs_updated_by_foreign` (`updated_by`);

--
-- Indexes for table `travel_meetings`
--
ALTER TABLE `travel_meetings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `travel_meetings_travel_plan_id_foreign` (`travel_plan_id`),
  ADD KEY `travel_meetings_employee_id_foreign` (`employee_id`),
  ADD KEY `travel_meetings_file_id_foreign` (`file_id`),
  ADD KEY `travel_meetings_created_by_foreign` (`created_by`),
  ADD KEY `travel_meetings_updated_by_foreign` (`updated_by`);

--
-- Indexes for table `travel_plans`
--
ALTER TABLE `travel_plans`
  ADD PRIMARY KEY (`id`),
  ADD KEY `travel_plans_employee_id_foreign` (`employee_id`),
  ADD KEY `travel_plans_approved_by_foreign` (`approved_by`),
  ADD KEY `travel_plans_rejected_by_foreign` (`rejected_by`),
  ADD KEY `travel_plans_created_by_foreign` (`created_by`),
  ADD KEY `travel_plans_updated_by_foreign` (`updated_by`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `travel_types`
--
ALTER TABLE `travel_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `travel_types_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `travel_workflows`
--
ALTER TABLE `travel_workflows`
  ADD PRIMARY KEY (`id`),
  ADD KEY `travel_workflows_employee_id_foreign` (`employee_id`),
  ADD KEY `travel_workflows_file_id_foreign` (`file_id`),
  ADD KEY `travel_workflows_created_by_foreign` (`created_by`),
  ADD KEY `travel_workflows_updated_by_foreign` (`updated_by`);

--
-- Indexes for table `uploads`
--
ALTER TABLE `uploads`
  ADD PRIMARY KEY (`id`),
  ADD KEY `uploads_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `uploads_status_id_index` (`status_id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`),
  ADD UNIQUE KEY `users_phone_unique` (`phone`),
  ADD KEY `users_country_id_foreign` (`country_id`),
  ADD KEY `users_role_id_foreign` (`role_id`),
  ADD KEY `users_department_id_foreign` (`department_id`),
  ADD KEY `users_shift_id_foreign` (`shift_id`),
  ADD KEY `users_designation_id_foreign` (`designation_id`),
  ADD KEY `users_manager_id_foreign` (`manager_id`),
  ADD KEY `users_passport_file_id_foreign` (`passport_file_id`),
  ADD KEY `users_eid_file_id_foreign` (`eid_file_id`),
  ADD KEY `users_visa_file_id_foreign` (`visa_file_id`),
  ADD KEY `users_insurance_file_id_foreign` (`insurance_file_id`),
  ADD KEY `users_labour_card_file_id_foreign` (`labour_card_file_id`),
  ADD KEY `users_nid_card_id_foreign` (`nid_card_id`),
  ADD KEY `users_avatar_id_foreign` (`avatar_id`),
  ADD KEY `users_face_image_foreign` (`face_image`),
  ADD KEY `users_combined_index` (`status_id`,`company_id`,`branch_id`,`email`,`manager_id`,`role_id`,`designation_id`,`is_admin`,`is_hr`,`department_id`,`shift_id`),
  ADD KEY `users_status_id_index` (`status_id`),
  ADD KEY `users_duty_schedule_id_foreign` (`duty_schedule_id`);

--
-- Indexes for table `user_breaks`
--
ALTER TABLE `user_breaks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_breaks_user_id_foreign` (`user_id`),
  ADD KEY `user_breaks_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `user_devices`
--
ALTER TABLE `user_devices`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_devices_user_id_company_id_branch_id_index` (`user_id`,`company_id`,`branch_id`);

--
-- Indexes for table `user_documents`
--
ALTER TABLE `user_documents`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_documents_attachment_id_foreign` (`attachment_id`),
  ADD KEY `user_documents_user_id_foreign` (`user_id`),
  ADD KEY `user_documents_user_document_type_id_foreign` (`user_document_type_id`),
  ADD KEY `user_documents_index` (`id`,`user_id`,`user_document_type_id`,`document_number`,`document_expiration`,`company_id`,`branch_id`);

--
-- Indexes for table `user_document_requests`
--
ALTER TABLE `user_document_requests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_document_requests_status_id_foreign` (`status_id`),
  ADD KEY `user_document_requests_user_id_index` (`user_id`),
  ADD KEY `user_document_requests_request_type_index` (`request_type`),
  ADD KEY `user_document_requests_approved_index` (`approved`),
  ADD KEY `user_document_requests_request_date_index` (`request_date`);

--
-- Indexes for table `user_document_types`
--
ALTER TABLE `user_document_types`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_document_types_name_unique` (`name`),
  ADD KEY `user_document_types_name_index` (`name`),
  ADD KEY `user_document_types_id_name_status_id_company_id_branch_id_index` (`id`,`name`,`status_id`,`company_id`,`branch_id`);

--
-- Indexes for table `user_shift_assigns`
--
ALTER TABLE `user_shift_assigns`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_shift_assigns_user_id_foreign` (`user_id`),
  ADD KEY `user_shift_assigns_shift_id_foreign` (`shift_id`),
  ADD KEY `user_shift_assigns_status_id_index` (`status_id`);

--
-- Indexes for table `user_tenant_mappings`
--
ALTER TABLE `user_tenant_mappings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_tenant_mappings_email_unique` (`email`),
  ADD KEY `user_tenant_mappings_company_id_foreign` (`company_id`),
  ADD KEY `user_tenant_mappings_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `virtual_meetings`
--
ALTER TABLE `virtual_meetings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `virtual_meetings_created_by_foreign` (`created_by`),
  ADD KEY `virtual_meetings_status_id_company_id_branch_id_index` (`status_id`,`company_id`,`branch_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `visits`
--
ALTER TABLE `visits`
  ADD PRIMARY KEY (`id`),
  ADD KEY `visits_user_id_foreign` (`user_id`),
  ADD KEY `visits_status_company_id_branch_id_index` (`status`,`company_id`,`branch_id`);

--
-- Indexes for table `visit_images`
--
ALTER TABLE `visit_images`
  ADD PRIMARY KEY (`id`),
  ADD KEY `visit_images_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `visit_notes`
--
ALTER TABLE `visit_notes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `visit_notes_visit_id_foreign` (`visit_id`),
  ADD KEY `visit_notes_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `visit_schedules`
--
ALTER TABLE `visit_schedules`
  ADD PRIMARY KEY (`id`),
  ADD KEY `visit_schedules_visit_id_company_id_branch_id_index` (`visit_id`,`company_id`,`branch_id`);

--
-- Indexes for table `weekends`
--
ALTER TABLE `weekends`
  ADD PRIMARY KEY (`id`),
  ADD KEY `weekends_status_id_foreign` (`status_id`),
  ADD KEY `weekends_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Constraints for dumped tables
--

--
-- Constraints for table `accounts`
--
ALTER TABLE `accounts`
  ADD CONSTRAINT `accounts_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `accounts_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `accounts_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `advance_salaries`
--
ALTER TABLE `advance_salaries`
  ADD CONSTRAINT `advance_salaries_advance_type_id_foreign` FOREIGN KEY (`advance_type_id`) REFERENCES `advance_types` (`id`),
  ADD CONSTRAINT `advance_salaries_approver_id_foreign` FOREIGN KEY (`approver_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `advance_salaries_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `advance_salaries_pay_foreign` FOREIGN KEY (`pay`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `advance_salaries_return_status_foreign` FOREIGN KEY (`return_status`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `advance_salaries_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `advance_salaries_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `advance_salaries_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `advance_salary_logs`
--
ALTER TABLE `advance_salary_logs`
  ADD CONSTRAINT `advance_salary_logs_advance_salary_id_foreign` FOREIGN KEY (`advance_salary_id`) REFERENCES `advance_salaries` (`id`),
  ADD CONSTRAINT `advance_salary_logs_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `advance_salary_logs_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `advance_salary_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `advance_types`
--
ALTER TABLE `advance_types`
  ADD CONSTRAINT `advance_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `all_contents`
--
ALTER TABLE `all_contents`
  ADD CONSTRAINT `all_contents_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `all_contents_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `api_setups`
--
ALTER TABLE `api_setups`
  ADD CONSTRAINT `api_setups_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `appoinments`
--
ALTER TABLE `appoinments`
  ADD CONSTRAINT `appoinments_appoinment_with_foreign` FOREIGN KEY (`appoinment_with`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `appoinments_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `appoinments_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `appoinments_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `appoinment_participants`
--
ALTER TABLE `appoinment_participants`
  ADD CONSTRAINT `appoinment_participants_appoinment_id_foreign` FOREIGN KEY (`appoinment_id`) REFERENCES `appoinments` (`id`),
  ADD CONSTRAINT `appoinment_participants_participant_id_foreign` FOREIGN KEY (`participant_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `appraisals`
--
ALTER TABLE `appraisals`
  ADD CONSTRAINT `appraisals_added_by_foreign` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `appraisals_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `appreciates`
--
ALTER TABLE `appreciates`
  ADD CONSTRAINT `appreciates_appreciate_by_foreign` FOREIGN KEY (`appreciate_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `appreciates_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `app_screens`
--
ALTER TABLE `app_screens`
  ADD CONSTRAINT `app_screens_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `assign_leaves`
--
ALTER TABLE `assign_leaves`
  ADD CONSTRAINT `assign_leaves_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `assign_leaves_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `leave_types` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `attendances`
--
ALTER TABLE `attendances`
  ADD CONSTRAINT `attendances_check_in_image_foreign` FOREIGN KEY (`check_in_image`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `attendances_check_out_image_foreign` FOREIGN KEY (`check_out_image`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `attendances_duty_calendar_id_foreign` FOREIGN KEY (`duty_calendar_id`) REFERENCES `duty_calendars` (`id`),
  ADD CONSTRAINT `attendances_face_image_foreign` FOREIGN KEY (`face_image`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `attendances_in_status_approve_by_foreign` FOREIGN KEY (`in_status_approve_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `attendances_out_status_approve_by_foreign` FOREIGN KEY (`out_status_approve_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `attendances_shift_id_foreign` FOREIGN KEY (`shift_id`) REFERENCES `shifts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `attendances_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `attendances_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `author_infos`
--
ALTER TABLE `author_infos`
  ADD CONSTRAINT `author_infos_approved_by_foreign` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_archived_by_foreign` FOREIGN KEY (`archived_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_cancelled_by_foreign` FOREIGN KEY (`cancelled_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_published_by_foreign` FOREIGN KEY (`published_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_referred_by_foreign` FOREIGN KEY (`referred_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_rejected_by_foreign` FOREIGN KEY (`rejected_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_restored_by_foreign` FOREIGN KEY (`restored_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_unpublished_by_foreign` FOREIGN KEY (`unpublished_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `awards`
--
ALTER TABLE `awards`
  ADD CONSTRAINT `awards_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `awards_award_type_id_foreign` FOREIGN KEY (`award_type_id`) REFERENCES `award_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `awards_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `awards_goal_id_foreign` FOREIGN KEY (`goal_id`) REFERENCES `goals` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `awards_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `awards_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `award_types`
--
ALTER TABLE `award_types`
  ADD CONSTRAINT `award_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `bank_accounts`
--
ALTER TABLE `bank_accounts`
  ADD CONSTRAINT `bank_accounts_author_info_id_foreign` FOREIGN KEY (`author_info_id`) REFERENCES `author_infos` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `bank_accounts_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `bank_accounts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `break_settings`
--
ALTER TABLE `break_settings`
  ADD CONSTRAINT `break_settings_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `break_settings_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `break_types`
--
ALTER TABLE `break_types`
  ADD CONSTRAINT `break_types_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `break_types_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `break_types_icon_id_foreign` FOREIGN KEY (`icon_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `break_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `categories`
--
ALTER TABLE `categories`
  ADD CONSTRAINT `categories_author_info_id_foreign` FOREIGN KEY (`author_info_id`) REFERENCES `author_infos` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `categories_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `clients`
--
ALTER TABLE `clients`
  ADD CONSTRAINT `clients_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `commissions`
--
ALTER TABLE `commissions`
  ADD CONSTRAINT `commissions_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `companies`
--
ALTER TABLE `companies`
  ADD CONSTRAINT `companies_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`),
  ADD CONSTRAINT `companies_saas_company_id_foreign` FOREIGN KEY (`saas_company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `companies_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `companies_trade_licence_id_foreign` FOREIGN KEY (`trade_licence_id`) REFERENCES `uploads` (`id`);

--
-- Constraints for table `competences`
--
ALTER TABLE `competences`
  ADD CONSTRAINT `competences_competence_type_id_foreign` FOREIGN KEY (`competence_type_id`) REFERENCES `competence_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `competences_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `competence_types`
--
ALTER TABLE `competence_types`
  ADD CONSTRAINT `competence_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `conversations`
--
ALTER TABLE `conversations`
  ADD CONSTRAINT `conversations_image_id_foreign` FOREIGN KEY (`image_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `conversations_receiver_id_foreign` FOREIGN KEY (`receiver_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `conversations_sender_id_foreign` FOREIGN KEY (`sender_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `daily_leaves`
--
ALTER TABLE `daily_leaves`
  ADD CONSTRAINT `daily_leaves_approved_by_hr_foreign` FOREIGN KEY (`approved_by_hr`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `daily_leaves_approved_by_tl_foreign` FOREIGN KEY (`approved_by_tl`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `daily_leaves_author_info_id_foreign` FOREIGN KEY (`author_info_id`) REFERENCES `author_infos` (`id`),
  ADD CONSTRAINT `daily_leaves_rejected_by_hr_foreign` FOREIGN KEY (`rejected_by_hr`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `daily_leaves_rejected_by_tl_foreign` FOREIGN KEY (`rejected_by_tl`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `daily_leaves_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `daily_leaves_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `deductions`
--
ALTER TABLE `deductions`
  ADD CONSTRAINT `deductions_appeal_approved_by_foreign` FOREIGN KEY (`appeal_approved_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `deductions_appeal_attachment_id_foreign` FOREIGN KEY (`appeal_attachment_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `deductions_appeal_status_foreign` FOREIGN KEY (`appeal_status`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `deductions_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `deductions_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `deductions_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `deductions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `deduction_details`
--
ALTER TABLE `deduction_details`
  ADD CONSTRAINT `deduction_details_considered_by_foreign` FOREIGN KEY (`considered_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `deduction_details_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `deduction_details_deduction_id_foreign` FOREIGN KEY (`deduction_id`) REFERENCES `deductions` (`id`),
  ADD CONSTRAINT `deduction_details_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `departments`
--
ALTER TABLE `departments`
  ADD CONSTRAINT `departments_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `deposits`
--
ALTER TABLE `deposits`
  ADD CONSTRAINT `deposits_approver_id_foreign` FOREIGN KEY (`approver_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `deposits_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `deposits_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `deposits_income_expense_category_id_foreign` FOREIGN KEY (`income_expense_category_id`) REFERENCES `income_expense_categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `deposits_pay_foreign` FOREIGN KEY (`pay`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `deposits_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`),
  ADD CONSTRAINT `deposits_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `deposits_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`),
  ADD CONSTRAINT `deposits_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `deposits_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `designations`
--
ALTER TABLE `designations`
  ADD CONSTRAINT `designations_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `discussions`
--
ALTER TABLE `discussions`
  ADD CONSTRAINT `discussions_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `discussions_show_to_customer_foreign` FOREIGN KEY (`show_to_customer`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `discussions_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `discussions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `discussion_comments`
--
ALTER TABLE `discussion_comments`
  ADD CONSTRAINT `discussion_comments_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `discussion_comments_discussion_id_foreign` FOREIGN KEY (`discussion_id`) REFERENCES `discussions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `discussion_comments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `discussion_likes`
--
ALTER TABLE `discussion_likes`
  ADD CONSTRAINT `discussion_likes_discussion_id_foreign` FOREIGN KEY (`discussion_id`) REFERENCES `discussions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `discussion_likes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `domains`
--
ALTER TABLE `domains`
  ADD CONSTRAINT `domains_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `duty_calendars`
--
ALTER TABLE `duty_calendars`
  ADD CONSTRAINT `duty_calendars_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `duty_calendars_duty_schedule_id_foreign` FOREIGN KEY (`duty_schedule_id`) REFERENCES `duty_schedules` (`id`),
  ADD CONSTRAINT `duty_calendars_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `duty_calendars_holiday_id_foreign` FOREIGN KEY (`holiday_id`) REFERENCES `holidays` (`id`),
  ADD CONSTRAINT `duty_calendars_leave_id_foreign` FOREIGN KEY (`leave_id`) REFERENCES `leave_requests` (`id`),
  ADD CONSTRAINT `duty_calendars_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `duty_schedules`
--
ALTER TABLE `duty_schedules`
  ADD CONSTRAINT `duty_schedules_shift_id_foreign` FOREIGN KEY (`shift_id`) REFERENCES `shifts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `duty_schedules_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `email_templates`
--
ALTER TABLE `email_templates`
  ADD CONSTRAINT `email_templates_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `email_templates_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `email_templates_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `employee_breaks`
--
ALTER TABLE `employee_breaks`
  ADD CONSTRAINT `employee_breaks_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `employee_tasks`
--
ALTER TABLE `employee_tasks`
  ADD CONSTRAINT `employee_tasks_assigned_id_foreign` FOREIGN KEY (`assigned_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `employee_tasks_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `employee_tasks_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `employee_tasks_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `expenses`
--
ALTER TABLE `expenses`
  ADD CONSTRAINT `expenses_approver_id_foreign` FOREIGN KEY (`approver_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `expenses_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expenses_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `expenses_income_expense_category_id_foreign` FOREIGN KEY (`income_expense_category_id`) REFERENCES `income_expense_categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expenses_pay_foreign` FOREIGN KEY (`pay`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `expenses_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`),
  ADD CONSTRAINT `expenses_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `expenses_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`),
  ADD CONSTRAINT `expenses_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `expenses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `expense_claims`
--
ALTER TABLE `expense_claims`
  ADD CONSTRAINT `expense_claims_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expense_claims_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `expense_claims_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `expense_claim_details`
--
ALTER TABLE `expense_claim_details`
  ADD CONSTRAINT `expense_claim_details_expense_claim_id_foreign` FOREIGN KEY (`expense_claim_id`) REFERENCES `expense_claims` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expense_claim_details_hrm_expense_id_foreign` FOREIGN KEY (`hrm_expense_id`) REFERENCES `hrm_expenses` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expense_claim_details_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `features`
--
ALTER TABLE `features`
  ADD CONSTRAINT `features_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `features_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `front_teams`
--
ALTER TABLE `front_teams`
  ADD CONSTRAINT `front_teams_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `front_teams_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `front_teams_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `goals`
--
ALTER TABLE `goals`
  ADD CONSTRAINT `goals_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `goals_goal_type_id_foreign` FOREIGN KEY (`goal_type_id`) REFERENCES `goal_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `goals_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `goal_types`
--
ALTER TABLE `goal_types`
  ADD CONSTRAINT `goal_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `holidays`
--
ALTER TABLE `holidays`
  ADD CONSTRAINT `holidays_attachment_id_foreign` FOREIGN KEY (`attachment_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `holidays_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `home_pages`
--
ALTER TABLE `home_pages`
  ADD CONSTRAINT `home_pages_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `home_pages_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `home_pages_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hrm_expenses`
--
ALTER TABLE `hrm_expenses`
  ADD CONSTRAINT `hrm_expenses_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `hrm_expenses_claimed_approved_status_id_foreign` FOREIGN KEY (`claimed_approved_status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `hrm_expenses_income_expense_category_id_foreign` FOREIGN KEY (`income_expense_category_id`) REFERENCES `income_expense_categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `hrm_expenses_is_claimed_status_id_foreign` FOREIGN KEY (`is_claimed_status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `hrm_expenses_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `hrm_expenses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `hrm_languages`
--
ALTER TABLE `hrm_languages`
  ADD CONSTRAINT `hrm_languages_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `income_expense_categories`
--
ALTER TABLE `income_expense_categories`
  ADD CONSTRAINT `income_expense_categories_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `income_expense_categories_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `indicators`
--
ALTER TABLE `indicators`
  ADD CONSTRAINT `indicators_added_by_foreign` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `indicators_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `indicators_designation_id_foreign` FOREIGN KEY (`designation_id`) REFERENCES `designations` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `indicators_shift_id_foreign` FOREIGN KEY (`shift_id`) REFERENCES `shifts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `indicators_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `ip_setups`
--
ALTER TABLE `ip_setups`
  ADD CONSTRAINT `ip_setups_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `jitsi_meetings`
--
ALTER TABLE `jitsi_meetings`
  ADD CONSTRAINT `jitsi_meetings_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `jm_message_templates`
--
ALTER TABLE `jm_message_templates`
  ADD CONSTRAINT `jm_message_templates_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  ADD CONSTRAINT `jm_message_templates_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `jm_message_templates_notification_type_id_foreign` FOREIGN KEY (`notification_type_id`) REFERENCES `notification_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `jm_message_templates_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `jm_notifications`
--
ALTER TABLE `jm_notifications`
  ADD CONSTRAINT `jm_notifications_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  ADD CONSTRAINT `jm_notifications_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `jm_notifications_receiver_id_foreign` FOREIGN KEY (`receiver_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `jm_notification_logs`
--
ALTER TABLE `jm_notification_logs`
  ADD CONSTRAINT `jm_notification_logs_notification_id_foreign` FOREIGN KEY (`notification_id`) REFERENCES `notifications` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `jm_notification_types`
--
ALTER TABLE `jm_notification_types`
  ADD CONSTRAINT `jm_notification_types_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  ADD CONSTRAINT `jm_notification_types_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `jm_notification_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `jm_user_preferences`
--
ALTER TABLE `jm_user_preferences`
  ADD CONSTRAINT `jm_user_preferences_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  ADD CONSTRAINT `jm_user_preferences_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `jm_user_preferences_notification_type_id_foreign` FOREIGN KEY (`notification_type_id`) REFERENCES `notification_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `jm_user_preferences_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `jm_user_preferences_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `late_in_out_reasons`
--
ALTER TABLE `late_in_out_reasons`
  ADD CONSTRAINT `late_in_out_reasons_attendance_id_foreign` FOREIGN KEY (`attendance_id`) REFERENCES `attendances` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `leave_requests`
--
ALTER TABLE `leave_requests`
  ADD CONSTRAINT `leave_requests_assign_leave_id_foreign` FOREIGN KEY (`assign_leave_id`) REFERENCES `assign_leaves` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leave_requests_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `leave_requests_author_info_id_foreign` FOREIGN KEY (`author_info_id`) REFERENCES `author_infos` (`id`),
  ADD CONSTRAINT `leave_requests_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `leave_requests_substitute_id_foreign` FOREIGN KEY (`substitute_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `leave_requests_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `leave_settings`
--
ALTER TABLE `leave_settings`
  ADD CONSTRAINT `leave_settings_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `leave_types`
--
ALTER TABLE `leave_types`
  ADD CONSTRAINT `leave_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `leave_years`
--
ALTER TABLE `leave_years`
  ADD CONSTRAINT `leave_years_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `leave_years_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `leave_types` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `location_binds`
--
ALTER TABLE `location_binds`
  ADD CONSTRAINT `location_binds_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `location_binds_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `location_logs`
--
ALTER TABLE `location_logs`
  ADD CONSTRAINT `location_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `meetings`
--
ALTER TABLE `meetings`
  ADD CONSTRAINT `meetings_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `meetings_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `meetings_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `meeting_members`
--
ALTER TABLE `meeting_members`
  ADD CONSTRAINT `meeting_members_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `meeting_participants`
--
ALTER TABLE `meeting_participants`
  ADD CONSTRAINT `meeting_participants_meeting_id_foreign` FOREIGN KEY (`meeting_id`) REFERENCES `meetings` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `meeting_participants_participant_id_foreign` FOREIGN KEY (`participant_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `meeting_setups`
--
ALTER TABLE `meeting_setups`
  ADD CONSTRAINT `meeting_setups_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `menus`
--
ALTER TABLE `menus`
  ADD CONSTRAINT `menus_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `meta_information`
--
ALTER TABLE `meta_information`
  ADD CONSTRAINT `meta_information_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `meta_information_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `module_services`
--
ALTER TABLE `module_services`
  ADD CONSTRAINT `module_services_institution_id_foreign` FOREIGN KEY (`institution_id`) REFERENCES `service_institutions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `module_services_package_id_foreign` FOREIGN KEY (`package_id`) REFERENCES `service_packages` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `module_services_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `module_service_details`
--
ALTER TABLE `module_service_details`
  ADD CONSTRAINT `module_service_details_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `notes`
--
ALTER TABLE `notes`
  ADD CONSTRAINT `notes_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `notes_show_to_customer_foreign` FOREIGN KEY (`show_to_customer`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `notes_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `notes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `notices`
--
ALTER TABLE `notices`
  ADD CONSTRAINT `notices_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `notices_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `notices_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`),
  ADD CONSTRAINT `notices_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `notice_view_logs`
--
ALTER TABLE `notice_view_logs`
  ADD CONSTRAINT `notice_view_logs_notice_id_foreign` FOREIGN KEY (`notice_id`) REFERENCES `notices` (`id`),
  ADD CONSTRAINT `notice_view_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `notifications_old`
--
ALTER TABLE `notifications_old`
  ADD CONSTRAINT `notifications_old_image_id_foreign` FOREIGN KEY (`image_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `notifications_old_receiver_id_foreign` FOREIGN KEY (`receiver_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `notifications_old_sender_id_foreign` FOREIGN KEY (`sender_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `notification_types`
--
ALTER TABLE `notification_types`
  ADD CONSTRAINT `notification_types_icon_foreign` FOREIGN KEY (`icon`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `notification_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `payment_histories`
--
ALTER TABLE `payment_histories`
  ADD CONSTRAINT `payment_histories_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_histories_expense_claim_id_foreign` FOREIGN KEY (`expense_claim_id`) REFERENCES `expense_claims` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_histories_payment_status_id_foreign` FOREIGN KEY (`payment_status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `payment_histories_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `payment_history_details`
--
ALTER TABLE `payment_history_details`
  ADD CONSTRAINT `payment_history_details_paid_by_id_foreign` FOREIGN KEY (`paid_by_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_details_payment_history_id_foreign` FOREIGN KEY (`payment_history_id`) REFERENCES `payment_histories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_details_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_details_payment_status_id_foreign` FOREIGN KEY (`payment_status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `payment_history_details_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `payment_history_logs`
--
ALTER TABLE `payment_history_logs`
  ADD CONSTRAINT `payment_history_logs_expense_claim_id_foreign` FOREIGN KEY (`expense_claim_id`) REFERENCES `expense_claims` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_logs_paid_by_id_foreign` FOREIGN KEY (`paid_by_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_logs_payment_history_id_foreign` FOREIGN KEY (`payment_history_id`) REFERENCES `payment_histories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `payment_methods`
--
ALTER TABLE `payment_methods`
  ADD CONSTRAINT `payment_methods_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `payment_methods_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `payment_types`
--
ALTER TABLE `payment_types`
  ADD CONSTRAINT `payment_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `plan_features`
--
ALTER TABLE `plan_features`
  ADD CONSTRAINT `plan_features_image_id_foreign` FOREIGN KEY (`image_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `portfolios`
--
ALTER TABLE `portfolios`
  ADD CONSTRAINT `portfolios_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `portfolios_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `portfolios_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `pricing_plan_features`
--
ALTER TABLE `pricing_plan_features`
  ADD CONSTRAINT `pricing_plan_features_plan_feature_id_foreign` FOREIGN KEY (`plan_feature_id`) REFERENCES `plan_features` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `pricing_plan_features_pricing_plan_id_foreign` FOREIGN KEY (`pricing_plan_id`) REFERENCES `pricing_plans` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `pricing_plan_prices`
--
ALTER TABLE `pricing_plan_prices`
  ADD CONSTRAINT `pricing_plan_prices_plan_duration_type_id_foreign` FOREIGN KEY (`plan_duration_type_id`) REFERENCES `plan_duration_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `pricing_plan_prices_pricing_plan_id_foreign` FOREIGN KEY (`pricing_plan_id`) REFERENCES `pricing_plans` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `projects`
--
ALTER TABLE `projects`
  ADD CONSTRAINT `projects_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `projects_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `projects_goal_id_foreign` FOREIGN KEY (`goal_id`) REFERENCES `goals` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `projects_payment_foreign` FOREIGN KEY (`payment`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `projects_priority_foreign` FOREIGN KEY (`priority`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `projects_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `project_activities`
--
ALTER TABLE `project_activities`
  ADD CONSTRAINT `project_activities_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_activities_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `project_files`
--
ALTER TABLE `project_files`
  ADD CONSTRAINT `project_files_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `project_files_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_files_show_to_customer_foreign` FOREIGN KEY (`show_to_customer`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `project_files_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `project_files_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `project_file_comments`
--
ALTER TABLE `project_file_comments`
  ADD CONSTRAINT `project_file_comments_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `project_file_comments_project_file_id_foreign` FOREIGN KEY (`project_file_id`) REFERENCES `project_files` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_file_comments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `project_membars`
--
ALTER TABLE `project_membars`
  ADD CONSTRAINT `project_membars_added_by_foreign` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_membars_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_membars_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `project_membars_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `project_payments`
--
ALTER TABLE `project_payments`
  ADD CONSTRAINT `project_payments_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `project_payments_paid_by_foreign` FOREIGN KEY (`paid_by`) REFERENCES `clients` (`id`),
  ADD CONSTRAINT `project_payments_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`),
  ADD CONSTRAINT `project_payments_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_payments_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`),
  ADD CONSTRAINT `project_payments_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `roles`
--
ALTER TABLE `roles`
  ADD CONSTRAINT `roles_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `role_users`
--
ALTER TABLE `role_users`
  ADD CONSTRAINT `role_users_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `role_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `saas_cms`
--
ALTER TABLE `saas_cms`
  ADD CONSTRAINT `saas_cms_attachment_id_foreign` FOREIGN KEY (`attachment_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `saas_cms_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `saas_subscriptions`
--
ALTER TABLE `saas_subscriptions`
  ADD CONSTRAINT `saas_subscriptions_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `saas_subscriptions_payment_status_id_foreign` FOREIGN KEY (`payment_status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `saas_subscriptions_pricing_plan_price_id_foreign` FOREIGN KEY (`pricing_plan_price_id`) REFERENCES `pricing_plan_prices` (`id`),
  ADD CONSTRAINT `saas_subscriptions_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `salary_generates`
--
ALTER TABLE `salary_generates`
  ADD CONSTRAINT `salary_generates_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_generates_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `salary_generates_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_generates_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `salary_payment_logs`
--
ALTER TABLE `salary_payment_logs`
  ADD CONSTRAINT `salary_payment_logs_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_payment_logs_paid_by_foreign` FOREIGN KEY (`paid_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_payment_logs_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`),
  ADD CONSTRAINT `salary_payment_logs_salary_generate_id_foreign` FOREIGN KEY (`salary_generate_id`) REFERENCES `salary_generates` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `salary_payment_logs_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`),
  ADD CONSTRAINT `salary_payment_logs_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_payment_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `salary_setups`
--
ALTER TABLE `salary_setups`
  ADD CONSTRAINT `salary_setups_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_setups_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `salary_setups_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_setups_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `salary_setup_details`
--
ALTER TABLE `salary_setup_details`
  ADD CONSTRAINT `salary_setup_details_commission_id_foreign` FOREIGN KEY (`commission_id`) REFERENCES `commissions` (`id`),
  ADD CONSTRAINT `salary_setup_details_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_setup_details_salary_setup_id_foreign` FOREIGN KEY (`salary_setup_id`) REFERENCES `salary_setups` (`id`),
  ADD CONSTRAINT `salary_setup_details_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `salary_setup_details_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_setup_details_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `services`
--
ALTER TABLE `services`
  ADD CONSTRAINT `services_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `services_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `services_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `service_machines`
--
ALTER TABLE `service_machines`
  ADD CONSTRAINT `service_machines_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `service_brands` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `service_machines_model_id_foreign` FOREIGN KEY (`model_id`) REFERENCES `service_models` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `service_package_details`
--
ALTER TABLE `service_package_details`
  ADD CONSTRAINT `service_package_details_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `service_brands` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `service_package_details_machine_id_foreign` FOREIGN KEY (`machine_id`) REFERENCES `service_machines` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `service_package_details_model_id_foreign` FOREIGN KEY (`model_id`) REFERENCES `service_models` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `service_package_details_package_id_foreign` FOREIGN KEY (`package_id`) REFERENCES `service_packages` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `settings`
--
ALTER TABLE `settings`
  ADD CONSTRAINT `settings_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `shifts`
--
ALTER TABLE `shifts`
  ADD CONSTRAINT `shifts_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `social_identities`
--
ALTER TABLE `social_identities`
  ADD CONSTRAINT `social_identities_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `subscribers`
--
ALTER TABLE `subscribers`
  ADD CONSTRAINT `subscribers_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `subscription_plans`
--
ALTER TABLE `subscription_plans`
  ADD CONSTRAINT `subscription_plans_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `support_tickets`
--
ALTER TABLE `support_tickets`
  ADD CONSTRAINT `support_tickets_assigned_id_foreign` FOREIGN KEY (`assigned_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `support_tickets_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `support_tickets_priority_id_foreign` FOREIGN KEY (`priority_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `support_tickets_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `support_tickets_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `support_tickets_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `tasks`
--
ALTER TABLE `tasks`
  ADD CONSTRAINT `tasks_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `tasks_goal_id_foreign` FOREIGN KEY (`goal_id`) REFERENCES `goals` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `tasks_priority_foreign` FOREIGN KEY (`priority`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `tasks_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `tasks_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `task_activities`
--
ALTER TABLE `task_activities`
  ADD CONSTRAINT `task_activities_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_activities_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `task_discussions`
--
ALTER TABLE `task_discussions`
  ADD CONSTRAINT `task_discussions_file_id_foreign` FOREIGN KEY (`file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `task_discussions_show_to_customer_foreign` FOREIGN KEY (`show_to_customer`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_discussions_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_discussions_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_discussions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `task_discussion_comments`
--
ALTER TABLE `task_discussion_comments`
  ADD CONSTRAINT `task_discussion_comments_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `task_discussion_comments_task_discussion_id_foreign` FOREIGN KEY (`task_discussion_id`) REFERENCES `task_discussions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_discussion_comments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `task_files`
--
ALTER TABLE `task_files`
  ADD CONSTRAINT `task_files_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `task_files_show_to_customer_foreign` FOREIGN KEY (`show_to_customer`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_files_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_files_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_files_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `task_file_comments`
--
ALTER TABLE `task_file_comments`
  ADD CONSTRAINT `task_file_comments_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `task_file_comments_task_file_id_foreign` FOREIGN KEY (`task_file_id`) REFERENCES `task_files` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_file_comments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `task_followers`
--
ALTER TABLE `task_followers`
  ADD CONSTRAINT `task_followers_added_by_foreign` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_followers_is_creator_foreign` FOREIGN KEY (`is_creator`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_followers_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_followers_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_followers_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `task_members`
--
ALTER TABLE `task_members`
  ADD CONSTRAINT `task_members_added_by_foreign` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_members_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_members_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_members_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `task_notes`
--
ALTER TABLE `task_notes`
  ADD CONSTRAINT `task_notes_show_to_customer_foreign` FOREIGN KEY (`show_to_customer`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_notes_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_notes_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_notes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `teams`
--
ALTER TABLE `teams`
  ADD CONSTRAINT `teams_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `teams_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `teams_team_lead_id_foreign` FOREIGN KEY (`team_lead_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `teams_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `team_members`
--
ALTER TABLE `team_members`
  ADD CONSTRAINT `team_members_team_id_foreign` FOREIGN KEY (`team_id`) REFERENCES `teams` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `team_members_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `tenant_subscriptions`
--
ALTER TABLE `tenant_subscriptions`
  ADD CONSTRAINT `tenant_subscriptions_payment_status_id_foreign` FOREIGN KEY (`payment_status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `tenant_subscriptions_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `tenant_user_impersonation_tokens`
--
ALTER TABLE `tenant_user_impersonation_tokens`
  ADD CONSTRAINT `tenant_user_impersonation_tokens_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `testimonials`
--
ALTER TABLE `testimonials`
  ADD CONSTRAINT `testimonials_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `ticket_replies`
--
ALTER TABLE `ticket_replies`
  ADD CONSTRAINT `ticket_replies_support_ticket_id_foreign` FOREIGN KEY (`support_ticket_id`) REFERENCES `support_tickets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `ticket_replies_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `transactions`
--
ALTER TABLE `transactions`
  ADD CONSTRAINT `transactions_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transactions_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `transactions_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `transactions_transaction_type_foreign` FOREIGN KEY (`transaction_type`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `transactions_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `travel`
--
ALTER TABLE `travel`
  ADD CONSTRAINT `travel_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `travel_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `travel_goal_id_foreign` FOREIGN KEY (`goal_id`) REFERENCES `goals` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `travel_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `travel_travel_type_id_foreign` FOREIGN KEY (`travel_type_id`) REFERENCES `travel_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `travel_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `travel_expenses`
--
ALTER TABLE `travel_expenses`
  ADD CONSTRAINT `travel_expenses_approved_by_foreign` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `travel_expenses_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `travel_expenses_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `travel_expenses_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `travel_expenses_travel_plan_id_foreign` FOREIGN KEY (`travel_plan_id`) REFERENCES `travel_plans` (`id`),
  ADD CONSTRAINT `travel_expenses_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `travel_expense_logs`
--
ALTER TABLE `travel_expense_logs`
  ADD CONSTRAINT `travel_expense_logs_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `travel_expense_logs_expense_category_id_foreign` FOREIGN KEY (`expense_category_id`) REFERENCES `income_expense_categories` (`id`),
  ADD CONSTRAINT `travel_expense_logs_file_id_foreign` FOREIGN KEY (`file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `travel_expense_logs_travel_expense_id_foreign` FOREIGN KEY (`travel_expense_id`) REFERENCES `travel_expenses` (`id`),
  ADD CONSTRAINT `travel_expense_logs_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `travel_meetings`
--
ALTER TABLE `travel_meetings`
  ADD CONSTRAINT `travel_meetings_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `travel_meetings_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `travel_meetings_file_id_foreign` FOREIGN KEY (`file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `travel_meetings_travel_plan_id_foreign` FOREIGN KEY (`travel_plan_id`) REFERENCES `travel_plans` (`id`),
  ADD CONSTRAINT `travel_meetings_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `travel_plans`
--
ALTER TABLE `travel_plans`
  ADD CONSTRAINT `travel_plans_approved_by_foreign` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `travel_plans_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `travel_plans_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `travel_plans_rejected_by_foreign` FOREIGN KEY (`rejected_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `travel_plans_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `travel_plans_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `travel_types`
--
ALTER TABLE `travel_types`
  ADD CONSTRAINT `travel_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `travel_workflows`
--
ALTER TABLE `travel_workflows`
  ADD CONSTRAINT `travel_workflows_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `travel_workflows_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `travel_workflows_file_id_foreign` FOREIGN KEY (`file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `travel_workflows_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `uploads`
--
ALTER TABLE `uploads`
  ADD CONSTRAINT `uploads_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `users`
--
ALTER TABLE `users`
  ADD CONSTRAINT `users_avatar_id_foreign` FOREIGN KEY (`avatar_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `users_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `users_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `users_designation_id_foreign` FOREIGN KEY (`designation_id`) REFERENCES `designations` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `users_duty_schedule_id_foreign` FOREIGN KEY (`duty_schedule_id`) REFERENCES `duty_schedules` (`id`),
  ADD CONSTRAINT `users_eid_file_id_foreign` FOREIGN KEY (`eid_file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `users_face_image_foreign` FOREIGN KEY (`face_image`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `users_insurance_file_id_foreign` FOREIGN KEY (`insurance_file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `users_labour_card_file_id_foreign` FOREIGN KEY (`labour_card_file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `users_manager_id_foreign` FOREIGN KEY (`manager_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `users_nid_card_id_foreign` FOREIGN KEY (`nid_card_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `users_passport_file_id_foreign` FOREIGN KEY (`passport_file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `users_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `users_shift_id_foreign` FOREIGN KEY (`shift_id`) REFERENCES `shifts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `users_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `users_visa_file_id_foreign` FOREIGN KEY (`visa_file_id`) REFERENCES `uploads` (`id`);

--
-- Constraints for table `user_breaks`
--
ALTER TABLE `user_breaks`
  ADD CONSTRAINT `user_breaks_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `user_devices`
--
ALTER TABLE `user_devices`
  ADD CONSTRAINT `user_devices_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `user_documents`
--
ALTER TABLE `user_documents`
  ADD CONSTRAINT `user_documents_attachment_id_foreign` FOREIGN KEY (`attachment_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `user_documents_user_document_type_id_foreign` FOREIGN KEY (`user_document_type_id`) REFERENCES `user_document_types` (`id`),
  ADD CONSTRAINT `user_documents_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `user_document_requests`
--
ALTER TABLE `user_document_requests`
  ADD CONSTRAINT `user_document_requests_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `user_document_requests_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `user_shift_assigns`
--
ALTER TABLE `user_shift_assigns`
  ADD CONSTRAINT `user_shift_assigns_shift_id_foreign` FOREIGN KEY (`shift_id`) REFERENCES `shifts` (`id`),
  ADD CONSTRAINT `user_shift_assigns_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_shift_assigns_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `user_tenant_mappings`
--
ALTER TABLE `user_tenant_mappings`
  ADD CONSTRAINT `user_tenant_mappings_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `user_tenant_mappings_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `virtual_meetings`
--
ALTER TABLE `virtual_meetings`
  ADD CONSTRAINT `virtual_meetings_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `virtual_meetings_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `visits`
--
ALTER TABLE `visits`
  ADD CONSTRAINT `visits_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `visit_notes`
--
ALTER TABLE `visit_notes`
  ADD CONSTRAINT `visit_notes_visit_id_foreign` FOREIGN KEY (`visit_id`) REFERENCES `visits` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `visit_schedules`
--
ALTER TABLE `visit_schedules`
  ADD CONSTRAINT `visit_schedules_visit_id_foreign` FOREIGN KEY (`visit_id`) REFERENCES `visits` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `weekends`
--
ALTER TABLE `weekends`
  ADD CONSTRAINT `weekends_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE;
COMMIT;

