-- Table structure for table `daily_leaves`
--

CREATE TABLE `daily_leaves` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `approved_by_tl` bigint UNSIGNED DEFAULT NULL,
  `approved_at_tl` timestamp NULL DEFAULT NULL,
  `approved_by_hr` bigint UNSIGNED DEFAULT NULL,
  `approved_at_hr` timestamp NULL DEFAULT NULL,
  `rejected_by_tl` bigint UNSIGNED DEFAULT NULL,
  `rejected_at_tl` timestamp NULL DEFAULT NULL,
  `rejected_by_hr` bigint UNSIGNED DEFAULT NULL,
  `rejected_at_hr` timestamp NULL DEFAULT NULL,
  `leave_type` enum('early_leave','late_arrive') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `time` time DEFAULT NULL,
  `reason` text COLLATE utf8mb4_unicode_ci,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `author_info_id` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

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

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

--
-- Table structure for table `date_formats`
--

CREATE TABLE `date_formats` (
  `id` bigint UNSIGNED NOT NULL,
  `format` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `normal_view` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint NOT NULL DEFAULT '1',
  `created_by` int DEFAULT '1',
  `updated_by` int DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `date_formats`
--

INSERT INTO `date_formats` (`id`, `format`, `normal_view`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`, `company_id`, `branch_id`) VALUES
(1, 'jS M, Y', '17th May, 2019', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(2, 'Y-m-d', '2019-05-17', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(3, 'Y-d-m', '2019-17-05', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(4, 'd-m-Y', '17-05-2019', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(5, 'm-d-Y', '05-17-2019', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(6, 'Y/m/d', '2019/05/17', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(7, 'Y/d/m', '2019/17/05', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(8, 'd/m/Y', '17/05/2019', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(9, 'm/d/Y', '05/17/2019', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(10, 'l jS \\of F Y', 'Monday 17th of May 2019', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(11, 'jS \\of F Y', '17th of May 2019', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(12, 'g:ia \\o\\n l jS F Y', '12:00am on Monday 17th May 2019', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(13, 'F j, Y, g:i a', 'May 7, 2019, 6:20 pm', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(14, 'F j, Y', 'May 17, 2019', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1),
(15, '\\i\\t \\i\\s \\t\\h\\e jS \\d\\a\\y', 'it is the 17th day', 1, 1, 1, '2025-04-24 23:22:58', '2025-04-25 11:22:58', 1, 1);

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

--
-- Table structure for table `deductions`
--

CREATE TABLE `deductions` (
  `id` bigint UNSIGNED NOT NULL,
  `company_id` bigint UNSIGNED NOT NULL,
  `branch_id` bigint UNSIGNED DEFAULT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `year` year NOT NULL,
  `month` int NOT NULL,
  `amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `consider_amount` decimal(8,2) DEFAULT '0.00',
  `is_appealed` tinyint DEFAULT '0',
  `appealed_at` datetime DEFAULT NULL,
  `appeal_details` text COLLATE utf8mb4_unicode_ci,
  `appeal_attachment_id` bigint UNSIGNED DEFAULT NULL,
  `appeal_status` bigint UNSIGNED DEFAULT NULL,
  `appeal_approved_by` bigint UNSIGNED DEFAULT NULL,
  `appeal_approved_at` datetime DEFAULT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `updated_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `deduction_details`
--

CREATE TABLE `deduction_details` (
  `id` bigint UNSIGNED NOT NULL,
  `deduction_id` bigint UNSIGNED NOT NULL,
  `deduction_type` enum('Attendance','Leave') COLLATE utf8mb4_unicode_ci NOT NULL,
  `tardy_rule_id` bigint UNSIGNED DEFAULT NULL,
  `purpose` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `days` int DEFAULT NULL,
  `comment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_applicable` tinyint NOT NULL DEFAULT '1',
  `created_by` bigint UNSIGNED NOT NULL,
  `updated_by` bigint UNSIGNED DEFAULT NULL,
  `considered_by` bigint UNSIGNED DEFAULT NULL,
  `considered_at` datetime 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 `departments`
--

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

--
-- Dumping data for table `departments`
--

INSERT INTO `departments` (`id`, `title`, `status_id`, `created_at`, `updated_at`, `deleted_at`, `company_id`, `branch_id`) VALUES
(1, 'Executive', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(2, 'HR', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(3, 'Finance', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(4, 'IT', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(5, 'Operations', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(6, 'Sales', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1);

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

--
-- Table structure for table `deposits`
--

CREATE TABLE `deposits` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `income_expense_category_id` bigint UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `amount` double(16,2) DEFAULT NULL,
  `request_amount` double(16,2) NOT NULL DEFAULT '0.00',
  `ref` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payment_method_id` bigint UNSIGNED DEFAULT NULL,
  `transaction_id` bigint UNSIGNED DEFAULT NULL,
  `pay` bigint UNSIGNED NOT NULL DEFAULT '9',
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '2',
  `approver_id` bigint UNSIGNED DEFAULT NULL,
  `remarks` text COLLATE utf8mb4_unicode_ci,
  `created_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `updated_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `attachment` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `designations` (
  `id` bigint UNSIGNED NOT NULL,
  `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `designations`
--

INSERT INTO `designations` (`id`, `title`, `status_id`, `created_at`, `updated_at`, `deleted_at`, `company_id`, `branch_id`) VALUES
(1, 'CEO', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(2, 'Managing Director', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(3, 'CIO', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(4, 'CTO', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(5, 'HR Manager', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(6, 'HR Executive', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(7, 'Finance Manager', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(8, 'Accountant', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(9, 'IT Manager', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(10, 'Software Developer', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(11, 'Operations Manager', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(12, 'Logistics Coordinator', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(13, 'Sales Manager', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(14, 'Sales Representative', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1);

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

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

CREATE TABLE `discussions` (
  `id` bigint UNSIGNED NOT NULL,
  `subject` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `project_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `show_to_customer` bigint UNSIGNED NOT NULL DEFAULT '22',
  `status_id` bigint 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 UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `discussion_comments`
--

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

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

--
-- Table structure for table `discussion_likes`
--

CREATE TABLE `discussion_likes` (
  `id` bigint UNSIGNED NOT NULL,
  `discussion_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `like` int DEFAULT '0',
  `dislike` int DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `domains`
--

CREATE TABLE `domains` (
  `id` int UNSIGNED NOT NULL,
  `domain` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `duty_calendars`
--

CREATE TABLE `duty_calendars` (
  `id` bigint UNSIGNED NOT NULL,
  `employee_id` bigint UNSIGNED NOT NULL,
  `duty_schedule_id` bigint UNSIGNED DEFAULT NULL,
  `date` date NOT NULL,
  `holiday_id` bigint UNSIGNED DEFAULT NULL,
  `leave_id` bigint UNSIGNED DEFAULT NULL,
  `is_weekend` tinyint DEFAULT '0' COMMENT '0 => No, 1 => Yes',
  `is_take_meal` tinyint DEFAULT '0' COMMENT '0 => No, 1 => Yes',
  `created_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `updated_by` bigint UNSIGNED DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint 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 `duty_schedules`
--

CREATE TABLE `duty_schedules` (
  `id` bigint UNSIGNED NOT NULL,
  `shift_id` bigint UNSIGNED NOT NULL,
  `start_time` time DEFAULT NULL,
  `end_time` time DEFAULT NULL,
  `consider_time` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '0',
  `hour` int NOT NULL DEFAULT '0',
  `status_id` bigint UNSIGNED NOT NULL,
  `end_on_same_date` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `duty_schedules`
--

INSERT INTO `duty_schedules` (`id`, `shift_id`, `start_time`, `end_time`, `consider_time`, `hour`, `status_id`, `end_on_same_date`, `created_at`, `updated_at`, `company_id`, `branch_id`) VALUES
(1, 1, '10:00:00', '18:00:00', '15', 8, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(2, 2, '15:00:00', '23:00:00', '15', 8, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(3, 3, '23:00:00', '07:00:00', '15', 8, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1);

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

--
-- Table structure for table `employee_breaks`
--

CREATE TABLE `employee_breaks` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `break_time` time DEFAULT NULL,
  `back_time` time DEFAULT NULL,
  `reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `employee_tasks`
--

CREATE TABLE `employee_tasks` (
  `id` bigint UNSIGNED NOT NULL,
  `assigned_id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `due_date` date DEFAULT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `attachment_file_id` bigint UNSIGNED DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `expenses` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `income_expense_category_id` bigint UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `amount` double(16,2) DEFAULT NULL,
  `request_amount` double(16,2) NOT NULL DEFAULT '0.00',
  `pay` bigint UNSIGNED NOT NULL DEFAULT '9',
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '2',
  `ref` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_id` bigint UNSIGNED DEFAULT NULL,
  `payment_method_id` bigint UNSIGNED DEFAULT NULL,
  `approver_id` bigint UNSIGNED DEFAULT NULL,
  `remarks` text COLLATE utf8mb4_unicode_ci,
  `created_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `updated_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `attachment` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `expense_claims`
--

CREATE TABLE `expense_claims` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `invoice_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'invoice number',
  `claim_date` date DEFAULT NULL COMMENT 'date of claim',
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'remarks of payment',
  `payable_amount` double(10,2) DEFAULT NULL COMMENT 'amount of payment',
  `due_amount` double(10,2) DEFAULT NULL COMMENT 'due amount of payment',
  `attachment_file_id` bigint UNSIGNED DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `expense_claim_details`
--

CREATE TABLE `expense_claim_details` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `hrm_expense_id` bigint UNSIGNED NOT NULL,
  `expense_claim_id` bigint UNSIGNED NOT NULL,
  `amount` double(15,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `expire_notifications`
--

CREATE TABLE `expire_notifications` (
  `id` bigint UNSIGNED NOT NULL,
  `receiver_id` bigint UNSIGNED NOT NULL COMMENT 'it will come from user table',
  `employee_id` bigint UNSIGNED NOT NULL COMMENT 'it will come from user table',
  `branch_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `company_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_read` tinyint NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `failed_jobs` (
  `id` bigint UNSIGNED NOT NULL,
  `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `features`
--

CREATE TABLE `features` (
  `id` bigint UNSIGNED NOT NULL,
  `type` enum('company_growth','advance_features','awesome_features') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `attachment_file_id` bigint UNSIGNED DEFAULT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `short_description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `long_description` longtext COLLATE utf8mb4_unicode_ci,
  `status_id` bigint 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 `goals`
--

CREATE TABLE `goals` (
  `id` bigint UNSIGNED NOT NULL,
  `subject` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `target` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `goal_type_id` bigint UNSIGNED DEFAULT NULL,
  `progress` int DEFAULT '0',
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '24',
  `description` longtext COLLATE utf8mb4_unicode_ci,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `rating` int DEFAULT '0',
  `created_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `goal_types`
--

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

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

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

CREATE TABLE `holidays` (
  `id` bigint UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci,
  `year` year DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `attachment_id` bigint UNSIGNED DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `home_pages`
--

CREATE TABLE `home_pages` (
  `id` bigint UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contents` json DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_by` bigint UNSIGNED NOT NULL,
  `updated_by` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `hrm_expenses`
--

CREATE TABLE `hrm_expenses` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `income_expense_category_id` bigint UNSIGNED NOT NULL,
  `date` date DEFAULT NULL COMMENT 'date of expense',
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'remarks of expense',
  `amount` double(10,2) DEFAULT NULL COMMENT 'amount of expense',
  `attachment_file_id` bigint UNSIGNED DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `is_claimed_status_id` bigint UNSIGNED NOT NULL,
  `claimed_approved_status_id` bigint UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `hrm_languages`
--

CREATE TABLE `hrm_languages` (
  `id` bigint UNSIGNED NOT NULL,
  `language_id` int NOT NULL,
  `is_default` int NOT NULL DEFAULT '0',
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `hrm_languages`
--

INSERT INTO `hrm_languages` (`id`, `language_id`, `is_default`, `status_id`, `created_at`, `updated_at`, `company_id`) VALUES
(1, 19, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1);

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

--
-- Table structure for table `income_expense_categories`
--

CREATE TABLE `income_expense_categories` (
  `id` bigint UNSIGNED NOT NULL,
  `type` enum('Accounts','Travel') COLLATE utf8mb4_unicode_ci DEFAULT 'Accounts',
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_income` tinyint NOT NULL DEFAULT '0' COMMENT '0=Expense, 1=Income',
  `attachment_file_id` bigint UNSIGNED DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `income_expense_categories`
--

INSERT INTO `income_expense_categories` (`id`, `type`, `name`, `is_income`, `attachment_file_id`, `status_id`, `created_at`, `updated_at`, `company_id`, `branch_id`) VALUES
(1, 'Travel', 'Lodging', 0, NULL, 1, '2025-04-25 11:22:56', '2025-04-25 11:22:56', 1, 1),
(2, 'Travel', 'Food', 0, NULL, 1, '2025-04-25 11:22:56', '2025-04-25 11:22:56', 1, 1),
(3, 'Travel', 'Entertainment', 0, NULL, 1, '2025-04-25 11:22:56', '2025-04-25 11:22:56', 1, 1),
(4, 'Travel', 'Others', 0, NULL, 1, '2025-04-25 11:22:56', '2025-04-25 11:22:56', 1, 1);

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

--
-- Table structure for table `indicators`
--

CREATE TABLE `indicators` (
  `id` bigint UNSIGNED NOT NULL,
  `department_id` bigint UNSIGNED DEFAULT NULL,
  `shift_id` bigint UNSIGNED DEFAULT NULL,
  `designation_id` bigint UNSIGNED DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `rates` json DEFAULT NULL,
  `rating` double(8,2) DEFAULT NULL,
  `added_by` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1',
  `status_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `ip_setups`
--

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

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

--
-- Table structure for table `jitsi_meetings`
--

CREATE TABLE `jitsi_meetings` (
  `id` bigint UNSIGNED NOT NULL,
  `meeting_id` text COLLATE utf8mb4_unicode_ci,
  `time_start_before` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1',
  `status_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `jm_message_templates`
--

CREATE TABLE `jm_message_templates` (
  `id` bigint UNSIGNED NOT NULL,
  `notification_type_id` bigint UNSIGNED NOT NULL,
  `subject` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `body` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_id` bigint UNSIGNED DEFAULT NULL,
  `branch_id` bigint UNSIGNED DEFAULT NULL,
  `status_id` bigint 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 `jm_notifications`
--

CREATE TABLE `jm_notifications` (
  `id` bigint UNSIGNED NOT NULL,
  `receiver_id` bigint UNSIGNED NOT NULL,
  `web_redirect_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mobile_redirect_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `message` text COLLATE utf8mb4_unicode_ci,
  `seen` tinyint(1) NOT NULL DEFAULT '0',
  `seen_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT NULL,
  `branch_id` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `jm_notification_logs`
--

CREATE TABLE `jm_notification_logs` (
  `id` bigint UNSIGNED NOT NULL,
  `notification_id` bigint UNSIGNED NOT NULL,
  `status` tinyint NOT NULL DEFAULT '0' COMMENT '0 => Not Send, 1 => Send',
  `log_message` text COLLATE utf8mb4_unicode_ci COMMENT 'failed message',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `jm_notification_types`
--

CREATE TABLE `jm_notification_types` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT NULL,
  `branch_id` bigint UNSIGNED DEFAULT NULL,
  `status_id` bigint 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 `jm_user_preferences`
--

CREATE TABLE `jm_user_preferences` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `notification_type_id` bigint UNSIGNED NOT NULL,
  `preference` enum('enabled','disabled') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'enabled',
  `status_id` bigint UNSIGNED NOT NULL,
  `company_id` bigint UNSIGNED DEFAULT NULL,
  `branch_id` bigint UNSIGNED DEFAULT NULL,
  `note` text COLLATE utf8mb4_unicode_ci COMMENT 'Additional notes or details',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `jobs`
--

CREATE TABLE `jobs` (
  `id` bigint UNSIGNED NOT NULL,
  `queue` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `attempts` tinyint UNSIGNED NOT NULL,
  `reserved_at` int UNSIGNED DEFAULT NULL,
  `available_at` int UNSIGNED NOT NULL,
  `created_at` int UNSIGNED NOT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `languages`
--

CREATE TABLE `languages` (
  `id` bigint UNSIGNED NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `native` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `rtl` tinyint DEFAULT '0',
  `status` tinyint DEFAULT '1' COMMENT '1=active, 0=inactive',
  `json_exist` tinyint DEFAULT '0',
  `is_default` tinyint DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `languages`
--

INSERT INTO `languages` (`id`, `code`, `name`, `native`, `rtl`, `status`, `json_exist`, `is_default`, `created_at`, `updated_at`, `company_id`, `branch_id`) VALUES
(1, 'af', 'Afrikaans', 'Afrikaans', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(2, 'am', 'Amharic', 'አማርኛ', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(3, 'ar', 'Arabic', 'العربية', 1, 1, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(4, 'ay', 'Aymara', 'Aymar', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(5, 'az', 'Azerbaijani', 'Azərbaycanca / آذربايجان', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(6, 'be', 'Belarusian', 'Беларуская', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(7, 'bg', 'Bulgarian', 'Български', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(8, 'bi', 'Bislama', 'Bislama', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(9, 'bn', 'Bengali', 'বাংলা', 0, 1, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(10, 'bs', 'Bosnian', 'Bosanski', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(11, 'ca', 'Catalan', 'Català', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(12, 'ch', 'Chamorro', 'Chamoru', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(13, 'cs', 'Czech', 'Česky', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(14, 'da', 'Danish', 'Dansk', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(15, 'de', 'German', 'Deutsch', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(16, 'dv', 'Divehi', 'ދިވެހިބަސް', 1, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(17, 'dz', 'Dzongkha', 'ཇོང་ཁ', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(18, 'el', 'Greek', 'Ελληνικά', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(19, 'en', 'English', 'English', 0, 1, 0, 1, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(20, 'es', 'Spanish', 'Español', 0, 1, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(21, 'et', 'Estonian', 'Eesti', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(22, 'eu', 'Basque', 'Euskara', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(23, 'fa', 'Persian', 'فارسی', 1, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(24, 'ff', 'Peul', 'Fulfulde', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(25, 'fi', 'Finnish', 'Suomi', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(26, 'fj', 'Fijian', 'Na Vosa Vakaviti', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(27, 'fo', 'Faroese', 'Føroyskt', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(28, 'fr', 'French', 'Français', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(29, 'ga', 'Irish', 'Gaeilge', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(30, 'gl', 'Galician', 'Galego', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(31, 'gn', 'Guarani', 'Avañe\'ẽ', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(32, 'gv', 'Manx', 'Gaelg', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(33, 'he', 'Hebrew', 'עברית', 1, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(34, 'hi', 'Hindi', 'हिन्दी', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(35, 'hr', 'Croatian', 'Hrvatski', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(36, 'ht', 'Haitian', 'Krèyol ayisyen', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(37, 'hu', 'Hungarian', 'Magyar', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(38, 'hy', 'Armenian', 'Հայերեն', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(39, 'indo', 'Indonesian', 'Bahasa Indonesia', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(40, 'is', 'Icelandic', 'Íslenska', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(41, 'it', 'Italian', 'Italiano', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(42, 'ja', 'Japanese', '日本語', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(43, 'ka', 'Georgian', 'ქართული', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(44, 'kg', 'Kongo', 'KiKongo', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(45, 'kk', 'Kazakh', 'Қазақша', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(46, 'kl', 'Greenlandic', 'Kalaallisut', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(47, 'km', 'Cambodian', 'ភាសាខ្មែរ', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(48, 'ko', 'Korean', '한국어', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(49, 'ku', 'Kurdish', 'Kurdî / كوردی', 1, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(50, 'ky', 'Kirghiz', 'Kırgızca / Кыргызча', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(51, 'la', 'Latin', 'Latina', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(52, 'lb', 'Luxembourgish', 'Lëtzebuergesch', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(53, 'ln', 'Lingala', 'Lingála', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(54, 'lo', 'Laotian', 'ລາວ / Pha xa lao', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(55, 'lt', 'Lithuanian', 'Lietuvių', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(56, 'lu', 'Luxembourg', 'Luxembourg', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(57, 'lv', 'Latvian', 'Latviešu', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(58, 'mg', 'Malagasy', 'Malagasy', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(59, 'mh', 'Marshallese', 'Kajin Majel / Ebon', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(60, 'mi', 'Maori', 'Māori', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(61, 'mk', 'Macedonian', 'Македонски', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(62, 'mn', 'Mongolian', 'Монгол', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(63, 'ms', 'Malay', 'Bahasa Melayu', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(64, 'mt', 'Maltese', 'bil-Malti', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(65, 'my', 'Burmese', 'မြန်မာစာ', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(66, 'na', 'Nauruan', 'Dorerin Naoero', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(67, 'nb', 'Bokmål', 'Bokmål', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(68, 'nd', 'North Ndebele', 'Sindebele', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(69, 'ne', 'Nepali', 'नेपाली', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(70, 'nl', 'Dutch', 'Nederlands', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(71, 'nn', 'Norwegian Nynorsk', 'Norsk (nynorsk)', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(72, 'no', 'Norwegian', 'Norsk (bokmål / riksmål)', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(73, 'nr', 'South Ndebele', 'isiNdebele', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(74, 'ny', 'Chichewa', 'Chi-Chewa', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(75, 'oc', 'Occitan', 'Occitan', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(76, 'pa', 'Panjabi / Punjabi', 'ਪੰਜਾਬੀ / पंजाबी / پنجابي', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(77, 'pl', 'Polish', 'Polski', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(78, 'ps', 'Pashto', 'پښتو', 1, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(79, 'pt', 'Portuguese', 'Português', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(80, 'qu', 'Quechua', 'Runa Simi', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(81, 'rn', 'Kirundi', 'Kirundi', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(82, 'ro', 'Romanian', 'Română', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(83, 'ru', 'Russian', 'Русский', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(84, 'rw', 'Rwandi', 'Kinyarwandi', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(85, 'sg', 'Sango', 'Sängö', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(86, 'si', 'Sinhalese', 'සිංහල', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(87, 'sk', 'Slovak', 'Slovenčina', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(88, 'sl', 'Slovenian', 'Slovenščina', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(89, 'sm', 'Samoan', 'Gagana Samoa', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(90, 'sn', 'Shona', 'chiShona', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(91, 'so', 'Somalia', 'Soomaaliga', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(92, 'sq', 'Albanian', 'Shqip', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(93, 'sr', 'Serbian', 'Српски', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(94, 'ss', 'Swati', 'SiSwati', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(95, 'st', 'Southern Sotho', 'Sesotho', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(96, 'sv', 'Swedish', 'Svenska', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(97, 'sw', 'Swahili', 'Kiswahili', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(98, 'ta', 'Tamil', 'தமிழ்', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(99, 'tg', 'Tajik', 'Тоҷикӣ', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(100, 'th', 'Thai', 'ไทย / Phasa Thai', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(101, 'ti', 'Tigrinya', 'ትግርኛ', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(102, 'tk', 'Turkmen', 'Туркмен /تركمن ', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(103, 'tn', 'Tswana', 'Setswana', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(104, 'to', 'Tonga', 'Lea Faka-Tonga', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(105, 'tr', 'Turkish', 'Türkçe', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(106, 'ts', 'Tsonga', 'Xitsonga', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(107, 'uk', 'Ukrainian', 'Українська', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(108, 'ur', 'Urdu', 'اردو', 1, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(109, 'uz', 'Uzbek', 'Ўзбек', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(110, 've', 'Venda', 'Tshivenḓa', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(111, 'vi', 'Vietnamese', 'Tiếng Việt', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(112, 'xh', 'Xhosa', 'isiXhosa', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(113, 'zh', 'Chinese', '中文', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1),
(114, 'zu', 'Zulu', 'isiZulu', 0, 0, 0, 0, '2025-04-25 11:22:59', '2025-04-25 11:22:59', 1, 1);

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

--
-- Table structure for table `late_in_out_reasons`
--

CREATE TABLE `late_in_out_reasons` (
  `id` bigint UNSIGNED NOT NULL,
  `attendance_id` bigint UNSIGNED NOT NULL,
  `type` enum('in','out') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'in' COMMENT 'in = late in reason out = late out reason',
  `reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `leave_requests`
--

CREATE TABLE `leave_requests` (
  `id` bigint UNSIGNED NOT NULL,
  `assign_leave_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `apply_date` date NOT NULL,
  `leave_from` date NOT NULL,
  `leave_to` date NOT NULL,
  `days` int NOT NULL,
  `reason` longtext COLLATE utf8mb4_unicode_ci,
  `substitute_id` bigint UNSIGNED DEFAULT NULL,
  `attachment_file_id` bigint UNSIGNED DEFAULT NULL,
  `image_url` text COLLATE utf8mb4_unicode_ci,
  `status_id` bigint UNSIGNED NOT NULL,
  `author_info_id` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `leave_request_details`
--

CREATE TABLE `leave_request_details` (
  `id` bigint UNSIGNED NOT NULL,
  `leave_request_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `is_approved` tinyint DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `leave_settings` (
  `id` bigint UNSIGNED NOT NULL,
  `sandwich_leave` tinyint(1) NOT NULL DEFAULT '0',
  `month` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1',
  `prorate_leave` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1',
  `status_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

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

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

INSERT INTO `leave_types` (`id`, `name`, `status_id`, `created_at`, `updated_at`, `deleted_at`, `company_id`, `branch_id`) VALUES
(1, 'Casual Leave', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(2, 'Sick Leave', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(3, 'Maternity Leave', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(4, 'Paternity Leave', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1),
(5, 'Leave Without Pay', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL, 1, 1);

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

--
-- Table structure for table `leave_years`
--

CREATE TABLE `leave_years` (
  `id` bigint UNSIGNED NOT NULL,
  `type_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED DEFAULT NULL,
  `department_id` bigint UNSIGNED DEFAULT NULL,
  `leave_days` int NOT NULL,
  `leave_available` int NOT NULL,
  `leave_used` int NOT NULL,
  `year` int NOT NULL,
  `status_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `location_binds`
--

CREATE TABLE `location_binds` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED DEFAULT NULL,
  `latitude` double DEFAULT NULL COMMENT 'latitude',
  `longitude` double DEFAULT NULL COMMENT 'longitude',
  `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'address',
  `distance` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `location_logs`
--

CREATE TABLE `location_logs` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `date` date DEFAULT NULL,
  `time` time DEFAULT NULL,
  `distance` double(10,2) DEFAULT NULL COMMENT 'in km',
  `latitude` double DEFAULT NULL COMMENT 'latitude',
  `longitude` double DEFAULT NULL COMMENT 'longitude',
  `speed` double DEFAULT NULL COMMENT 'speed',
  `heading` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'heading',
  `city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'city',
  `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'address',
  `countryCode` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'countryCode',
  `country` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 'Bangladesh' COMMENT 'country',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `meetings`
--

CREATE TABLE `meetings` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `location` text COLLATE utf8mb4_unicode_ci,
  `duration` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `start_at` time DEFAULT NULL,
  `end_at` time DEFAULT NULL,
  `attachment_file_id` bigint UNSIGNED DEFAULT NULL,
  `image_url` text COLLATE utf8mb4_unicode_ci,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1',
  `created_by` bigint UNSIGNED DEFAULT '1',
  `updated_by` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `meeting_members`
--

CREATE TABLE `meeting_members` (
  `id` bigint UNSIGNED NOT NULL,
  `meeting_id` int DEFAULT NULL,
  `user_id` int DEFAULT NULL,
  `is_present` tinyint NOT NULL DEFAULT '0',
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `meeting_participants`
--

CREATE TABLE `meeting_participants` (
  `id` bigint UNSIGNED NOT NULL,
  `participant_id` bigint UNSIGNED NOT NULL,
  `meeting_id` bigint UNSIGNED NOT NULL,
  `is_going` tinyint NOT NULL DEFAULT '0' COMMENT '0: Not going, 1: Going',
  `is_present` tinyint NOT NULL DEFAULT '0' COMMENT '0: Absent, 1: Present',
  `present_at` datetime DEFAULT NULL,
  `meeting_started_at` datetime DEFAULT NULL,
  `meeting_ended_at` datetime DEFAULT NULL,
  `meeting_duration` time DEFAULT NULL COMMENT 'Meeting duration in minutes',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `menus`
--

CREATE TABLE `menus` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `position` int DEFAULT NULL,
  `url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `all_content_id` int DEFAULT NULL,
  `type` int NOT NULL DEFAULT '1' COMMENT '1=menu,2=footer',
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `meta_information`
--

CREATE TABLE `meta_information` (
  `id` bigint UNSIGNED NOT NULL,
  `type` enum('all_shop','all_brand','all_search','login','registration','student_registration','affiliate_registration','be_a_seller','compare_list','add_to_cart','about_us','faqs','contact_us','careers','return_refund','support_policy','privacy_policy','terms_condition') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meta_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meta_description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meta_image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meta_keywords` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL,
  `updated_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `meta_information`
--

INSERT INTO `meta_information` (`id`, `type`, `meta_title`, `meta_description`, `meta_image`, `meta_keywords`, `created_by`, `updated_by`, `created_at`, `updated_at`, `company_id`, `branch_id`) VALUES
(1, 'all_shop', 'all_shop-title', 'all_shop-description', 'all_shop-image', 'all_shop-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1),
(2, 'all_brand', 'all_brand-title', 'all_brand-description', 'all_brand-image', 'all_brand-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1),
(3, 'all_search', 'all_search-title', 'all_search-description', 'all_search-image', 'all_search-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1),
(4, 'login', 'login-title', 'login-description', 'login-image', 'login-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1),
(5, 'registration', 'registration-title', 'registration-description', 'registration-image', 'registration-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1),
(6, 'student_registration', 'student_registration-title', 'student_registration-description', 'student_registration-image', 'student_registration-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1),
(7, 'affiliate_registration', 'affiliate_registration-title', 'affiliate_registration-description', 'affiliate_registration-image', 'affiliate_registration-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1),
(8, 'be_a_seller', 'be_a_seller-title', 'be_a_seller-description', 'be_a_seller-image', 'be_a_seller-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1),
(9, 'compare_list', 'compare_list-title', 'compare_list-description', 'compare_list-image', 'compare_list-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1),
(10, 'add_to_cart', 'add_to_cart-title', 'add_to_cart-description', 'add_to_cart-image', 'add_to_cart-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1),
(11, 'about_us', 'about_us-title', 'about_us-description', 'about_us-image', 'about_us-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1),
(12, 'faqs', 'faqs-title', 'faqs-description', 'faqs-image', 'faqs-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1),
(13, 'contact_us', 'contact_us-title', 'contact_us-description', 'contact_us-image', 'contact_us-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1),
(14, 'careers', 'careers-title', 'careers-description', 'careers-image', 'careers-keywors', NULL, NULL, '2025-04-25 11:22:58', '2025-04-25 11:22:58', 1, 1);

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

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

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

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

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2013_10_11_000000_create_countries_table', 1),
(2, '2014_01_11_000000_create_statuses_table', 1),
(3, '2014_10_11_000001_create_activity_log_table', 1),
(4, '2014_10_11_000001_create_branches_table', 1),
(5, '2014_10_11_000002_create_uploads_table', 1),
(6, '2014_10_11_000003_create_companies_table', 1),
(7, '2014_10_11_000004_create_roles_table', 1),
(8, '2014_10_11_000004_create_shifts_table', 1),
(9, '2014_10_11_000005_create_departments_table', 1),
(10, '2014_10_11_000005_create_designations_table', 1),
(11, '2014_10_12_000000_create_users_table', 1),
(12, '2014_10_12_000001_create_author_infos_table', 1),
(13, '2014_10_12_100000_create_password_resets_table', 1),
(14, '2018_08_08_100000_create_telescope_entries_table', 1),
(15, '2019_08_19_000000_create_failed_jobs_table', 1),
(16, '2019_09_15_000010_create_tenants_table', 1),
(17, '2019_09_15_000020_create_domains_table', 1),
(18, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(19, '2020_05_15_000010_create_tenant_user_impersonation_tokens_table', 1),
(20, '2020_06_01_130821_create_settings_table', 1),
(21, '2020_06_01_130822_create_permissions_table', 1),
(22, '2020_06_01_130824_create_role_users_table', 1),
(23, '2021_09_24_050720_create_bank_accounts_table', 1),
(24, '2021_09_25_070000_create_payment_types_table', 1),
(25, '2021_09_25_080345_create_categories_table', 1),
(26, '2021_10_31_121218_create_translations_table', 1),
(27, '2021_11_03_044301_create_social_identities_table', 1),
(28, '2021_11_14_070513_create_notifications_old_table', 1),
(29, '2021_11_14_070607_create_conversations_table', 1),
(30, '2022_01_05_105820_create_leave_types_table', 1),
(31, '2022_01_05_111318_create_assign_leaves_table', 1),
(32, '2022_01_05_112116_create_leave_requests_table', 1),
(33, '2022_01_23_165353_create_weekends_table', 1),
(34, '2022_01_23_165357_create_holidays_table', 1),
(35, '2022_01_26_104953_create_duty_schedules_table', 1),
(36, '2022_02_07_144952_create_attendances_table', 1),
(37, '2022_02_07_175133_create_leave_settings_table', 1),
(38, '2022_02_10_151245_create_late_in_out_reasons_table', 1),
(39, '2022_03_01_174425_create_company_configs_table', 1),
(40, '2022_03_02_170908_create_ip_setups_table', 1),
(41, '2022_03_05_000002_create_expense_categories_table', 1),
(42, '2022_03_05_050001_create_payment_methods_table', 1),
(43, '2022_03_05_060051_create_accounts_table', 1),
(44, '2022_03_05_060052_create_transactions_table', 1),
(45, '2022_03_05_061025_create_expenses_table', 1),
(46, '2022_03_05_061055_create_deposits_table', 1),
(47, '2022_03_05_100003_create_hrm_expenses_table', 1),
(48, '2022_03_05_100004_create_expense_claims_table', 1),
(49, '2022_03_05_100006_create_expense_claim_details_table', 1),
(50, '2022_03_05_100007_create_payment_histories_table', 1),
(51, '2022_03_05_100008_create_payment_history_details_table', 1),
(52, '2022_03_05_100009_create_payment_history_logs_table', 1),
(53, '2022_03_06_101527_create_visits_table', 1),
(54, '2022_03_06_103136_create_visit_images_table', 1),
(55, '2022_03_06_104118_create_visit_notes_table', 1),
(56, '2022_03_06_104139_create_visit_schedules_table', 1),
(57, '2022_03_09_174416_create_subscription_plans_table', 1),
(58, '2022_03_10_110216_create_app_screens_table', 1),
(59, '2022_03_10_114654_create_support_tickets_table', 1),
(60, '2022_03_10_131726_create_notices_table', 1),
(61, '2022_03_10_132017_create_notice_view_logs_table', 1),
(62, '2022_03_12_114157_create_appreciates_table', 1),
(63, '2022_03_13_104916_create_meetings_table', 1),
(64, '2022_03_13_112149_create_meeting_participants_table', 1),
(65, '2022_03_13_112853_create_appoinments_table', 1),
(66, '2022_03_13_112914_create_appoinment_participants_table', 1),
(67, '2022_03_13_113319_create_employee_tasks_table', 1),
(68, '2022_03_13_123151_create_employee_breaks_table', 1),
(69, '2022_03_15_131235_create_all_contents_table', 1),
(70, '2022_03_16_104248_create_contacts_table', 1),
(71, '2022_03_30_061715_create_features_table', 1),
(72, '2022_03_30_113900_create_testimonials_table', 1),
(73, '2022_03_31_140233_create_teams_table', 1),
(74, '2022_03_31_140552_create_team_members_table', 1),
(75, '2022_04_06_042459_create_sms_logs_table', 1),
(76, '2022_04_07_035721_create_user_devices_table', 1),
(77, '2022_04_07_044946_create_notification_types_table', 1),
(78, '2022_04_12_065957_create_ticket_replies_table', 1),
(79, '2022_05_16_071031_create_notifications_table', 1),
(80, '2022_05_17_062749_create_daily_leaves_table', 1),
(81, '2022_05_19_055538_create_notice_departments_table', 1),
(82, '2022_06_05_101104_create_meta_information_table', 1),
(83, '2022_06_09_093509_create_time_zones_table', 1),
(84, '2022_06_11_075042_create_date_formats_table', 1),
(85, '2022_06_12_080741_create_api_setups_table', 1),
(86, '2022_06_12_100839_create_currencies_table', 1),
(87, '2022_06_15_090457_create_advance_types_table', 1),
(88, '2022_06_15_130017_create_advance_salaries_table', 1),
(89, '2022_06_15_131620_create_advance_salary_logs_table', 1),
(90, '2022_06_16_115529_create_commissions_table', 1),
(91, '2022_06_16_122623_create_salary_setups_table', 1),
(92, '2022_06_16_122641_create_salary_setup_details_table', 1),
(93, '2022_06_16_122709_create_salary_generates_table', 1),
(94, '2022_06_16_122750_create_salary_payment_logs_table', 1),
(95, '2022_06_18_154114_create_languages_table', 1),
(96, '2022_06_18_155339_create_hrm_languages_table', 1),
(97, '2022_06_23_030258_create_location_logs_table', 1),
(98, '2022_06_25_080155_create_database_backups_table', 1),
(99, '2022_06_27_115744_create_meeting_setups_table', 1),
(100, '2022_06_27_121222_create_virtual_meetings_table', 1),
(101, '2022_06_27_121626_create_meeting_members_table', 1),
(102, '2022_06_27_123238_create_jitsi_meetings_table', 1),
(103, '2022_07_21_132450_create_location_binds_table', 1),
(104, '2022_07_25_160849_create_clients_table', 1),
(105, '2022_07_25_160850_create_goal_types_table', 1),
(106, '2022_07_25_160851_create_goals_table', 1),
(107, '2022_07_26_160617_create_projects_table', 1),
(108, '2022_07_26_160618_create_project_membars_table', 1),
(109, '2022_07_26_165806_create_discussions_table', 1),
(110, '2022_07_26_165807_create_discussion_comments_table', 1),
(111, '2022_07_26_165908_create_notes_table', 1),
(112, '2022_07_26_170007_create_project_files_table', 1),
(113, '2022_07_26_170008_create_project_file_comments_table', 1),
(114, '2022_07_26_170031_create_project_activities_table', 1),
(115, '2022_07_26_170205_create_project_payments_table', 1),
(116, '2022_08_01_140657_create_tasks_table', 1),
(117, '2022_08_01_140658_create_task_followers_table', 1),
(118, '2022_08_01_140658_create_task_members_table', 1),
(119, '2022_08_01_141239_create_task_discussions_table', 1),
(120, '2022_08_01_141255_create_task_discussion_comments_table', 1),
(121, '2022_08_01_141323_create_task_notes_table', 1),
(122, '2022_08_01_141341_create_task_files_table', 1),
(123, '2022_08_01_141401_create_task_file_comments_table', 1),
(124, '2022_08_01_142250_create_task_activities_table', 1),
(125, '2022_08_03_130453_create_award_types_table', 1),
(126, '2022_08_03_130519_create_awards_table', 1),
(127, '2022_08_04_101142_create_travel_types_table', 1),
(128, '2022_08_04_101522_create_travel_table', 1),
(129, '2022_08_04_161248_create_competence_types_table', 1),
(130, '2022_08_04_161249_create_competences_table', 1),
(131, '2022_08_04_161325_create_indicators_table', 1),
(132, '2022_08_04_161344_create_appraisals_table', 1),
(133, '2022_09_19_104223_create_services_table', 1),
(134, '2022_09_19_104344_create_portfolios_table', 1),
(135, '2022_09_19_112019_create_menus_table', 1),
(136, '2022_09_19_112527_create_home_pages_table', 1),
(137, '2023_02_23_133359_add_department_id_table_to_salary_generates', 1),
(138, '2023_02_23_181308_create_salary_sheet_reports_table', 1),
(139, '2023_06_06_134120_create_tenant_subscriptions_table', 1),
(140, '2023_06_15_105713_create_discussion_likes_table', 1),
(141, '2023_09_20_114428_create_expire_notifications_table', 1),
(142, '2023_09_21_155520_create_jobs_table', 1),
(143, '2024_01_16_173817_create_leave_years_table', 1),
(144, '2024_03_19_100657_add_attendance_method_to_users_table', 1),
(145, '2024_04_24_155221_create_user_shift_assigns_table', 1),
(146, '2024_04_26_153713_add_shift_id_attendance', 1),
(147, '2024_06_26_120750_create_brandings_table', 1),
(148, '2024_07_04_145307_create_activity_feeds_table', 1),
(149, '2024_09_03_161027_add_softdelete_to_companies_table', 1),
(150, '2025_01_09_115135_create_leave_request_details_table', 1),
(151, '2025_03_26_122305_add_is_seen_to_awards_table', 1),
(152, '2025_04_10_131117_create_user_ip_binds_table', 1),
(153, '2024_05_29_161937_create_break_types_table', 2),
(154, '2024_05_29_161940_create_user_breaks_table', 2),
(155, '2024_08_01_145209_create_break_settings_table', 2),
(156, '2024_07_11_180537_create_jm_notification_types_table', 3),
(157, '2024_07_11_180538_create_jm_message_templates_table', 3),
(158, '2024_07_11_180538_create_jm_notifications_table', 3),
(159, '2024_07_11_180538_create_jm_user_preferences_table', 3),
(160, '2024_07_11_180539_create_jm_notification_logs_table', 3),
(161, '2024_06_24_150808_create_duty_calendars_table', 4),
(162, '2024_06_24_155719_add_duty_schedules_to_users_table', 4),
(163, '2024_06_26_162552_create_duductions_table', 4),
(164, '2024_09_19_130540_create_travel_types_table', 5),
(165, '2024_09_19_130546_create_travel_plans_table', 5),
(166, '2024_09_19_130629_create_travel_meetings_table', 5),
(167, '2024_09_19_130643_create_travel_expenses_table', 5),
(168, '2024_09_19_130659_create_travel_expense_logs_table', 5),
(169, '2024_09_19_130811_create_travel_workflows_table', 5);

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

--
-- Table structure for table `notes`
--

CREATE TABLE `notes` (
  `id` bigint UNSIGNED NOT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `show_to_customer` bigint UNSIGNED NOT NULL DEFAULT '22',
  `project_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `status_id` bigint 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 UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `notices` (
  `id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `department_id` bigint UNSIGNED DEFAULT NULL,
  `attachment_file_id` bigint UNSIGNED DEFAULT NULL,
  `subject` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `notice_departments`
--

CREATE TABLE `notice_departments` (
  `id` bigint UNSIGNED NOT NULL,
  `department_id` bigint UNSIGNED DEFAULT '1',
  `noticeable_id` bigint UNSIGNED NOT NULL,
  `noticeable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `notice_view_logs`
--

CREATE TABLE `notice_view_logs` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `notice_id` bigint UNSIGNED NOT NULL,
  `is_view` tinyint DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `notifications` (
  `id` bigint UNSIGNED NOT NULL,
  `sender_id` bigint UNSIGNED DEFAULT NULL,
  `receiver_id` bigint UNSIGNED DEFAULT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `message` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `image_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `notifiable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `notifiable_id` bigint UNSIGNED NOT NULL,
  `data` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `read_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `notification_for` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `id_for` bigint DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `notifications_old`
--

CREATE TABLE `notifications_old` (
  `id` bigint UNSIGNED NOT NULL,
  `sender_id` bigint UNSIGNED NOT NULL,
  `receiver_id` bigint UNSIGNED DEFAULT NULL,
  `type` enum('notification','message') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'notification' COMMENT 'notification: notification, message: message',
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `message` text COLLATE utf8mb4_unicode_ci,
  `image_id` bigint UNSIGNED DEFAULT NULL,
  `read_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `notification_types`
--

CREATE TABLE `notification_types` (
  `id` bigint UNSIGNED NOT NULL,
  `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `icon` bigint UNSIGNED DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint 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 `payment_histories`
--

CREATE TABLE `payment_histories` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `expense_claim_id` bigint UNSIGNED NOT NULL,
  `code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'invoice number',
  `payment_date` date DEFAULT NULL COMMENT 'date of payment',
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'remarks of payment',
  `payable_amount` double(10,2) DEFAULT NULL COMMENT 'amount of payment',
  `paid_amount` double(10,2) DEFAULT NULL COMMENT 'paid amount of payment',
  `due_amount` double(10,2) DEFAULT NULL COMMENT 'due amount of payment',
  `attachment_file_id` bigint UNSIGNED DEFAULT NULL,
  `payment_status_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `payment_history_details`
--

CREATE TABLE `payment_history_details` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `payment_history_id` bigint UNSIGNED NOT NULL,
  `payment_method_id` bigint UNSIGNED NOT NULL,
  `payment_details` longtext COLLATE utf8mb4_unicode_ci COMMENT 'remarks of payment',
  `payment_status_id` bigint UNSIGNED NOT NULL,
  `payment_date` date DEFAULT NULL COMMENT 'date of payment',
  `paid_by_id` bigint UNSIGNED DEFAULT NULL,
  `bank_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'bank name',
  `bank_branch` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'bank branch',
  `bank_account_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'bank account number',
  `bank_account_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'bank account name',
  `bank_transaction_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'bank transaction number',
  `bank_transaction_date` date DEFAULT NULL COMMENT 'bank transaction date',
  `bank_transaction_ref` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'bank transaction ref',
  `cheque_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'cheque number',
  `cheque_date` date DEFAULT NULL COMMENT 'cheque date',
  `cheque_bank_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'cheque bank name',
  `cheque_branch` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'cheque branch',
  `cheque_ref` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'cheque ref',
  `cash_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'cash number',
  `cash_date` date DEFAULT NULL COMMENT 'cash date',
  `cash_ref` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'cash ref',
  `paid_amount` double(15,2) NOT NULL DEFAULT '0.00',
  `due_amount` double(15,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `payment_history_logs`
--

CREATE TABLE `payment_history_logs` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `payment_history_id` bigint UNSIGNED NOT NULL,
  `expense_claim_id` bigint UNSIGNED NOT NULL,
  `payable_amount` double(10,2) DEFAULT NULL COMMENT 'amount of payment',
  `paid_amount` double(10,2) DEFAULT NULL COMMENT 'paid amount of payment',
  `due_amount` double(10,2) DEFAULT NULL COMMENT 'due amount of payment',
  `date` date DEFAULT NULL,
  `paid_by_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `payment_methods`
--

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

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

--
-- Table structure for table `payment_types`
--

CREATE TABLE `payment_types` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` int NOT NULL DEFAULT '1' COMMENT '1 - cash, 2 - credit card, 3 - debit card, 4 - bank',
  `status_id` bigint UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `permissions` (
  `id` bigint UNSIGNED NOT NULL,
  `attribute` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `menu_order` int NOT NULL DEFAULT '1',
  `keywords` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `permissions` (`id`, `attribute`, `menu_order`, `keywords`, `created_at`, `updated_at`) VALUES
(1, 'employee', 2, '{\"employee_\":{\"employee_menu\":{\"employee_menu\":\"employee_menu\"},\"department\":{\"read\":\"department_read\",\"create\":\"department_create\",\"update\":\"department_update\",\"delete\":\"department_delete\"},\"designation\":{\"read\":\"designation_read\",\"create\":\"designation_create\",\"update\":\"designation_update\",\"delete\":\"designation_delete\"},\"role\":{\"read\":\"role_read\",\"create\":\"role_create\",\"update\":\"role_update\",\"delete\":\"role_delete\"},\"employee\":{\"read\":\"user_read\",\"create\":\"user_create\",\"update\":\"user_update\",\"profile_read\":\"profile_read\",\"profile_update\":\"profile_update\",\"delete\":\"user_delete\",\"user_permission\":\"user_permission_update\",\"user_banned\":\"user_banned\",\"user_unbanned\":\"user_unbanned\",\"user_restore\":\"user_restore\",\"make_hr\":\"make_hr\",\"profile_image_view\":\"profile_image_view\",\"password_reset_mail\":\"password_reset_mail\",\"password_update\":\"password_update\",\"bulk_upload_menu\":\"bulk_upload_menu\",\"bulk_upload\":\"bulk_upload\"},\"performance\":{\"read\":\"performance_read\",\"create\":\"performance_create\",\"update\":\"performance_update\",\"delete\":\"performance_delete\"}},\"official_document\":{\"official_document_menu\":{\"official_document_menu\":\"official_document_menu\"},\"official_document_type\":{\"read\":\"official_document_type_read\",\"create\":\"official_document_type_create\",\"update\":\"official_document_type_update\",\"delete\":\"official_document_type_delete\"},\"official_document_request\":{\"read\":\"official_document_request_read\",\"create\":\"official_document_request_create\",\"update\":\"official_document_request_update\",\"delete\":\"official_document_request_delete\"}},\"write_up\":{\"write_up_menu\":{\"write_up_menu\":\"write_up_menu\"},\"complain\":{\"read\":\"complain_read\",\"create\":\"complain_create\",\"update\":\"complain_update\",\"delete\":\"complain_delete\"},\"verbal_warning\":{\"read\":\"verbal_warning_read\",\"create\":\"verbal_warning_create\",\"update\":\"verbal_warning_update\",\"delete\":\"verbal_warning_delete\"}}}', '2025-04-25 11:23:02', '2025-04-25 11:23:02'),
(2, 'attendance', 3, '{\"attendance_\":{\"attendance_menu\":{\"attendance_menu\":\"attendance_menu\"},\"attendance\":{\"read\":\"attendance_read\",\"create\":\"attendance_create\",\"update\":\"attendance_update\",\"delete\":\"attendance_delete\"}},\"setting\":{\"attendance_setting_menu\":{\"attendance_setting_menu\":\"attendance_setting_menu\"},\"weekend\":{\"read\":\"weekend_read\",\"update\":\"weekend_update\"},\"holiday\":{\"read\":\"holiday_read\",\"create\":\"holiday_create\",\"update\":\"holiday_update\",\"delete\":\"holiday_delete\"},\"shift\":{\"read\":\"shift_read\",\"create\":\"shift_create\",\"update\":\"shift_update\",\"delete\":\"shift_delete\"},\"schedule\":{\"read\":\"schedule_read\",\"create\":\"schedule_create\",\"update\":\"schedule_update\",\"delete\":\"schedule_delete\"},\"duty_calendar\":{\"read\":\"duty_calendar_read\",\"create\":\"duty_calendar_create\",\"update\":\"duty_calendar_update\"},\"ip_wishlist\":{\"read\":\"ip_read\",\"create\":\"ip_create\",\"update\":\"ip_update\",\"delete\":\"ip_delete\"},\"location\":{\"read\":\"location_read\",\"create\":\"location_create\",\"update\":\"location_update\",\"delete\":\"location_delete\"}},\"break\":{\"break_menu\":{\"break_menu\":\"break_menu\"},\"break_type\":{\"read\":\"break_type_read\",\"create\":\"break_type_create\",\"update\":\"break_type_update\",\"delete\":\"break_type_delete\"},\"break\":{\"read\":\"break_read\",\"create\":\"break_create\",\"update\":\"break_update\",\"qr_code\":\"generate_qr_code\"}}}', '2025-04-25 11:23:02', '2025-04-25 11:23:02'),
(3, 'leave', 5, '{\"leave\":{\"leave_menu\":{\"leave_menu\":\"leave_menu\"},\"leave_type\":{\"read\":\"leave_type_read\",\"create\":\"leave_type_create\",\"update\":\"leave_type_update\",\"delete\":\"leave_type_delete\"},\"leave_assign\":{\"read\":\"leave_assign_read\",\"create\":\"leave_assign_create\",\"update\":\"leave_assign_update\",\"delete\":\"leave_assign_delete\"},\"leave_request\":{\"read\":\"leave_request_read\",\"create\":\"leave_request_create\",\"update\":\"leave_request_update\",\"delete\":\"leave_request_delete\",\"approve\":\"leave_request_approve\",\"reject\":\"leave_request_reject\",\"refer\":\"leave_request_refer\"},\"leave_balance\":{\"read\":\"leave_balance_read\",\"create\":\"leave_balance_create\",\"update\":\"leave_balance_update\",\"delete\":\"leave_balance_delete\"}}}', '2025-04-25 11:23:02', '2025-04-25 11:23:02'),
(4, 'payroll', 6, '{\"payroll\":{\"payroll_menu\":{\"payroll_menu\":\"payroll_menu\"},\"commission\":{\"read\":\"commission_read\",\"create\":\"commission_create\",\"update\":\"commission_update\",\"delete\":\"commission_delete\"},\"setup\":{\"read\":\"setup_read\",\"set_contract\":\"set_contract\",\"set_commission\":\"set_commission\"},\"advance_type\":{\"read\":\"advance_type_read\",\"create\":\"advance_type_create\",\"update\":\"advance_type_update\",\"delete\":\"advance_type_delete\"},\"advance\":{\"read\":\"advance_read\",\"create\":\"advance_create\",\"update\":\"advance_update\",\"delete\":\"advance_delete\",\"approved\":\"advance_approved\",\"pay\":\"advance_pay\"},\"deduction_generate\":{\"read\":\"deduction_generate_read\",\"create\":\"deduction_generate_create\",\"update\":\"deduction_generate_update\"},\"salary_generate\":{\"read\":\"salary_read\",\"create\":\"salary_create\",\"update\":\"salary_update\",\"delete\":\"salary_delete\",\"calculate\":\"salary_calculate\",\"payslip\":\"salary_payslip\"}}}', '2025-04-25 11:23:02', '2025-04-25 11:23:02'),
(5, 'communication', 7, '{\"communication\":{\"communication_menu\":{\"communication_menu\":\"communication_menu\"},\"conference\":{\"read\":\"conference_read\",\"create\":\"conference_create\",\"update\":\"conference_update\",\"delete\":\"conference_delete\"},\"meeting\":{\"read\":\"meeting_read\",\"create\":\"meeting_create\",\"update\":\"meeting_update\",\"delete\":\"meeting_delete\"},\"appointment\":{\"read\":\"appointment_read\",\"create\":\"appointment_create\",\"update\":\"appointment_update\",\"delete\":\"appointment_delete\",\"approve\":\"appointment_approve\",\"reject\":\"appointment_reject\"},\"notice\":{\"read\":\"notice_read\",\"create\":\"notice_create\",\"update\":\"notice_update\",\"delete\":\"notice_delete\"},\"bulletin\":{\"read\":\"bulletin_read\",\"create\":\"bulletin_create\",\"update\":\"bulletin_update\",\"delete\":\"bulletin_delete\"}}}', '2025-04-25 11:23:02', '2025-04-25 11:23:02'),
(6, 'office_work', 8, '{\"office_work\":{\"office_work_menu\":{\"office_work_menu\":\"office_work_menu\"},\"client\":{\"read\":\"client_read\",\"create\":\"client_create\",\"update\":\"client_update\",\"delete\":\"client_delete\"},\"project\":{\"read\":\"project_read\",\"create\":\"project_create\",\"update\":\"project_update\",\"delete\":\"project_delete\",\"project_member_read\":\"project_member_read\",\"project_member_delete\":\"project_member_delete\",\"project_complete\":\"project_complete\",\"project_payment\":\"project_payment\",\"project_activity_read\":\"project_activity_read\"},\"project_file\":{\"read\":\"project_file_read\",\"create\":\"project_file_create\",\"update\":\"project_file_update\",\"delete\":\"project_file_delete\",\"comment\":\"project_file_comment\"},\"project_discussion\":{\"read\":\"project_discussion_read\",\"create\":\"project_discussion_create\",\"update\":\"project_discussion_update\",\"delete\":\"project_discussion_delete\",\"comment\":\"project_discussion_comment\"},\"project_note\":{\"read\":\"project_note_read\",\"create\":\"project_note_create\",\"update\":\"project_note_update\",\"delete\":\"project_note_delete\"},\"task\":{\"read\":\"task_read\",\"create\":\"task_create\",\"update\":\"task_update\",\"delete\":\"task_delete\",\"task_activity\":\"task_activity_read\",\"task_assign\":\"task_assign_read\",\"task_assign_delete\":\"task_assign_delete\",\"task_complete\":\"task_complete\",\"task_member\":\"task_member_read\"},\"task_discussion\":{\"read\":\"task_discussion_read\",\"create\":\"task_discussion_create\",\"update\":\"task_discussion_update\",\"delete\":\"task_discussion_delete\",\"comment\":\"task_discussion_comment\"},\"task_file\":{\"read\":\"task_file_read\",\"create\":\"task_file_create\",\"update\":\"task_file_update\",\"delete\":\"task_file_delete\",\"comment\":\"task_file_comment\"},\"task_note\":{\"read\":\"task_note_read\",\"create\":\"task_note_create\",\"update\":\"task_note_update\",\"delete\":\"task_note_delete\"},\"visit\":{\"read\":\"visit_read\",\"update\":\"visit_update\"},\"contact\":{\"read\":\"contact_read\",\"create\":\"contact_create\"},\"support_ticket\":{\"read\":\"support_ticket_read\",\"create\":\"support_ticket_create\",\"reply\":\"support_ticket_reply\",\"delete\":\"support_ticket_delete\"}},\"travels\":{\"travel_menu\":{\"travel_menu\":\"travel_menu\"},\"travel_plan\":{\"read\":\"travel_plan_read\",\"create\":\"travel_plan_create\",\"update\":\"travel_plan_update\",\"delete\":\"travel_plan_delete\",\"approve\":\"travel_plan_approve\",\"reject\":\"travel_plan_reject\"},\"travel_meeting\":{\"read\":\"travel_meeting_read\",\"create\":\"travel_meeting_create\",\"update\":\"travel_meeting_update\",\"delete\":\"travel_meeting_delete\"},\"travel_expense\":{\"read\":\"travel_expense_read\",\"create\":\"travel_expense_create\",\"update\":\"travel_expense_update\",\"delete\":\"travel_expense_delete\",\"approved\":\"travel_expense_approve\"},\"travel_workflow\":{\"read\":\"travel_workflow_read\",\"create\":\"travel_workflow_create\",\"update\":\"travel_workflow_update\",\"delete\":\"travel_workflow_delete\",\"approve\":\"travel_workflow_approve\"}},\"awards\":{\"awards_menu\":{\"award_menu\":\"award_menu\"},\"award_type\":{\"read\":\"award_type_read\",\"create\":\"award_type_create\",\"update\":\"award_type_update\",\"delete\":\"award_type_delete\"},\"award\":{\"read\":\"award_read\",\"create\":\"award_create\",\"update\":\"award_update\",\"delete\":\"award_delete\"}}}', '2025-04-25 11:23:02', '2025-04-25 11:23:02'),
(7, 'report', 9, '{\"report_\":{\"report_menu\":{\"report_menu\":\"report_menu\"},\"report\":{\"live_tracking\":\"live_tracking_read\",\"location_timeline\":\"location_timeline_read\",\"attendance_report\":\"attendance_report_read\",\"leave_report\":\"leave_report_read\",\"payment_report\":\"payment_report_read\",\"visit_report\":\"visit_report_read\",\"location_history\":\"location_history_read\"}}}', '2025-04-25 11:23:02', '2025-04-25 11:23:02'),
(8, 'account', 10, '{\"account_\":{\"account_menu\":{\"account_menu\":\"account_menu\"},\"account\":{\"read\":\"account_read\",\"create\":\"account_create\",\"update\":\"account_update\",\"delete\":\"account_delete\"},\"deposit\":{\"read\":\"deposit_read\",\"create\":\"deposit_create\",\"update\":\"deposit_update\",\"delete\":\"deposit_delete\"},\"expense\":{\"read\":\"expense_read\",\"create\":\"expense_create\",\"update\":\"expense_update\",\"delete\":\"expense_delete\",\"approve\":\"expense_approve\",\"pay\":\"expense_pay\"},\"transaction\":{\"read\":\"transaction_read\",\"update\":\"transaction_update\",\"delete\":\"transaction_delete\"}},\"account_setting\":{\"account_setting_menu\":{\"account_setting_menu\":\"account_setting_menu\"},\"deposit_category\":{\"read\":\"deposit_category_read\",\"create\":\"deposit_category_create\",\"update\":\"deposit_category_update\",\"delete\":\"deposit_category_delete\"},\"expense_category\":{\"read\":\"expense_category_read\"},\"payment_method\":{\"read\":\"payment_method_read\",\"create\":\"payment_method_create\",\"update\":\"payment_method_update\",\"delete\":\"payment_method_delete\"}}}', '2025-04-25 11:23:02', '2025-04-25 11:23:02'),
(9, 'setting', 11, '{\"setting\":{\"setting_menu\":{\"setting_menu\":\"setting_menu\"},\"general_setting\":{\"general_settings_read\":\"general_settings_read\",\"general_settings_update\":\"general_settings_update\",\"email_setup_read\":\"email_setup_read\",\"email_setup_update\":\"email_setup_update\",\"firebase_setup_read\":\"firebase_setup_read\",\"firebase_setup_update\":\"firebase_setup_update\",\"geocoding_setup_read\":\"geocoding_setup_read\",\"geocoding_setup_update\":\"geocoding_setup_update\",\"pusher_setup_read\":\"pusher_setup_read\",\"pusher_setup_update\":\"pusher_setup_update\",\"storage_setup_read\":\"storage_setup_read\",\"storage_setup_update\":\"storage_setup_update\",\"database_backup\":\"database_backup\",\"about_system_read\":\"about_system_read\",\"app_theme_setup_read\":\"app_theme_setup_read\",\"app_theme_setup_update\":\"app_theme_setup_update\",\"app_setting\":\"app_screen_setting\",\"user_device_read\":\"user_device_read\",\"reset_device\":\"reset_device\"},\"content\":{\"read\":\"content_read\",\"update\":\"content_update\"},\"currency\":{\"read\":\"currency_read\",\"create\":\"currency_create\",\"update\":\"currency_update\",\"delete\":\"currency_delete\"},\"language\":{\"read\":\"language_read\",\"create\":\"language_create\",\"update\":\"language_update\",\"delete\":\"language_delete\",\"setup\":\"language_setup\",\"make_default\":\"language_make_default\"},\"branch\":{\"read\":\"branch_read\",\"create\":\"branch_create\",\"update\":\"branch_update\",\"delete\":\"branch_delete\"},\"configuration\":{\"configuration_read\":\"configuration_read\",\"configuration_update\":\"configuration_update\"},\"activation\":{\"activation_read\":\"activation_read\",\"activation_update\":\"activation_update\"},\"branding\":{\"read\":\"branding_read\",\"update\":\"branding_update\"}}}', '2025-04-25 11:23:02', '2025-04-25 11:23:02'),
(10, 'profile', 12, '{\"profile_\":{\"profile_menus\":{\"attendance_profile\":\"attendance_profile\",\"contract_profile\":\"contract_profile\",\"notice_profile\":\"notice_profile\",\"leave_request_profile\":\"leave_request_profile\",\"visit_profile\":\"visit_profile\",\"phonebook_profile\":\"phonebook_profile\",\"appointment_profile\":\"appointment_profile\",\"support_ticket_profile\":\"support_ticket_profile\",\"advance_profile\":\"advance_profile\",\"commission_profile\":\"commission_profile\",\"salary_profile\":\"salary_profile\",\"project_profile\":\"project_profile\",\"task_profile\":\"task_profile\",\"award_profile\":\"award_profile\",\"travel_profile\":\"travel_profile\"}}}', '2025-04-25 11:23:02', '2025-04-25 11:23:02');

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

--
-- Table structure for table `portfolios`
--

CREATE TABLE `portfolios` (
  `id` bigint UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci,
  `url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `attachment` bigint UNSIGNED DEFAULT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `projects`
--

CREATE TABLE `projects` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `invoice` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `client_id` bigint UNSIGNED NOT NULL,
  `date` date DEFAULT NULL,
  `progress_from_tasks` int DEFAULT '1',
  `progress` int DEFAULT '0',
  `billing_type` enum('hourly','fixed') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `per_rate` double(16,2) DEFAULT NULL,
  `total_rate` double(16,2) DEFAULT NULL,
  `estimated_hour` double(16,2) DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '24',
  `priority` bigint UNSIGNED NOT NULL DEFAULT '24',
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `payment` bigint UNSIGNED NOT NULL DEFAULT '9',
  `amount` double(16,2) DEFAULT NULL,
  `paid` double(16,2) NOT NULL DEFAULT '0.00',
  `due` double(16,2) NOT NULL DEFAULT '0.00',
  `created_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `notify_all_users` tinyint NOT NULL DEFAULT '0' COMMENT '0=no,1=yes',
  `notify_all_users_email` tinyint NOT NULL DEFAULT '0' COMMENT '0=no,1=yes',
  `goal_id` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `project_activities`
--

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

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

--
-- Table structure for table `project_files`
--

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

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

--
-- Table structure for table `project_file_comments`
--

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

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

--
-- Table structure for table `project_membars`
--

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

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

--
-- Table structure for table `project_payments`
--

CREATE TABLE `project_payments` (
  `id` bigint UNSIGNED NOT NULL,
  `amount` double(16,2) NOT NULL,
  `due_amount` double(16,2) DEFAULT NULL,
  `project_id` bigint UNSIGNED NOT NULL,
  `transaction_id` bigint UNSIGNED DEFAULT NULL,
  `payment_method_id` bigint UNSIGNED DEFAULT NULL,
  `paid_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `updated_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `payment_note` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `roles` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `permissions` longtext COLLATE utf8mb4_unicode_ci,
  `upper_roles` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1',
  `app_login` tinyint(1) DEFAULT '1',
  `web_login` tinyint(1) DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `roles` (`id`, `name`, `slug`, `permissions`, `upper_roles`, `status_id`, `company_id`, `branch_id`, `app_login`, `web_login`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Super admin', 'superadmin', '[\"employee_menu\",\"department_read\",\"department_create\",\"department_update\",\"department_delete\",\"designation_read\",\"designation_create\",\"designation_update\",\"designation_delete\",\"role_read\",\"role_create\",\"role_update\",\"role_delete\",\"user_read\",\"user_create\",\"user_update\",\"user_delete\",\"profile_read\",\"profile_update\",\"make_hr\",\"user_permission_update\",\"user_banned\",\"user_unbanned\",\"user_restore\",\"password_reset_mail\",\"password_update\",\"profile_image_view\",\"official_document_menu\",\"official_document_type_read\",\"official_document_type_create\",\"official_document_type_update\",\"official_document_type_delete\",\"official_document_request_read\",\"official_document_request_create\",\"official_document_request_update\",\"official_document_request_delete\",\"write_up_menu\",\"complain_read\",\"complain_create\",\"complain_update\",\"complain_delete\",\"verbal_warning_read\",\"verbal_warning_create\",\"verbal_warning_update\",\"verbal_warning_delete\",\"performance_read\",\"performance_create\",\"performance_update\",\"performance_delete\",\"attendance_menu\",\"attendance_setting_menu\",\"weekend_read\",\"weekend_update\",\"holiday_read\",\"holiday_create\",\"holiday_update\",\"holiday_delete\",\"shift_read\",\"shift_create\",\"shift_update\",\"shift_delete\",\"schedule_read\",\"schedule_create\",\"schedule_update\",\"schedule_delete\",\"duty_calendar_read\",\"duty_calendar_create\",\"duty_calendar_update\",\"ip_read\",\"ip_create\",\"ip_update\",\"ip_delete\",\"location_read\",\"location_create\",\"location_update\",\"location_delete\",\"attendance_read\",\"attendance_create\",\"attendance_update\",\"attendance_delete\",\"break_menu\",\"break_type_read\",\"break_type_create\",\"break_type_update\",\"break_type_delete\",\"break_read\",\"break_create\",\"break_update\",\"generate_qr_code\",\"leave_menu\",\"leave_type_read\",\"leave_type_create\",\"leave_type_update\",\"leave_type_delete\",\"leave_assign_read\",\"leave_assign_create\",\"leave_assign_update\",\"leave_assign_delete\",\"leave_request_read\",\"leave_request_create\",\"leave_request_update\",\"leave_request_delete\",\"leave_request_approve\",\"leave_request_reject\",\"leave_request_refer\",\"leave_balance_read\",\"leave_balance_create\",\"leave_balance_update\",\"leave_balance_delete\",\"payroll_menu\",\"commission_read\",\"commission_create\",\"commission_update\",\"commission_delete\",\"setup_read\",\"set_contract\",\"set_commission\",\"advance_type_read\",\"advance_type_create\",\"advance_type_update\",\"advance_type_delete\",\"advance_read\",\"advance_create\",\"advance_update\",\"advance_delete\",\"advance_approved\",\"advance_pay\",\"salary_read\",\"salary_create\",\"salary_update\",\"salary_delete\",\"salary_calculate\",\"salary_pay\",\"salary_payslip\",\"communication_menu\",\"conference_read\",\"conference_create\",\"conference_update\",\"conference_delete\",\"meeting_read\",\"meeting_create\",\"meeting_update\",\"meeting_delete\",\"appointment_read\",\"appointment_create\",\"appointment_update\",\"appointment_delete\",\"appointment_approve\",\"appointment_reject\",\"notice_read\",\"notice_create\",\"notice_update\",\"notice_delete\",\"bulletin_read\",\"bulletin_create\",\"bulletin_update\",\"bulletin_delete\",\"office_work_menu\",\"client_read\",\"client_create\",\"client_update\",\"client_delete\",\"project_read\",\"project_create\",\"project_update\",\"project_delete\",\"project_member_read\",\"project_member_delete\",\"project_complete\",\"project_payment\",\"project_activity_read\",\"project_file_read\",\"project_file_create\",\"project_file_update\",\"project_file_delete\",\"project_file_comment\",\"project_discussion_read\",\"project_discussion_create\",\"project_discussion_update\",\"project_discussion_delete\",\"project_discussion_comment\",\"project_note_read\",\"project_note_create\",\"project_note_update\",\"project_note_delete\",\"task_read\",\"task_create\",\"task_update\",\"task_delete\",\"task_activity_read\",\"task_assign_read\",\"task_assign_delete\",\"task_complete\",\"task_member_read\",\"task_discussion_read\",\"task_discussion_create\",\"task_discussion_update\",\"task_discussion_delete\",\"task_discussion_comment\",\"task_note_read\",\"task_note_create\",\"task_note_update\",\"task_note_delete\",\"task_file_read\",\"task_file_create\",\"task_file_update\",\"task_file_delete\",\"task_file_comment\",\"travel_menu\",\"travel_plan_read\",\"travel_plan_create\",\"travel_plan_update\",\"travel_plan_delete\",\"travel_plan_approve\",\"travel_plan_reject\",\"travel_meeting_read\",\"travel_meeting_create\",\"travel_meeting_update\",\"travel_meeting_delete\",\"travel_expense_read\",\"travel_expense_create\",\"travel_expense_update\",\"travel_expense_delete\",\"travel_expense_approve\",\"travel_workflow_read\",\"travel_workflow_create\",\"travel_workflow_update\",\"travel_workflow_delete\",\"travel_workflow_approve\",\"award_menu\",\"award_type_read\",\"award_type_create\",\"award_type_update\",\"award_type_delete\",\"award_read\",\"award_create\",\"award_update\",\"award_delete\",\"visit_read\",\"visit_update\",\"report_menu\",\"live_tracking_read\",\"location_history_read\",\"location_timeline_read\",\"attendance_report_read\",\"payment_report_read\",\"visit_report_read\",\"leave_report_read\",\"account_menu\",\"account_setting_menu\",\"account_read\",\"account_create\",\"account_update\",\"account_delete\",\"deposit_read\",\"deposit_create\",\"deposit_update\",\"deposit_delete\",\"expense_read\",\"expense_create\",\"expense_update\",\"expense_delete\",\"expense_approve\",\"expense_pay\",\"transaction_read\",\"transaction_update\",\"transaction_delete\",\"deposit_category_read\",\"deposit_category_create\",\"deposit_category_update\",\"deposit_category_delete\",\"expense_category_read\",\"payment_method_read\",\"payment_method_create\",\"payment_method_update\",\"payment_method_delete\",\"setting_menu\",\"general_settings_read\",\"general_settings_update\",\"email_setup_read\",\"email_setup_update\",\"firebase_setup_read\",\"firebase_setup_update\",\"geocoding_setup_read\",\"geocoding_setup_update\",\"pusher_setup_read\",\"pusher_setup_update\",\"storage_setup_read\",\"storage_setup_update\",\"database_backup\",\"about_system_read\",\"app_theme_setup_read\",\"app_theme_setup_update\",\"app_screen_setting\",\"user_device_read\",\"reset_device\",\"currency_read\",\"currency_create\",\"currency_update\",\"currency_delete\",\"language_read\",\"language_create\",\"language_update\",\"language_delete\",\"language_setup\",\"language_make_default\",\"branch_read\",\"branch_create\",\"branch_update\",\"branch_delete\",\"configuration_read\",\"configuration_update\",\"activation_read\",\"activation_update\",\"branding_read\",\"branding_update\",\"contract_profile\",\"attendance_profile\",\"notice_profile\",\"leave_request_profile\",\"visit_profile\",\"phonebook_profile\",\"appointment_profile\",\"support_ticket_profile\",\"advance_profile\",\"commission_profile\",\"salary_profile\",\"project_profile\",\"task_profile\",\"award_profile\",\"travel_profile\",\"tardy_menu\",\"tardy_group_read\",\"tardy_group_create\",\"tardy_group_update\",\"tardy_group_delete\",\"tardy_rule_read\",\"tardy_rule_create\",\"tardy_rule_update\",\"tardy_rule_delete\",\"tardy_rule_assign_read\",\"tardy_rule_assign_create\",\"tardy_rule_assign_update\",\"tardy_rule_assign_delete\",\"tardy_record_read\",\"tardy_record_create\",\"tardy_record_update\",\"tardy_record_delete\",\"tardy_request_read\",\"tardy_request_create\",\"tardy_request_update\",\"tardy_request_delete\",\"tardy_request_approve\",\"tardy_request_reject\",\"duty_calendar_read\",\"duty_calendar_create\",\"duty_calendar_update\",\"deduction_generate_read\",\"deduction_generate_create\",\"deduction_generate_update\"]', NULL, 1, 1, 1, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL),
(2, 'Admin', 'admin', '[\"employee_menu\",\"department_read\",\"department_create\",\"department_update\",\"department_delete\",\"designation_read\",\"designation_create\",\"designation_update\",\"designation_delete\",\"role_read\",\"role_create\",\"role_update\",\"role_delete\",\"user_read\",\"user_create\",\"user_update\",\"user_delete\",\"profile_read\",\"profile_update\",\"make_hr\",\"user_permission_update\",\"user_banned\",\"user_unbanned\",\"user_restore\",\"password_reset_mail\",\"password_update\",\"profile_image_view\",\"official_document_menu\",\"official_document_type_read\",\"official_document_type_create\",\"official_document_type_update\",\"official_document_type_delete\",\"official_document_request_read\",\"official_document_request_create\",\"official_document_request_update\",\"official_document_request_delete\",\"write_up_menu\",\"complain_read\",\"complain_create\",\"complain_update\",\"complain_delete\",\"verbal_warning_read\",\"verbal_warning_create\",\"verbal_warning_update\",\"verbal_warning_delete\",\"performance_read\",\"performance_create\",\"performance_update\",\"performance_delete\",\"attendance_menu\",\"attendance_setting_menu\",\"weekend_read\",\"weekend_update\",\"holiday_read\",\"holiday_create\",\"holiday_update\",\"holiday_delete\",\"shift_read\",\"shift_create\",\"shift_update\",\"shift_delete\",\"schedule_read\",\"schedule_create\",\"schedule_update\",\"schedule_delete\",\"duty_calendar_read\",\"duty_calendar_create\",\"duty_calendar_update\",\"ip_read\",\"ip_create\",\"ip_update\",\"ip_delete\",\"location_read\",\"location_create\",\"location_update\",\"location_delete\",\"attendance_read\",\"attendance_create\",\"attendance_update\",\"attendance_delete\",\"break_menu\",\"break_type_read\",\"break_type_create\",\"break_type_update\",\"break_type_delete\",\"break_read\",\"break_create\",\"break_update\",\"generate_qr_code\",\"leave_menu\",\"leave_type_read\",\"leave_type_create\",\"leave_type_update\",\"leave_type_delete\",\"leave_assign_read\",\"leave_assign_create\",\"leave_assign_update\",\"leave_assign_delete\",\"leave_request_read\",\"leave_request_create\",\"leave_request_update\",\"leave_request_delete\",\"leave_request_approve\",\"leave_request_reject\",\"leave_request_refer\",\"leave_balance_read\",\"leave_balance_create\",\"leave_balance_update\",\"leave_balance_delete\",\"payroll_menu\",\"commission_read\",\"commission_create\",\"commission_update\",\"commission_delete\",\"setup_read\",\"set_contract\",\"set_commission\",\"advance_type_read\",\"advance_type_create\",\"advance_type_update\",\"advance_type_delete\",\"advance_read\",\"advance_create\",\"advance_update\",\"advance_delete\",\"advance_approved\",\"advance_pay\",\"salary_read\",\"salary_create\",\"salary_update\",\"salary_delete\",\"salary_calculate\",\"salary_pay\",\"salary_payslip\",\"communication_menu\",\"conference_read\",\"conference_create\",\"conference_update\",\"conference_delete\",\"meeting_read\",\"meeting_create\",\"meeting_update\",\"meeting_delete\",\"appointment_read\",\"appointment_create\",\"appointment_update\",\"appointment_delete\",\"appointment_approve\",\"appointment_reject\",\"notice_read\",\"notice_create\",\"notice_update\",\"notice_delete\",\"bulletin_read\",\"bulletin_create\",\"bulletin_update\",\"bulletin_delete\",\"office_work_menu\",\"client_read\",\"client_create\",\"client_update\",\"client_delete\",\"project_read\",\"project_create\",\"project_update\",\"project_delete\",\"project_member_read\",\"project_member_delete\",\"project_complete\",\"project_payment\",\"project_activity_read\",\"project_file_read\",\"project_file_create\",\"project_file_update\",\"project_file_delete\",\"project_file_comment\",\"project_discussion_read\",\"project_discussion_create\",\"project_discussion_update\",\"project_discussion_delete\",\"project_discussion_comment\",\"project_note_read\",\"project_note_create\",\"project_note_update\",\"project_note_delete\",\"task_read\",\"task_create\",\"task_update\",\"task_delete\",\"task_activity_read\",\"task_assign_read\",\"task_assign_delete\",\"task_complete\",\"task_member_read\",\"task_discussion_read\",\"task_discussion_create\",\"task_discussion_update\",\"task_discussion_delete\",\"task_discussion_comment\",\"task_note_read\",\"task_note_create\",\"task_note_update\",\"task_note_delete\",\"task_file_read\",\"task_file_create\",\"task_file_update\",\"task_file_delete\",\"task_file_comment\",\"travel_menu\",\"travel_plan_read\",\"travel_plan_create\",\"travel_plan_update\",\"travel_plan_delete\",\"travel_plan_approve\",\"travel_plan_reject\",\"travel_meeting_read\",\"travel_meeting_create\",\"travel_meeting_update\",\"travel_meeting_delete\",\"travel_expense_read\",\"travel_expense_create\",\"travel_expense_update\",\"travel_expense_delete\",\"travel_expense_approve\",\"travel_workflow_read\",\"travel_workflow_create\",\"travel_workflow_update\",\"travel_workflow_delete\",\"travel_workflow_approve\",\"award_menu\",\"award_type_read\",\"award_type_create\",\"award_type_update\",\"award_type_delete\",\"award_read\",\"award_create\",\"award_update\",\"award_delete\",\"visit_read\",\"visit_update\",\"report_menu\",\"live_tracking_read\",\"location_history_read\",\"location_timeline_read\",\"attendance_report_read\",\"payment_report_read\",\"visit_report_read\",\"leave_report_read\",\"account_menu\",\"account_setting_menu\",\"account_read\",\"account_create\",\"account_update\",\"account_delete\",\"deposit_read\",\"deposit_create\",\"deposit_update\",\"deposit_delete\",\"expense_read\",\"expense_create\",\"expense_update\",\"expense_delete\",\"expense_approve\",\"expense_pay\",\"transaction_read\",\"transaction_update\",\"transaction_delete\",\"deposit_category_read\",\"deposit_category_create\",\"deposit_category_update\",\"deposit_category_delete\",\"expense_category_read\",\"payment_method_read\",\"payment_method_create\",\"payment_method_update\",\"payment_method_delete\",\"setting_menu\",\"general_settings_read\",\"general_settings_update\",\"email_setup_read\",\"email_setup_update\",\"firebase_setup_read\",\"firebase_setup_update\",\"geocoding_setup_read\",\"geocoding_setup_update\",\"pusher_setup_read\",\"pusher_setup_update\",\"storage_setup_read\",\"storage_setup_update\",\"database_backup\",\"about_system_read\",\"app_theme_setup_read\",\"app_theme_setup_update\",\"app_screen_setting\",\"user_device_read\",\"reset_device\",\"currency_read\",\"currency_create\",\"currency_update\",\"currency_delete\",\"language_read\",\"language_create\",\"language_update\",\"language_delete\",\"language_setup\",\"language_make_default\",\"branch_read\",\"branch_create\",\"branch_update\",\"branch_delete\",\"configuration_read\",\"configuration_update\",\"activation_read\",\"activation_update\",\"branding_read\",\"branding_update\",\"contract_profile\",\"attendance_profile\",\"notice_profile\",\"leave_request_profile\",\"visit_profile\",\"phonebook_profile\",\"appointment_profile\",\"support_ticket_profile\",\"advance_profile\",\"commission_profile\",\"salary_profile\",\"project_profile\",\"task_profile\",\"award_profile\",\"travel_profile\",\"tardy_menu\",\"tardy_group_read\",\"tardy_group_create\",\"tardy_group_update\",\"tardy_group_delete\",\"tardy_rule_read\",\"tardy_rule_create\",\"tardy_rule_update\",\"tardy_rule_delete\",\"tardy_rule_assign_read\",\"tardy_rule_assign_create\",\"tardy_rule_assign_update\",\"tardy_rule_assign_delete\",\"tardy_record_read\",\"tardy_record_create\",\"tardy_record_update\",\"tardy_record_delete\",\"tardy_request_read\",\"tardy_request_create\",\"tardy_request_update\",\"tardy_request_delete\",\"tardy_request_approve\",\"tardy_request_reject\",\"duty_calendar_read\",\"duty_calendar_create\",\"duty_calendar_update\",\"deduction_generate_read\",\"deduction_generate_create\",\"deduction_generate_update\"]', NULL, 1, 1, 1, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL),
(3, 'HR', 'hr', '[\"employee_menu\",\"department_read\",\"department_create\",\"department_update\",\"department_delete\",\"designation_read\",\"designation_create\",\"designation_update\",\"designation_delete\",\"role_read\",\"role_create\",\"role_update\",\"role_delete\",\"user_read\",\"user_create\",\"user_update\",\"user_delete\",\"profile_read\",\"profile_update\",\"make_hr\",\"user_permission_update\",\"user_banned\",\"user_unbanned\",\"user_restore\",\"password_reset_mail\",\"password_update\",\"profile_image_view\",\"official_document_menu\",\"official_document_type_read\",\"official_document_type_create\",\"official_document_type_update\",\"official_document_type_delete\",\"official_document_request_read\",\"official_document_request_create\",\"official_document_request_update\",\"official_document_request_delete\",\"write_up_menu\",\"complain_read\",\"complain_create\",\"complain_update\",\"complain_delete\",\"verbal_warning_read\",\"verbal_warning_create\",\"verbal_warning_update\",\"verbal_warning_delete\",\"performance_read\",\"performance_create\",\"performance_update\",\"performance_delete\",\"attendance_menu\",\"attendance_setting_menu\",\"weekend_read\",\"weekend_update\",\"holiday_read\",\"holiday_create\",\"holiday_update\",\"holiday_delete\",\"shift_read\",\"shift_create\",\"shift_update\",\"shift_delete\",\"schedule_read\",\"schedule_create\",\"schedule_update\",\"schedule_delete\",\"duty_calendar_read\",\"duty_calendar_create\",\"duty_calendar_update\",\"ip_read\",\"ip_create\",\"ip_update\",\"ip_delete\",\"location_read\",\"location_create\",\"location_update\",\"location_delete\",\"attendance_read\",\"attendance_create\",\"attendance_update\",\"attendance_delete\",\"break_menu\",\"break_type_read\",\"break_type_create\",\"break_type_update\",\"break_type_delete\",\"break_read\",\"break_create\",\"break_update\",\"generate_qr_code\",\"leave_menu\",\"leave_type_read\",\"leave_type_create\",\"leave_type_update\",\"leave_type_delete\",\"leave_assign_read\",\"leave_assign_create\",\"leave_assign_update\",\"leave_assign_delete\",\"leave_request_read\",\"leave_request_create\",\"leave_request_update\",\"leave_request_delete\",\"leave_request_approve\",\"leave_request_reject\",\"leave_request_refer\",\"leave_balance_read\",\"leave_balance_create\",\"leave_balance_update\",\"leave_balance_delete\",\"payroll_menu\",\"commission_read\",\"commission_create\",\"commission_update\",\"commission_delete\",\"setup_read\",\"set_contract\",\"set_commission\",\"advance_type_read\",\"advance_type_create\",\"advance_type_update\",\"advance_type_delete\",\"advance_read\",\"advance_create\",\"advance_update\",\"advance_delete\",\"advance_approved\",\"advance_pay\",\"salary_read\",\"salary_create\",\"salary_update\",\"salary_delete\",\"salary_calculate\",\"salary_pay\",\"salary_payslip\",\"communication_menu\",\"conference_read\",\"conference_create\",\"conference_update\",\"conference_delete\",\"meeting_read\",\"meeting_create\",\"meeting_update\",\"meeting_delete\",\"appointment_read\",\"appointment_create\",\"appointment_update\",\"appointment_delete\",\"appointment_approve\",\"appointment_reject\",\"notice_read\",\"notice_create\",\"notice_update\",\"notice_delete\",\"bulletin_read\",\"bulletin_create\",\"bulletin_update\",\"bulletin_delete\",\"office_work_menu\",\"client_read\",\"client_create\",\"client_update\",\"client_delete\",\"project_read\",\"project_create\",\"project_update\",\"project_delete\",\"project_member_read\",\"project_member_delete\",\"project_complete\",\"project_payment\",\"project_activity_read\",\"project_file_read\",\"project_file_create\",\"project_file_update\",\"project_file_delete\",\"project_file_comment\",\"project_discussion_read\",\"project_discussion_create\",\"project_discussion_update\",\"project_discussion_delete\",\"project_discussion_comment\",\"project_note_read\",\"project_note_create\",\"project_note_update\",\"project_note_delete\",\"task_read\",\"task_create\",\"task_update\",\"task_delete\",\"task_activity_read\",\"task_assign_read\",\"task_assign_delete\",\"task_complete\",\"task_member_read\",\"task_discussion_read\",\"task_discussion_create\",\"task_discussion_update\",\"task_discussion_delete\",\"task_discussion_comment\",\"task_note_read\",\"task_note_create\",\"task_note_update\",\"task_note_delete\",\"task_file_read\",\"task_file_create\",\"task_file_update\",\"task_file_delete\",\"task_file_comment\",\"travel_menu\",\"travel_plan_read\",\"travel_plan_create\",\"travel_plan_update\",\"travel_plan_delete\",\"travel_plan_approve\",\"travel_plan_reject\",\"travel_meeting_read\",\"travel_meeting_create\",\"travel_meeting_update\",\"travel_meeting_delete\",\"travel_expense_read\",\"travel_expense_create\",\"travel_expense_update\",\"travel_expense_delete\",\"travel_expense_approve\",\"travel_workflow_read\",\"travel_workflow_create\",\"travel_workflow_update\",\"travel_workflow_delete\",\"travel_workflow_approve\",\"award_menu\",\"award_type_read\",\"award_type_create\",\"award_type_update\",\"award_type_delete\",\"award_read\",\"award_create\",\"award_update\",\"award_delete\",\"visit_read\",\"visit_update\",\"report_menu\",\"live_tracking_read\",\"location_history_read\",\"location_timeline_read\",\"attendance_report_read\",\"payment_report_read\",\"visit_report_read\",\"leave_report_read\",\"account_menu\",\"account_setting_menu\",\"account_read\",\"account_create\",\"account_update\",\"account_delete\",\"deposit_read\",\"deposit_create\",\"deposit_update\",\"deposit_delete\",\"expense_read\",\"expense_create\",\"expense_update\",\"expense_delete\",\"expense_approve\",\"expense_pay\",\"transaction_read\",\"transaction_update\",\"transaction_delete\",\"deposit_category_read\",\"deposit_category_create\",\"deposit_category_update\",\"deposit_category_delete\",\"expense_category_read\",\"payment_method_read\",\"payment_method_create\",\"payment_method_update\",\"payment_method_delete\",\"setting_menu\",\"general_settings_read\",\"general_settings_update\",\"email_setup_read\",\"email_setup_update\",\"firebase_setup_read\",\"firebase_setup_update\",\"geocoding_setup_read\",\"geocoding_setup_update\",\"pusher_setup_read\",\"pusher_setup_update\",\"storage_setup_read\",\"storage_setup_update\",\"database_backup\",\"about_system_read\",\"app_theme_setup_read\",\"app_theme_setup_update\",\"app_screen_setting\",\"currency_read\",\"currency_create\",\"currency_update\",\"currency_delete\",\"language_read\",\"language_create\",\"language_update\",\"language_delete\",\"language_setup\",\"language_make_default\",\"configuration_read\",\"configuration_update\",\"activation_read\",\"activation_update\",\"branding_read\",\"branding_update\",\"contract_profile\",\"attendance_profile\",\"notice_profile\",\"leave_request_profile\",\"visit_profile\",\"phonebook_profile\",\"appointment_profile\",\"support_ticket_profile\",\"advance_profile\",\"commission_profile\",\"salary_profile\",\"project_profile\",\"task_profile\",\"award_profile\",\"travel_profile\",\"tardy_menu\",\"tardy_group_read\",\"tardy_group_create\",\"tardy_group_update\",\"tardy_group_delete\",\"tardy_rule_read\",\"tardy_rule_create\",\"tardy_rule_update\",\"tardy_rule_delete\",\"tardy_rule_assign_read\",\"tardy_rule_assign_create\",\"tardy_rule_assign_update\",\"tardy_rule_assign_delete\",\"tardy_record_read\",\"tardy_record_create\",\"tardy_record_update\",\"tardy_record_delete\",\"tardy_request_read\",\"tardy_request_create\",\"tardy_request_update\",\"tardy_request_delete\",\"tardy_request_approve\",\"tardy_request_reject\",\"duty_calendar_read\",\"duty_calendar_create\",\"duty_calendar_update\",\"deduction_generate_read\"]', NULL, 1, 1, 1, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL),
(4, 'Staff', 'staff', '[\"employee_menu\",\"profile_read\",\"profile_update\",\"user_permission_update\",\"password_reset_mail\",\"password_update\",\"profile_image_view\",\"official_document_menu\",\"official_document_request_read\",\"official_document_request_create\",\"official_document_request_update\",\"official_document_request_delete\",\"write_up_menu\",\"complain_read\",\"complain_create\",\"complain_update\",\"verbal_warning_read\",\"verbal_warning_create\",\"verbal_warning_update\",\"verbal_warning_delete\",\"performance_read\",\"performance_create\",\"performance_update\",\"performance_delete\",\"attendance_menu\",\"attendance_setting_menu\",\"duty_calendar_read\",\"attendance_read\",\"attendance_create\",\"break_menu\",\"break_read\",\"break_create\",\"break_update\",\"leave_menu\",\"leave_request_read\",\"leave_request_create\",\"leave_balance_read\",\"payroll_menu\",\"advance_read\",\"salary_read\",\"communication_menu\",\"conference_read\",\"conference_create\",\"conference_update\",\"conference_delete\",\"meeting_read\",\"meeting_create\",\"meeting_update\",\"meeting_delete\",\"appointment_read\",\"appointment_create\",\"appointment_update\",\"appointment_delete\",\"notice_read\",\"bulletin_read\",\"office_work_menu\",\"project_read\",\"project_create\",\"project_update\",\"project_delete\",\"project_member_read\",\"project_member_delete\",\"project_complete\",\"project_payment\",\"project_activity_read\",\"project_file_read\",\"project_file_create\",\"project_file_update\",\"project_file_delete\",\"project_file_comment\",\"project_discussion_read\",\"project_discussion_create\",\"project_discussion_update\",\"project_discussion_delete\",\"project_discussion_comment\",\"project_note_read\",\"project_note_create\",\"project_note_update\",\"project_note_delete\",\"task_read\",\"task_create\",\"task_update\",\"task_delete\",\"task_activity_read\",\"task_assign_read\",\"task_assign_delete\",\"task_complete\",\"task_member_read\",\"task_discussion_read\",\"task_discussion_create\",\"task_discussion_update\",\"task_discussion_delete\",\"task_discussion_comment\",\"task_note_read\",\"task_note_create\",\"task_note_update\",\"task_note_delete\",\"task_file_read\",\"task_file_create\",\"task_file_update\",\"task_file_delete\",\"task_file_comment\",\"travel_menu\",\"travel_plan_read\",\"travel_plan_create\",\"travel_plan_update\",\"travel_plan_delete\",\"travel_meeting_read\",\"travel_meeting_create\",\"travel_meeting_update\",\"travel_meeting_delete\",\"travel_expense_read\",\"travel_expense_create\",\"travel_expense_update\",\"travel_expense_delete\",\"travel_workflow_read\",\"travel_workflow_create\",\"travel_workflow_update\",\"travel_workflow_delete\",\"award_menu\",\"award_read\",\"visit_read\",\"visit_update\",\"contract_profile\",\"attendance_profile\",\"notice_profile\",\"leave_request_profile\",\"visit_profile\",\"phonebook_profile\",\"appointment_profile\",\"support_ticket_profile\",\"advance_profile\",\"commission_profile\",\"salary_profile\",\"project_profile\",\"task_profile\",\"award_profile\",\"travel_profile\",\"tardy_menu\",\"tardy_record_read\",\"tardy_record_create\",\"tardy_record_update\",\"tardy_request_read\",\"tardy_request_create\",\"tardy_request_update\",\"duty_calendar_read\",\"deduction_generate_read\"]', NULL, 1, 1, 1, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', NULL);

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

--
-- Table structure for table `role_users`
--

CREATE TABLE `role_users` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `role_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `salary_generates`
--

CREATE TABLE `salary_generates` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `date` date NOT NULL,
  `amount` double(16,2) NOT NULL,
  `due_amount` double(16,2) DEFAULT NULL,
  `gross_salary` double(16,2) NOT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '9',
  `created_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `updated_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `total_working_day` int DEFAULT NULL,
  `present` int DEFAULT NULL,
  `absent` int DEFAULT NULL,
  `late` int DEFAULT NULL,
  `left_early` int DEFAULT NULL,
  `is_calculated` tinyint NOT NULL DEFAULT '0',
  `adjust` double(16,2) DEFAULT NULL,
  `absent_amount` double(16,2) DEFAULT NULL,
  `advance_amount` double(16,2) DEFAULT NULL,
  `advance_details` json DEFAULT NULL,
  `allowance_amount` double(16,2) DEFAULT NULL,
  `allowance_details` json DEFAULT NULL,
  `deduction_amount` double(16,2) DEFAULT NULL,
  `deduction_details` json DEFAULT NULL,
  `net_salary` double(16,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1',
  `department_id` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `salary_payment_logs`
--

CREATE TABLE `salary_payment_logs` (
  `id` bigint UNSIGNED NOT NULL,
  `amount` double(16,2) NOT NULL,
  `due_amount` double(16,2) DEFAULT NULL,
  `salary_generate_id` bigint UNSIGNED DEFAULT NULL,
  `transaction_id` bigint UNSIGNED DEFAULT NULL,
  `payment_method_id` bigint UNSIGNED DEFAULT NULL,
  `paid_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `user_id` bigint UNSIGNED DEFAULT NULL,
  `created_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `updated_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `payment_note` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `salary_setups`
--

CREATE TABLE `salary_setups` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `gross_salary` double(16,2) NOT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `updated_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `salary_setup_details`
--

CREATE TABLE `salary_setup_details` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `salary_setup_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `commission_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `amount` double(16,2) NOT NULL,
  `amount_type` tinyint NOT NULL DEFAULT '1' COMMENT '1=fixed, 2=percentage',
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `updated_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `salary_sheet_reports`
--

CREATE TABLE `salary_sheet_reports` (
  `id` bigint UNSIGNED NOT NULL,
  `sl_no` int NOT NULL,
  `name_of_the_employee` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `employee_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `designation` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `w_days` int NOT NULL,
  `present` int NOT NULL,
  `absent` int NOT NULL,
  `tardy` int NOT NULL,
  `tardy_days` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `gross_salary` double NOT NULL,
  `basic_50` double NOT NULL,
  `hra_40` double NOT NULL,
  `medical_10` double NOT NULL,
  `performance_incentive` double NOT NULL,
  `absent_amount` double NOT NULL,
  `advance` double NOT NULL,
  `tardy_amount` double NOT NULL,
  `incentive` double NOT NULL,
  `net_salary` double NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `services`
--

CREATE TABLE `services` (
  `id` bigint UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci,
  `user_id` bigint UNSIGNED NOT NULL,
  `attachment` bigint UNSIGNED DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `settings` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` longtext COLLATE utf8mb4_unicode_ci,
  `image_id` bigint DEFAULT NULL,
  `context` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT 'app',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `status_id` bigint 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', 'Demo inc', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(2, 'company_domain', 'codecanyon-hrm.test', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(3, 'company_logo_backend', 'uploads/settings/logo/logo-white.png', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(4, 'company_logo_frontend', 'uploads/settings/logo/logo-black.png', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(5, 'backend_image', 'static/background_image.png', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(6, 'company_icon', 'uploads/settings/logo/favicon.png', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(7, 'android_url', 'https://play.google.com/store/apps/details?id=com.worx24hour.hrm', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(8, 'android_icon', 'assets/favicon.png', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(9, 'ios_url', 'https://apps.apple.com/us/app/24hourworx/id1620313188', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(10, 'ios_icon', 'assets/favicon.png', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(11, 'language', 'en', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(12, 'site_under_maintenance', '0', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(13, 'company_description', 'Demo inc believes in painting the perfect picture of your idea while maintaining industry standards.', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(14, 'default_theme', 'app_theme_1', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(15, 'app_theme_1', 'static/app-screen/screen-1.png', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(16, 'app_theme_2', 'static/app-screen/screen-2.png', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(17, 'app_theme_3', 'static/app-screen/screen-3.png', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(18, 'app_theme_4', 'static/app-screen/screen-4.png', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(19, 'email', 'info@demo.com', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(20, 'phone', '0XXXXXXXXXX', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(21, 'address', 'Unknown Street, Texas, USA', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(22, 'twitter_link', 'https://twitter.com', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(23, 'linkedin_link', 'https://linkedin.com', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(24, 'facebook_link', 'https://facebook.com', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(25, 'instagram_link', 'https://instagram.com', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(26, 'dribbble_link', 'https://dribbble.com', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(27, 'behance_link', 'https://behance.com', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(28, 'pinterest_link', 'https://pinterest.com', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(29, 'contact_title', 'Send A Message To Get Your Free Quote', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(30, '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', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(31, 'mail_mailer', 'smtp', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(32, 'mail_host', 'smtp.gmail.com', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(33, 'mail_port', '587', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(34, 'mail_username', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(35, 'mail_password', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(36, 'mail_from_address', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(37, 'mail_encryption', 'tls', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(38, 'mail_from_name', 'Demo inc', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(39, 'file_system_driver', 'local', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(40, 'aws_access_key_id', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(41, 'aws_secret_access_key', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(42, 'aws_default_region', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(43, 'aws_bucket', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(44, 'aws_url', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(45, 'aws_endpoint', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(46, 'aws_use_path_style_endpoint', '0', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(47, 'firebase_api_key', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(48, 'firebase_auth_domain', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(49, 'firebase_auth_database_url', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(50, 'firebase_project_id', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(51, 'firebase_storage_bucket', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(52, 'firebase_messaging_sender_id', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(53, 'firebase_app_id', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(54, 'firebase_measurement_id', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(55, 'firebase_auth_collection_name', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(56, 'geocoding_api_key', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(57, 'geocoding_base_url', 'https://maps.googleapis.com/maps/api/geocode/json', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(58, 'pusher_app_id', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(59, 'pusher_app_key', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(60, 'pusher_app_secret', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(61, 'pusher_app_cluster', '', NULL, 'app', '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1);

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

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

CREATE TABLE `shifts` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint 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, 'Morning', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(2, 'Evening', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(3, 'Night', 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1);

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

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

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

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

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

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

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

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

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

CREATE TABLE `subscription_plans` (
  `id` bigint UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `identifier` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `stripe_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status_id` bigint 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 UNSIGNED NOT NULL,
  `date` date DEFAULT NULL,
  `code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `assigned_id` bigint UNSIGNED DEFAULT NULL,
  `attachment_file_id` bigint UNSIGNED DEFAULT NULL,
  `image_url` text COLLATE utf8mb4_unicode_ci,
  `subject` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `type_id` bigint UNSIGNED NOT NULL DEFAULT '12' COMMENT '12 = open , 13 = close',
  `priority_id` bigint 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 UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

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

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

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

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

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

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

CREATE TABLE `task_discussions` (
  `id` bigint UNSIGNED NOT NULL,
  `subject` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `task_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `show_to_customer` bigint UNSIGNED NOT NULL DEFAULT '22',
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `file_id` bigint 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 UNSIGNED DEFAULT '1',
  `branch_id` bigint 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 UNSIGNED NOT NULL,
  `comment_id` bigint UNSIGNED DEFAULT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `show_to_customer` tinyint NOT NULL DEFAULT '1' COMMENT '0=no,1=yes',
  `task_discussion_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `attachment` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `task_files` (
  `id` bigint UNSIGNED NOT NULL,
  `subject` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `show_to_customer` bigint UNSIGNED NOT NULL DEFAULT '22',
  `task_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `attachment` bigint UNSIGNED DEFAULT NULL,
  `status_id` bigint 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 UNSIGNED DEFAULT '1',
  `branch_id` bigint 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 UNSIGNED NOT NULL,
  `comment_id` bigint UNSIGNED DEFAULT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `show_to_customer` tinyint NOT NULL DEFAULT '1' COMMENT '0=no,1=yes',
  `task_file_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `attachment` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

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

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

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

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

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

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

CREATE TABLE `task_notes` (
  `id` bigint UNSIGNED NOT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `show_to_customer` bigint UNSIGNED NOT NULL DEFAULT '22',
  `task_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `status_id` bigint 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 UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

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

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

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

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

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

--
-- Table structure for table `telescope_entries`
--

CREATE TABLE `telescope_entries` (
  `sequence` bigint UNSIGNED NOT NULL,
  `uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
  `family_hash` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `should_display_on_index` tinyint(1) NOT NULL DEFAULT '1',
  `type` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `content` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `telescope_entries_tags`
--

CREATE TABLE `telescope_entries_tags` (
  `entry_uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tag` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `telescope_monitoring`
--

CREATE TABLE `telescope_monitoring` (
  `tag` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `tenants` (
  `id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `data` json DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `tenant_subscriptions` (
  `id` bigint UNSIGNED NOT NULL,
  `subscription_id_in_main_company` bigint UNSIGNED DEFAULT NULL,
  `invoice_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `plan_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `price` decimal(8,2) DEFAULT '0.00',
  `payment_gateway` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `trx_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `offline_payment` json DEFAULT NULL,
  `employee_limit` bigint UNSIGNED DEFAULT '0',
  `is_employee_limit` tinyint 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` json NOT NULL,
  `features_key` json NOT NULL,
  `is_demo_checkout` tinyint NOT NULL DEFAULT '0',
  `source` enum('Website','Admin') COLLATE utf8mb4_unicode_ci DEFAULT 'Website',
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1' COMMENT '1=Active,2=Pending,4=inactive,5=Approve,6=Reject',
  `payment_status_id` bigint 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 `testimonials`
--

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

CREATE TABLE `travel_expenses` (
  `id` bigint UNSIGNED NOT NULL,
  `employee_id` bigint UNSIGNED NOT NULL,
  `travel_plan_id` bigint UNSIGNED NOT NULL,
  `date` date DEFAULT NULL,
  `mode_of_transportation` enum('Bus','Train','Flight','Taxi','Auto') COLLATE utf8mb4_unicode_ci 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 UNSIGNED NOT NULL DEFAULT '2',
  `approved_by` bigint UNSIGNED DEFAULT NULL,
  `approved_at` datetime DEFAULT NULL,
  `rating_of_travel_experience` tinyint UNSIGNED DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL,
  `updated_by` bigint UNSIGNED DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint 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 UNSIGNED NOT NULL,
  `travel_expense_id` bigint UNSIGNED NOT NULL,
  `expense_category_id` bigint UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `amount` decimal(8,2) DEFAULT '0.00',
  `file_id` bigint UNSIGNED DEFAULT NULL,
  `remark` text COLLATE utf8mb4_unicode_ci,
  `created_by` bigint UNSIGNED DEFAULT NULL,
  `updated_by` bigint UNSIGNED DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint 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 UNSIGNED NOT NULL,
  `travel_plan_id` bigint UNSIGNED NOT NULL,
  `employee_id` bigint 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `customer_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `customer_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `customer_phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `purpose` text COLLATE utf8mb4_unicode_ci,
  `remark` text COLLATE utf8mb4_unicode_ci,
  `file_id` bigint UNSIGNED DEFAULT NULL,
  `rating_of_meeting_experience` tinyint UNSIGNED DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL,
  `updated_by` bigint UNSIGNED DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint 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 UNSIGNED NOT NULL,
  `employee_id` bigint UNSIGNED NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `from_location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `to_location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `purpose` text COLLATE utf8mb4_unicode_ci,
  `amount` decimal(8,2) DEFAULT NULL,
  `signature` text COLLATE utf8mb4_unicode_ci,
  `signature_date` date DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '2',
  `approved_by` bigint UNSIGNED DEFAULT NULL,
  `approved_at` datetime DEFAULT NULL,
  `approved_remark` text COLLATE utf8mb4_unicode_ci,
  `rejected_by` bigint UNSIGNED DEFAULT NULL,
  `rejected_at` datetime DEFAULT NULL,
  `rejected_remark` text COLLATE utf8mb4_unicode_ci,
  `created_by` bigint UNSIGNED DEFAULT NULL,
  `updated_by` bigint UNSIGNED DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint 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 UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_by` bigint UNSIGNED DEFAULT '1',
  `updated_by` bigint UNSIGNED DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `travel_workflows` (
  `id` bigint UNSIGNED NOT NULL,
  `employee_id` bigint UNSIGNED NOT NULL,
  `date` date DEFAULT NULL COMMENT 'Date of report',
  `start_time` time DEFAULT NULL,
  `end_time` time DEFAULT NULL,
  `calls_made` int UNSIGNED DEFAULT NULL COMMENT 'Number of calls made today',
  `positive_leads` int UNSIGNED DEFAULT NULL COMMENT 'Number of positive leads today',
  `total_sales` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_update_pending_and_leads` enum('Yes','No','Other') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pending_and_leads_other_note` text COLLATE utf8mb4_unicode_ci,
  `is_worked_on_recovery_today` enum('Yes','No','Other') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `recovery_today_other_note` text COLLATE utf8mb4_unicode_ci,
  `daily_report_summary` text COLLATE utf8mb4_unicode_ci COMMENT 'Summary of daily work activities',
  `complaints_questions_comments` text COLLATE utf8mb4_unicode_ci COMMENT 'Any complaints, questions, or comments',
  `file_id` bigint UNSIGNED DEFAULT NULL,
  `how_was_your_day_mark` tinyint UNSIGNED DEFAULT NULL COMMENT 'In Terms of Production, How was your day mark from 1-10',
  `created_by` bigint UNSIGNED DEFAULT NULL,
  `updated_by` bigint UNSIGNED DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint 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 UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED DEFAULT NULL,
  `file_original_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `file_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `img_path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `big_path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '1920 x 1080',
  `small_path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '300 x 300',
  `thumbnail_path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '500 x 400',
  `extension` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `file_size` int DEFAULT NULL,
  `width` int DEFAULT NULL,
  `height` int DEFAULT NULL,
  `status_id` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(50, NULL, NULL, NULL, 'assets/break/lunch-break.png', NULL, NULL, NULL, '.png', 'png', NULL, NULL, NULL, NULL, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(51, NULL, NULL, NULL, 'assets/break/tea-coffee-break.png', NULL, NULL, NULL, '.png', 'png', NULL, NULL, NULL, NULL, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(52, NULL, NULL, NULL, 'assets/break/dinner-break.png', NULL, NULL, NULL, '.png', 'png', NULL, NULL, NULL, NULL, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1);

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

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

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

--
-- Dumping data for table `user_breaks`
--

INSERT INTO `user_breaks` (`id`, `user_id`, `break_type_id`, `date`, `start_time`, `end_time`, `duration`, `reason`, `remark`, `created_at`, `updated_at`, `company_id`, `branch_id`, `created_by`, `updated_by`) VALUES
(1, 1, 1, '2025-04-23', '12:00:00', '12:30:00', '00:30:00', 'Lunch break', NULL, '2025-04-23 11:23:02', '2025-04-23 11:23:02', 1, 1, 1, 1),
(2, 2, 2, '2025-04-24', '15:00:00', '15:15:00', '00:15:00', 'Tea break', NULL, '2025-04-24 11:23:02', '2025-04-24 11:23:02', 1, 2, 1, 1);

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

--
-- Table structure for table `user_ip_binds`
--

CREATE TABLE `user_ip_binds` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `ip_addresses` json DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint 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 `user_shift_assigns`
--

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

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

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

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

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

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

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

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

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

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

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

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

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

CREATE TABLE `visit_schedules` (
  `id` bigint UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `visit_id` bigint UNSIGNED NOT NULL,
  `latitude` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `longitude` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `note` longtext COLLATE utf8mb4_unicode_ci,
  `status` enum('created','started','reached','end') COLLATE utf8mb4_unicode_ci 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 UNSIGNED DEFAULT '1',
  `branch_id` bigint UNSIGNED DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `weekends` (
  `id` bigint UNSIGNED NOT NULL,
  `name` enum('saturday','sunday','monday','tuesday','wednesday','thursday','friday') COLLATE utf8mb4_unicode_ci NOT NULL,
  `order` int DEFAULT NULL,
  `is_weekend` enum('yes','no') COLLATE utf8mb4_unicode_ci DEFAULT 'no',
  `status_id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED DEFAULT '1',
  `updated_by` bigint UNSIGNED DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint UNSIGNED DEFAULT '1',
  `branch_id` bigint 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-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(2, 'sunday', NULL, 'yes', 1, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(3, 'monday', NULL, 'no', 1, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(4, 'tuesday', NULL, 'no', 1, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(5, 'wednesday', NULL, 'no', 1, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(6, 'thursday', NULL, 'no', 1, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 1, 1),
(7, 'friday', NULL, 'no', 1, 1, 1, '2025-04-25 11:23:02', '2025-04-25 11:23:02', 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_feeds`
--
ALTER TABLE `activity_feeds`
  ADD PRIMARY KEY (`id`),
  ADD KEY `activity_feeds_company_id_foreign` (`company_id`),
  ADD KEY `activity_feeds_branch_id_foreign` (`branch_id`),
  ADD KEY `activity_feeds_user_id_foreign` (`user_id`),
  ADD KEY `activity_feeds_department_id_foreign` (`department_id`),
  ADD KEY `activity_feeds_designation_id_foreign` (`designation_id`);

--
-- 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 `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_duty_calendar_id_foreign` (`duty_calendar_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`);

--
-- 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_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_created_by_foreign` (`created_by`),
  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_created_by_foreign` (`created_by`),
  ADD KEY `clients_updated_by_foreign` (`updated_by`),
  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`),
  ADD KEY `companies_deleted_by_foreign` (`deleted_by`),
  ADD KEY `companies_restored_by_foreign` (`restored_by`);

--
-- 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 `contacts`
--
ALTER TABLE `contacts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `contacts_company_id_branch_id_index` (`company_id`,`branch_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`);

--
-- 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 `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 `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_request_details`
--
ALTER TABLE `leave_request_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_request_details_leave_request_id_foreign` (`leave_request_id`),
  ADD KEY `leave_request_details_user_id_foreign` (`user_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 `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 `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 `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 `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 `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 `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 `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 `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 `telescope_entries`
--
ALTER TABLE `telescope_entries`
  ADD PRIMARY KEY (`sequence`),
  ADD UNIQUE KEY `telescope_entries_uuid_unique` (`uuid`),
  ADD KEY `telescope_entries_batch_id_index` (`batch_id`),
  ADD KEY `telescope_entries_family_hash_index` (`family_hash`),
  ADD KEY `telescope_entries_created_at_index` (`created_at`),
  ADD KEY `telescope_entries_type_should_display_on_index_index` (`type`,`should_display_on_index`);

--
-- Indexes for table `telescope_entries_tags`
--
ALTER TABLE `telescope_entries_tags`
  ADD PRIMARY KEY (`entry_uuid`,`tag`),
  ADD KEY `telescope_entries_tags_tag_index` (`tag`);

--
-- Indexes for table `telescope_monitoring`
--
ALTER TABLE `telescope_monitoring`
  ADD PRIMARY KEY (`tag`);

--
-- 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 `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 `user_breaks`
--
ALTER TABLE `user_breaks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_breaks_user_id_foreign` (`user_id`),
  ADD KEY `user_breaks_break_type_id_foreign` (`break_type_id`),
  ADD KEY `user_breaks_company_id_branch_id_index` (`company_id`,`branch_id`);

--
-- Indexes for table `user_ip_binds`
--
ALTER TABLE `user_ip_binds`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_ip_binds_user_id_foreign` (`user_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 `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 UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `activity_feeds`
--
ALTER TABLE `activity_feeds`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `activity_log`
--
ALTER TABLE `activity_log`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1131;

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `app_screens`
--
ALTER TABLE `app_screens`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

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

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

--
-- AUTO_INCREMENT for table `author_infos`
--
ALTER TABLE `author_infos`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

--
-- AUTO_INCREMENT for table `branches`
--
ALTER TABLE `branches`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `break_settings`
--
ALTER TABLE `break_settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `break_types`
--
ALTER TABLE `break_types`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `departments`
--
ALTER TABLE `departments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

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

--
-- AUTO_INCREMENT for table `designations`
--
ALTER TABLE `designations`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

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

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

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

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

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

--
-- AUTO_INCREMENT for table `duty_schedules`
--
ALTER TABLE `duty_schedules`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `income_expense_categories`
--
ALTER TABLE `income_expense_categories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

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

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

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

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

--
-- AUTO_INCREMENT for table `jm_notifications`
--
ALTER TABLE `jm_notifications`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `leave_request_details`
--
ALTER TABLE `leave_request_details`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=170;

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

--
-- AUTO_INCREMENT for table `notices`
--
ALTER TABLE `notices`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=62;

--
-- AUTO_INCREMENT for table `shifts`
--
ALTER TABLE `shifts`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `telescope_entries`
--
ALTER TABLE `telescope_entries`
  MODIFY `sequence` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `uploads`
--
ALTER TABLE `uploads`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;

--
-- AUTO_INCREMENT for table `user_breaks`
--
ALTER TABLE `user_breaks`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `user_ip_binds`
--
ALTER TABLE `user_ip_binds`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `weekends`
--
ALTER TABLE `weekends`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- 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 `activity_feeds`
--
ALTER TABLE `activity_feeds`
  ADD CONSTRAINT `activity_feeds_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  ADD CONSTRAINT `activity_feeds_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `activity_feeds_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`),
  ADD CONSTRAINT `activity_feeds_designation_id_foreign` FOREIGN KEY (`designation_id`) REFERENCES `designations` (`id`),
  ADD CONSTRAINT `activity_feeds_user_id_foreign` FOREIGN KEY (`user_id`) 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 `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_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_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `clients_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `clients_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`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_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `companies_restored_by_foreign` FOREIGN KEY (`restored_by`) REFERENCES `users` (`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_deduction_id_foreign` FOREIGN KEY (`deduction_id`) REFERENCES `deductions` (`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 `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 `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_request_details`
--
ALTER TABLE `leave_request_details`
  ADD CONSTRAINT `leave_request_details_leave_request_id_foreign` FOREIGN KEY (`leave_request_id`) REFERENCES `leave_requests` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leave_request_details_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- 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 `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 `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 `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 `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 `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 `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 `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 `telescope_entries_tags`
--
ALTER TABLE `telescope_entries_tags`
  ADD CONSTRAINT `telescope_entries_tags_entry_uuid_foreign` FOREIGN KEY (`entry_uuid`) REFERENCES `telescope_entries` (`uuid`) ON DELETE CASCADE;

--
-- 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 `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 `user_breaks`
--
ALTER TABLE `user_breaks`
  ADD CONSTRAINT `user_breaks_break_type_id_foreign` FOREIGN KEY (`break_type_id`) REFERENCES `break_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `user_breaks_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

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

--
-- 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`) ON DELETE 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;

