-- Dumping data for table `erp_hr_company_catalogue`
--

INSERT INTO `erp_hr_company_catalogue` (`id`, `branch_or_sponsor_id`, `department_id`, `title`, `notes`, `catalogue_attachment`, `employees_viewed`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, '1', '', 'tests', '<p>\n	sdfdsfdsfds</p>\n', '', '', 8, '2025-06-23 16:35:22', 8, '2025-06-23 16:54:20', 'N'),
(2, '1', '', 'tests', '<p>\n	sffsdfds</p>\n', '', '', 8, '2025-06-23 16:54:37', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_company_circular`
--

CREATE TABLE `erp_hr_company_circular` (
  `id` int(11) NOT NULL,
  `branch_or_sponsor_id` text NOT NULL,
  `circular_type` int(11) NOT NULL COMMENT '1-Indoor,2-Outdoor',
  `employee_id` text NOT NULL,
  `title` varchar(500) NOT NULL,
  `notes` text NOT NULL,
  `date_circular` date NOT NULL,
  `employees_viewed` text NOT NULL,
  `circular_document` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_company_circular`
--

INSERT INTO `erp_hr_company_circular` (`id`, `branch_or_sponsor_id`, `circular_type`, `employee_id`, `title`, `notes`, `date_circular`, `employees_viewed`, `circular_document`, `created_by`, `isActive`) VALUES
(1, '1', 1, '1', 'tes', '<p>\n	xvfxgdsfgs</p>\n', '2025-06-24', '', '', 8, 'N'),
(2, '1', 2, '', 'tess', '<p>\n	dgfdsgdsg</p>\n', '2025-06-24', '', '', 8, 'Y'),
(3, '1', 1, '1', 'ew', '<p>\n	wefdsfdsfd</p>\n', '2025-06-24', '', '', 8, 'Y');

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

--
-- Table structure for table `erp_hr_company_document`
--

CREATE TABLE `erp_hr_company_document` (
  `id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `document_id` int(11) NOT NULL,
  `document_number` varchar(30) NOT NULL,
  `document_type` int(11) NOT NULL,
  `document_file` text NOT NULL,
  `validate_till_date` date NOT NULL,
  `renew_on` date NOT NULL,
  `status` int(11) NOT NULL COMMENT '0-Not in Process,1-In Process',
  `expiry_notify` int(11) NOT NULL DEFAULT 0 COMMENT '0-No,1-Yes',
  `inprocess_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_company_document`
--

INSERT INTO `erp_hr_company_document` (`id`, `company_id`, `document_id`, `document_number`, `document_type`, `document_file`, `validate_till_date`, `renew_on`, `status`, `expiry_notify`, `inprocess_date`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 3, '1234567', 1, 'sample-1157  6   1 .pdf', '2025-12-26', '2025-11-26', 0, 0, '0000-00-00', 8, '2025-06-25 12:43:42', 8, 2025);

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

--
-- Table structure for table `erp_hr_company_inprocess_document`
--

CREATE TABLE `erp_hr_company_inprocess_document` (
  `id` int(11) NOT NULL,
  `document_id` int(11) NOT NULL,
  `stage_id` int(11) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `completed` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_company_templates`
--

CREATE TABLE `erp_hr_company_templates` (
  `id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `document_title` varchar(255) NOT NULL,
  `document_name` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_company_templates`
--

INSERT INTO `erp_hr_company_templates` (`id`, `branch_id`, `document_title`, `document_name`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 0, 'test', '', 8, '2025-06-24 12:44:45', 8, '2025-06-24 12:58:14', 'N'),
(2, 1, 'test1', '', 8, '2025-06-24 12:58:04', 8, '2025-06-24 13:00:11', 'Y'),
(3, 1, 'test', '', 8, '2025-06-24 12:58:23', 8, '2025-06-24 12:58:26', 'N'),
(4, 1, 'test', '', 8, '2025-06-24 12:59:13', 8, '2025-06-24 13:00:05', 'N');

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

--
-- Table structure for table `erp_hr_demo_data`
--

CREATE TABLE `erp_hr_demo_data` (
  `id` int(11) NOT NULL,
  `biometric` varchar(255) NOT NULL,
  `iban` varchar(255) NOT NULL,
  `field_1` varchar(100) NOT NULL,
  `field_2` varchar(100) NOT NULL,
  `field_3` varchar(100) NOT NULL,
  `field_4` varchar(100) NOT NULL,
  `field_5` varchar(100) NOT NULL,
  `field_6` varchar(100) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_department`
--

CREATE TABLE `erp_hr_department` (
  `id` int(11) NOT NULL,
  `department_name` varchar(255) NOT NULL,
  `normal_ot_days` int(11) NOT NULL,
  `holiday_ot_days` int(11) NOT NULL,
  `night_ot_days` int(11) NOT NULL,
  `weekend_ot_days` int(11) NOT NULL,
  `holiday_incentive` decimal(10,2) NOT NULL DEFAULT 1.00,
  `absent_deduction` decimal(10,2) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_department`
--

INSERT INTO `erp_hr_department` (`id`, `department_name`, `normal_ot_days`, `holiday_ot_days`, `night_ot_days`, `weekend_ot_days`, `holiday_incentive`, `absent_deduction`, `isActive`) VALUES
(1, 'Administration', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(2, 'IT', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(3, 'Operations', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(4, 'HR', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(5, 'Finance', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(6, 'Sales', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(7, 'Production', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(8, 'Marketing', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(9, 'Accounts', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(10, 'Help Desk', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(11, 'Logistics', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(12, 'Quality', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(13, 'HOH', 0, 0, 0, 0, 1.00, 0.00, 'Y'),
(14, 'EXPORT', 0, 0, 0, 0, 1.00, 0.00, 'Y');

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

--
-- Table structure for table `erp_hr_department_approve_level`
--

CREATE TABLE `erp_hr_department_approve_level` (
  `id` int(11) NOT NULL,
  `functionality_id` int(11) NOT NULL,
  `department_id` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `level_1_type` enum('L','S','N','H') NOT NULL,
  `level_1_authority` int(11) NOT NULL,
  `level_2_type` enum('L','S','N','H') NOT NULL,
  `level_2_authority` int(11) NOT NULL,
  `level_3_type` enum('L','S','N','H') NOT NULL,
  `level_3_authority` int(11) NOT NULL,
  `level_4_type` enum('L','S','N','H') NOT NULL,
  `level_4_authority` int(11) NOT NULL,
  `level_5_type` enum('L','S','N','H') NOT NULL,
  `level_5_authority` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_designation`
--

CREATE TABLE `erp_hr_designation` (
  `id` int(11) NOT NULL,
  `designation_name` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_designation`
--

INSERT INTO `erp_hr_designation` (`id`, `designation_name`, `isActive`) VALUES
(1, 'IT Manager', 'Y'),
(2, 'HR Manager', 'Y'),
(3, 'Operations Manager', 'Y'),
(4, 'Production Manager', 'Y'),
(5, 'Finance Manager', 'Y'),
(6, 'Administrator', 'Y'),
(7, 'Marketing Manager', 'Y'),
(8, 'Sales Manager', 'Y'),
(9, 'Telecom Manager', 'Y'),
(10, 'Research Associate', 'Y'),
(11, 'Admin Assistant', 'Y'),
(12, 'Assistant', 'Y');

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

--
-- Table structure for table `erp_hr_employee`
--

CREATE TABLE `erp_hr_employee` (
  `id` int(11) NOT NULL,
  `branch_or_sponsor_id` int(11) NOT NULL,
  `hr_code` varchar(200) NOT NULL,
  `employee_code` varchar(500) NOT NULL,
  `user_name` varchar(500) NOT NULL,
  `password` varchar(500) NOT NULL,
  `de_first_name` varchar(700) NOT NULL,
  `first_name` varchar(500) NOT NULL,
  `middle_name` varchar(500) NOT NULL,
  `last_name` varchar(500) NOT NULL,
  `employee_duties` text NOT NULL,
  `designation` int(11) NOT NULL,
  `team_id` int(11) NOT NULL,
  `department` int(11) NOT NULL,
  `subledger_account_no` int(11) NOT NULL,
  `father_husband` varchar(500) NOT NULL,
  `anniversary_date` date NOT NULL,
  `present_address` varchar(500) NOT NULL,
  `permanent_address` varchar(500) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `mobile` varchar(25) NOT NULL,
  `email` varchar(255) NOT NULL,
  `email2` varchar(255) NOT NULL,
  `emergency_contact1` varchar(30) NOT NULL,
  `emergency_contact2` varchar(30) NOT NULL,
  `emergency_contact_mob1` varchar(30) NOT NULL,
  `emergency_contact_mob2` varchar(30) NOT NULL,
  `friend1_name` varchar(500) NOT NULL,
  `friend1_phone` varchar(255) NOT NULL,
  `friend1_email` varchar(255) NOT NULL,
  `friend2_name` varchar(500) NOT NULL,
  `friend2_phone` varchar(255) NOT NULL,
  `friend2_email` varchar(255) NOT NULL,
  `gender` int(11) NOT NULL,
  `date_of_birth` date NOT NULL,
  `date_join` date NOT NULL,
  `date_leaving` date NOT NULL,
  `employee_type` varchar(255) NOT NULL,
  `probation_days` varchar(255) NOT NULL,
  `probation_date` date NOT NULL,
  `reporting_manager` int(11) NOT NULL,
  `attendance_manager` int(11) NOT NULL,
  `nationality` int(11) NOT NULL,
  `have_pension` int(11) NOT NULL,
  `employee_pension_scheme` int(11) NOT NULL,
  `marital_status` int(11) NOT NULL,
  `confirmation_date` date NOT NULL,
  `currency` int(11) NOT NULL,
  `employee_overtime` int(11) NOT NULL COMMENT '1-Yes,2-No',
  `employee_bankname` int(11) NOT NULL,
  `employee_accountno` varchar(500) NOT NULL,
  `employee_bankifsc` varchar(500) NOT NULL,
  `employee_wpscode` varchar(500) NOT NULL,
  `employee_iban_no` varchar(500) NOT NULL,
  `employee_shift` int(11) NOT NULL,
  `employee_exclude_biometric` int(11) NOT NULL DEFAULT 0 COMMENT '1-Yes,0-No',
  `employee_biometric_code` int(11) NOT NULL,
  `employee_wps_company` int(11) NOT NULL,
  `personal_file_no` varchar(255) NOT NULL,
  `salary_commission` varchar(5) NOT NULL DEFAULT 'SP',
  `overtime` enum('Y','N') NOT NULL DEFAULT 'N',
  `overtime_type` int(11) NOT NULL,
  `gratuity` decimal(10,2) NOT NULL,
  `leave_reason` int(11) NOT NULL COMMENT '1-Termination, 2- Resignation, 3- Absconding, 4- Stop Hire',
  `weekend_off1` int(11) NOT NULL,
  `weekend_off2` int(11) NOT NULL,
  `weekend_off3` int(11) NOT NULL,
  `weekend_off1_type` enum('H','F') NOT NULL COMMENT 'H-Half,F-Full',
  `weekend_off2_type` enum('H','F') NOT NULL COMMENT 'H-Half,F-Full',
  `weekend_off3_type` enum('H','F') NOT NULL COMMENT 'H-Half,F-Full',
  `is_lead_owner` enum('Y','N') NOT NULL DEFAULT 'N',
  `family_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `insurance` enum('Y','N') NOT NULL DEFAULT 'N',
  `family_ticket` enum('Y','N') NOT NULL DEFAULT 'N',
  `housing_facility` enum('Y','N') NOT NULL DEFAULT 'N',
  `car_facility` enum('Y','N') NOT NULL DEFAULT 'N',
  `profile_photo` varchar(500) NOT NULL,
  `date_blocked` date NOT NULL,
  `date_unblocked` date NOT NULL,
  `post_salary` enum('Y','N') NOT NULL DEFAULT 'Y',
  `threshold_salary` decimal(10,2) NOT NULL,
  `travel_allowance` tinyint(4) NOT NULL DEFAULT 1,
  `payment_type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1-Cash,2-Cheque,3-WPS,4-Exchange',
  `disciplinary_action` enum('Y','N') NOT NULL DEFAULT 'N',
  `salary_calculation_method` int(11) NOT NULL DEFAULT 1 COMMENT '1=>''Normal''',
  `grade_status` varchar(700) NOT NULL,
  `position_code` varchar(700) NOT NULL,
  `employee_onboard` date NOT NULL,
  `employee_grade` varchar(700) NOT NULL,
  `rota_schedule_code` varchar(700) NOT NULL,
  `contract_end_date` date NOT NULL,
  `religion` int(11) NOT NULL,
  `employee_category` int(11) NOT NULL DEFAULT 1 COMMENT '1-Permanent,2-Temporary,3-Trainee',
  `hierarchy_line_manager_ids` varchar(700) NOT NULL,
  `fcm_token` varchar(700) NOT NULL,
  `visa_profession` int(11) NOT NULL,
  `update_contact_ess` enum('Y','N') NOT NULL DEFAULT 'N',
  `update_nominee_ess` enum('Y','N') NOT NULL DEFAULT 'N',
  `golden_visa_availed` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N','B') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee`
--

INSERT INTO `erp_hr_employee` (`id`, `branch_or_sponsor_id`, `hr_code`, `employee_code`, `user_name`, `password`, `de_first_name`, `first_name`, `middle_name`, `last_name`, `employee_duties`, `designation`, `team_id`, `department`, `subledger_account_no`, `father_husband`, `anniversary_date`, `present_address`, `permanent_address`, `phone`, `mobile`, `email`, `email2`, `emergency_contact1`, `emergency_contact2`, `emergency_contact_mob1`, `emergency_contact_mob2`, `friend1_name`, `friend1_phone`, `friend1_email`, `friend2_name`, `friend2_phone`, `friend2_email`, `gender`, `date_of_birth`, `date_join`, `date_leaving`, `employee_type`, `probation_days`, `probation_date`, `reporting_manager`, `attendance_manager`, `nationality`, `have_pension`, `employee_pension_scheme`, `marital_status`, `confirmation_date`, `currency`, `employee_overtime`, `employee_bankname`, `employee_accountno`, `employee_bankifsc`, `employee_wpscode`, `employee_iban_no`, `employee_shift`, `employee_exclude_biometric`, `employee_biometric_code`, `employee_wps_company`, `personal_file_no`, `salary_commission`, `overtime`, `overtime_type`, `gratuity`, `leave_reason`, `weekend_off1`, `weekend_off2`, `weekend_off3`, `weekend_off1_type`, `weekend_off2_type`, `weekend_off3_type`, `is_lead_owner`, `family_status`, `insurance`, `family_ticket`, `housing_facility`, `car_facility`, `profile_photo`, `date_blocked`, `date_unblocked`, `post_salary`, `threshold_salary`, `travel_allowance`, `payment_type`, `disciplinary_action`, `salary_calculation_method`, `grade_status`, `position_code`, `employee_onboard`, `employee_grade`, `rota_schedule_code`, `contract_end_date`, `religion`, `employee_category`, `hierarchy_line_manager_ids`, `fcm_token`, `visa_profession`, `update_contact_ess`, `update_nominee_ess`, `golden_visa_availed`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 'BT0001', 'ZEk3R3RNaDU2VzFWYzZjaDJycDZkUT09', 'BT0001', '$2a$10$1qAz2wSx3eDc4rFv5tGb5ejzRFYj9kG/6ZdB3Uk2.vEy1E5G9mhki', 'JAMES WILLIAM', 'akdTRTFpcUJYaHN1V1FIcFg2TlJwdz09', '', 'NEZraFlFSEFsTmwxOXlLVTFDKzVTZz09', '', 3, 0, 3, 0, '', '0000-00-00', '', '', '', '050', 'test@email.com', '', '', '', '', '', '', '', '', '', '', '', 1, '1984-05-08', '2021-02-10', '0000-00-00', '2', '', '2021-08-09', 2, 1, 72, 0, 0, 0, '0000-00-00', 1, 0, 5, 'AE920230000001006604273', '', '600310101', 'AE920230000001006604273', 0, 1, 1001, 1, '92011109634857', 'SP', 'N', 0, 0.00, 0, 1, 0, 0, 'F', '', '', 'N', 'Y', 'N', 'Y', 'N', 'N', '', '2025-06-19', '2025-06-19', 'Y', 0.00, 1, 0, 'N', 1, '', '', '0000-00-00', '', '', '0000-00-00', 0, 1, '2,3', '', 3, 'N', 'N', 'Y', 1, '2025-06-18 12:12:57', 1, '2025-09-03 13:46:03', 'Y'),
(2, 1, 'BT0002', 'VUtsR096SnhzbS9aNGxxVmZKM1BxZz09', 'BT0002', '$2a$10$1qAz2wSx3eDc4rFv5tGb5eDCAyfN/.qElEeaVQ3/rA34Pn4RQhpNy', 'EMMA SMITH', 'Y29IRmJyZk5mRTU0bVRFMVp0Zm5mZz09', '', 'TmQyZnFKZGxQaWRqM1N6ckIzcnZKdz09', '', 5, 0, 9, 0, '', '0000-00-00', '', '', '050', '050', 'test@email.com', '', '', '', '', '', '', '', '', '', '', '', 2, '1992-03-18', '2024-02-07', '0000-00-00', '2', '', '2024-08-05', 1, 1, 0, 0, 0, 0, '0000-00-00', 1, 0, 5, 'AE920230000001009604273', '', '600310101', 'AE920230000001009604273', 0, 0, 2, 1, '91011109634857', 'SP', 'N', 0, 0.00, 0, 1, 0, 0, 'F', '', '', 'N', 'N', 'N', 'N', 'N', 'N', '', '2025-06-19', '2025-06-19', 'Y', 0.00, 1, 0, 'N', 1, '', '', '0000-00-00', '', '', '0000-00-00', 0, 1, '', '', 5, 'N', 'N', 'N', 8, '2025-06-18 14:44:37', 8, '2025-07-22 09:58:00', 'Y'),
(3, 1, 'BT0003', 'eE9RQi9zc2pGOHBEbC9Xd0NwMXA1QT09', 'BT0003', '$2a$10$1qAz2wSx3eDc4rFv5tGb5ewqNXhfO.rM51Am5SsDCLwL1QfhrutnC', 'ABHILASH S', 'andPNDE1VTl5cG1HdUt2Y0ZoWXZvdz09', '', 'YzBDUEE4ZmpWa1FKcnptTVE4dWJPdz09', '', 5, 0, 9, 0, '', '0000-00-00', '', '', '', '050', 'info@mailbluesky.com', '', '', '', '', '', '', '', '', '', '', '', 1, '1977-09-01', '2004-05-12', '0000-00-00', '1', '', '2004-11-08', 2, 1, 0, 0, 0, 0, '0000-00-00', 1, 0, 5, 'AE920230000001008604273', '', '600310101', 'AE920230000001008604273', 0, 0, 1003, 1, '90011109634857', 'SP', 'N', 0, 0.00, 0, 1, 0, 0, 'F', '', '', 'N', 'N', 'N', 'N', 'N', 'N', '', '0000-00-00', '0000-00-00', 'Y', 0.00, 1, 0, 'N', 1, '', '', '0000-00-00', '', '', '0000-00-00', 0, 1, '', '', 5, 'N', 'N', 'N', 1, '2025-06-23 09:17:14', 8, '2025-07-22 09:58:12', 'Y');

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

--
-- Table structure for table `erp_hr_employee_approve_level`
--

CREATE TABLE `erp_hr_employee_approve_level` (
  `id` int(11) NOT NULL,
  `functionality_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `level_1_type` enum('L','S','N','H') NOT NULL,
  `level_1_authority` int(11) NOT NULL,
  `level_2_type` enum('L','S','N','H') NOT NULL,
  `level_2_authority` int(11) NOT NULL,
  `level_3_type` enum('L','S','N','H') NOT NULL,
  `level_3_authority` int(11) NOT NULL,
  `level_4_type` enum('L','S','N','H') NOT NULL,
  `level_4_authority` int(11) NOT NULL,
  `level_5_type` enum('L','S','N','H') NOT NULL,
  `level_5_authority` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_approve_level`
--

INSERT INTO `erp_hr_employee_approve_level` (`id`, `functionality_id`, `employee_id`, `max_level`, `level_1_type`, `level_1_authority`, `level_2_type`, `level_2_authority`, `level_3_type`, `level_3_authority`, `level_4_type`, `level_4_authority`, `level_5_type`, `level_5_authority`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 2, 2, 'N', 2, 'N', 1, 'L', 1, 'L', 1, 'L', 1, 1, '2025-06-18 15:15:34', 8, '2025-07-22 09:58:00'),
(2, 1, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-19 11:18:34', 1, '2025-09-03 13:46:03'),
(3, 7, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-19 11:18:34', 1, '2025-09-03 13:46:03'),
(4, 12, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-19 11:19:21', 1, '2025-09-03 13:46:03'),
(5, 6, 1, 2, 'N', 1, 'N', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-19 16:14:29', 1, '2025-09-03 13:46:03'),
(6, 9, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-20 15:38:29', 1, '2025-09-03 13:46:03'),
(7, 2, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-23 07:44:25', 1, '2025-09-03 13:46:03'),
(8, 4, 1, 2, 'N', 1, 'H', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-23 08:40:40', 1, '2025-09-03 13:46:03'),
(9, 5, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-23 10:16:33', 1, '2025-09-03 13:46:03'),
(10, 10, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-23 13:05:59', 1, '2025-09-03 13:46:03'),
(11, 3, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-23 14:26:39', 1, '2025-09-03 13:46:03'),
(12, 8, 1, 1, 'N', 1, 'L', 2, 'L', 2, 'L', 2, 'L', 2, 8, '2025-06-24 11:58:12', 1, '2025-09-03 13:46:03'),
(13, 14, 2, 1, 'N', 1, 'L', 1, 'L', 1, 'L', 1, 'L', 1, 1, '2025-06-27 14:33:09', 8, '2025-07-22 09:58:00');

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

--
-- Table structure for table `erp_hr_employee_asset`
--

CREATE TABLE `erp_hr_employee_asset` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `asset_id` int(11) NOT NULL,
  `master_asset_id` int(11) NOT NULL,
  `asset_description` text NOT NULL,
  `asset_date_issue` date NOT NULL,
  `asset_date_return` date NOT NULL,
  `asset_undertaking_letter` varchar(700) NOT NULL,
  `asset_status` int(11) NOT NULL COMMENT '1-Issued,2-Returned,3-Discarded,4-Lost',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_attendance`
--

CREATE TABLE `erp_hr_employee_attendance` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `branch_or_sponsor_id` int(11) NOT NULL,
  `shift_id` int(11) NOT NULL,
  `attendance_date` date NOT NULL,
  `week_day` varchar(255) NOT NULL,
  `login_time` varchar(100) NOT NULL,
  `logout_time` varchar(100) NOT NULL,
  `status` varchar(25) NOT NULL COMMENT '1-Present,2-Absent,3-Leave,4->Holiday,5->Weekend',
  `leave_id` int(11) NOT NULL COMMENT 'primary key of crm_hr_employee_leave_detail table',
  `normal_overtime` time NOT NULL,
  `holiday_overtime` time NOT NULL,
  `weekend_overtime` time NOT NULL,
  `night_shift_overtime` time NOT NULL,
  `night_shift_allowance` decimal(10,2) NOT NULL,
  `order_manhours` int(11) NOT NULL COMMENT 'Manhours Table Id',
  `onsite_normal_overtime` time NOT NULL,
  `onsite_holiday_overtime` time NOT NULL,
  `daily_allowance` decimal(15,2) NOT NULL,
  `overtime_rate` decimal(15,2) NOT NULL,
  `total_overtime_amount` decimal(15,2) NOT NULL,
  `total_amount` decimal(15,2) NOT NULL,
  `morning_late` time NOT NULL,
  `variance_time_loss` time NOT NULL,
  `excess_time` time NOT NULL,
  `total_working` time NOT NULL,
  `excuse_reason` text NOT NULL,
  `remarks` text NOT NULL,
  `pay_roll_monthid` varchar(255) NOT NULL,
  `upload_file` text NOT NULL,
  `attendance_via` enum('D','M','U','H','E','A') NOT NULL COMMENT 'D->daily,M->Monthly,U->upload,H->Hiring,E-ESS Punch',
  `login_punch_from` enum('O','H') NOT NULL DEFAULT 'O' COMMENT 'O-Office,H-Home',
  `logout_punch_from` enum('O','H') NOT NULL DEFAULT 'O' COMMENT 'O-Office,H-Home',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_attendance`
--

INSERT INTO `erp_hr_employee_attendance` (`id`, `employee_id`, `branch_or_sponsor_id`, `shift_id`, `attendance_date`, `week_day`, `login_time`, `logout_time`, `status`, `leave_id`, `normal_overtime`, `holiday_overtime`, `weekend_overtime`, `night_shift_overtime`, `night_shift_allowance`, `order_manhours`, `onsite_normal_overtime`, `onsite_holiday_overtime`, `daily_allowance`, `overtime_rate`, `total_overtime_amount`, `total_amount`, `morning_late`, `variance_time_loss`, `excess_time`, `total_working`, `excuse_reason`, `remarks`, `pay_roll_monthid`, `upload_file`, `attendance_via`, `login_punch_from`, `logout_punch_from`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 2, 1, 2, '2025-06-19', 'Thursday', '06:00', '12:00', '1', 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0.00, 0, '00:00:00', '00:00:00', 0.00, 0.00, 0.00, 0.00, '00:00:00', '00:00:00', '00:00:00', '06:00:00', '', '', '', '', 'D', 'O', 'O', 8, '2025-06-19 11:06:35', 0, '0000-00-00 00:00:00'),
(2, 1, 1, 1, '2025-06-19', 'Thursday', '10:00:00', '18:00:00', '1', 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0.00, 0, '00:00:00', '00:00:00', 0.00, 0.00, 0.00, 0.00, '00:00:00', '00:00:00', '02:00:00', '08:00:00', 'tee', '', '', '', 'H', 'H', 'H', 10, '2025-06-26 08:50:20', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_attendance_excuse`
--

CREATE TABLE `erp_hr_employee_attendance_excuse` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `apply_date` date NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `view_status` tinyint(4) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_attendance_excuse`
--

INSERT INTO `erp_hr_employee_attendance_excuse` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `apply_date`, `status`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `view_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 4, 1, 1, 1, '2025-06-19', 12, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-26', 'test', 1, 8, '2025-06-19 14:03:46', 10, '2025-06-26 08:50:20');

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

--
-- Table structure for table `erp_hr_employee_attendance_excuse_details`
--

CREATE TABLE `erp_hr_employee_attendance_excuse_details` (
  `id` int(11) NOT NULL,
  `excuse_id` int(11) NOT NULL,
  `type` int(11) NOT NULL,
  `customer_name` varchar(700) NOT NULL,
  `visit_area` varchar(700) NOT NULL,
  `excuse_date` date NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `excuse_reason` text NOT NULL,
  `document` varchar(700) NOT NULL,
  `excuse_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `attendance_status` tinyint(4) NOT NULL,
  `rejected_level` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_attendance_excuse_details`
--

INSERT INTO `erp_hr_employee_attendance_excuse_details` (`id`, `excuse_id`, `type`, `customer_name`, `visit_area`, `excuse_date`, `start_time`, `end_time`, `excuse_reason`, `document`, `excuse_status`, `attendance_status`, `rejected_level`, `updated_by`, `updated_date_time`) VALUES
(2, 2, 2, '', '', '2025-06-19', '10:00:00', '18:00:00', 'tee', '', 'Y', 1, 0, 10, '2025-06-26 08:50:20');

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

--
-- Table structure for table `erp_hr_employee_attendance_warning`
--

CREATE TABLE `erp_hr_employee_attendance_warning` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `date_from` date NOT NULL,
  `date_to` date NOT NULL,
  `view_status` int(11) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_biometric_exclude`
--

CREATE TABLE `erp_hr_employee_biometric_exclude` (
  `id` int(11) NOT NULL,
  `branch` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_biometric_exclude`
--

INSERT INTO `erp_hr_employee_biometric_exclude` (`id`, `branch`, `employee_id`) VALUES
(2, 1, 1);

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

--
-- Table structure for table `erp_hr_employee_branch`
--

CREATE TABLE `erp_hr_employee_branch` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_branch`
--

INSERT INTO `erp_hr_employee_branch` (`id`, `employee_id`, `branch_id`, `from_date`, `to_date`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 1, '2021-02-10', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(2, 2, 1, '2024-02-07', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(3, 3, 1, '2004-05-12', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_brand_salary_percent`
--

CREATE TABLE `erp_hr_employee_brand_salary_percent` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `brand_id` int(11) NOT NULL,
  `salary_percent` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_bussiness_trip`
--

CREATE TABLE `erp_hr_employee_bussiness_trip` (
  `id` int(11) NOT NULL,
  `function_type` int(11) DEFAULT NULL,
  `employee_id` varchar(200) NOT NULL,
  `last_approved_level` tinyint(4) NOT NULL,
  `last_cancel_level` tinyint(4) NOT NULL DEFAULT -1,
  `apply_date` date NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `no_days` decimal(5,1) NOT NULL,
  `leave_reason` text NOT NULL,
  `ticket_applied` tinyint(4) NOT NULL DEFAULT 0,
  `travel_date` date NOT NULL,
  `travel_destination` varchar(700) NOT NULL,
  `return_date` date NOT NULL,
  `return_destination` varchar(700) NOT NULL,
  `status` int(11) NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_approved_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_id` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `status_cancel` int(11) NOT NULL DEFAULT 0,
  `cancel_reason_employee` text NOT NULL,
  `date_apply_cancel` date NOT NULL,
  `cancel_level_1_id` int(11) NOT NULL,
  `date_cancel_level_1` date NOT NULL,
  `cancel_level_1_comment` text NOT NULL,
  `cancel_level_2_id` int(11) NOT NULL,
  `date_cancel_level_2` date NOT NULL,
  `cancel_level_2_comment` text NOT NULL,
  `cancel_level_3_id` int(11) NOT NULL,
  `date_cancel_level_3` date NOT NULL,
  `cancel_level_3_comment` text NOT NULL,
  `cancel_level_4_id` int(11) NOT NULL,
  `date_cancel_level_4` date NOT NULL,
  `cancel_level_4_comment` text NOT NULL,
  `cancel_level_5_id` int(11) NOT NULL,
  `date_cancel_level_5` date NOT NULL,
  `cancel_level_5_comment` text NOT NULL,
  `cancel_approved_id` int(11) NOT NULL,
  `date_cancel_hr` date NOT NULL,
  `cancel_comment_hr` text NOT NULL,
  `view_status` int(11) NOT NULL DEFAULT 0 COMMENT '0-Not viewed,1-Viewed',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_certificate`
--

CREATE TABLE `erp_hr_employee_certificate` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` tinyint(4) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `reference_no` varchar(255) NOT NULL,
  `certificate_id` int(11) NOT NULL,
  `addresses_to` text NOT NULL,
  `vehicle_type` int(11) NOT NULL COMMENT '1-Automatic,2-Manual',
  `apply_date` date NOT NULL,
  `apply_notes` text NOT NULL,
  `month` int(11) NOT NULL,
  `salary_year` int(11) NOT NULL,
  `new_salary` decimal(15,2) NOT NULL,
  `visa_type` int(11) NOT NULL COMMENT '1=''Visit Visa'',2=''Single Entry'',3=''Multiple Entry''',
  `visit_from` date NOT NULL,
  `visit_to` date NOT NULL,
  `visit_purpose` int(11) NOT NULL COMMENT '1-''Tourist'',2-''Business''',
  `visit_country` int(11) NOT NULL,
  `visitcompny_town` varchar(500) NOT NULL,
  `visit_reason` text NOT NULL,
  `embassy` varchar(500) NOT NULL,
  `born_city` varchar(500) NOT NULL,
  `certificate_document` varchar(255) NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approval_id` int(11) NOT NULL,
  `approval_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `performance_month_1` decimal(10,2) NOT NULL,
  `performance_month_2` decimal(10,2) NOT NULL,
  `performance_month_3` decimal(10,2) NOT NULL,
  `probation` int(11) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1-Applied,2-Approve,3-Rejected,4-downloaded',
  `view_status` int(11) NOT NULL COMMENT '1-Not viewd,2-Viewed',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_certificate`
--

INSERT INTO `erp_hr_employee_certificate` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `reference_no`, `certificate_id`, `addresses_to`, `vehicle_type`, `apply_date`, `apply_notes`, `month`, `salary_year`, `new_salary`, `visa_type`, `visit_from`, `visit_to`, `visit_purpose`, `visit_country`, `visitcompny_town`, `visit_reason`, `embassy`, `born_city`, `certificate_document`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approval_id`, `approval_date`, `approval_comment`, `performance_month_1`, `performance_month_2`, `performance_month_3`, `probation`, `status`, `view_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 8, 1, 1, 1, '1000', 1, '', 0, '2025-06-23', 'tests', 0, 0, 0.00, 0, '0000-00-00', '0000-00-00', 0, 0, '', '', '', '', 'Salary Certificate - pdf salary certificate.pdf', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-26', '', 0.00, 0.00, 0.00, 0, 14, 0, 8, '2025-06-23 09:54:47', 10, '2025-06-26 11:19:34'),
(3, 8, 1, 1, 1, '', 1, '', 0, '2025-06-26', 'test', 0, 0, 0.00, 0, '0000-00-00', '0000-00-00', 0, 0, '', '', '', '', 'Salary Certificate - pdf salary certificate21.pdf', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-26', '', 0.00, 0.00, 0.00, 0, 14, 0, 10, '2025-06-26 11:22:07', 10, '2025-06-26 11:22:55'),
(4, 8, 2, 0, 1, '', 2, '', 0, '2025-06-26', 'tests', 0, 0, 0.00, 0, '0000-00-00', '0000-00-00', 0, 0, '', '', '', '', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0.00, 0.00, 0.00, 0, 1, 0, 10, '2025-06-26 11:33:42', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_complaint_suggestion`
--

CREATE TABLE `erp_hr_employee_complaint_suggestion` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `complaint_suggestion` text NOT NULL,
  `created_date` date NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0-requested,1-hr_approved',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_complaint_suggestion`
--

INSERT INTO `erp_hr_employee_complaint_suggestion` (`id`, `employee_id`, `complaint_suggestion`, `created_date`, `status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 1, 'testse', '2025-06-23', 0, 8, '2025-06-23 10:36:33', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_contacts`
--

CREATE TABLE `erp_hr_employee_contacts` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `contact_person_name` varchar(700) NOT NULL,
  `local_contact_number` varchar(100) NOT NULL,
  `home_country_contact` varchar(100) NOT NULL,
  `address` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_department`
--

CREATE TABLE `erp_hr_employee_department` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `department_id` int(11) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_department`
--

INSERT INTO `erp_hr_employee_department` (`id`, `employee_id`, `department_id`, `from_date`, `to_date`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 3, '2021-02-10', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(2, 2, 9, '2024-02-07', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(3, 3, 9, '2004-05-12', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_dependants`
--

CREATE TABLE `erp_hr_employee_dependants` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `dependant_name` varchar(500) NOT NULL,
  `date_of_birth` date NOT NULL,
  `relationship` int(11) NOT NULL,
  `nationality` int(11) NOT NULL,
  `document_id` int(11) NOT NULL,
  `renewal_date` date NOT NULL,
  `document_upload` varchar(500) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_designation`
--

CREATE TABLE `erp_hr_employee_designation` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `designation_id` int(11) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_designation`
--

INSERT INTO `erp_hr_employee_designation` (`id`, `employee_id`, `designation_id`, `from_date`, `to_date`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 3, '2021-02-10', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(2, 2, 5, '2024-02-07', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(3, 3, 5, '2004-05-12', '0000-00-00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_documents`
--

CREATE TABLE `erp_hr_employee_documents` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `document_id` int(11) NOT NULL,
  `document_number` varchar(255) NOT NULL,
  `document_file` varchar(500) NOT NULL,
  `validate_till_date` date NOT NULL,
  `renew_on` date NOT NULL,
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '0-Not in Process,1-In Process',
  `expiry_notify` int(11) NOT NULL DEFAULT 0 COMMENT '0-No,1-Yes',
  `inprocess_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_document_expiry`
--

CREATE TABLE `erp_hr_employee_document_expiry` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `description` varchar(30) NOT NULL,
  `document_number` varchar(30) NOT NULL,
  `document_type` int(11) NOT NULL,
  `document_name` text NOT NULL,
  `validate_till_date` date NOT NULL,
  `renew_on` date NOT NULL,
  `status` int(11) NOT NULL,
  `inprocess_date` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_eos`
--

CREATE TABLE `erp_hr_employee_eos` (
  `id` int(11) NOT NULL,
  `branch_or_sponsor_id` int(11) NOT NULL,
  `gratuity_rule_id` int(11) NOT NULL,
  `releaving_type` int(11) NOT NULL,
  `apply_date` date NOT NULL,
  `employee_id` int(11) NOT NULL,
  `service_days` decimal(15,2) NOT NULL,
  `leave_encashed_balance` decimal(10,2) NOT NULL,
  `leave_settlement` decimal(15,2) NOT NULL,
  `overtime_salary` decimal(15,2) NOT NULL,
  `gratuity` decimal(15,2) NOT NULL,
  `notice_period_salary` decimal(15,2) NOT NULL,
  `employee_salary` decimal(15,2) NOT NULL,
  `addition_others` decimal(15,2) NOT NULL,
  `additions` decimal(15,2) NOT NULL,
  `salary_advance` decimal(15,2) NOT NULL,
  `leave_amount` decimal(15,2) NOT NULL,
  `loan` decimal(15,2) NOT NULL,
  `pension_amount` decimal(15,2) NOT NULL,
  `deduction_others` decimal(15,2) NOT NULL,
  `deductions` decimal(15,2) NOT NULL,
  `total_amount` decimal(15,2) NOT NULL,
  `salary_start_date` date NOT NULL,
  `date_leaving` date NOT NULL,
  `hr_comment` text NOT NULL,
  `resignation_document` varchar(500) NOT NULL,
  `hr_exit_document` varchar(500) NOT NULL,
  `eosclearance_document` varchar(500) NOT NULL,
  `lop` decimal(10,2) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-Bank Tranfer',
  `remarks` text NOT NULL,
  `credit_account` int(11) NOT NULL,
  `cheque_no` varchar(50) NOT NULL,
  `cheque_date` date NOT NULL,
  `approve_date` date NOT NULL,
  `payment_date` date NOT NULL,
  `finance_posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_eos`
--

INSERT INTO `erp_hr_employee_eos` (`id`, `branch_or_sponsor_id`, `gratuity_rule_id`, `releaving_type`, `apply_date`, `employee_id`, `service_days`, `leave_encashed_balance`, `leave_settlement`, `overtime_salary`, `gratuity`, `notice_period_salary`, `employee_salary`, `addition_others`, `additions`, `salary_advance`, `leave_amount`, `loan`, `pension_amount`, `deduction_others`, `deductions`, `total_amount`, `salary_start_date`, `date_leaving`, `hr_comment`, `resignation_document`, `hr_exit_document`, `eosclearance_document`, `lop`, `status`, `payment_mode`, `remarks`, `credit_account`, `cheque_no`, `cheque_date`, `approve_date`, `payment_date`, `finance_posted`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 1, 2, '2025-06-23', 3, 7700.00, 15.00, 2250.00, 0.00, 88108.00, 0.00, 1500.00, 0.00, 91858.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 91858.00, '2025-06-01', '2025-06-10', '', '', '', '', 0.00, 1, 0, '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', 'N', 1, '2025-06-23 09:19:25', 0, '0000-00-00 00:00:00'),
(2, 1, 1, 2, '2025-06-27', 2, 521.00, 0.00, 0.00, 0.00, 2999.00, 3000.00, 0.00, 0.00, 5999.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 5999.00, '2025-08-01', '2025-07-11', '', '', '', '', 0.00, 1, 0, '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', 'N', 1, '2025-06-27 02:33:12', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_eos_clearance`
--

CREATE TABLE `erp_hr_employee_eos_clearance` (
  `id` int(11) NOT NULL,
  `eos_id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `apply_date` date NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0,
  `remarks` text NOT NULL,
  `view_status` int(11) NOT NULL DEFAULT 0,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_department_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level1_document` varchar(700) NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_department_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level2_document` varchar(700) NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_department_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level3_document` varchar(700) NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_department_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level4_document` varchar(700) NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_department_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approve_level5_document` varchar(700) NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_department_id` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approve_comments` text NOT NULL,
  `approved_document` varchar(700) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_eos_clearance`
--

INSERT INTO `erp_hr_employee_eos_clearance` (`id`, `eos_id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `apply_date`, `status`, `remarks`, `view_status`, `approve_level1_id`, `approve_level1_department_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level1_document`, `approve_level2_id`, `approve_level2_department_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level2_document`, `approve_level3_id`, `approve_level3_department_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level3_document`, `approve_level4_id`, `approve_level4_department_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level4_document`, `approve_level5_id`, `approve_level5_department_id`, `approve_level5_date`, `approve_level5_comment`, `approve_level5_document`, `approved_by`, `approved_department_id`, `approved_date`, `approve_comments`, `approved_document`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 2, 13, 1, 1, 2, '2025-06-27', 12, '', 0, 0, 0, '0000-00-00', '', '', 0, 0, '0000-00-00', '', '', 0, 0, '0000-00-00', '', '', 0, 0, '0000-00-00', '', '', 0, 0, '0000-00-00', '', '', 1, 1, '2025-06-27', 'test', 'sample-11-1  2 .pdf', 1, '2025-06-27 02:33:12', 10, '2025-06-27 15:03:44');

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

--
-- Table structure for table `erp_hr_employee_eos_clearance_details`
--

CREATE TABLE `erp_hr_employee_eos_clearance_details` (
  `id` int(11) NOT NULL,
  `eos_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `clearance_id` int(11) NOT NULL,
  `clearance_status` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_eos_details`
--

CREATE TABLE `erp_hr_employee_eos_details` (
  `id` int(11) NOT NULL,
  `eos_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `salary_id` int(11) NOT NULL,
  `salary_name` varchar(255) NOT NULL,
  `salary_amount` decimal(15,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_eos_details`
--

INSERT INTO `erp_hr_employee_eos_details` (`id`, `eos_id`, `employee_id`, `salary_id`, `salary_name`, `salary_amount`) VALUES
(1, 1, 3, 1, 'Basic', 4500.00),
(2, 2, 2, 1, 'Basic', 3000.00);

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

--
-- Table structure for table `erp_hr_employee_eos_payment`
--

CREATE TABLE `erp_hr_employee_eos_payment` (
  `id` int(11) NOT NULL,
  `eos_id` int(11) NOT NULL,
  `mas_payment_type` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `amount` decimal(10,3) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_expense`
--

CREATE TABLE `erp_hr_employee_expense` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `total` varchar(255) NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `created_date` date NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0,
  `payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-Bank Tranfer ',
  `payment_date` date NOT NULL,
  `remarks` text NOT NULL,
  `credit_account` int(11) NOT NULL,
  `cheque_date` date NOT NULL,
  `payment_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `cheque_no` varchar(50) NOT NULL,
  `accounts_verified` enum('Y','N') NOT NULL DEFAULT 'N',
  `verified_by` int(11) NOT NULL,
  `verified_by_name` varchar(700) NOT NULL,
  `verified_date_time` datetime NOT NULL,
  `finance_posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `view_status` int(11) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_expense`
--

INSERT INTO `erp_hr_employee_expense` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `total`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `created_date`, `status`, `payment_mode`, `payment_date`, `remarks`, `credit_account`, `cheque_date`, `payment_status`, `cheque_no`, `accounts_verified`, `verified_by`, `verified_by_name`, `verified_date_time`, `finance_posted`, `view_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 3, 1, 1, 1, '100', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-26', 'test approval', '2025-06-24', 12, 0, '0000-00-00', '', 0, '0000-00-00', 'N', '', 'N', 0, '', '0000-00-00 00:00:00', 'N', 1, 8, '2025-06-24 08:12:08', 10, '2025-06-27 15:49:22');

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

--
-- Table structure for table `erp_hr_employee_expense_details`
--

CREATE TABLE `erp_hr_employee_expense_details` (
  `id` int(11) NOT NULL,
  `expense_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `expense_component_id` int(11) NOT NULL,
  `expense_date` date NOT NULL,
  `currency_id` int(11) NOT NULL,
  `exchange_rate` decimal(15,2) NOT NULL,
  `notes` text NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `grand_total` decimal(15,2) NOT NULL,
  `file` varchar(255) NOT NULL,
  `person_attended_entertained` varchar(700) NOT NULL,
  `company` varchar(700) NOT NULL,
  `place` varchar(700) NOT NULL,
  `business_details` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_expense_details`
--

INSERT INTO `erp_hr_employee_expense_details` (`id`, `expense_id`, `employee_id`, `expense_component_id`, `expense_date`, `currency_id`, `exchange_rate`, `notes`, `amount`, `grand_total`, `file`, `person_attended_entertained`, `company`, `place`, `business_details`) VALUES
(1, 1, 1, 1, '2025-06-24', 1, 1.00, 'test petrol', 100.00, 100.00, '', '', '', '', '');

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

--
-- Table structure for table `erp_hr_employee_geocode`
--

CREATE TABLE `erp_hr_employee_geocode` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `geocode_location_id` int(11) NOT NULL,
  `latitude` varchar(200) NOT NULL,
  `longitude` varchar(200) NOT NULL,
  `description` varchar(700) NOT NULL,
  `isActive` enum('Y','N') NOT NULL,
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_geocode_history`
--

CREATE TABLE `erp_hr_employee_geocode_history` (
  `id` int(11) NOT NULL,
  `geocode_tble_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `geocode_location_id` int(11) NOT NULL,
  `latitude` varchar(200) NOT NULL,
  `longitude` varchar(200) NOT NULL,
  `description` varchar(300) NOT NULL,
  `geo_tble_created_by` int(11) NOT NULL,
  `geo_tble_created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_geocode_history`
--

INSERT INTO `erp_hr_employee_geocode_history` (`id`, `geocode_tble_id`, `employee_id`, `geocode_location_id`, `latitude`, `longitude`, `description`, `geo_tble_created_by`, `geo_tble_created_date_time`, `created_by`, `created_date_time`) VALUES
(1, 1, 3, 1, '', '', '', 1, '2025-06-24 17:30:57', 1, '2025-06-25 08:08:55');

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

--
-- Table structure for table `erp_hr_employee_inout_document`
--

CREATE TABLE `erp_hr_employee_inout_document` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `in_out_document_id` int(11) NOT NULL,
  `in_out_type` int(11) NOT NULL,
  `in_out_date` date NOT NULL,
  `in_out_remarks` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_inprocess_document`
--

CREATE TABLE `erp_hr_employee_inprocess_document` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `document_id` int(11) NOT NULL,
  `stage_id` int(11) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `completed` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_leave`
--

CREATE TABLE `erp_hr_employee_leave` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_type` int(11) NOT NULL,
  `leave_year` int(11) NOT NULL,
  `leave_opening` decimal(10,2) NOT NULL,
  `leave_current_balance` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_leave`
--

INSERT INTO `erp_hr_employee_leave` (`id`, `employee_id`, `leave_type`, `leave_year`, `leave_opening`, `leave_current_balance`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 2, 1, 2025, 10.00, 9.00, 8, '2025-06-18 14:44:37', 1, '2025-06-27 16:07:55'),
(2, 1, 1, 2025, 30.00, 27.00, 8, '2025-06-20 15:37:06', 10, '2025-06-30 11:11:19'),
(3, 3, 1, 2025, 30.00, 30.00, 1, '2025-06-23 09:17:14', 0, '0000-00-00 00:00:00'),
(4, 3, 2, 2025, 5.00, 5.00, 1, '2025-06-27 16:29:50', 0, '0000-00-00 00:00:00'),
(5, 1, 2, 2025, 5.00, 5.00, 1, '2025-06-27 16:29:50', 0, '0000-00-00 00:00:00'),
(6, 2, 3, 2025, 5.00, 5.00, 1, '2025-06-27 16:30:02', 0, '0000-00-00 00:00:00'),
(7, 3, 4, 2025, 10.00, 10.00, 1, '2025-06-27 16:30:15', 0, '0000-00-00 00:00:00'),
(8, 2, 4, 2025, 10.00, 10.00, 1, '2025-06-27 16:30:15', 0, '0000-00-00 00:00:00'),
(9, 1, 4, 2025, 10.00, 10.00, 1, '2025-06-27 16:30:15', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_leavesettlement`
--

CREATE TABLE `erp_hr_employee_leavesettlement` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `date_rejoin` date NOT NULL,
  `date_leave` date NOT NULL,
  `date_applied` date NOT NULL,
  `date_approved` date NOT NULL,
  `employee_service_days` varchar(25) NOT NULL,
  `employee_service_period` varchar(255) NOT NULL,
  `available_leaves` decimal(10,2) NOT NULL,
  `balance_leave` decimal(10,2) NOT NULL,
  `encashed_leaves` decimal(10,2) NOT NULL,
  `leave_salary` decimal(10,2) NOT NULL,
  `other_payments` decimal(10,2) NOT NULL,
  `settlement_amount` decimal(10,2) NOT NULL,
  `notes` text NOT NULL,
  `prepared_by` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `checked_by` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `checked_finance_manger` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `checked_gm` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '1-Applied,2-Approved',
  `payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-Bank Tranfer',
  `payment_date` date NOT NULL,
  `credit_account` int(11) NOT NULL,
  `cheque_date` date NOT NULL,
  `cheque_no` varchar(255) NOT NULL,
  `remarks` text NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_leavesettlement`
--

INSERT INTO `erp_hr_employee_leavesettlement` (`id`, `employee_id`, `date_rejoin`, `date_leave`, `date_applied`, `date_approved`, `employee_service_days`, `employee_service_period`, `available_leaves`, `balance_leave`, `encashed_leaves`, `leave_salary`, `other_payments`, `settlement_amount`, `notes`, `prepared_by`, `checked_by`, `checked_finance_manger`, `checked_gm`, `status`, `payment_mode`, `payment_date`, `credit_account`, `cheque_date`, `cheque_no`, `remarks`, `posted`) VALUES
(1, 2, '2024-02-07', '2025-06-09', '2025-06-20', '0000-00-00', '1.3', '1 Yrs 4 Month 2 Day', 9.00, 8.00, 1.00, 100.00, 400.00, 500.00, '', 8, 0, 0, 0, 1, 0, '0000-00-00', 0, '0000-00-00', '', '', 'N');

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

--
-- Table structure for table `erp_hr_employee_leave_detail`
--

CREATE TABLE `erp_hr_employee_leave_detail` (
  `id` int(11) NOT NULL,
  `function_type` int(11) DEFAULT NULL COMMENT 'For Leave Approval Procedure',
  `max_level` int(11) NOT NULL,
  `employee_id` varchar(200) NOT NULL,
  `last_approved_level` tinyint(4) NOT NULL,
  `last_cancel_level` tinyint(4) NOT NULL DEFAULT -1,
  `leave_start_date` date NOT NULL,
  `leave_end_date` date NOT NULL,
  `no_days` decimal(5,1) NOT NULL,
  `half_day_leave` enum('Y','N') NOT NULL DEFAULT 'N',
  `half_day_time` varchar(2) NOT NULL,
  `normal_leave` decimal(10,2) NOT NULL COMMENT 'Leave count deducted from employee leave',
  `salary_deduction_leave` decimal(10,2) NOT NULL COMMENT 'Leave count for salary deduction',
  `leave_reason` text NOT NULL,
  `medical_certificate` varchar(500) NOT NULL,
  `leave_type` int(11) NOT NULL,
  `ticket_applied` tinyint(4) NOT NULL DEFAULT 0,
  `travel_date` date NOT NULL,
  `travel_destination` varchar(700) NOT NULL,
  `return_date` date NOT NULL,
  `return_destination` varchar(700) NOT NULL,
  `leave_status` int(11) NOT NULL COMMENT '1-Applied,2-Line Manager Approved,3-Line Manager Rejected,4-HR Approved,5-HR Rejected,6-cancelled',
  `status_cancel` int(11) NOT NULL DEFAULT 0,
  `line_manager_id` int(11) NOT NULL,
  `line_manager_approved_date` date NOT NULL,
  `line_manager_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_id` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `hr_comment` text NOT NULL,
  `leave_approval_document` varchar(255) NOT NULL,
  `cancel_reason_employee` text NOT NULL,
  `date_apply_cancel` date NOT NULL,
  `cancel_level_1_id` int(11) NOT NULL,
  `date_cancel_lm` date NOT NULL,
  `cancel_comment_lm` text NOT NULL,
  `cancel_level_2_id` int(11) NOT NULL,
  `date_cancel_level_2` date NOT NULL,
  `cancel_level_2_comment` text NOT NULL,
  `cancel_level_3_id` int(11) NOT NULL,
  `date_cancel_level_3` date NOT NULL,
  `cancel_level_3_comment` text NOT NULL,
  `cancel_level_4_id` int(11) NOT NULL,
  `date_cancel_level_4` date NOT NULL,
  `cancel_level_4_comment` text NOT NULL,
  `cancel_level_5_id` int(11) NOT NULL,
  `date_cancel_level_5` date NOT NULL,
  `cancel_level_5_comment` text NOT NULL,
  `cancel_approved_id` int(11) NOT NULL,
  `date_cancel_hr` date NOT NULL,
  `cancel_comment_hr` text NOT NULL,
  `apply_date` date NOT NULL,
  `apply_by` int(11) NOT NULL,
  `lm_view_status` int(11) NOT NULL DEFAULT 0,
  `lm_cancel_view_status` int(11) NOT NULL DEFAULT 0,
  `view_status` int(11) NOT NULL DEFAULT 0 COMMENT '0-Not viewed,1-Viewed',
  `hr_cancel_view_status` int(11) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_leave_detail`
--

INSERT INTO `erp_hr_employee_leave_detail` (`id`, `function_type`, `max_level`, `employee_id`, `last_approved_level`, `last_cancel_level`, `leave_start_date`, `leave_end_date`, `no_days`, `half_day_leave`, `half_day_time`, `normal_leave`, `salary_deduction_leave`, `leave_reason`, `medical_certificate`, `leave_type`, `ticket_applied`, `travel_date`, `travel_destination`, `return_date`, `return_destination`, `leave_status`, `status_cancel`, `line_manager_id`, `line_manager_approved_date`, `line_manager_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_id`, `approved_date`, `hr_comment`, `leave_approval_document`, `cancel_reason_employee`, `date_apply_cancel`, `cancel_level_1_id`, `date_cancel_lm`, `cancel_comment_lm`, `cancel_level_2_id`, `date_cancel_level_2`, `cancel_level_2_comment`, `cancel_level_3_id`, `date_cancel_level_3`, `cancel_level_3_comment`, `cancel_level_4_id`, `date_cancel_level_4`, `cancel_level_4_comment`, `cancel_level_5_id`, `date_cancel_level_5`, `cancel_level_5_comment`, `cancel_approved_id`, `date_cancel_hr`, `cancel_comment_hr`, `apply_date`, `apply_by`, `lm_view_status`, `lm_cancel_view_status`, `view_status`, `hr_cancel_view_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 1, '2', 1, -1, '2025-06-20', '2025-06-20', 1.0, 'N', '', 1.00, 0.00, 'test', '', 1, 0, '0000-00-00', '', '0000-00-00', '', 27, 0, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 2, '2025-06-20', 'tests', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '2025-06-27', 'Cancelled by HR', '2025-06-18', 1, 0, 0, 0, 0, 1, '2025-06-18 15:16:09', 1, '2025-06-27 16:07:55'),
(2, 1, 2, '2', 2, -1, '2025-06-27', '2025-06-27', 1.0, 'N', '', 1.00, 0.00, 'tests', '', 1, 0, '0000-00-00', '', '0000-00-00', '', 12, 0, 2, '2025-06-20', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-27', 'test', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '2025-06-20', 8, 0, 0, 0, 0, 8, '2025-06-20 12:59:30', 10, '2025-06-27 11:03:13'),
(3, 2, 1, '1', 1, -1, '2025-07-04', '2025-07-04', 1.0, 'N', '', 1.00, 0.00, 'test', '', 1, 0, '0000-00-00', '', '0000-00-00', '', 12, 0, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-27', 'tswes', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '2025-06-27', 10, 0, 0, 0, 0, 10, '2025-06-27 11:21:44', 10, '2025-06-27 11:21:58'),
(5, 1, 2, '2', 0, -1, '2025-07-11', '2025-07-11', 1.0, 'N', '', 1.00, 0.00, 'tests', '', 4, 0, '0000-00-00', '', '0000-00-00', '', 1, 0, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '2025-06-27', 11, 0, 0, 0, 0, 11, '2025-06-27 17:01:50', 0, '0000-00-00 00:00:00'),
(6, 2, 1, '1', 0, -1, '2025-06-28', '2025-06-28', 1.0, 'N', '', 1.00, 0.00, 'test', '', 4, 0, '0000-00-00', '', '0000-00-00', '', 0, 0, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '2025-06-27', 10, 0, 0, 0, 0, 10, '2025-06-27 17:01:52', 0, '0000-00-00 00:00:00'),
(7, 2, 1, '1', 1, -1, '2025-07-16', '2025-07-17', 2.0, 'N', '', 2.00, 0.00, 'test', '', 5, 0, '0000-00-00', '', '0000-00-00', '', 12, 0, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-30', '', '', '', '0000-00-00', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '2025-06-30', 10, 0, 0, 0, 0, 10, '2025-06-30 11:09:26', 10, '2025-06-30 11:11:19');

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

--
-- Table structure for table `erp_hr_employee_leave_encashment`
--

CREATE TABLE `erp_hr_employee_leave_encashment` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_type_id` int(11) NOT NULL,
  `encashment_year` int(11) NOT NULL,
  `encashable_leave` decimal(10,2) NOT NULL,
  `encashment_amount` decimal(10,2) NOT NULL,
  `apply_date` date NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approval_comment` text NOT NULL,
  `approve_date` date NOT NULL,
  `payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-Bank Tranfer',
  `payment_date` date NOT NULL,
  `remarks` text NOT NULL,
  `approval_document` varchar(500) NOT NULL,
  `credit_account` int(11) NOT NULL,
  `cheque_date` date NOT NULL,
  `cheque_no` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `view_status` int(11) NOT NULL COMMENT '1-Not viewd,2-Viewed',
  `payment_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `finance_posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_leave_encashment`
--

INSERT INTO `erp_hr_employee_leave_encashment` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `leave_type_id`, `encashment_year`, `encashable_leave`, `encashment_amount`, `apply_date`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approval_comment`, `approve_date`, `payment_mode`, `payment_date`, `remarks`, `approval_document`, `credit_account`, `cheque_date`, `cheque_no`, `status`, `view_status`, `payment_status`, `finance_posted`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 6, 1, 1, 1, 1, 2025, 10.00, 1867.00, '2025-06-20', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '', '2025-06-27', 0, '0000-00-00', '', '', 0, '0000-00-00', '', 13, 1, 'N', 'N', 8, '2025-06-20 15:38:36', 10, '2025-06-27 11:21:24');

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

--
-- Table structure for table `erp_hr_employee_leave_excuse`
--

CREATE TABLE `erp_hr_employee_leave_excuse` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `customer_name` varchar(255) NOT NULL,
  `request_date` date NOT NULL,
  `duration_type` int(11) NOT NULL DEFAULT 1,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `excuse_reason` text NOT NULL,
  `type` int(11) NOT NULL COMMENT '1-Meeting,2-Excuse',
  `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0-not viewed,1-viewed',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_leave_ledger`
--

CREATE TABLE `erp_hr_employee_leave_ledger` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_type` int(11) NOT NULL,
  `leave_count` decimal(10,2) NOT NULL,
  `leave_reduce` decimal(10,2) NOT NULL,
  `remarks` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_leave_ledger`
--

INSERT INTO `erp_hr_employee_leave_ledger` (`id`, `employee_id`, `leave_type`, `leave_count`, `leave_reduce`, `remarks`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 2, 1, 10.00, 0.00, '2025 Year Leave', 8, '2025-06-18 14:44:37', 0, '0000-00-00 00:00:00'),
(2, 3, 1, 30.00, 0.00, '2025 Year Leave', 1, '2025-06-23 09:17:14', 0, '0000-00-00 00:00:00'),
(3, 2, 1, 1.00, 0.00, 'Leave added by cancellation of leave from 20/06/2025 to 20/06/2025', 1, '2025-06-27 16:07:55', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_leave_migrated`
--

CREATE TABLE `erp_hr_employee_leave_migrated` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_type` int(11) NOT NULL,
  `leave_start_date` date NOT NULL,
  `leave_end_date` date NOT NULL,
  `no_days` decimal(5,1) NOT NULL,
  `leave_reason` text NOT NULL,
  `ticket_applied` tinyint(4) NOT NULL DEFAULT 0,
  `leave_status` enum('M') NOT NULL DEFAULT 'M' COMMENT 'Migrated ',
  `medical_certificate` varchar(500) NOT NULL,
  `hr_comment` text NOT NULL,
  `leave_approval_document` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_leave_migrated`
--

INSERT INTO `erp_hr_employee_leave_migrated` (`id`, `employee_id`, `leave_type`, `leave_start_date`, `leave_end_date`, `no_days`, `leave_reason`, `ticket_applied`, `leave_status`, `medical_certificate`, `hr_comment`, `leave_approval_document`, `created_by`, `created_date_time`) VALUES
(1, 2, 1, '2025-04-07', '2025-04-07', 1.0, 'test', 0, 'M', '', '', '', 8, '2025-06-20 16:36:30');

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

--
-- Table structure for table `erp_hr_employee_loan`
--

CREATE TABLE `erp_hr_employee_loan` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `loan_id` int(11) NOT NULL,
  `loan_amount` decimal(10,2) NOT NULL,
  `date_payment` date NOT NULL,
  `loan_installment` int(11) NOT NULL,
  `added_from` int(11) NOT NULL DEFAULT 1 COMMENT '1-payment form,2-Salary lock',
  `salary_lock_id` int(11) NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `voucher_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_loan_detail`
--

CREATE TABLE `erp_hr_employee_loan_detail` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL DEFAULT 0,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL DEFAULT 0,
  `employee_id` int(11) NOT NULL,
  `apply_date` date NOT NULL,
  `reason_loan` text NOT NULL,
  `loan_amount` decimal(10,2) NOT NULL,
  `proposed_installment` int(11) NOT NULL,
  `proposed_monthly_installment` decimal(10,2) NOT NULL,
  `loan_repayment` decimal(10,2) NOT NULL,
  `loan_monthly_payment` decimal(15,2) NOT NULL,
  `loan_total_installment` int(11) NOT NULL,
  `repayment_start_month` int(11) NOT NULL,
  `repayment_start_year` int(11) NOT NULL,
  `repayment_start_date` date NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `loan_taken` date NOT NULL,
  `payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-Bank Tranfer',
  `credit_account` int(11) NOT NULL,
  `cheque_date` date NOT NULL,
  `cheque_no` varchar(50) NOT NULL,
  `payment_date` date NOT NULL,
  `remarks` text NOT NULL,
  `view_status` int(11) NOT NULL DEFAULT 0,
  `loan_status` int(11) NOT NULL DEFAULT 0,
  `loan_posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_loan_detail`
--

INSERT INTO `erp_hr_employee_loan_detail` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `apply_date`, `reason_loan`, `loan_amount`, `proposed_installment`, `proposed_monthly_installment`, `loan_repayment`, `loan_monthly_payment`, `loan_total_installment`, `repayment_start_month`, `repayment_start_year`, `repayment_start_date`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `loan_taken`, `payment_mode`, `credit_account`, `cheque_date`, `cheque_no`, `payment_date`, `remarks`, `view_status`, `loan_status`, `loan_posted`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(2, 7, 1, 1, 1, '2025-06-23', '', 1000.00, 2, 500.00, 0.00, 500.00, 2, 7, 2025, '2025-07-01', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 1, '2025-06-23', '', '0000-00-00', 0, 0, '0000-00-00', '', '0000-00-00', '', 1, 12, 'N', 8, '2025-06-23 08:35:28', 10, '2025-06-26 17:46:41', 'Y'),
(3, 7, 1, 0, 1, '2025-06-27', 'd', 1000.00, 4, 250.00, 0.00, 0.00, 0, 9, 2025, '2025-09-01', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', '0000-00-00', 0, 0, '0000-00-00', '', '0000-00-00', '', 0, 1, 'N', 10, '2025-06-27 09:01:01', 10, '2025-06-27 09:01:17', 'Y');

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

--
-- Table structure for table `erp_hr_employee_notes`
--

CREATE TABLE `erp_hr_employee_notes` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `notes` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_notes`
--

INSERT INTO `erp_hr_employee_notes` (`id`, `employee_id`, `notes`, `created_by`, `created_date_time`) VALUES
(1, 1, 'test', 8, '2025-06-24 10:36:18');

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

--
-- Table structure for table `erp_hr_employee_notice_conduct`
--

CREATE TABLE `erp_hr_employee_notice_conduct` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `warning_type` varchar(255) NOT NULL DEFAULT 'Written',
  `reference_no` int(11) NOT NULL,
  `reason` text NOT NULL,
  `type` int(11) NOT NULL DEFAULT 1 COMMENT '1-normal,2-warning,3->unauthorised',
  `month` int(11) NOT NULL DEFAULT 1,
  `year` year(4) NOT NULL,
  `month_1_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `month_2_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `month_3_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `notice_document` varchar(500) NOT NULL,
  `signed_notice_document` varchar(500) NOT NULL,
  `signed_date` date NOT NULL,
  `issued_date` date NOT NULL,
  `subject` text NOT NULL,
  `warning_field_1` text NOT NULL,
  `warning_field_2` text NOT NULL,
  `view_status` int(11) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_notice_conduct`
--

INSERT INTO `erp_hr_employee_notice_conduct` (`id`, `employee_id`, `warning_type`, `reference_no`, `reason`, `type`, `month`, `year`, `month_1_amount`, `month_2_amount`, `month_3_amount`, `notice_document`, `signed_notice_document`, `signed_date`, `issued_date`, `subject`, `warning_field_1`, `warning_field_2`, `view_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 'Written', 0, 'testts', 1, 0, '2024', 0.00, 0.00, 0.00, '', 'sample-11.pdf', '2025-06-25', '2025-06-24', '', '', '', 1, 8, '2025-06-24 11:13:52', 10, '2025-06-25 16:35:07'),
(2, 1, 'Written', 2, 'df', 2, 0, '2024', 0.00, 0.00, 0.00, '', '', '0000-00-00', '0000-00-00', '', '', '', 1, 8, '2025-06-24 11:27:36', 0, '0000-00-00 00:00:00'),
(3, 1, 'Written', 3, 'fds', 3, 0, '2024', 0.00, 0.00, 0.00, '', '', '0000-00-00', '0000-00-00', '', '', '', 1, 8, '2025-06-24 11:28:03', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_offboard`
--

CREATE TABLE `erp_hr_employee_offboard` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `task_id` int(11) NOT NULL,
  `task` text NOT NULL,
  `notes` text NOT NULL,
  `task_done_date` date NOT NULL,
  `task_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_overtime`
--

CREATE TABLE `erp_hr_employee_overtime` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `overtimedate` date NOT NULL,
  `over_time_id` int(11) NOT NULL,
  `hours` decimal(15,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_pension`
--

CREATE TABLE `erp_hr_employee_pension` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `salary_slip_id` int(11) NOT NULL,
  `employee_contribution_amount` decimal(10,2) NOT NULL,
  `company_contribution_amount` decimal(10,2) NOT NULL,
  `total_pension_amount` decimal(10,2) NOT NULL,
  `created_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_purchase`
--

CREATE TABLE `erp_hr_employee_purchase` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL DEFAULT 0 COMMENT 'For Product Request Approval Procedure',
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `apply_date` date NOT NULL,
  `employee_id` int(11) NOT NULL,
  `payment_mode` tinyint(4) NOT NULL COMMENT '1-Cash,2-From Salary',
  `grand_total` decimal(15,2) NOT NULL,
  `status` int(11) NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `apply_by` int(11) NOT NULL,
  `lm_view_status` int(11) NOT NULL DEFAULT 0,
  `view_status` int(11) NOT NULL DEFAULT 0 COMMENT '0-Not viewed,1-Viewed',
  `cancel_reason` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_purchase`
--

INSERT INTO `erp_hr_employee_purchase` (`id`, `function_type`, `max_level`, `last_approved_level`, `apply_date`, `employee_id`, `payment_mode`, `grand_total`, `status`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `apply_by`, `lm_view_status`, `view_status`, `cancel_reason`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 12, 1, 0, '2025-06-27', 1, 1, 120.00, 1, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, 0, 0, '', 10, '2025-06-27 09:32:07', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_purchase_detail`
--

CREATE TABLE `erp_hr_employee_purchase_detail` (
  `id` int(11) NOT NULL,
  `purchase_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `quantity` decimal(15,2) NOT NULL,
  `cost` decimal(15,2) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `total_amount` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_purchase_detail`
--

INSERT INTO `erp_hr_employee_purchase_detail` (`id`, `purchase_id`, `product_id`, `quantity`, `cost`, `amount`, `total_amount`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 2, 1, 1.00, 100.00, 120.00, 120.00, 10, '2025-06-27 09:32:07', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_qualification`
--

CREATE TABLE `erp_hr_employee_qualification` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `qualification` varchar(500) NOT NULL,
  `certificate_validity` date NOT NULL,
  `certificate_document` varchar(500) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_resignation`
--

CREATE TABLE `erp_hr_employee_resignation` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `reason` text NOT NULL,
  `apply_date` date NOT NULL,
  `last_date` date NOT NULL,
  `notice_type` int(11) NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `lm_view_status` int(11) NOT NULL DEFAULT 0,
  `view_status` int(11) NOT NULL DEFAULT 0,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_resignation`
--

INSERT INTO `erp_hr_employee_resignation` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `reason`, `apply_date`, `last_date`, `notice_type`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `status`, `lm_view_status`, `view_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 9, 1, 1, 1, 'test', '2025-06-23', '2025-07-30', 1, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 2, '2025-06-30', '', 13, 0, 0, 8, '2025-06-23 10:16:50', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_salary`
--

CREATE TABLE `erp_hr_employee_salary` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `salary_type` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `valid_from` date NOT NULL,
  `valid_to` date NOT NULL,
  `consider_for_leave_payment` enum('Y','N') NOT NULL DEFAULT 'Y' COMMENT 'Y->yes,N->no',
  `notes` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_salary`
--

INSERT INTO `erp_hr_employee_salary` (`id`, `employee_id`, `salary_type`, `amount`, `valid_from`, `valid_to`, `consider_for_leave_payment`, `notes`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 2, 1, 3000.00, '2024-02-07', '0000-00-00', 'Y', '', 8, '2025-06-18 14:44:37', 0, '0000-00-00 00:00:00', 'Y'),
(2, 1, 1, 5600.00, '2021-02-10', '0000-00-00', 'Y', '', 8, '2025-06-20 15:37:45', 0, '0000-00-00 00:00:00', 'Y'),
(3, 3, 1, 4500.00, '2025-02-06', '0000-00-00', 'Y', '', 1, '2025-06-23 09:17:14', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_employee_salary_advance`
--

CREATE TABLE `erp_hr_employee_salary_advance` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `apply_date` date NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `advance_payment_date` date NOT NULL,
  `payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-Bank Tranfer',
  `credit_account` int(11) NOT NULL,
  `cheque_no` varchar(30) NOT NULL,
  `cheque_date` date NOT NULL,
  `remarks` text NOT NULL,
  `payment_note` text NOT NULL,
  `approval_document` varchar(500) NOT NULL,
  `advance_payment_status` int(11) NOT NULL DEFAULT 0,
  `view_status` int(11) NOT NULL DEFAULT 0,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `paid` enum('Y','N') NOT NULL DEFAULT 'N',
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_salary_advance_payment`
--

CREATE TABLE `erp_hr_employee_salary_advance_payment` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `advance_id` int(11) NOT NULL,
  `advance_amount` decimal(10,2) NOT NULL,
  `payment_date` date NOT NULL,
  `added_from` int(11) NOT NULL DEFAULT 1 COMMENT '1-payment form,2-Salary lock',
  `salary_lock_id` int(11) NOT NULL,
  `posted` enum('N','Y') NOT NULL DEFAULT 'N',
  `voucher_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_salary_deduction_leave`
--

CREATE TABLE `erp_hr_employee_salary_deduction_leave` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_id` int(11) NOT NULL,
  `leave_type_id` int(11) NOT NULL,
  `leave_date` date NOT NULL,
  `salary_deduction_type` enum('Y','H') NOT NULL COMMENT 'Y-Full,H-Half',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_shift`
--

CREATE TABLE `erp_hr_employee_shift` (
  `id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `employee_id` varchar(200) NOT NULL,
  `shift_id` int(11) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `shift_group_identify` int(11) NOT NULL DEFAULT 0,
  `allowance_amount` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_shift`
--

INSERT INTO `erp_hr_employee_shift` (`id`, `branch_id`, `employee_id`, `shift_id`, `from_date`, `to_date`, `shift_group_identify`, `allowance_amount`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 1, '2', 1, '2025-06-19', '2025-06-19', 1, 0.00, 8, '2025-06-19 11:04:02', 0, '0000-00-00 00:00:00'),
(3, 1, '1', 1, '2025-06-19', '2025-06-19', 1, 0.00, 8, '2025-06-19 11:04:08', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_target`
--

CREATE TABLE `erp_hr_employee_target` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `target_type` enum('B','C') NOT NULL DEFAULT 'C',
  `target_amount` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_team`
--

CREATE TABLE `erp_hr_employee_team` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `team_id` int(11) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_ticket`
--

CREATE TABLE `erp_hr_employee_ticket` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `family_member` text NOT NULL,
  `leave_id` int(11) NOT NULL COMMENT 'if applied by an employee/admin along with the leave',
  `leave_type` int(11) NOT NULL,
  `date_apply` date NOT NULL,
  `travel_date` date NOT NULL,
  `travel_destination` varchar(700) NOT NULL,
  `return_date` date DEFAULT NULL,
  `return_destination` varchar(700) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '1-Applied,2-Approved',
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approval_comment` text NOT NULL,
  `date_approved` date NOT NULL,
  `payment_date` date NOT NULL,
  `ticket_amt` decimal(15,2) NOT NULL,
  `approval_document` varchar(500) NOT NULL,
  `notes` text NOT NULL,
  `payment_mode` int(11) NOT NULL,
  `year` int(11) NOT NULL,
  `ticket_type` enum('E','F') NOT NULL DEFAULT 'E' COMMENT 'E-Employee,F-Family Ticket',
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_ticket`
--

INSERT INTO `erp_hr_employee_ticket` (`id`, `employee_id`, `family_member`, `leave_id`, `leave_type`, `date_apply`, `travel_date`, `travel_destination`, `return_date`, `return_destination`, `status`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approval_comment`, `date_approved`, `payment_date`, `ticket_amt`, `approval_document`, `notes`, `payment_mode`, `year`, `ticket_type`, `created_date_time`, `created_by`, `updated_date_time`, `updated_by`) VALUES
(1, 1, '', 0, 1, '2025-06-23', '0000-00-00', '', NULL, NULL, 1, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '', '0000-00-00', '0000-00-00', 1000.00, '', '', 0, 2024, 'E', '2025-06-23 11:13:38', 8, '0000-00-00 00:00:00', 0),
(3, 2, '', 0, 1, '2025-06-23', '0000-00-00', '', NULL, NULL, 2, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '', '2025-09-03', '0000-00-00', 2500.00, '', '', 0, 2024, 'E', '2025-06-23 13:56:43', 1, '2025-09-03 14:31:20', 1),
(5, 2, '', 0, 1, '2025-09-03', '0000-00-00', '', NULL, NULL, 2, 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '', '2025-09-03', '0000-00-00', 1000.00, '', '', 0, 2025, 'E', '2025-09-03 14:31:31', 1, '2025-09-03 14:31:41', 1);

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

--
-- Table structure for table `erp_hr_employee_ticket_encashment`
--

CREATE TABLE `erp_hr_employee_ticket_encashment` (
  `id` int(11) NOT NULL,
  `function_type` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `last_approved_level` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_id` int(11) NOT NULL,
  `date_apply` date NOT NULL,
  `ticket_amt` decimal(15,2) NOT NULL,
  `year` int(11) NOT NULL,
  `approval_document` varchar(500) NOT NULL,
  `notes` text NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `payment_mode` int(11) NOT NULL,
  `payment_date` date NOT NULL,
  `credit_account` int(11) NOT NULL,
  `cheque_date` date NOT NULL,
  `cheque_no` varchar(100) NOT NULL,
  `remarks` text NOT NULL,
  `approve_level1_id` int(11) NOT NULL,
  `approve_level1_date` date NOT NULL,
  `approve_level1_comment` text NOT NULL,
  `approve_level2_id` int(11) NOT NULL,
  `approve_level2_date` date NOT NULL,
  `approve_level2_comment` text NOT NULL,
  `approve_level3_id` int(11) NOT NULL,
  `approve_level3_date` date NOT NULL,
  `approve_level3_comment` text NOT NULL,
  `approve_level4_id` int(11) NOT NULL,
  `approve_level4_date` date NOT NULL,
  `approve_level4_comment` text NOT NULL,
  `approve_level5_id` int(11) NOT NULL,
  `approve_level5_date` date NOT NULL,
  `approve_level5_comment` text NOT NULL,
  `approved_by` int(11) NOT NULL,
  `approved_date` date NOT NULL,
  `approval_comment` text NOT NULL,
  `view_status` int(11) NOT NULL,
  `payment_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `finance_posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_ticket_encashment`
--

INSERT INTO `erp_hr_employee_ticket_encashment` (`id`, `function_type`, `max_level`, `last_approved_level`, `employee_id`, `leave_id`, `date_apply`, `ticket_amt`, `year`, `approval_document`, `notes`, `status`, `payment_mode`, `payment_date`, `credit_account`, `cheque_date`, `cheque_no`, `remarks`, `approve_level1_id`, `approve_level1_date`, `approve_level1_comment`, `approve_level2_id`, `approve_level2_date`, `approve_level2_comment`, `approve_level3_id`, `approve_level3_date`, `approve_level3_comment`, `approve_level4_id`, `approve_level4_date`, `approve_level4_comment`, `approve_level5_id`, `approve_level5_date`, `approve_level5_comment`, `approved_by`, `approved_date`, `approval_comment`, `view_status`, `payment_status`, `finance_posted`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 10, 1, 0, 1, 1, '2025-06-23', 1000.00, 2025, '', '', 1, 0, '0000-00-00', 0, '0000-00-00', '', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, '0000-00-00', '', 0, 'N', 'N', 8, '2025-06-23 13:06:01', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_ticket_entitlement`
--

CREATE TABLE `erp_hr_employee_ticket_entitlement` (
  `id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `ticket_year` int(11) NOT NULL,
  `opening_balance` decimal(10,2) NOT NULL,
  `ticket_balance` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_ticket_entitlement`
--

INSERT INTO `erp_hr_employee_ticket_entitlement` (`id`, `branch_id`, `employee_id`, `ticket_year`, `opening_balance`, `ticket_balance`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, 3, 2025, 0.00, 16.66, 8, '2025-06-23 17:00:35', 1, '2025-09-03 14:52:42'),
(2, 1, 2, 2025, 0.00, -183.34, 8, '2025-06-23 17:00:35', 1, '2025-09-03 14:52:42'),
(3, 1, 1, 2025, 0.00, 16.66, 8, '2025-06-23 17:00:35', 1, '2025-09-03 14:52:42');

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

--
-- Table structure for table `erp_hr_employee_ticket_ledger`
--

CREATE TABLE `erp_hr_employee_ticket_ledger` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `ticket_percentage` decimal(10,2) NOT NULL,
  `ticket_percentage_deducted` decimal(10,2) NOT NULL,
  `remarks` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_ticket_ledger`
--

INSERT INTO `erp_hr_employee_ticket_ledger` (`id`, `employee_id`, `ticket_percentage`, `ticket_percentage_deducted`, `remarks`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(19, 3, 8.33, 0.00, 'Ticket added by salary locked for June', 1, '2025-06-24 10:39:46', 0, '0000-00-00 00:00:00'),
(20, 2, 8.33, 0.00, 'Ticket added by salary locked for June', 1, '2025-06-24 10:39:46', 0, '0000-00-00 00:00:00'),
(21, 1, 8.33, 0.00, 'Ticket added by salary locked for June', 1, '2025-06-24 10:39:46', 0, '0000-00-00 00:00:00'),
(22, 3, 8.33, 0.00, 'Ticket added by salary locked for July', 1, '2025-09-03 14:52:42', 0, '0000-00-00 00:00:00'),
(23, 2, 8.33, 0.00, 'Ticket added by salary locked for July', 1, '2025-09-03 14:52:42', 0, '0000-00-00 00:00:00'),
(24, 1, 8.33, 0.00, 'Ticket added by salary locked for July', 1, '2025-09-03 14:52:42', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_employee_ticket_setting`
--

CREATE TABLE `erp_hr_employee_ticket_setting` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `first_intialized_date` date NOT NULL,
  `ticket_available` decimal(10,2) NOT NULL,
  `ticket_given` decimal(10,2) NOT NULL,
  `ticket_pending` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_employee_wps_company`
--

CREATE TABLE `erp_hr_employee_wps_company` (
  `id` int(11) NOT NULL,
  `wps_company_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_employee_wps_company`
--

INSERT INTO `erp_hr_employee_wps_company` (`id`, `wps_company_id`, `employee_id`, `created_by`, `created_datetime`, `updated_by`, `updated_datetime`) VALUES
(1, 1, 1, 1, '2025-06-24 11:08:19', 0, '0000-00-00 00:00:00'),
(2, 1, 2, 1, '2025-06-24 11:08:19', 0, '0000-00-00 00:00:00'),
(3, 1, 3, 1, '2025-06-24 11:08:19', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_eos_gratuity_details`
--

CREATE TABLE `erp_hr_eos_gratuity_details` (
  `id` int(11) NOT NULL,
  `eos_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `gratuity_mas_id` int(11) NOT NULL,
  `payment_period` varchar(500) NOT NULL,
  `amount` decimal(10,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_eos_gratuity_details`
--

INSERT INTO `erp_hr_eos_gratuity_details` (`id`, `eos_id`, `employee_id`, `gratuity_mas_id`, `payment_period`, `amount`) VALUES
(1, 1, 3, 2, 'First 5 years', 15750.00),
(2, 1, 3, 3, '6th year onward', 72357.53),
(3, 2, 2, 2, '1 to 5 years', 2999.00);

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

--
-- Table structure for table `erp_hr_expense`
--

CREATE TABLE `erp_hr_expense` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `expense_description` varchar(700) NOT NULL,
  `duration` tinyint(4) NOT NULL,
  `expense_month` int(11) NOT NULL,
  `expense_year` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_expense`
--

INSERT INTO `erp_hr_expense` (`id`, `employee_id`, `expense_description`, `duration`, `expense_month`, `expense_year`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(2, 1, 'tes', 4, 6, 2025, 8, '2025-06-24 10:09:28', 8, '2025-06-24 10:09:44', 'Y');

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

--
-- Table structure for table `erp_hr_expense_detail`
--

CREATE TABLE `erp_hr_expense_detail` (
  `id` int(11) NOT NULL,
  `expense_id` int(11) NOT NULL,
  `expense_type_id` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_expense_detail`
--

INSERT INTO `erp_hr_expense_detail` (`id`, `expense_id`, `expense_type_id`, `amount`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 2, 1, 1000.00, 8, '2025-06-24 10:09:28', 8, '2025-06-24 10:09:44'),
(3, 2, 2, 300.00, 8, '2025-06-24 10:09:44', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_expense_master`
--

CREATE TABLE `erp_hr_expense_master` (
  `id` int(11) NOT NULL,
  `expense_name` varchar(700) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_expense_master`
--

INSERT INTO `erp_hr_expense_master` (`id`, `expense_name`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Emirates ID', 1, '2023-09-25 03:02:33', 8, '2025-06-25 10:18:36', 'Y'),
(2, 'Visa Typing', 1, '2023-09-25 03:02:53', 0, '0000-00-00 00:00:00', 'Y'),
(3, 'Medical', 1, '2023-09-25 03:03:06', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_holiday_allowance`
--

CREATE TABLE `erp_hr_holiday_allowance` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `allowance_amount` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_initial_password_reset`
--

CREATE TABLE `erp_hr_initial_password_reset` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `username` varchar(700) NOT NULL,
  `encrypted_password` varchar(700) NOT NULL,
  `normal_password` varchar(700) NOT NULL,
  `mail_status` enum('N','Y','') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_leavesettlement`
--

CREATE TABLE `erp_hr_leavesettlement` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `date_rejoin` date NOT NULL,
  `date_leave` date NOT NULL,
  `employee_service_days` int(11) NOT NULL,
  `employee_service_period` varchar(255) NOT NULL,
  `settlement_amount` decimal(10,2) NOT NULL,
  `prepared_by` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `checked_by` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `checked_finance_manger` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `checked_gm` int(11) NOT NULL COMMENT 'Primarykey from employee',
  `available_leaves` decimal(10,2) NOT NULL,
  `added_leaves` decimal(10,2) NOT NULL,
  `total_leaves` decimal(10,2) NOT NULL,
  `leaves_taken` decimal(10,2) NOT NULL,
  `balance_leave` decimal(10,2) NOT NULL,
  `actual_leave` decimal(10,2) NOT NULL,
  `remaining_salary` int(11) NOT NULL,
  `leave_salary` decimal(10,2) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '0-not used in salary calculation,1-used in salary calculation',
  `posted` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_mail_settings`
--

CREATE TABLE `erp_hr_mail_settings` (
  `id` int(11) NOT NULL,
  `mail_function` int(11) NOT NULL,
  `from_mail_id` varchar(750) NOT NULL,
  `from_mail_name` varchar(700) NOT NULL,
  `self_mail` enum('Y','N') NOT NULL DEFAULT 'Y',
  `reporting_manager` enum('Y','N') NOT NULL DEFAULT 'N',
  `attendance_manager` enum('Y','N') NOT NULL DEFAULT 'N',
  `approval_authority` enum('Y','N') NOT NULL DEFAULT 'N',
  `notifying_employee` varchar(750) NOT NULL,
  `custom_mail_id` varchar(750) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mail_settings`
--

INSERT INTO `erp_hr_mail_settings` (`id`, `mail_function`, `from_mail_id`, `from_mail_name`, `self_mail`, `reporting_manager`, `attendance_manager`, `approval_authority`, `notifying_employee`, `custom_mail_id`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 23, 'info@mailbluesky.com', 'Bluesky-NoReply', 'Y', 'N', 'N', 'N', '', '', 8, '2025-06-23 03:45:29', 0, '0000-00-00 00:00:00', 'N');

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

--
-- Table structure for table `erp_hr_mail_status`
--

CREATE TABLE `erp_hr_mail_status` (
  `id` int(11) NOT NULL,
  `type` int(11) NOT NULL,
  `from_mail` varchar(500) NOT NULL,
  `sent_mail_id` text NOT NULL,
  `content` text NOT NULL,
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_master_function`
--

CREATE TABLE `erp_hr_master_function` (
  `id` int(11) NOT NULL,
  `functionality` varchar(700) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_master_function`
--

INSERT INTO `erp_hr_master_function` (`id`, `functionality`, `isActive`) VALUES
(1, 'Leave', 'Y'),
(2, 'Loan', 'Y'),
(3, 'Salary Advance', 'Y'),
(4, 'Document Request', 'Y'),
(5, 'Resignation', 'Y'),
(6, 'Appraisal', 'Y'),
(7, 'Expense', 'Y'),
(8, 'Purchase Request', 'Y'),
(9, 'Leave Encashment', 'Y'),
(10, 'Ticket Encashment', 'Y'),
(11, 'Ticket', 'N'),
(12, 'Meeting/Flexi Time Request ', 'Y'),
(13, 'Business Trip', 'N'),
(14, 'EOS Clearance', 'Y');

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

--
-- Table structure for table `erp_hr_master_mail_detail`
--

CREATE TABLE `erp_hr_master_mail_detail` (
  `id` int(11) NOT NULL,
  `mail_function_type` varchar(500) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_master_mail_detail`
--

INSERT INTO `erp_hr_master_mail_detail` (`id`, `mail_function_type`, `isActive`) VALUES
(1, 'Leave Application by Employee', 'Y'),
(2, 'Leave Approval/Rejection', 'Y'),
(3, 'Leave Cancel Request From Employee', 'Y'),
(4, 'Leave Cancellation Approval/Rejection', 'Y'),
(5, 'Leave Encashment Application by Employee', 'Y'),
(6, 'Leave Encashment Approval/Rejection', 'Y'),
(7, 'Ticket Encashment Request From Employee', 'Y'),
(8, 'Ticket Encashment Approval/Rejection', 'Y'),
(13, 'Complaint/Suggestion', 'Y'),
(14, 'Loan Request by Employee', 'Y'),
(15, 'Loan Approval', 'Y'),
(16, 'Salary Advance Request by Employee', 'Y'),
(17, 'Salary Advance Approval', 'Y'),
(18, 'Document Request by Employee', 'Y'),
(19, 'Document Request Approval', 'Y'),
(20, 'Excuse/Meeting Request', 'Y'),
(21, 'Indoor Circular', 'Y'),
(22, 'Outdoor Circular', 'Y'),
(11, 'Resignation Request by Employee', 'Y'),
(23, 'Appraisal', 'Y'),
(12, 'Resignation Approval/Rejection', 'Y'),
(26, 'Employee Document Expiry', 'Y'),
(27, 'Company Document Expiry', 'Y'),
(25, 'Birthday/Anniversary Greetings', 'Y'),
(9, 'Expense Request by Employee', 'Y'),
(10, 'Expense Request Approval/Rejection', 'Y'),
(30, 'Staff Board Notification', 'Y'),
(28, 'Purchase Request', 'Y'),
(29, 'Purchase Request Approval', 'Y'),
(24, 'Appraisal Review', 'Y'),
(31, 'Morning Late', 'Y'),
(32, 'Meeting / Flexi Time Request', 'Y'),
(33, 'Meeting / Flexi Time Request Approval', 'Y');

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

--
-- Table structure for table `erp_hr_master_salary_lock`
--

CREATE TABLE `erp_hr_master_salary_lock` (
  `id` int(11) NOT NULL,
  `payroll_branch` int(11) NOT NULL,
  `payroll_month` varchar(25) NOT NULL,
  `payroll_year` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_master_salary_lock`
--

INSERT INTO `erp_hr_master_salary_lock` (`id`, `payroll_branch`, `payroll_month`, `payroll_year`) VALUES
(1, 0, '05', 2025);

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

--
-- Table structure for table `erp_hr_master_salary_procedure`
--

CREATE TABLE `erp_hr_master_salary_procedure` (
  `id` int(11) NOT NULL,
  `payroll_branch` int(11) NOT NULL,
  `payroll_start_day` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_master_salary_procedure`
--

INSERT INTO `erp_hr_master_salary_procedure` (`id`, `payroll_branch`, `payroll_start_day`) VALUES
(1, 0, 1);

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

--
-- Table structure for table `erp_hr_master_upload`
--

CREATE TABLE `erp_hr_master_upload` (
  `id` int(11) NOT NULL,
  `functionality` varchar(700) NOT NULL,
  `max_upload_size` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_master_upload`
--

INSERT INTO `erp_hr_master_upload` (`id`, `functionality`, `max_upload_size`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Employee Documents', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(2, 'Profile Picture', 1, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(3, 'Asset Undertaking Letter', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(4, 'Qualification', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(5, 'Nominee-Documents', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(6, 'Employee Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(7, 'Salary Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(8, 'Leave Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(9, 'Document Details Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(10, 'Attendance Daily Upload', 10, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(11, 'Attendance Monthly Upload', 10, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(12, 'Shift Details Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(13, 'Meeting / Flexi Time Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(14, 'Recruitment Details Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(15, 'Recruitment Documents Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(16, 'Leave Medical Document Upload', 6, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(17, 'Leave Approval Document Upload', 6, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(18, 'Leave Migration Medical Document Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(19, 'Leave Migration Approval Document Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(20, 'Certificate Request Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(21, 'EOS -Resignation Acceptance Document', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(22, 'EOS -Exit Interview Document', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(23, 'EOS -EOS Clearance Document', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(24, 'Salary Component', 10, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(25, 'Overtime Sheet', 5, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(26, 'Catalogue', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(27, 'Circular', 10, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(28, 'Expense', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(29, 'Notice of Conduct', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(30, 'Master-Product', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(31, 'Master-Company Document', 8, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(32, 'Master-Asset', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(33, 'Master-Asset Details', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(34, 'Master-Branch Logo', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(35, 'Master-Branch Water Mark Logo', 3, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(36, 'Master-Branch Footer Image', 3, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(37, 'Master-Branch Organization Chart', 10, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(38, 'Master-Branch Certificate Seal', 3, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(39, 'Master-Signature', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(40, 'Templates', 1, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(41, 'Admin-User Signature (in KB)', 30, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y'),
(42, 'Ticket Encashment Approval Upload', 2, 0, '2025-06-03 08:06:34', 1, '2025-10-09 08:47:56', 'Y');

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

--
-- Table structure for table `erp_hr_mas_appraisal`
--

CREATE TABLE `erp_hr_mas_appraisal` (
  `id` int(11) NOT NULL,
  `period_name` varchar(255) NOT NULL,
  `approval_period` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_mas_appraisal_grade`
--

CREATE TABLE `erp_hr_mas_appraisal_grade` (
  `id` int(11) NOT NULL,
  `min_range` int(11) NOT NULL,
  `max_range` int(11) NOT NULL,
  `grade` varchar(100) NOT NULL,
  `grade_remark` varchar(700) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_appraisal_grade`
--

INSERT INTO `erp_hr_mas_appraisal_grade` (`id`, `min_range`, `max_range`, `grade`, `grade_remark`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 0, 49, 'U', '0-49 Unsatisfactory', 0, '2024-11-12 16:32:50', 0, '2024-11-12 16:32:50'),
(2, 50, 59, 'D', '50-59 Needs Improvement', 0, '2024-11-12 16:32:50', 0, '2024-11-12 16:32:50'),
(3, 60, 69, 'C', '60-69 Meet Expectations', 0, '2024-11-12 16:32:50', 0, '2024-11-12 16:32:50'),
(5, 80, 89, 'A', '80-89 Excellent', 0, '2024-11-12 16:32:50', 0, '2024-11-12 16:32:50'),
(4, 70, 79, 'B', '70-79 Good', 0, '2024-11-12 16:32:50', 0, '2024-11-12 16:32:50'),
(6, 90, 100, 'A+', '90-100 % Outstanding', 0, '2024-11-12 16:32:50', 0, '2024-11-12 16:32:50');

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

--
-- Table structure for table `erp_hr_mas_appraisal_type`
--

CREATE TABLE `erp_hr_mas_appraisal_type` (
  `id` int(11) NOT NULL,
  `appraisal_type` varchar(500) NOT NULL,
  `appraisal_department` int(11) NOT NULL,
  `default_weightage` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_appraisal_type`
--

INSERT INTO `erp_hr_mas_appraisal_type` (`id`, `appraisal_type`, `appraisal_department`, `default_weightage`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'Efficiency in  Gate Pass Process & AP', 1, 40.00, 8, '2025-06-20 14:15:23', 0, '0000-00-00 00:00:00'),
(2, 'Accurate Inventory Control, Maintain Building Facility & Accomplish Facility Projects', 1, 30.00, 8, '2025-06-20 14:15:23', 0, '0000-00-00 00:00:00'),
(3, 'Manageable timeline for submission of AP invoices and Gate pass request', 1, 30.00, 8, '2025-06-20 14:15:23', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_mas_approval_scheme`
--

CREATE TABLE `erp_hr_mas_approval_scheme` (
  `id` int(11) NOT NULL,
  `scheme_name` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_mas_approve_setting`
--

CREATE TABLE `erp_hr_mas_approve_setting` (
  `id` int(11) NOT NULL,
  `functionality_name` varchar(500) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `max_level` set('1','2','3','4') NOT NULL DEFAULT '2',
  `level_1` enum('L','S','N','H') NOT NULL COMMENT 'L-Line Manager,S-Supervisor,N-Other Employee,H-HR Department',
  `level_2` enum('L','S','N','H') NOT NULL COMMENT 'L-Line Manager,S-Supervisor,N-Other Employee,H-HR Department',
  `level_3` enum('L','S','N','H') NOT NULL COMMENT 'L-Line Manager,S-Supervisor,N-Other Employee,H-HR Department',
  `level_4` enum('L','S','N','H') NOT NULL COMMENT 'L-Line Manager,S-Supervisor,N-Other Employee,H-HR Department',
  `employee_level_1` text NOT NULL,
  `employee_level_2` text NOT NULL,
  `employee_level_3` text NOT NULL,
  `employee_level_4` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_mas_asset`
--

CREATE TABLE `erp_hr_mas_asset` (
  `id` int(11) NOT NULL,
  `asset_name` varchar(500) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_date_time` datetime DEFAULT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_asset`
--

INSERT INTO `erp_hr_mas_asset` (`id`, `asset_name`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Sim Card', 1, '2025-06-24 16:34:47', 1, '2025-06-24 16:38:25', 'Y');

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

--
-- Table structure for table `erp_hr_mas_asset_details`
--

CREATE TABLE `erp_hr_mas_asset_details` (
  `id` int(11) NOT NULL,
  `asset_id` int(11) NOT NULL,
  `asset_detail` varchar(500) NOT NULL,
  `asset_value` decimal(10,2) NOT NULL,
  `repair_cost_extra` decimal(10,2) NOT NULL,
  `asset_status` enum('G','D','R') NOT NULL DEFAULT 'G',
  `availability_status` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_date_time` datetime DEFAULT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_asset_details`
--

INSERT INTO `erp_hr_mas_asset_details` (`id`, `asset_id`, `asset_detail`, `asset_value`, `repair_cost_extra`, `asset_status`, `availability_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, '1234', 50.00, 0.00, 'G', 'Y', 1, '2025-06-24 16:39:31', 1, '2025-06-24 17:01:43', 'Y');

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

--
-- Table structure for table `erp_hr_mas_business_unit`
--

CREATE TABLE `erp_hr_mas_business_unit` (
  `id` int(11) NOT NULL,
  `business_unit_name` varchar(700) NOT NULL,
  `document_name` varchar(700) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_mas_certificate_authorization`
--

CREATE TABLE `erp_hr_mas_certificate_authorization` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `designation` varchar(255) NOT NULL,
  `authority_signature` varchar(500) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_certificate_authorization`
--

INSERT INTO `erp_hr_mas_certificate_authorization` (`id`, `employee_id`, `designation`, `authority_signature`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(2, 2, 'manager', 'SIGN86.jpg', 8, '2025-06-25 14:43:50', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_mas_certificate_name`
--

CREATE TABLE `erp_hr_mas_certificate_name` (
  `id` int(11) NOT NULL,
  `certificate_name` varchar(500) NOT NULL,
  `reference_no` int(11) NOT NULL,
  `code` varchar(6) NOT NULL,
  `apply_from` enum('A','N') NOT NULL DEFAULT 'N' COMMENT 'A-''Admin'',N-''From All'' ',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_certificate_name`
--

INSERT INTO `erp_hr_mas_certificate_name` (`id`, `certificate_name`, `reference_no`, `code`, `apply_from`, `isActive`, `created_by`, `created_datetime`, `updated_by`, `updated_datetime`) VALUES
(1, 'Salary Certificate', 1000, 'SC', 'N', 'Y', 0, '0000-00-00 00:00:00', 516, '2021-01-19 09:31:13'),
(2, 'Salary Transfer Letter', 1000, 'STL', 'N', 'Y', 0, '0000-00-00 00:00:00', 516, '2021-01-18 02:39:45'),
(3, 'Passport Release', 1, 'PR', 'A', 'Y', 0, '0000-00-00 00:00:00', 1, '2023-03-09 02:24:21'),
(4, 'Retrenchment Letter', 1, 'RL', 'A', 'Y', 1, '2021-03-12 14:48:19', 1, '2021-03-12 14:48:19'),
(5, 'Confirmation Letter', 1, 'CL', 'A', 'Y', 1, '2021-03-12 14:48:19', 1, '2022-02-14 10:19:52'),
(6, 'Business Trip', 1, 'BT', 'N', 'Y', 1, '2021-03-12 14:48:19', 1, '2023-03-09 02:22:58'),
(7, 'Warning Letter', 1, 'WL', 'A', 'N', 1, '2021-03-17 10:18:58', 1, '2021-03-17 10:18:58'),
(8, 'Salary Increment Letter', 1000, 'IL', 'A', 'Y', 0, '0000-00-00 00:00:00', 8, '2025-06-25 12:43:06'),
(9, 'Offer Letter', 1, 'OL', 'N', 'N', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(10, 'Salary Slip', 1000, 'SS', 'N', 'N', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
(11, 'Liquor License', 1, 'LL', 'N', 'N', 386, '2021-05-09 06:34:32', 1, '2023-03-09 02:22:08'),
(12, 'NOC for Driving Licence', 1, 'NDL', 'N', 'Y', 1, '2023-03-09 02:24:45', 0, '0000-00-00 00:00:00'),
(13, 'Personal Trip', 1, 'PT', 'N', 'Y', 1, '2023-03-09 02:25:15', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_mas_color_code`
--

CREATE TABLE `erp_hr_mas_color_code` (
  `id` int(11) NOT NULL,
  `functionality` varchar(500) NOT NULL,
  `color_code` varchar(100) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_color_code`
--

INSERT INTO `erp_hr_mas_color_code` (`id`, `functionality`, `color_code`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'Leave Apply', '#ffff80', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(2, 'Leave Approval', '#60cf3a', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(3, 'Holiday', '#bdb76b', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(4, 'Variance/Time Loss', '#ffaeae', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(5, 'Normal Time', '#fbb677', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(6, 'Excess Time', '#b4edb4', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(7, 'Weekend', '#c9a5a5', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59'),
(8, 'Absent', '#ce0d0d', 0, '0000-00-00 00:00:00', 1, '2025-06-20 14:51:59');

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

--
-- Table structure for table `erp_hr_mas_company_branch_sponsor`
--

CREATE TABLE `erp_hr_mas_company_branch_sponsor` (
  `id` bigint(20) NOT NULL,
  `hr_code` varchar(100) NOT NULL,
  `branch_or_sponsor_logo` varchar(255) NOT NULL,
  `slip_header_name` text NOT NULL,
  `footer_logo` varchar(700) NOT NULL,
  `watermark_logo` varchar(700) NOT NULL,
  `certificate_seal` varchar(700) NOT NULL,
  `branch_or_sponsor_name` varchar(255) NOT NULL,
  `branch_or_sponsor_code` varchar(15) NOT NULL,
  `branch_or_sponsor_address` text NOT NULL,
  `branch_or_sponsor_city` varchar(255) NOT NULL,
  `branch_or_sponsor_state` varchar(255) NOT NULL,
  `branch_or_sponsor_country` int(11) NOT NULL,
  `branch_or_sponsor_postalcode` varchar(255) NOT NULL,
  `branch_or_sponsor_phno` varchar(255) NOT NULL,
  `branch_or_sponsor_email` varchar(255) NOT NULL,
  `branch_or_sponsor_location` varchar(255) NOT NULL,
  `branch_or_sponsor_fax` varchar(255) NOT NULL,
  `branch_or_sponsor_web` varchar(255) NOT NULL,
  `branch_or_sponsor_currency_id` int(11) NOT NULL,
  `organization_chart_name` text NOT NULL,
  `exclude_holiday` tinyint(4) NOT NULL COMMENT '1-No,1-Yes',
  `exclude_weekend` int(11) NOT NULL DEFAULT 0 COMMENT '0-No,1-Yes',
  `workstart_time` time NOT NULL,
  `workend_time` time NOT NULL,
  `weekend_work_starttime` time NOT NULL,
  `weekend_work_endtime` time NOT NULL,
  `branch_working_hours` time NOT NULL,
  `lunch_break_time` time NOT NULL,
  `ticket_provided` enum('Y','N') NOT NULL DEFAULT 'Y',
  `ticket_monthly_incremented` enum('Y','N') NOT NULL DEFAULT 'Y',
  `ticket_carry_forward` enum('Y','N') NOT NULL DEFAULT 'N',
  `leave_encashment_provided` enum('Y','N') NOT NULL DEFAULT 'Y',
  `leave_settlement_provided` enum('Y','N') NOT NULL DEFAULT 'Y',
  `salary_calculation_format` tinyint(4) NOT NULL,
  `salary_slip_view_ess` enum('Y','N') NOT NULL DEFAULT 'Y',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_company_branch_sponsor`
--

INSERT INTO `erp_hr_mas_company_branch_sponsor` (`id`, `hr_code`, `branch_or_sponsor_logo`, `slip_header_name`, `footer_logo`, `watermark_logo`, `certificate_seal`, `branch_or_sponsor_name`, `branch_or_sponsor_code`, `branch_or_sponsor_address`, `branch_or_sponsor_city`, `branch_or_sponsor_state`, `branch_or_sponsor_country`, `branch_or_sponsor_postalcode`, `branch_or_sponsor_phno`, `branch_or_sponsor_email`, `branch_or_sponsor_location`, `branch_or_sponsor_fax`, `branch_or_sponsor_web`, `branch_or_sponsor_currency_id`, `organization_chart_name`, `exclude_holiday`, `exclude_weekend`, `workstart_time`, `workend_time`, `weekend_work_starttime`, `weekend_work_endtime`, `branch_working_hours`, `lunch_break_time`, `ticket_provided`, `ticket_monthly_incremented`, `ticket_carry_forward`, `leave_encashment_provided`, `leave_settlement_provided`, `salary_calculation_format`, `salary_slip_view_ess`, `isActive`) VALUES
(1, 'BT', '', 'Bluesky Technologies', '', '', '', 'Bluesky-UAE', 'BT', 'C1 - 520, AI Robotics Hub,\r\nAjman Free Zone,\r\nAjman, United Arab Emirates', 'Ajman', 'Ajman', 130, '', '+971 6 748 7105 ', 'info@mailbluesky.com', 'Ajman', '', 'www.bluesky.ae', 1, '', 1, 1, '08:00:00', '18:00:00', '00:00:00', '00:00:00', '09:00:00', '01:00:00', 'Y', 'Y', 'N', 'Y', 'Y', 0, 'Y', 'Y');

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

--
-- Table structure for table `erp_hr_mas_company_wps_details`
--

CREATE TABLE `erp_hr_mas_company_wps_details` (
  `id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `company_name` varchar(500) NOT NULL,
  `company_code` varchar(255) NOT NULL,
  `company_bank_code` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_company_wps_details`
--

INSERT INTO `erp_hr_mas_company_wps_details` (`id`, `company_id`, `company_name`, `company_code`, `company_bank_code`, `isActive`) VALUES
(1, 1, 'Bluesky', '1234567891235', '123456789', 'Y');

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

--
-- Table structure for table `erp_hr_mas_document`
--

CREATE TABLE `erp_hr_mas_document` (
  `id` int(11) NOT NULL,
  `document_name` varchar(255) NOT NULL,
  `renewal_remainder` int(11) NOT NULL,
  `document_type` int(11) NOT NULL COMMENT '1-With date,2-Without date',
  `master_type` int(11) NOT NULL COMMENT '1-Employee Document, 2 - Company Document',
  `view_in_employee` enum('Y','N') NOT NULL DEFAULT 'N',
  `dashboard_view` enum('Y','N') NOT NULL DEFAULT 'Y',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_document`
--

INSERT INTO `erp_hr_mas_document` (`id`, `document_name`, `renewal_remainder`, `document_type`, `master_type`, `view_in_employee`, `dashboard_view`, `isActive`) VALUES
(2, 'Emirates ID', 30, 1, 1, 'Y', 'Y', 'Y'),
(1, 'Passport', 30, 1, 1, 'Y', 'Y', 'Y'),
(3, 'Trade License', 30, 1, 2, 'N', 'Y', 'Y'),
(4, 'VIsa', 30, 1, 1, 'Y', 'Y', 'Y'),
(5, 'Insurance', 30, 1, 1, 'N', 'Y', 'Y'),
(6, 'Health Card', 15, 1, 1, 'N', 'Y', 'Y'),
(7, 'Contract', 30, 1, 1, 'Y', 'Y', 'Y');

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

--
-- Table structure for table `erp_hr_mas_employee_expense`
--

CREATE TABLE `erp_hr_mas_employee_expense` (
  `id` int(11) NOT NULL,
  `expense_component` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_employee_expense`
--

INSERT INTO `erp_hr_mas_employee_expense` (`id`, `expense_component`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Petrol', 8, '2025-06-24 08:11:32', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_mas_eos_clearance`
--

CREATE TABLE `erp_hr_mas_eos_clearance` (
  `id` int(11) NOT NULL,
  `clearance_name` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `level` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_eos_clearance`
--

INSERT INTO `erp_hr_mas_eos_clearance` (`id`, `clearance_name`, `isActive`, `level`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'HR Clearance', 'Y', 1, 8, '2025-06-25 10:19:03', 8, '2025-06-25 10:35:59');

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

--
-- Table structure for table `erp_hr_mas_eos_payment`
--

CREATE TABLE `erp_hr_mas_eos_payment` (
  `id` int(11) NOT NULL,
  `payment_name` varchar(500) NOT NULL,
  `type` enum('A','D') NOT NULL COMMENT 'A-Addition,D-Deduction',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_eos_payment`
--

INSERT INTO `erp_hr_mas_eos_payment` (`id`, `payment_name`, `type`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(5, 'Ticket Allowance', 'A', 1, '2021-07-19 04:34:38', 8, '2025-06-25 11:15:06', 'Y'),
(6, 'Payment', 'D', 1, '2022-02-14 08:21:49', 8, '2025-06-25 11:15:57', 'Y');

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

--
-- Table structure for table `erp_hr_mas_excuse`
--

CREATE TABLE `erp_hr_mas_excuse` (
  `id` int(11) NOT NULL,
  `excuse_type` varchar(700) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_excuse`
--

INSERT INTO `erp_hr_mas_excuse` (`id`, `excuse_type`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Business Meeting', 0, '2023-06-08 07:34:22', 0, '2023-06-08 07:34:22', 'Y'),
(2, 'Flexi Time', 0, '2023-06-08 07:34:22', 0, '2023-06-08 07:34:22', 'Y'),
(3, 'Market Visit', 0, '2023-06-08 07:34:22', 0, '2023-06-08 07:34:22', 'Y'),
(4, 'Training', 0, '2023-06-08 07:34:22', 0, '2023-06-08 07:34:22', 'Y'),
(5, 'Event', 0, '2023-06-08 07:34:22', 0, '2023-06-08 07:34:22', 'Y'),
(6, 'Outside Work', 0, '2023-06-08 07:34:22', 0, '2023-06-08 07:34:22', 'Y');

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

--
-- Table structure for table `erp_hr_mas_expiry_status`
--

CREATE TABLE `erp_hr_mas_expiry_status` (
  `id` int(11) NOT NULL,
  `document` int(11) NOT NULL,
  `stages` varchar(255) NOT NULL,
  `processing_order` int(11) NOT NULL,
  `start_date` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_expiry_status`
--

INSERT INTO `erp_hr_mas_expiry_status` (`id`, `document`, `stages`, `processing_order`, `start_date`) VALUES
(1, 2, 'Medical', 1, '0000-00-00'),
(2, 2, 'Emirates ID', 2, '0000-00-00'),
(3, 2, 'Visa Renewal', 3, '0000-00-00'),
(4, 1, 'Staff Renewing', 1, '0000-00-00'),
(5, 1, 'Passport', 3, '0000-00-00'),
(7, 1, 'Document Submission', 2, '0000-00-00'),
(9, 3, 'Renewal', 1, '0000-00-00');

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

--
-- Table structure for table `erp_hr_mas_geocode_location`
--

CREATE TABLE `erp_hr_mas_geocode_location` (
  `id` int(11) NOT NULL,
  `geocode_location` varchar(500) NOT NULL,
  `latitude` varchar(700) NOT NULL,
  `longitude` varchar(700) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_geocode_location`
--

INSERT INTO `erp_hr_mas_geocode_location` (`id`, `geocode_location`, `latitude`, `longitude`, `isActive`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'Bluesky', '25.401', '55.51', 'Y', 1, '2025-06-24 17:12:15', 1, '2025-06-24 17:29:37');

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

--
-- Table structure for table `erp_hr_mas_grade`
--

CREATE TABLE `erp_hr_mas_grade` (
  `id` int(11) NOT NULL,
  `grade` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_grade`
--

INSERT INTO `erp_hr_mas_grade` (`id`, `grade`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'A1', 1, '2023-02-27 17:00:57', 1, '2023-09-11 14:31:53', 'Y'),
(2, 'A2', 1, '2023-09-13 13:27:11', 1, '2023-09-13 13:27:15', 'Y'),
(3, 'A3', 1, '2023-09-25 14:41:24', 1, '2023-09-25 14:41:48', 'Y');

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

--
-- Table structure for table `erp_hr_mas_gratuity`
--

CREATE TABLE `erp_hr_mas_gratuity` (
  `id` int(11) NOT NULL,
  `rule_type` int(11) NOT NULL,
  `contract_type` int(11) NOT NULL,
  `releaving_type` tinyint(4) NOT NULL COMMENT '1-Termination,2-Resignation',
  `gratuity_type` varchar(500) NOT NULL,
  `gratuity_period_from` tinyint(4) NOT NULL,
  `gratuity_period_to` tinyint(4) NOT NULL,
  `salary_type` varchar(255) NOT NULL,
  `days_from` int(11) NOT NULL,
  `days_to` int(11) NOT NULL,
  `pay_cal` int(11) NOT NULL,
  `gratuity_provision_days` int(11) NOT NULL,
  `max_year` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_gratuity`
--

INSERT INTO `erp_hr_mas_gratuity` (`id`, `rule_type`, `contract_type`, `releaving_type`, `gratuity_type`, `gratuity_period_from`, `gratuity_period_to`, `salary_type`, `days_from`, `days_to`, `pay_cal`, `gratuity_provision_days`, `max_year`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 0, 0, 'Level 1', 0, 1, '1', 1, 365, 2, 0, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(2, 1, 0, 0, 'Level 2', 1, 5, '1', 366, 1825, 2, 21, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(3, 1, 0, 0, 'Level 3 (For Greater Than 5 Year)', 5, 30, '1', 1826, 10950, 2, 30, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(4, 2, 0, 0, 'Level 1', 0, 1, '1', 1, 365, 2, 0, 2, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(5, 2, 0, 0, 'Level 2', 1, 5, '1', 366, 1825, 2, 21, 20, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(6, 2, 0, 0, 'Level 3 (For Greater Than 5 Year)', 5, 30, '1', 1826, 10950, 2, 30, 20, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(7, 3, 0, 0, 'Level 1', 0, 1, '1', 1, 365, 2, 0, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(8, 3, 0, 0, 'Level 2 (Upto 5 Year Only)', 1, 5, '1', 366, 1825, 2, 21, 20, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(9, 3, 0, 0, 'Level 3 (For Greater Than 5 Year)', 5, 30, '1', 1826, 10950, 2, 30, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y');

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

--
-- Table structure for table `erp_hr_mas_gratuity_24_4_2023`
--

CREATE TABLE `erp_hr_mas_gratuity_24_4_2023` (
  `id` int(11) NOT NULL,
  `contract_type` int(11) NOT NULL,
  `releaving_type` tinyint(4) NOT NULL COMMENT '1-Termination,2-Resignation',
  `gratuity_type` varchar(500) NOT NULL,
  `gratuity_period_from` tinyint(4) NOT NULL,
  `gratuity_period_to` tinyint(4) NOT NULL,
  `salary_type` varchar(255) NOT NULL,
  `days_from` int(11) NOT NULL,
  `days_to` int(11) NOT NULL,
  `pay_cal` int(11) NOT NULL,
  `gratuity_provision_days` int(11) NOT NULL,
  `max_year` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_gratuity_24_4_2023`
--

INSERT INTO `erp_hr_mas_gratuity_24_4_2023` (`id`, `contract_type`, `releaving_type`, `gratuity_type`, `gratuity_period_from`, `gratuity_period_to`, `salary_type`, `days_from`, `days_to`, `pay_cal`, `gratuity_provision_days`, `max_year`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 0, 'Level 1', 0, 1, '1', 1, 365, 2, 0, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(2, 1, 0, 'Level 2', 1, 5, '1', 366, 1825, 2, 21, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(3, 1, 0, 'Level 3 (For Greater Than 5 Year)', 5, 30, '1', 1826, 10950, 2, 30, 2, 1, '2020-08-27 16:53:26', 1, '2020-08-27 16:57:17', 'Y'),
(5, 2, 1, 'Level 1', 0, 1, '1', 1, 365, 2, 0, 2, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(6, 2, 1, 'Level 2', 1, 5, '1', 366, 1825, 2, 21, 20, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(7, 2, 1, 'Level 3 (For Greater Than 5 Year)', 5, 30, '1', 1826, 10950, 2, 30, 20, 1, '2020-08-27 16:58:05', 0, '0000-00-00 00:00:00', 'Y'),
(8, 2, 2, 'Level 1', 0, 1, '1', 1, 365, 2, 0, 2, 1, '2020-08-27 17:00:48', 1, '2020-09-02 12:10:26', 'Y'),
(9, 2, 2, 'Level 2', 1, 3, '1', 366, 1095, 2, 7, 2, 1, '2020-08-27 17:00:48', 1, '2020-09-02 12:10:26', 'Y'),
(10, 2, 2, 'Level 3', 3, 5, '1', 1096, 1825, 2, 14, 2, 1, '2020-08-27 17:00:48', 1, '2020-09-02 12:10:26', 'Y'),
(11, 2, 2, 'Level 4', 5, 30, '1', 1826, 10950, 2, 21, 2, 1, '2020-08-27 17:00:48', 1, '2020-09-02 12:10:26', 'Y');

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

--
-- Table structure for table `erp_hr_mas_gratuity_rule_type`
--

CREATE TABLE `erp_hr_mas_gratuity_rule_type` (
  `id` int(11) NOT NULL,
  `rule_type` varchar(700) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_gratuity_rule_type`
--

INSERT INTO `erp_hr_mas_gratuity_rule_type` (`id`, `rule_type`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'MAINLAND', 0, '2023-04-24 07:39:52', 0, '2023-04-24 07:39:52', 'Y'),
(2, 'Jafza I', 0, '2023-04-24 07:40:14', 0, '2023-04-24 07:40:14', 'Y'),
(3, 'Jafza II', 0, '2023-04-24 07:40:32', 0, '2023-04-24 07:40:32', 'Y');

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

--
-- Table structure for table `erp_hr_mas_holiday`
--

CREATE TABLE `erp_hr_mas_holiday` (
  `id` int(11) NOT NULL,
  `branch_id` varchar(500) NOT NULL,
  `holiday_date` date NOT NULL,
  `holiday_description` text NOT NULL,
  `notify` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_date` date DEFAULT NULL,
  `is_Active` enum('Y','N') DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_holiday`
--

INSERT INTO `erp_hr_mas_holiday` (`id`, `branch_id`, `holiday_date`, `holiday_description`, `notify`, `created_by`, `created_date`, `updated_by`, `updated_date`, `is_Active`) VALUES
(2, '1', '2025-06-26', 'Islamic year', 'Y', 8, '2025-06-25', NULL, NULL, 'Y'),
(3, '1', '2025-06-30', 'Holiday', 'Y', 1, '2025-06-27', NULL, NULL, 'Y');

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

--
-- Table structure for table `erp_hr_mas_incentive_structure`
--

CREATE TABLE `erp_hr_mas_incentive_structure` (
  `id` int(11) NOT NULL,
  `amount_from` decimal(10,2) NOT NULL,
  `amount_to` decimal(10,2) NOT NULL,
  `percentage_val` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_incentive_structure`
--

INSERT INTO `erp_hr_mas_incentive_structure` (`id`, `amount_from`, `amount_to`, `percentage_val`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 500000.00, 699999.00, 0.35, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(2, 700000.00, 999999.00, 0.40, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(3, 1000000.00, 1399999.00, 0.50, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(4, 1400000.00, 1799999.00, 0.70, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(5, 1800000.00, 1999999.00, 0.90, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(6, 2000000.00, 2999999.00, 1.00, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(7, 3000000.00, 4999999.00, 1.05, 0, '0000-00-00 00:00:00', 2, '2023-10-06 11:36:43', 'Y'),
(9, 5000000.00, 9999999.00, 1.10, 386, '2021-03-02 10:49:13', 2, '2023-10-06 11:36:43', 'Y');

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

--
-- Table structure for table `erp_hr_mas_inout_document`
--

CREATE TABLE `erp_hr_mas_inout_document` (
  `id` int(11) NOT NULL,
  `document_name` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_inout_document`
--

INSERT INTO `erp_hr_mas_inout_document` (`id`, `document_name`, `isActive`) VALUES
(1, 'Passport', 'Y'),
(3, 'Labour Card', 'Y'),
(4, 'Emirates ID', 'Y');

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

--
-- Table structure for table `erp_hr_mas_job_contract`
--

CREATE TABLE `erp_hr_mas_job_contract` (
  `id` int(11) NOT NULL,
  `contract_type` varchar(700) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_job_contract`
--

INSERT INTO `erp_hr_mas_job_contract` (`id`, `contract_type`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Limited', 1, '2020-08-27 04:51:33', 0, '0000-00-00 00:00:00', 'N'),
(2, 'Unlimited', 1, '2020-08-27 04:51:41', 0, '0000-00-00 00:00:00', 'N'),
(3, 'Limited', 8, '2025-06-25 02:06:17', 8, '2025-06-25 02:08:24', 'Y');

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

--
-- Table structure for table `erp_hr_mas_leave`
--

CREATE TABLE `erp_hr_mas_leave` (
  `id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL DEFAULT 0,
  `parent_id` int(11) NOT NULL,
  `leave_name` varchar(255) NOT NULL,
  `leave_abbreviation` varchar(3) NOT NULL,
  `employee_can_apply` int(11) NOT NULL,
  `leave_type` int(11) NOT NULL COMMENT '1-Monthly Incremented,2-Yearly',
  `gender` tinyint(4) NOT NULL,
  `apply_before` int(11) NOT NULL,
  `employee_id` text NOT NULL,
  `leave_days` decimal(10,2) NOT NULL,
  `leave_days_above_1` decimal(10,2) NOT NULL,
  `leave_days_above_5` decimal(10,2) NOT NULL,
  `leave_days_above_10` decimal(10,2) NOT NULL,
  `additional_leave` decimal(10,2) NOT NULL DEFAULT 0.00,
  `encashable` enum('Y','N') NOT NULL DEFAULT 'N',
  `carry_forward` enum('Y','N') NOT NULL DEFAULT 'N',
  `carry_forward_limit` enum('Y','N') NOT NULL DEFAULT 'N',
  `carry_forward_leave` int(11) NOT NULL,
  `ticket_available` enum('Y','N') NOT NULL DEFAULT 'N',
  `salary_deduction` enum('Y','N','H') NOT NULL DEFAULT 'N',
  `salary_deduction_components` varchar(700) NOT NULL,
  `show_in_payslip` enum('Y','N') NOT NULL DEFAULT 'N',
  `document_medical_certificate_upload` enum('Y','N') NOT NULL DEFAULT 'N',
  `min_day_upload` int(11) NOT NULL,
  `leave_count_employee_panel` enum('Y','N') NOT NULL DEFAULT 'Y',
  `sub_type_leave` enum('Y','N') NOT NULL DEFAULT 'N',
  `negative_leave_apply_permission` enum('A','B','N') NOT NULL DEFAULT 'N' COMMENT 'A-From Admin only,B-From Both Side,N-No Permission',
  `salary_deduction_negative_leave` enum('Y','H','N') NOT NULL DEFAULT 'N' COMMENT 'Y-Full Salary,H-Half Paid,N-No Deduction',
  `leave_apply_limit` enum('Y','N') NOT NULL DEFAULT 'N' COMMENT 'Set limit for applying leaves',
  `max_leave_apply` int(11) NOT NULL,
  `is_annual_leave` enum('Y','N') NOT NULL DEFAULT 'N',
  `exclude_weekend` enum('Y','N') NOT NULL DEFAULT 'N',
  `exclude_holiday` enum('Y','N') NOT NULL DEFAULT 'N',
  `visible_portal` enum('Y','A','E') NOT NULL DEFAULT 'Y' COMMENT 'Y-All Portal,A-Admin,E-ESS',
  `show_app_dashboard` enum('Y','N') NOT NULL DEFAULT 'Y',
  `leave_increment_hold_on_leave` enum('Y','N') NOT NULL DEFAULT 'N',
  `ticket_increment_hold_on_leave` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_leave`
--

INSERT INTO `erp_hr_mas_leave` (`id`, `branch_id`, `parent_id`, `leave_name`, `leave_abbreviation`, `employee_can_apply`, `leave_type`, `gender`, `apply_before`, `employee_id`, `leave_days`, `leave_days_above_1`, `leave_days_above_5`, `leave_days_above_10`, `additional_leave`, `encashable`, `carry_forward`, `carry_forward_limit`, `carry_forward_leave`, `ticket_available`, `salary_deduction`, `salary_deduction_components`, `show_in_payslip`, `document_medical_certificate_upload`, `min_day_upload`, `leave_count_employee_panel`, `sub_type_leave`, `negative_leave_apply_permission`, `salary_deduction_negative_leave`, `leave_apply_limit`, `max_leave_apply`, `is_annual_leave`, `exclude_weekend`, `exclude_holiday`, `visible_portal`, `show_app_dashboard`, `leave_increment_hold_on_leave`, `ticket_increment_hold_on_leave`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 0, 'Annual leave', 'AL', 180, 2, 0, 0, '3,2', 30.00, 30.00, 30.00, 30.00, 0.00, 'Y', 'N', 'N', 0, 'Y', 'N', '', 'N', 'N', 0, 'Y', 'N', 'N', 'N', 'N', 0, 'Y', 'N', 'N', 'Y', 'Y', 'N', 'N', 8, '2025-06-18 02:37:27', 1, '2025-06-25 08:16:24', 'Y'),
(2, 1, 0, 'Paternal Leave', 'PL', 0, 2, 1, 0, '3,1', 5.00, 5.00, 5.00, 5.00, 0.00, 'N', 'N', 'N', 0, 'N', 'N', '', 'N', 'N', 0, 'Y', 'N', 'N', 'N', 'N', 0, 'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 1, '2025-06-27 04:26:52', 0, '0000-00-00 00:00:00', 'Y'),
(3, 1, 0, 'Maternity Leave', 'ML', 0, 2, 2, 0, '2', 5.00, 5.00, 5.00, 5.00, 0.00, 'N', 'N', 'N', 0, 'N', 'N', '', 'N', 'N', 0, 'Y', 'N', 'N', 'N', 'N', 0, 'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 1, '2025-06-27 04:28:14', 0, '0000-00-00 00:00:00', 'Y'),
(4, 1, 0, 'Sick Leave', 'SL', 0, 2, 0, 0, '3,2,1', 10.00, 10.00, 10.00, 10.00, 0.00, 'N', 'N', 'N', 0, 'N', 'N', '', 'N', 'Y', 2, 'Y', 'N', 'N', 'N', 'N', 0, 'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 1, '2025-06-27 04:29:20', 0, '0000-00-00 00:00:00', 'Y'),
(5, 1, 1, 'Short Leave', 'SHL', 0, 3, 0, 0, '', 30.00, 30.00, 30.00, 30.00, 0.00, 'N', 'N', 'N', 0, 'N', 'N', '', 'N', 'N', 0, 'Y', 'Y', 'N', 'N', 'Y', 2, 'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 8, '2025-06-28 06:58:00', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_mas_noticeperiod`
--

CREATE TABLE `erp_hr_mas_noticeperiod` (
  `id` int(11) NOT NULL,
  `period_name` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_noticeperiod`
--

INSERT INTO `erp_hr_mas_noticeperiod` (`id`, `period_name`, `isActive`) VALUES
(1, '1 Month', 'Y'),
(2, '2 Months', 'Y'),
(3, '3 Months', 'Y');

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

--
-- Table structure for table `erp_hr_mas_notification`
--

CREATE TABLE `erp_hr_mas_notification` (
  `id` int(11) NOT NULL,
  `notification_type` varchar(55) NOT NULL,
  `isActive` enum('Y','N') NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_mas_offboarding`
--

CREATE TABLE `erp_hr_mas_offboarding` (
  `id` int(11) NOT NULL,
  `task_description` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_mas_onboarding`
--

CREATE TABLE `erp_hr_mas_onboarding` (
  `id` int(11) NOT NULL,
  `task_description` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_mas_over_time`
--

CREATE TABLE `erp_hr_mas_over_time` (
  `id` int(11) NOT NULL,
  `type` varchar(255) NOT NULL,
  `salary` varchar(50) NOT NULL,
  `times` float NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_over_time`
--

INSERT INTO `erp_hr_mas_over_time` (`id`, `type`, `salary`, `times`, `isActive`) VALUES
(1, 'NOT - Normal Overtime', '1', 1.25, 'Y'),
(2, 'HOT - Holiday Over Time', '1,2', 1.5, 'Y'),
(3, 'WKD-Weekend Overtime', '1,2,3,4', 1.5, 'Y'),
(4, 'NGT-Night Shift Overtime', '1,2,3,4', 1.5, 'Y');

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

--
-- Table structure for table `erp_hr_mas_pension`
--

CREATE TABLE `erp_hr_mas_pension` (
  `id` int(11) NOT NULL,
  `scheme_name` varchar(255) NOT NULL,
  `company_percent` decimal(11,2) NOT NULL,
  `employee_percent` decimal(11,2) NOT NULL,
  `salary_type` varchar(255) NOT NULL,
  `nationality` varchar(255) NOT NULL,
  `sex` int(11) NOT NULL,
  `min_amount` decimal(15,2) NOT NULL,
  `isActive` enum('Y','N') NOT NULL,
  `created_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created_id` int(11) NOT NULL,
  `updated_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_pension`
--

INSERT INTO `erp_hr_mas_pension` (`id`, `scheme_name`, `company_percent`, `employee_percent`, `salary_type`, `nationality`, `sex`, `min_amount`, `isActive`, `created_date`, `updated_date`, `created_id`, `updated_id`) VALUES
(1, 'Scheme I', 12.50, 5.00, '1', '143', 0, 0.00, 'Y', '2025-06-16 05:49:39', '2025-06-25 07:51:54', 1, 1),
(2, 'Scheme II', 10.00, 11.00, '1,5,12,13', '', 0, 0.00, 'Y', '2025-06-16 05:50:10', '2025-06-16 05:47:50', 1, 1);

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

--
-- Table structure for table `erp_hr_mas_product`
--

CREATE TABLE `erp_hr_mas_product` (
  `id` int(11) NOT NULL,
  `product_code` varchar(255) NOT NULL,
  `product_name` varchar(700) NOT NULL,
  `cost_price` decimal(15,2) NOT NULL,
  `selling_price` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_product`
--

INSERT INTO `erp_hr_mas_product` (`id`, `product_code`, `product_name`, `cost_price`, `selling_price`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'P1', 'book', 100.00, 120.00, 8, '2025-06-24 11:57:50', 8, '2025-06-25 08:23:35', 'Y');

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

--
-- Table structure for table `erp_hr_mas_project_work`
--

CREATE TABLE `erp_hr_mas_project_work` (
  `id` int(11) NOT NULL,
  `project_code` varchar(150) NOT NULL,
  `project_name` varchar(500) NOT NULL,
  `created_by` int(11) DEFAULT NULL,
  `created_date_time` datetime DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_date_time` datetime DEFAULT NULL,
  `isActive` enum('Y','N') DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_mas_relation`
--

CREATE TABLE `erp_hr_mas_relation` (
  `id` int(11) NOT NULL,
  `relation_name` varchar(500) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_relation`
--

INSERT INTO `erp_hr_mas_relation` (`id`, `relation_name`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Father', 197, '2019-10-10 06:22:10', 197, '2019-10-10 06:24:49', 'Y'),
(2, 'Mother', 197, '2019-10-10 06:23:05', 1, '2025-06-25 10:00:13', 'Y'),
(3, 'Wife', 197, '2019-10-10 06:24:58', 1, '2022-02-06 19:46:22', 'Y'),
(4, 'Husband', 197, '2019-10-10 06:25:27', 1, '2023-09-14 05:47:08', 'Y'),
(5, 'Son', 197, '2019-10-10 06:25:39', 0, '0000-00-00 00:00:00', 'Y'),
(6, 'Daughter', 197, '2019-10-10 06:25:53', 0, '0000-00-00 00:00:00', 'Y'),
(7, 'Niece', 1, '2022-02-06 19:46:15', 0, '0000-00-00 00:00:00', 'Y'),
(8, 'Cousin', 1, '2022-02-14 13:29:40', 1, '2022-02-14 13:29:47', 'Y'),
(9, 'Brother', 1, '2023-09-11 21:21:20', 1, '2025-06-25 09:39:54', 'Y'),
(10, 'Grand Mother', 1, '2023-09-25 15:48:09', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_mas_religion`
--

CREATE TABLE `erp_hr_mas_religion` (
  `id` int(11) NOT NULL,
  `religion` varchar(700) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `created_date_time` datetime DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_date_time` datetime DEFAULT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_religion`
--

INSERT INTO `erp_hr_mas_religion` (`id`, `religion`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Christian', NULL, NULL, NULL, NULL, 'Y'),
(2, 'Hindu', NULL, NULL, NULL, NULL, 'Y'),
(3, 'Islam', NULL, NULL, NULL, NULL, 'Y');

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

--
-- Table structure for table `erp_hr_mas_salarytype`
--

CREATE TABLE `erp_hr_mas_salarytype` (
  `id` int(11) NOT NULL,
  `salary_name` varchar(255) NOT NULL,
  `salary_type` tinyint(4) NOT NULL,
  `salary_occurence` tinyint(4) NOT NULL,
  `consider_deduction` enum('Y','N') NOT NULL DEFAULT 'Y',
  `consider_leave_settlement` enum('Y','N') NOT NULL DEFAULT 'N',
  `editable` int(11) NOT NULL DEFAULT 1 COMMENT '1-Not Editable,2-Editable',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_salarytype`
--

INSERT INTO `erp_hr_mas_salarytype` (`id`, `salary_name`, `salary_type`, `salary_occurence`, `consider_deduction`, `consider_leave_settlement`, `editable`, `isActive`) VALUES
(1, 'Basic', 1, 2, 'Y', 'Y', 1, 'Y'),
(2, 'Bonus', 1, 1, 'Y', 'N', 1, 'Y');

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

--
-- Table structure for table `erp_hr_mas_settings_login`
--

CREATE TABLE `erp_hr_mas_settings_login` (
  `id` bigint(20) NOT NULL,
  `password` varchar(255) NOT NULL,
  `create_by` int(11) NOT NULL,
  `create_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_settings_login`
--

INSERT INTO `erp_hr_mas_settings_login` (`id`, `password`, `create_by`, `create_date_time`) VALUES
(1, '$2a$10$1qAz2wSx3eDc4rFv5tGb5esCgDuHHeECLg/wE3TcnvJliPWZGiyae', 1, '2022-07-11 18:22:30');

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

--
-- Table structure for table `erp_hr_mas_shift`
--

CREATE TABLE `erp_hr_mas_shift` (
  `id` int(11) NOT NULL,
  `shift_name` varchar(255) NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `shift_type` enum('D','N') NOT NULL DEFAULT 'D',
  `color_code` varchar(100) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_shift`
--

INSERT INTO `erp_hr_mas_shift` (`id`, `shift_name`, `start_time`, `end_time`, `shift_type`, `color_code`, `isActive`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'Morning', '06:00:00', '12:00:00', 'D', '#8080ff', 'Y', 8, '2025-06-19 10:50:56', 1, '2025-06-25 10:20:26');

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

--
-- Table structure for table `erp_hr_mas_team_name`
--

CREATE TABLE `erp_hr_mas_team_name` (
  `id` int(11) NOT NULL,
  `team_name` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_team_name`
--

INSERT INTO `erp_hr_mas_team_name` (`id`, `team_name`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Team 2', 8, '2025-06-25 08:50:43', 8, '2025-06-25 08:55:08', 'Y');

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

--
-- Table structure for table `erp_hr_mas_training_course`
--

CREATE TABLE `erp_hr_mas_training_course` (
  `id` int(11) NOT NULL,
  `course_name` varchar(700) NOT NULL,
  `training_days` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_training_course`
--

INSERT INTO `erp_hr_mas_training_course` (`id`, `course_name`, `training_days`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'First Aid', 2, 8, '2025-06-23 10:48:39', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_mas_training_course_detail`
--

CREATE TABLE `erp_hr_mas_training_course_detail` (
  `id` int(11) NOT NULL,
  `master_id` int(11) NOT NULL,
  `training_course` varchar(700) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_mas_training_course_detail`
--

INSERT INTO `erp_hr_mas_training_course_detail` (`id`, `master_id`, `training_course`) VALUES
(1, 1, 'First AID');

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

--
-- Table structure for table `erp_hr_modules`
--

CREATE TABLE `erp_hr_modules` (
  `id` int(11) NOT NULL,
  `hr_module_name` varchar(700) NOT NULL,
  `grant_access` tinyint(4) NOT NULL DEFAULT 0,
  `display_functionality` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_modules`
--

INSERT INTO `erp_hr_modules` (`id`, `hr_module_name`, `grant_access`, `display_functionality`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(3, 'Leave', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(6, 'Loan', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(2, 'Attendance', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(5, 'Salary Advance', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(7, 'Payroll', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(4, 'Leave Encashment', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(8, 'Ticket', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(9, 'Ticket Encashment', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(14, 'Resignation', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(13, 'Recruitment', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(12, 'Appraisal', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(11, 'Expense', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(10, 'Document Request', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(1, 'Employee', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(15, 'Training', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(16, 'Purchase', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(17, 'EOS', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(18, 'Circular', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(19, 'Company Expense', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(20, 'Room Management', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(21, 'Catalogue', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(22, 'Staff Board', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(23, 'Notes', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(24, 'Notice of Conduct', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(25, 'Calendar Notification', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(26, 'Templates', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(27, 'PDF Settings', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(28, 'Mail Settings', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(29, 'Mobile Application', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(30, 'Asset', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(31, 'Service', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(36, 'Company', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(32, 'Flexitime Request', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(34, 'Snapshot', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(35, 'Organization Chart', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(33, 'ESS Portal', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y'),
(37, 'Admin', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-09 08:47:56', 'Y');

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

--
-- Table structure for table `erp_hr_monthly_gratuity`
--

CREATE TABLE `erp_hr_monthly_gratuity` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `salary_slip_id` int(11) NOT NULL,
  `gratuity_amount` decimal(10,2) NOT NULL,
  `created_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_monthly_salary_component`
--

CREATE TABLE `erp_hr_monthly_salary_component` (
  `id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `salary_month` int(11) NOT NULL,
  `salary_year` int(11) NOT NULL,
  `salary_type` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `remarks` text NOT NULL,
  `lock_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_monthly_salary_sif`
--

CREATE TABLE `erp_hr_monthly_salary_sif` (
  `id` int(11) NOT NULL,
  `wpscompany_id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `salary_processing_id` int(11) NOT NULL,
  `salary_payment_mode` int(11) NOT NULL COMMENT '1-Cash,2-Cheque,3-WPS,4-Exchange',
  `date` date NOT NULL,
  `salary_month` varchar(50) NOT NULL,
  `total_amount` decimal(15,2) NOT NULL,
  `legder_id` int(11) NOT NULL,
  `sublegder_id` int(11) NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `posted_on` date NOT NULL,
  `voucher_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_monthly_salary_sif`
--

INSERT INTO `erp_hr_monthly_salary_sif` (`id`, `wpscompany_id`, `branch_id`, `salary_processing_id`, `salary_payment_mode`, `date`, `salary_month`, `total_amount`, `legder_id`, `sublegder_id`, `posted`, `posted_on`, `voucher_id`, `created_by`, `created_date`) VALUES
(4, 1, 0, 5, 4, '2025-06-30', 'June', 4500.00, 0, 0, 'N', '0000-00-00', 0, 1, '2025-06-24'),
(5, 0, 0, 5, 5, '2025-06-30', 'June', 3000.00, 0, 0, 'N', '0000-00-00', 0, 1, '2025-06-24');

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

--
-- Table structure for table `erp_hr_monthly_salary_sif_details`
--

CREATE TABLE `erp_hr_monthly_salary_sif_details` (
  `id` int(11) NOT NULL,
  `sif_file_id` int(11) NOT NULL,
  `bank_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `personal_file_no` varchar(255) NOT NULL,
  `employee_wpscode` varchar(255) NOT NULL,
  `iban_no` varchar(255) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `total_days` int(11) NOT NULL,
  `leave_days` decimal(10,2) NOT NULL,
  `basic_salary` decimal(10,2) NOT NULL,
  `salary_amount` decimal(10,2) NOT NULL,
  `total_salary_paid` decimal(10,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_monthly_salary_sif_details`
--

INSERT INTO `erp_hr_monthly_salary_sif_details` (`id`, `sif_file_id`, `bank_id`, `employee_id`, `created_by`, `created_date`, `personal_file_no`, `employee_wpscode`, `iban_no`, `start_date`, `end_date`, `total_days`, `leave_days`, `basic_salary`, `salary_amount`, `total_salary_paid`) VALUES
(6, 4, 0, 3, 1, '2025-06-24', '90011109634857', '600310101', 'AE920230000001008604273', '2025-06-01', '2025-06-30', 30, 0.00, 4500.00, 0.00, 4500.00),
(7, 5, 0, 2, 1, '2025-06-24', '91011109634857', '0', 'AE920230000001009604273', '2025-06-01', '2025-06-30', 0, 0.00, 0.00, 3000.00, 3000.00);

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

--
-- Table structure for table `erp_hr_notification`
--

CREATE TABLE `erp_hr_notification` (
  `id` int(11) NOT NULL,
  `from_user` int(11) NOT NULL,
  `branch` varchar(200) NOT NULL,
  `department_id` varchar(200) NOT NULL,
  `employee_id` text NOT NULL,
  `title` varchar(500) NOT NULL,
  `content` varchar(2500) NOT NULL,
  `date` datetime NOT NULL,
  `designation` varchar(200) NOT NULL,
  `type` int(11) NOT NULL,
  `displaydate` datetime NOT NULL,
  `read_status` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_notification`
--

INSERT INTO `erp_hr_notification` (`id`, `from_user`, `branch`, `department_id`, `employee_id`, `title`, `content`, `date`, `designation`, `type`, `displaydate`, `read_status`) VALUES
(2, 8, '1', '', '3,2,1', 'Testing Staffboard For Long sentence issues in HR application', '<p>\n	Testing Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR applicationTesting Staffboard For Long sentence issues in HR application</p>\n', '2025-06-24 10:23:03', '', 0, '0000-00-00 00:00:00', '');

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

--
-- Table structure for table `erp_hr_outsource_overtime`
--

CREATE TABLE `erp_hr_outsource_overtime` (
  `id` int(11) NOT NULL,
  `overtime_month` int(11) NOT NULL,
  `overtime_year` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `total_working_day` int(11) NOT NULL,
  `normal_working_day` decimal(10,2) NOT NULL,
  `normal_overtime` decimal(10,2) NOT NULL,
  `night_shift` decimal(10,2) NOT NULL,
  `night_overtime` decimal(10,2) NOT NULL,
  `week_off` decimal(10,2) NOT NULL,
  `absent_with_deduction` decimal(10,2) NOT NULL,
  `absent_without_deduction` decimal(10,2) NOT NULL,
  `holiday_count` int(11) NOT NULL,
  `holiday_overtime` decimal(10,2) NOT NULL,
  `weekend_overtime` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_outsource_overtime`
--

INSERT INTO `erp_hr_outsource_overtime` (`id`, `overtime_month`, `overtime_year`, `employee_id`, `total_working_day`, `normal_working_day`, `normal_overtime`, `night_shift`, `night_overtime`, `week_off`, `absent_with_deduction`, `absent_without_deduction`, `holiday_count`, `holiday_overtime`, `weekend_overtime`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 6, 2025, 1, 0, 0.00, 2.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0.00, 8, '2025-06-23 15:11:18', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_panel_permission`
--

CREATE TABLE `erp_hr_panel_permission` (
  `id` int(11) NOT NULL,
  `employee_category` int(11) NOT NULL,
  `employee_panel_permission` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_panel_permission`
--

INSERT INTO `erp_hr_panel_permission` (`id`, `employee_category`, `employee_panel_permission`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, '{\"staff_board_view\":1,\"holiday_calendar_view\":1,\"attendance_analysis_view\":1,\"attendance_punch_view\":1,\"change_photo_view\":1,\"calendar_view\":1,\"contact_details_view\":1,\"dependant_view\":1,\"leave_view\":1,\"circular_view\":1,\"catalogue_view\":1,\"loan_view\":1,\"loan_approval_view\":1,\"salary_advance_view\":1,\"attendance_view\":1,\"appraisal_view\":1,\"expense_view\":1,\"excuse_meeting_view\":1,\"salary_slip_view\":1,\"document_view\":1,\"family_ticket_view\":1,\"ticket_encashment_view\":1,\"notice_conduct_view\":1,\"organization_chart_view\":1,\"subordinates_excuse_view\":1,\"applied_leave_view\":1,\"product_request_view\":1,\"document_notification\":1,\"certificate_view\":1,\"resignation_view\":1,\"eos_clearance_view\":1,\"complaint_suggestion_view\":1}', 0, '0000-00-00 00:00:00', 1, '2025-05-30 07:57:14', 'Y'),
(2, 2, '{\"attendance_punch_view\":1}', 0, '0000-00-00 00:00:00', 756, '2022-10-20 16:15:05', 'Y'),
(3, 3, '{\"attendance_punch_view\":1}', 0, '0000-00-00 00:00:00', 1, '2023-09-13 13:26:27', 'Y');

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

--
-- Table structure for table `erp_hr_pdf_settings`
--

CREATE TABLE `erp_hr_pdf_settings` (
  `id` int(11) NOT NULL,
  `company_name` text NOT NULL,
  `company_address` text NOT NULL,
  `company_phno` varchar(25) NOT NULL,
  `company_web_address` varchar(200) NOT NULL,
  `company_logo` varchar(500) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_pdf_settings`
--

INSERT INTO `erp_hr_pdf_settings` (`id`, `company_name`, `company_address`, `company_phno`, `company_web_address`, `company_logo`) VALUES
(1, 'Bluesky Technologies', 'Block C1, Office # 208, AJMAN FREE ZONE, UAE', '+971 4  297 3005', 'http://www.bluesky.ae', 'logo.png');

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

--
-- Table structure for table `erp_hr_questions`
--

CREATE TABLE `erp_hr_questions` (
  `id` int(11) NOT NULL,
  `question_type_id` int(11) NOT NULL,
  `question` text NOT NULL,
  `answer` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_questions`
--

INSERT INTO `erp_hr_questions` (`id`, `question_type_id`, `question`, `answer`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 'Q1', '', 8, '2025-06-25 08:39:12', 0, '0000-00-00 00:00:00', 'Y'),
(2, 1, 'Q1', '', 8, '2025-06-25 08:47:34', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_question_type`
--

CREATE TABLE `erp_hr_question_type` (
  `id` int(11) NOT NULL,
  `question_for` varchar(700) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_question_type`
--

INSERT INTO `erp_hr_question_type` (`id`, `question_for`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Accounts', 8, '2025-06-25 08:33:27', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_recruitment`
--

CREATE TABLE `erp_hr_recruitment` (
  `id` int(11) NOT NULL,
  `first_name` varchar(700) NOT NULL,
  `middle_name` varchar(700) NOT NULL,
  `last_name` varchar(700) NOT NULL,
  `gender` enum('1','2') NOT NULL,
  `date_of_birth` date NOT NULL,
  `email_id` varchar(700) NOT NULL,
  `mobile_no` varchar(200) NOT NULL,
  `post_applied` varchar(700) NOT NULL,
  `expected_salary` int(11) NOT NULL,
  `employee_description` text NOT NULL,
  `years_experience` int(11) NOT NULL,
  `interview_call` tinyint(4) DEFAULT 0 COMMENT '0=>Not Selected, 1=>selected',
  `interview_date` datetime NOT NULL,
  `interview_letter` text NOT NULL,
  `offer_letter_date` date NOT NULL,
  `offer_letter` text NOT NULL,
  `employee_rating` int(11) NOT NULL,
  `convert_status` enum('N','Y') NOT NULL DEFAULT 'N',
  `branch_id` int(11) NOT NULL,
  `reference_no` int(11) NOT NULL,
  `monthly_sales_target` decimal(15,2) NOT NULL,
  `minimum_target_cards` int(11) NOT NULL,
  `incentive_card` varchar(50) NOT NULL,
  `mail_notifying_employee` varchar(700) NOT NULL,
  `notifying_status` tinyint(4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_recruitment`
--

INSERT INTO `erp_hr_recruitment` (`id`, `first_name`, `middle_name`, `last_name`, `gender`, `date_of_birth`, `email_id`, `mobile_no`, `post_applied`, `expected_salary`, `employee_description`, `years_experience`, `interview_call`, `interview_date`, `interview_letter`, `offer_letter_date`, `offer_letter`, `employee_rating`, `convert_status`, `branch_id`, `reference_no`, `monthly_sales_target`, `minimum_target_cards`, `incentive_card`, `mail_notifying_employee`, `notifying_status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'JIya', '', 'Jose', '2', '1995-01-05', 'test@email.com', '050', 'HR assistant', 2700, 'tests', 1, 1, '2025-06-19 14:00:00', '<p>\n	<b>Subject:</b> Invitation to Interview<br />\n	<br />\n	Dear JIya Jose,<br />\n	<br />\n	Thank you for applying for the position of HR assistant with Bluesky Technologies.<br />\n	<br />\n	We would like to invite you to come to our office to interview for the position.Your interview has been scheduled for 19/06/2025 14:00.<br />\n	<br />\n	Please call me at <span style=\"color:red\">[Mobile No]</span> or email me at <span style=\"color:red\">[Email ID]</span>,if you have any questions or need to reschedule.<br />\n	<br />\n	<br />\n	Sincerely,<br />\n	<br />\n	<span style=\"color:red\">[HR Department]</span></p>\n', '2025-06-24', '', 0, 'N', 1, 1, 0.00, 0, '', '', 0, 8, '2025-06-19 14:12:41', 8, '2025-06-19 15:37:27');

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

--
-- Table structure for table `erp_hr_recruitment_analysis`
--

CREATE TABLE `erp_hr_recruitment_analysis` (
  `id` int(11) NOT NULL,
  `recruit_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `question` text NOT NULL,
  `answer` text NOT NULL,
  `max_score` decimal(10,2) NOT NULL,
  `score_secured` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_recruitment_documents`
--

CREATE TABLE `erp_hr_recruitment_documents` (
  `id` int(11) NOT NULL,
  `recruit_id` int(11) NOT NULL,
  `document_id` int(11) NOT NULL,
  `document_no` varchar(700) NOT NULL,
  `document_file` varchar(700) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_recruitment_note`
--

CREATE TABLE `erp_hr_recruitment_note` (
  `id` int(11) NOT NULL,
  `recruit_id` int(11) NOT NULL,
  `recruitment_note` varchar(550) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_recruitment_onboard`
--

CREATE TABLE `erp_hr_recruitment_onboard` (
  `id` int(11) NOT NULL,
  `recruit_id` int(11) NOT NULL,
  `onboard_id` int(11) NOT NULL,
  `task` text NOT NULL,
  `task_status` enum('N','Y') NOT NULL DEFAULT 'N',
  `task_done_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_recruitment_onboard`
--

INSERT INTO `erp_hr_recruitment_onboard` (`id`, `recruit_id`, `onboard_id`, `task`, `task_status`, `task_done_date`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 4, 1, 'Task1', 'N', '0000-00-00', 1, '2023-09-26 10:17:43', 1, '2023-09-26 10:18:05'),
(2, 4, 2, 'Task2', 'N', '0000-00-00', 1, '2023-09-26 10:17:43', 1, '2023-09-26 10:18:05'),
(3, 6, 1, 'Task1', 'Y', '2023-10-05', 1, '2023-10-05 07:50:34', 1, '2023-10-05 07:53:01'),
(4, 6, 2, 'Task2', 'Y', '2023-10-05', 1, '2023-10-05 07:50:34', 1, '2023-10-05 07:53:01'),
(5, 3, 1, 'Task1', 'N', '0000-00-00', 2, '2023-10-06 07:31:15', 1, '2025-06-18 09:13:41'),
(6, 3, 2, 'Task2', 'N', '0000-00-00', 2, '2023-10-06 07:31:15', 1, '2025-06-18 09:13:41'),
(7, 5, 1, 'Task1', 'N', '0000-00-00', 1, '2023-11-07 03:10:50', 1, '2023-12-07 11:47:37'),
(8, 5, 2, 'Task2', 'N', '0000-00-00', 1, '2023-11-07 03:10:50', 1, '2023-12-07 11:47:37'),
(9, 7, 1, 'Task1', 'N', '0000-00-00', 1, '2023-12-12 10:43:56', 1, '2025-03-03 10:31:24'),
(10, 7, 2, 'Task2', 'N', '0000-00-00', 1, '2023-12-12 10:43:56', 1, '2025-03-03 10:31:24'),
(11, 8, 1, 'Task1', 'N', '0000-00-00', 1, '2025-03-03 11:03:15', 0, '0000-00-00 00:00:00'),
(12, 8, 2, 'Task2', 'N', '0000-00-00', 1, '2025-03-03 11:03:15', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_recruitment_salary`
--

CREATE TABLE `erp_hr_recruitment_salary` (
  `id` int(11) NOT NULL,
  `recruitment_id` int(11) NOT NULL,
  `salary_type` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_reporting_manager`
--

CREATE TABLE `erp_hr_reporting_manager` (
  `id` int(11) NOT NULL,
  `branch` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_reporting_manager`
--

INSERT INTO `erp_hr_reporting_manager` (`id`, `branch`, `employee_id`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 1, 8, '2025-07-22 09:57:04', 0, '0000-00-00 00:00:00', 'Y'),
(2, 1, 2, 8, '2025-07-22 09:57:04', 0, '0000-00-00 00:00:00', 'Y'),
(3, 1, 3, 8, '2025-07-22 09:57:04', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_room_allocation`
--

CREATE TABLE `erp_hr_room_allocation` (
  `id` int(11) NOT NULL,
  `building_id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `bedspace_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_room_allocation`
--

INSERT INTO `erp_hr_room_allocation` (`id`, `building_id`, `room_id`, `bedspace_id`, `employee_id`, `start_date`, `end_date`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 1, 1, 1, '2025-06-24', '0000-00-00', 8, '2025-06-24 01:51:49', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_room_bedspace`
--

CREATE TABLE `erp_hr_room_bedspace` (
  `id` int(11) NOT NULL,
  `building_floor_id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `bed_space_name` varchar(500) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_room_bedspace`
--

INSERT INTO `erp_hr_room_bedspace` (`id`, `building_floor_id`, `room_id`, `bed_space_name`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 1, 1, '1', 8, '2025-06-24 01:40:22', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_room_setting`
--

CREATE TABLE `erp_hr_room_setting` (
  `id` int(11) NOT NULL,
  `building_name` varchar(500) NOT NULL,
  `country_id` int(11) NOT NULL,
  `location_name` varchar(500) NOT NULL,
  `address` text NOT NULL,
  `no_rooms` int(11) NOT NULL COMMENT 'Total Number of rooms',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_room_setting`
--

INSERT INTO `erp_hr_room_setting` (`id`, `building_name`, `country_id`, `location_name`, `address`, `no_rooms`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, '1111', 130, 'Dubai', 'Dubai', 2, 8, '2025-06-24 01:29:50', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_room_setting_details`
--

CREATE TABLE `erp_hr_room_setting_details` (
  `id` int(11) NOT NULL,
  `room_setting_id` int(11) NOT NULL,
  `room_name` varchar(500) NOT NULL,
  `room_bedspace` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_room_setting_details`
--

INSERT INTO `erp_hr_room_setting_details` (`id`, `room_setting_id`, `room_name`, `room_bedspace`) VALUES
(1, 1, '1', 1),
(2, 1, '2', 1);

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

--
-- Table structure for table `erp_hr_salary_processing`
--

CREATE TABLE `erp_hr_salary_processing` (
  `id` int(11) NOT NULL,
  `payroll_branch_or_sponsor_id` int(11) NOT NULL,
  `payroll_startdate` date NOT NULL,
  `payroll_enddate` date NOT NULL,
  `payroll_month` varchar(255) NOT NULL,
  `payroll_status` int(11) NOT NULL COMMENT '1-unlock,2-lock',
  `salary_lock_date` date NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `posted_date` date NOT NULL,
  `voucher_id` int(11) NOT NULL,
  `show_pay_slip_employee` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_salary_processing`
--

INSERT INTO `erp_hr_salary_processing` (`id`, `payroll_branch_or_sponsor_id`, `payroll_startdate`, `payroll_enddate`, `payroll_month`, `payroll_status`, `salary_lock_date`, `posted`, `posted_date`, `voucher_id`, `show_pay_slip_employee`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(6, 1, '2025-07-01', '2025-07-31', 'July', 2, '2025-09-03', 'N', '0000-00-00', 0, 'N', 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00', 'Y'),
(5, 1, '2025-06-01', '2025-06-30', 'June', 2, '2025-06-24', 'N', '0000-00-00', 0, 'N', 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_salary_slip`
--

CREATE TABLE `erp_hr_salary_slip` (
  `id` int(11) NOT NULL,
  `salary_processing_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `total_working_days` decimal(10,2) NOT NULL,
  `absent_working_days` decimal(10,2) NOT NULL,
  `ticket_increment_excluded_days` decimal(10,2) NOT NULL,
  `leave_increment_excluded_days` decimal(10,2) NOT NULL,
  `current_leave_balance` decimal(10,2) NOT NULL,
  `ticket_entitlement_balance` decimal(10,2) NOT NULL,
  `salary_advance_amount` decimal(15,2) NOT NULL,
  `leave_amount` decimal(15,2) NOT NULL,
  `loan_amount` decimal(15,2) NOT NULL,
  `normal_ot_amount` decimal(10,2) NOT NULL,
  `night_ot_amount` decimal(10,2) NOT NULL,
  `holiday_ot_amount` decimal(10,2) NOT NULL,
  `weekend_ot_amount` decimal(10,2) NOT NULL,
  `onsite_overtime` time NOT NULL,
  `onsite_overtime_amount` decimal(10,2) NOT NULL,
  `office_ot` time NOT NULL,
  `office_ot_amount` decimal(10,2) NOT NULL,
  `overtime_hour` time NOT NULL,
  `overtime_amount` decimal(15,2) NOT NULL,
  `pension_amount_employee` decimal(15,2) NOT NULL,
  `pension_amount_company` decimal(15,2) NOT NULL,
  `pension_amount` decimal(15,2) NOT NULL,
  `gratuity_amount` decimal(15,2) NOT NULL,
  `leave_salary_provision` decimal(15,2) NOT NULL,
  `before_joining_salary` decimal(10,2) NOT NULL,
  `employee_salary_amount` decimal(15,2) NOT NULL,
  `leave_settlement` decimal(15,2) NOT NULL,
  `annual_leave_addition` decimal(15,2) NOT NULL,
  `annual_leave_deduction` decimal(15,2) NOT NULL,
  `incentive` decimal(10,2) NOT NULL,
  `public_holiday` int(11) NOT NULL,
  `public_holiday_allowance` decimal(10,2) NOT NULL,
  `night_shift_days` int(11) NOT NULL,
  `night_shift_allowance` decimal(10,2) NOT NULL,
  `other_addition` decimal(10,2) NOT NULL,
  `other_deduction` decimal(10,2) NOT NULL,
  `total_addition_amount` decimal(15,2) NOT NULL,
  `total_deduction_amount` decimal(15,2) NOT NULL,
  `total_salary_amount` decimal(15,2) NOT NULL,
  `threshold_salary` decimal(10,2) NOT NULL,
  `sif_transfer_salary` decimal(10,2) NOT NULL,
  `sif_untransfer_salary` decimal(10,2) NOT NULL,
  `remarks` text NOT NULL,
  `salary_posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `wps_posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_salary_slip`
--

INSERT INTO `erp_hr_salary_slip` (`id`, `salary_processing_id`, `employee_id`, `total_working_days`, `absent_working_days`, `ticket_increment_excluded_days`, `leave_increment_excluded_days`, `current_leave_balance`, `ticket_entitlement_balance`, `salary_advance_amount`, `leave_amount`, `loan_amount`, `normal_ot_amount`, `night_ot_amount`, `holiday_ot_amount`, `weekend_ot_amount`, `onsite_overtime`, `onsite_overtime_amount`, `office_ot`, `office_ot_amount`, `overtime_hour`, `overtime_amount`, `pension_amount_employee`, `pension_amount_company`, `pension_amount`, `gratuity_amount`, `leave_salary_provision`, `before_joining_salary`, `employee_salary_amount`, `leave_settlement`, `annual_leave_addition`, `annual_leave_deduction`, `incentive`, `public_holiday`, `public_holiday_allowance`, `night_shift_days`, `night_shift_allowance`, `other_addition`, `other_deduction`, `total_addition_amount`, `total_deduction_amount`, `total_salary_amount`, `threshold_salary`, `sif_transfer_salary`, `sif_untransfer_salary`, `remarks`, `salary_posted`, `wps_posted`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(14, 5, 3, 30.00, 0.00, 0.00, 0.00, 0.00, 8.33, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, '00:00:00', 0.00, '00:00:00', 0.00, '00:00:00', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 4500.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 4500.00, 0.00, 4500.00, 0.00, '', 'N', 'N', 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00'),
(15, 5, 2, 30.00, 0.00, 0.00, 0.00, 0.00, 8.33, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, '00:00:00', 0.00, '00:00:00', 0.00, '00:00:00', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 3000.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 3000.00, 0.00, 3000.00, 0.00, '', 'N', 'N', 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00'),
(16, 5, 1, 30.00, 0.00, 0.00, 0.00, 0.00, 8.33, 0.00, 0.00, 0.00, 58.33, 0.00, 0.00, 0.00, '00:00:00', 0.00, '00:00:00', 58.33, '00:00:00', 58.33, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 5600.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0, 0.00, 0.00, 0.00, 58.33, 0.00, 5658.33, 0.00, 5658.33, 0.00, '', 'N', 'N', 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00'),
(17, 6, 3, 31.00, 0.00, 0.00, 0.00, 0.00, 8.33, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, '00:00:00', 0.00, '00:00:00', 0.00, '00:00:00', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 4500.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 4500.00, 0.00, 4500.00, 0.00, '', 'N', 'N', 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00'),
(18, 6, 2, 31.00, 0.00, 0.00, 0.00, 0.00, 8.33, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, '00:00:00', 0.00, '00:00:00', 0.00, '00:00:00', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 3000.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 3000.00, 0.00, 3000.00, 0.00, '', 'N', 'N', 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00'),
(19, 6, 1, 31.00, 0.00, 0.00, 0.00, 0.00, 8.33, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, '00:00:00', 0.00, '00:00:00', 0.00, '00:00:00', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 5600.00, 0.00, 0.00, 0.00, 0.00, 0, 0.00, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 5600.00, 0.00, 5600.00, 0.00, '', 'N', 'N', 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_salary_slip_details`
--

CREATE TABLE `erp_hr_salary_slip_details` (
  `id` int(11) NOT NULL,
  `salary_processing_id` int(11) NOT NULL,
  `salary_slip_id` int(11) NOT NULL,
  `salary_id` int(11) NOT NULL,
  `salary_type` int(11) NOT NULL,
  `salary_name` varchar(255) NOT NULL,
  `salary_amount` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_salary_slip_details`
--

INSERT INTO `erp_hr_salary_slip_details` (`id`, `salary_processing_id`, `salary_slip_id`, `salary_id`, `salary_type`, `salary_name`, `salary_amount`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(14, 5, 14, 1, 1, 'Basic', 4500.00, 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00'),
(15, 5, 15, 1, 1, 'Basic', 3000.00, 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00'),
(16, 5, 16, 1, 1, 'Basic', 5600.00, 1, '2025-06-24 08:54:46', 0, '0000-00-00 00:00:00'),
(17, 6, 17, 1, 1, 'Basic', 4500.00, 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00'),
(18, 6, 18, 1, 1, 'Basic', 3000.00, 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00'),
(19, 6, 19, 1, 1, 'Basic', 5600.00, 1, '2025-06-24 11:08:39', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_hr_salary_slip_leavedetails`
--

CREATE TABLE `erp_hr_salary_slip_leavedetails` (
  `id` int(11) NOT NULL,
  `salary_processing_id` int(11) NOT NULL,
  `salary_slip_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_id` int(11) NOT NULL,
  `leave_name` varchar(500) NOT NULL,
  `leave_count` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_sale_target`
--

CREATE TABLE `erp_hr_sale_target` (
  `id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `department_id` int(11) NOT NULL,
  `incentive_per_card` decimal(10,2) NOT NULL,
  `month` int(11) NOT NULL,
  `year` int(11) NOT NULL,
  `target_type` enum('B','C') NOT NULL DEFAULT 'C' COMMENT 'B-Booking,C-Card',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_sale_target_details`
--

CREATE TABLE `erp_hr_sale_target_details` (
  `id` int(11) NOT NULL,
  `target_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `target_card_count` decimal(10,2) NOT NULL,
  `sold_card_count` decimal(10,2) NOT NULL,
  `incentive_card_count` decimal(10,2) NOT NULL,
  `incentive_amount` decimal(10,2) NOT NULL,
  `total_team_leader_amount` decimal(10,2) NOT NULL,
  `target_bonus_amount` decimal(10,2) NOT NULL,
  `days_promotion_15` decimal(10,2) NOT NULL,
  `login_promotion` decimal(10,2) NOT NULL,
  `total_incentive` decimal(10,2) NOT NULL,
  `incentive_claw_back` decimal(10,2) NOT NULL,
  `total_incentive_hold` decimal(10,2) NOT NULL,
  `deduction_amount` decimal(10,2) NOT NULL,
  `net_incentive_amount` decimal(10,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_scheme_approve_level`
--

CREATE TABLE `erp_hr_scheme_approve_level` (
  `id` int(11) NOT NULL,
  `functionality_id` int(11) NOT NULL,
  `scheme_id` int(11) NOT NULL,
  `max_level` int(11) NOT NULL,
  `level_1_type` enum('L','S','N','H') NOT NULL,
  `level_1_authority` int(11) NOT NULL,
  `level_2_type` enum('L','S','N','H') NOT NULL,
  `level_2_authority` int(11) NOT NULL,
  `level_3_type` enum('L','S','N','H') NOT NULL,
  `level_3_authority` int(11) NOT NULL,
  `level_4_type` enum('L','S','N','H') NOT NULL,
  `level_4_authority` int(11) NOT NULL,
  `level_5_type` enum('L','S','N','H') NOT NULL,
  `level_5_authority` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_settings`
--

CREATE TABLE `erp_hr_settings` (
  `id` int(11) NOT NULL,
  `payroll_month` varchar(255) NOT NULL,
  `payroll_startdate` date NOT NULL,
  `payroll_enddate` date NOT NULL,
  `overtime_hours` time NOT NULL,
  `holiday_ot_from` enum('F','O') NOT NULL DEFAULT 'F',
  `weekend_ot_from` enum('F','O') NOT NULL DEFAULT 'F',
  `start_time_normal_ot` enum('C','P') NOT NULL DEFAULT 'P' COMMENT 'C-Company Start time incase of earlier login,P-Punch time',
  `start_time_weekend_ot` enum('C','P') NOT NULL DEFAULT 'P' COMMENT 'C-Company Start time incase of earlier login,P-Punch time',
  `start_time_night_ot` enum('C','P') NOT NULL DEFAULT 'P' COMMENT 'C-Company Start time incase of earlier login,P-Punch time',
  `start_time_holiday_ot` enum('C','P') NOT NULL DEFAULT 'P' COMMENT 'C-Company Start time incase of earlier login,P-Punch time',
  `cool_off_time` time NOT NULL,
  `annual_leave_sal_type` int(11) NOT NULL,
  `company_type` int(11) NOT NULL,
  `ifsc_code` int(11) NOT NULL,
  `annual_leave_salary_limit` decimal(15,2) NOT NULL,
  `annual_leave_carry_forward` int(11) NOT NULL,
  `leave_apply_before_current_date` enum('Y','N') NOT NULL DEFAULT 'N',
  `permissions` text NOT NULL,
  `employee_panel_permission` text NOT NULL,
  `app_permission` text NOT NULL,
  `employee_document_upload` enum('Y','N') NOT NULL,
  `include_holiday` enum('Y','N') NOT NULL DEFAULT 'N',
  `leave_apply_permission` enum('Y','N') NOT NULL DEFAULT 'N',
  `salary_deduction_negative_leave` enum('Y','N') NOT NULL DEFAULT 'N',
  `lock_attendance_leave` enum('Y','N') NOT NULL DEFAULT 'N',
  `disclaimer_salary_slip` text NOT NULL,
  `enable_mail` enum('Y','N') NOT NULL DEFAULT 'N',
  `enable_sms` enum('Y','N') NOT NULL DEFAULT 'N',
  `general_calendar` enum('Y','N') NOT NULL DEFAULT 'Y',
  `hrcalendar` enum('Y','N') NOT NULL DEFAULT 'Y',
  `last_pushed_date` date NOT NULL COMMENT 'Attendance last pushed from hiring',
  `consider_threshold_salary` enum('Y','N') NOT NULL DEFAULT 'N',
  `consider_advance_leave` enum('Y','N') NOT NULL DEFAULT 'N',
  `hr_backup` enum('Y','N') NOT NULL DEFAULT 'N',
  `pending_leave_view` text NOT NULL,
  `recruit_max_score` tinyint(4) NOT NULL,
  `recruit_max_rating` tinyint(4) NOT NULL,
  `appraisal_score` int(11) NOT NULL,
  `password_reset_beginning` enum('Y','N') NOT NULL DEFAULT 'N',
  `consider_sale_target` enum('Y','N') NOT NULL DEFAULT 'N',
  `incentive_per_card` decimal(10,2) NOT NULL,
  `target_bonus_card` int(11) NOT NULL,
  `target_bonus_amount` decimal(10,2) NOT NULL,
  `consider_public_holiday_allowance` enum('Y','N') NOT NULL DEFAULT 'N',
  `night_shift_allowance` decimal(10,2) DEFAULT NULL,
  `use_hr_code_increment_employee_code` enum('Y','N') NOT NULL DEFAULT 'Y' COMMENT 'Auto Increment Employee Code',
  `auto_increment_employee_code` enum('Y','N') NOT NULL DEFAULT 'Y',
  `leave_carry_forward_month` smallint(6) NOT NULL DEFAULT 1,
  `geo_location_distance` int(11) NOT NULL,
  `app_version` varchar(255) NOT NULL,
  `review_app_version` varchar(255) NOT NULL,
  `hr_only` enum('Y','N') NOT NULL DEFAULT 'Y',
  `branch_logo_upload` enum('Y','N') NOT NULL DEFAULT 'N',
  `footer_logo_upload` enum('Y','N') NOT NULL DEFAULT 'N',
  `watermark_logo_upload` enum('Y','N') NOT NULL DEFAULT 'N',
  `punch_delay` int(11) NOT NULL,
  `from_mail_id` varchar(700) NOT NULL,
  `from_mail_name` varchar(700) NOT NULL,
  `eos_clearance` enum('Y','N') NOT NULL DEFAULT 'N',
  `calculate_overtime` enum('Y','N') NOT NULL DEFAULT 'N',
  `package_id` int(11) NOT NULL,
  `enable_hr` enum('Y','N') NOT NULL DEFAULT 'Y',
  `max_admin_users_allowed` int(11) NOT NULL,
  `app_force_update` enum('Y','N') NOT NULL,
  `app_update_details` text NOT NULL,
  `app_android_link` varchar(700) NOT NULL,
  `app_ios_link` varchar(700) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_settings`
--

INSERT INTO `erp_hr_settings` (`id`, `payroll_month`, `payroll_startdate`, `payroll_enddate`, `overtime_hours`, `holiday_ot_from`, `weekend_ot_from`, `start_time_normal_ot`, `start_time_weekend_ot`, `start_time_night_ot`, `start_time_holiday_ot`, `cool_off_time`, `annual_leave_sal_type`, `company_type`, `ifsc_code`, `annual_leave_salary_limit`, `annual_leave_carry_forward`, `leave_apply_before_current_date`, `permissions`, `employee_panel_permission`, `app_permission`, `employee_document_upload`, `include_holiday`, `leave_apply_permission`, `salary_deduction_negative_leave`, `lock_attendance_leave`, `disclaimer_salary_slip`, `enable_mail`, `enable_sms`, `general_calendar`, `hrcalendar`, `last_pushed_date`, `consider_threshold_salary`, `consider_advance_leave`, `hr_backup`, `pending_leave_view`, `recruit_max_score`, `recruit_max_rating`, `appraisal_score`, `password_reset_beginning`, `consider_sale_target`, `incentive_per_card`, `target_bonus_card`, `target_bonus_amount`, `consider_public_holiday_allowance`, `night_shift_allowance`, `use_hr_code_increment_employee_code`, `auto_increment_employee_code`, `leave_carry_forward_month`, `geo_location_distance`, `app_version`, `review_app_version`, `hr_only`, `branch_logo_upload`, `footer_logo_upload`, `watermark_logo_upload`, `punch_delay`, `from_mail_id`, `from_mail_name`, `eos_clearance`, `calculate_overtime`, `package_id`, `enable_hr`, `max_admin_users_allowed`, `app_force_update`, `app_update_details`, `app_android_link`, `app_ios_link`, `isActive`) VALUES
(1, '', '0000-00-00', '0000-00-00', '00:30:00', 'O', 'F', 'C', 'C', 'C', 'C', '00:05:00', 0, 0, 0, 0.00, 0, 'Y', '{\"dash_check_all\":1,\"send_circular_mail\":1}', '{\"permission_check_all\":1,\"staff_board_view\":1,\"calendar_view\":1,\"contact_details_view\":1,\"dependant_view\":1,\"leave_view\":1,\"circular_view\":1,\"catalogue_view\":1,\"loan_view\":1,\"loan_approval_view\":1,\"salary_advance_view\":1,\"attendance_view\":1,\"appraisal_view\":1,\"request_view\":1,\"salary_slip_view\":1,\"family_ticket_view\":1,\"ticket_encashment_view\":1,\"notice_conduct_view\":1}', '{\"permission_check_all\":1,\"attendance_view\":1,\"certificate_view\":1,\"circular_view\":1,\"document_view\":1,\"document_add\":1,\"document_upload\":1,\"expense_view\":1,\"expense_add\":1,\"expense_upload\":1,\"late_in_view\":1,\"late_in_add_view\":1,\"leave_view\":1,\"leave_dashboard_view\":1,\"loan_view\":1,\"loan_add\":1,\"organization_chart_view\":1,\"profile_photo_view\":1,\"punch_button_view\":1,\"salary_slip_view\":1,\"staff_board_view\":1}', 'Y', 'N', 'Y', 'N', 'N', 'This is an electronically generated payslip and will not require a signature.', 'N', 'N', 'N', 'Y', '0000-00-00', 'N', 'N', 'N', '', 10, 5, 10, 'Y', 'N', 650.00, 10, 1000.00, 'Y', 10.00, 'Y', 'Y', 1, 500, '1.0.0', '1.0.1', 'Y', 'Y', 'Y', 'Y', 15, 'info@mailbluesky.com', 'Bluesky-NoReply', 'Y', 'N', 3, 'Y', 7, 'Y', '', '', '', 'Y');

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

--
-- Table structure for table `erp_hr_software_package`
--

CREATE TABLE `erp_hr_software_package` (
  `id` int(11) NOT NULL,
  `package_name` varchar(700) NOT NULL,
  `description` text NOT NULL,
  `package_type` set('1','2','3') NOT NULL COMMENT '1-Basic,2-Standard,3-Premium',
  `package_details` text NOT NULL,
  `package_cost` decimal(10,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_software_package`
--

INSERT INTO `erp_hr_software_package` (`id`, `package_name`, `description`, `package_type`, `package_details`, `package_cost`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Basic', 'test', '1', '2,1,17,3,4,7,8,9', 250.00, 0, '2025-06-04 13:22:37', 1, '2025-06-10 21:29:05', 'Y'),
(2, 'Standard', '', '2', '2,25,10,1,17,3,4,6,7,31,22,8,9,15', 0.00, 0, '2025-06-04 13:22:37', 1, '2025-06-10 21:31:56', 'Y'),
(3, 'Premium', '', '3', '37,12,30,2,25,21,18,36,19,10,1,17,33,11,32,3,4,6,28,29,23,24,35,7,27,16,13,14,20,5,31,34,22,26,8,9,15', 0.00, 0, '2025-06-04 13:22:37', 1, '2025-06-13 13:13:26', 'Y');

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

--
-- Table structure for table `erp_hr_todolist`
--

CREATE TABLE `erp_hr_todolist` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `todo_date` date NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `activity` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','C','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_hr_training`
--

CREATE TABLE `erp_hr_training` (
  `id` int(11) NOT NULL,
  `course_id` int(11) NOT NULL,
  `sub_course_id` int(11) NOT NULL,
  `provider_name` varchar(700) NOT NULL,
  `course_date` date NOT NULL,
  `location` varchar(700) NOT NULL,
  `fee_per_head` decimal(10,2) NOT NULL,
  `mail_sent_ids` varchar(700) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_training`
--

INSERT INTO `erp_hr_training` (`id`, `course_id`, `sub_course_id`, `provider_name`, `course_date`, `location`, `fee_per_head`, `mail_sent_ids`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(2, 1, 1, 'P1', '2025-06-23', 'dubai', 1000.00, '', 8, '2025-06-23 11:00:34', 0, '0000-00-00 00:00:00', 'Y');

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

--
-- Table structure for table `erp_hr_training_details`
--

CREATE TABLE `erp_hr_training_details` (
  `id` int(11) NOT NULL,
  `training_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `days_attended` int(11) NOT NULL,
  `training_status` enum('A','N') NOT NULL COMMENT 'A-Attended,N-Not Attended',
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_training_details`
--

INSERT INTO `erp_hr_training_details` (`id`, `training_id`, `employee_id`, `days_attended`, `training_status`, `created_date_time`, `created_by`, `updated_date_time`, `updated_by`) VALUES
(2, 2, 1, 1, 'N', '2025-06-23 11:00:34', 8, '0000-00-00 00:00:00', 0);

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

--
-- Table structure for table `erp_hr_workinghours`
--

CREATE TABLE `erp_hr_workinghours` (
  `id` int(11) NOT NULL,
  `company_branch_or_sponsor_id` int(11) NOT NULL,
  `week_id` int(11) NOT NULL,
  `start_time` varchar(100) NOT NULL,
  `end_time` varchar(100) NOT NULL,
  `weekend` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_workinghours`
--

INSERT INTO `erp_hr_workinghours` (`id`, `company_branch_or_sponsor_id`, `week_id`, `start_time`, `end_time`, `weekend`) VALUES
(1, 1, 1, '', '', 0),
(2, 1, 2, '', '', 1),
(3, 1, 3, '', '', 1),
(4, 1, 4, '', '', 1),
(5, 1, 5, '', '', 1),
(6, 1, 6, '', '', 1),
(7, 1, 7, '', '', 1);

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

--
-- Table structure for table `erp_incentive_calculation`
--

CREATE TABLE `erp_incentive_calculation` (
  `id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `insurance` double(5,2) NOT NULL DEFAULT 0.00,
  `frieght_charges` double(5,2) NOT NULL DEFAULT 0.00,
  `entry_tax` double(5,2) NOT NULL DEFAULT 0.00,
  `less_discount` double(5,2) NOT NULL DEFAULT 0.00,
  `advance` double(5,2) NOT NULL DEFAULT 0.00,
  `commission` double(5,2) NOT NULL DEFAULT 0.00,
  `min_sale_profit` double(5,2) NOT NULL DEFAULT 0.00,
  `sale_interest` double(5,2) NOT NULL DEFAULT 0.00,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_inventory_batch_split_history`
--

CREATE TABLE `erp_inventory_batch_split_history` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `batch_name` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_inventory_batch_split_history_detail`
--

CREATE TABLE `erp_inventory_batch_split_history_detail` (
  `id` int(11) NOT NULL,
  `batch_split_history_id` int(11) NOT NULL,
  `batch_name` varchar(255) NOT NULL,
  `status` enum('O_UPD','N_ADD') NOT NULL COMMENT 'O_UPD->update ProLoc id,N_ADD->Add Pro Loc id',
  `product_location_id` int(11) NOT NULL,
  `quantity` decimal(15,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_inventory_direct_transfer`
--

CREATE TABLE `erp_inventory_direct_transfer` (
  `id` bigint(20) NOT NULL,
  `from_warehouse_id` bigint(20) NOT NULL,
  `to_warehouse_id` bigint(20) NOT NULL,
  `direct_transfer_description` text NOT NULL,
  `reference` varchar(255) NOT NULL,
  `transfer_date` date NOT NULL,
  `status` enum('T','P','C') NOT NULL DEFAULT 'T' COMMENT 'T - in transit, P - Packing, C- Completed',
  `added_from` enum('DT','ST') NOT NULL DEFAULT 'DT' COMMENT 'DT = direct transfer , ST -Sample ',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_inventory_direct_transfer`
--

INSERT INTO `erp_inventory_direct_transfer` (`id`, `from_warehouse_id`, `to_warehouse_id`, `direct_transfer_description`, `reference`, `transfer_date`, `status`, `added_from`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`) VALUES
(1, 1, 2, '', 'T1', '2025-05-06', 'C', 'DT', 8, 0, '2025-05-06 12:05:51', '0000-00-00 00:00:00'),
(2, 1, 4, '', 'ref1', '2025-06-23', 'C', 'DT', 8, 0, '2025-06-23 05:06:11', '0000-00-00 00:00:00'),
(3, 3, 2, 'esc', '12345', '2025-06-24', 'T', 'DT', 8, 0, '2025-06-24 09:06:05', '0000-00-00 00:00:00'),
(4, 1, 4, '', '-', '2025-06-30', 'C', 'DT', 8, 0, '2025-06-30 09:06:21', '0000-00-00 00:00:00'),
(5, 1, 4, 'New refernce', 'New ref', '2025-08-26', 'C', 'DT', 1, 0, '2025-08-26 01:08:02', '0000-00-00 00:00:00'),
(6, 1, 5, '', '-', '2025-10-03', 'C', 'DT', 1, 0, '2025-10-03 03:10:38', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_inventory_direct_transfer_item`
--

CREATE TABLE `erp_inventory_direct_transfer_item` (
  `id` int(11) NOT NULL,
  `direct_transfer_id` int(11) NOT NULL,
  `item_id` int(11) NOT NULL,
  `item_name` varchar(255) NOT NULL,
  `item_description` text NOT NULL,
  `transfer_qty` decimal(15,3) NOT NULL,
  `sample_qty` decimal(15,3) NOT NULL,
  `available_qty` decimal(15,3) NOT NULL,
  `unit` int(11) NOT NULL,
  `transferred` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_inventory_direct_transfer_item`
--

INSERT INTO `erp_inventory_direct_transfer_item` (`id`, `direct_transfer_id`, `item_id`, `item_name`, `item_description`, `transfer_qty`, `sample_qty`, `available_qty`, `unit`, `transferred`) VALUES
(1, 1, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 1.000, 0.000, 0.000, 2, 'N'),
(2, 2, 672, '1001', 'Test Item', 5.000, 0.000, 0.000, 672, 'N'),
(3, 3, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', 0.000, 0.000, 0.000, 2, 'N'),
(4, 4, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', 1.000, 0.000, 0.000, 245, 'N'),
(5, 5, 672, '1001', 'Test Item', 5.000, 0.000, 0.000, 672, 'N'),
(6, 6, 681, 'A1001', 'Test Item for A100', 5.000, 0.000, 0.000, 681, 'N');

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

--
-- Table structure for table `erp_inventory_generic_name`
--

CREATE TABLE `erp_inventory_generic_name` (
  `id` int(11) NOT NULL,
  `generic_name` varchar(255) NOT NULL,
  `generic_description` text NOT NULL,
  `isDefault` enum('Y','N') NOT NULL DEFAULT 'N',
  `generic_image` varchar(255) NOT NULL,
  `inventory_ledger_id` int(11) NOT NULL,
  `cost_of_sales_ledger_id` int(11) NOT NULL,
  `sales_ledger_id` int(11) NOT NULL,
  `cost_of_gift_ledger_id` int(11) NOT NULL,
  `is_Active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_inventory_generic_name`
--

INSERT INTO `erp_inventory_generic_name` (`id`, `generic_name`, `generic_description`, `isDefault`, `generic_image`, `inventory_ledger_id`, `cost_of_sales_ledger_id`, `sales_ledger_id`, `cost_of_gift_ledger_id`, `is_Active`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'Accessories', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(2, 'Braces', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(3, 'Case', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-06-01 00:00:00'),
(4, 'Castors', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(5, 'Corners', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(6, 'Dishes', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(7, 'Extrusion', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(8, 'Feet', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(9, 'Flightpanel', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(10, 'Foams', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(11, 'Halcon', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(12, 'Handles', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(13, 'Hinges', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(14, 'Industrial', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(15, 'Laminates', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(16, 'Latches', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(17, 'Lidstay', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(18, 'Music Mixers', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 8, '2025-05-26 00:00:00'),
(19, 'Others', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 8, '2025-06-23 00:00:00'),
(20, 'Plywood', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(21, 'Rack Drawers', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(22, 'Rivets', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(23, 'SKB Case', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(24, 'SKB Cases', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(25, 'Sports', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(26, 'Table Legs', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(27, 'Tooling', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 1, '2025-05-05 00:00:00'),
(28, 'None', '', 'Y', '', 0, 0, 0, 0, 'Y', 1, '2025-05-05 00:00:00', 8, '2025-06-27 00:00:00'),
(29, 'Road Bikes', '', 'N', '', 0, 0, 0, 0, 'Y', 8, '2025-05-26 00:00:00', 0, '0000-00-00 00:00:00'),
(30, 'Vt1', '', 'N', '', 0, 0, 0, 0, 'Y', 1, '2025-07-16 16:46:20', 1, '2025-07-16 16:46:20');

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

--
-- Table structure for table `erp_inventory_goods_issue`
--

CREATE TABLE `erp_inventory_goods_issue` (
  `id` int(11) NOT NULL,
  `goods_issue_date` date NOT NULL,
  `file_id` int(11) NOT NULL COMMENT 'foreign key reference to activity table',
  `ticket_id` int(11) NOT NULL,
  `ledger_id` int(11) NOT NULL,
  `subledger_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `project_classification_id` int(11) NOT NULL,
  `contract_id` int(11) NOT NULL COMMENT 'planned_maintenance',
  `warehouse_id` int(11) NOT NULL,
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `reference` varchar(255) NOT NULL,
  `issue_notification` varchar(500) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `stock_updated` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `issue_type` enum('D','E','M','L','N','S','PR','WI') NOT NULL DEFAULT 'N' COMMENT 'Damage,Near Expiry, Missing, Loss,None',
  `unit_id` int(11) NOT NULL,
  `reference_id` int(11) NOT NULL COMMENT 'production_order_id',
  `production_order_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_inventory_goods_issue`
--

INSERT INTO `erp_inventory_goods_issue` (`id`, `goods_issue_date`, `file_id`, `ticket_id`, `ledger_id`, `subledger_id`, `customer_id`, `project_id`, `project_classification_id`, `contract_id`, `warehouse_id`, `notes`, `terms_and_conditions`, `remarks`, `reference`, `issue_notification`, `isActive`, `stock_updated`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`, `posted`, `issue_type`, `unit_id`, `reference_id`, `production_order_id`) VALUES
(20001, '2025-05-06', 0, 0, 0, 0, 0, 10001, 0, 0, 1, '', '', '', '101', '', 'Y', 'Y', 1, 0, '2025-05-06 11:23:59', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20002, '2025-05-19', 0, 0, 0, 0, 1004, 0, 0, 0, 1, '', '', '', 'RAM25-PRO5896', '', 'Y', 'Y', 8, 0, '2025-05-19 03:56:05', '0000-00-00 00:00:00', 'N', 'N', 0, 2147483647, 0),
(20003, '2025-05-20', 0, 0, 0, 0, 0, 10003, 0, 0, 1, '', '', '', '10003', '', 'Y', 'Y', 8, 0, '2025-05-20 04:35:33', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20004, '2025-05-20', 0, 0, 0, 0, 0, 10003, 0, 0, 1, '', '', '', '--', '', 'Y', 'Y', 8, 8, '2025-05-20 04:51:51', '2025-05-21 07:28:01', 'N', 'N', 0, 1, 0),
(20005, '2025-05-21', 0, 1, 0, 0, 0, 0, 1, 0, 1, '', '', '', 'PGI', '', 'Y', 'Y', 8, 8, '2025-05-21 07:26:40', '0000-00-00 00:00:00', 'N', '', 0, 20001, 0),
(20006, '2025-05-21', 0, 0, 0, 0, 0, 10003, 0, 0, 1, '', '', '', '--', '', 'Y', 'Y', 8, 0, '2025-05-21 10:21:58', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20007, '2025-05-21', 0, 0, 0, 0, 0, 10001, 0, 0, 1, '', '', '', '1001', '', 'Y', 'Y', 1, 0, '2025-05-21 03:21:54', '0000-00-00 00:00:00', 'N', 'N', 0, 1001, 0),
(20008, '2025-05-21', 0, 0, 0, 0, 0, 10003, 0, 0, 1, '', '', '', '10003', '', 'Y', 'Y', 1, 1, '2025-05-21 03:40:20', '2025-06-11 01:54:56', 'N', 'N', 0, 1003, 0),
(20009, '2025-05-21', 0, 0, 0, 0, 1019, 10001, 0, 0, 1, '', '', '', 'Ref01', '', 'Y', 'Y', 1, 0, '2025-05-21 04:03:34', '0000-00-00 00:00:00', 'N', 'N', 0, 1001, 0),
(20010, '2025-05-21', 0, 0, 0, 0, 0, 10003, 0, 0, 1, '', '', '', '10003', '', 'Y', 'Y', 1, 0, '2025-05-21 04:17:35', '0000-00-00 00:00:00', 'N', 'N', 0, 1001, 0),
(20011, '2025-05-21', 0, 0, 0, 0, 0, 10003, 0, 0, 1, '', '', '', '10003', '', 'Y', 'Y', 1, 0, '2025-05-21 04:20:57', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20012, '2025-05-21', 0, 0, 0, 0, 1002, 10003, 0, 0, 1, '', '', '', '10003', '', 'Y', 'Y', 1, 8, '2025-05-21 04:26:57', '2025-05-21 04:56:08', 'N', 'N', 0, 0, 0),
(20013, '2025-05-21', 0, 0, 0, 0, 1019, 10003, 0, 0, 1, '', '', '', 'Ref01', '', 'Y', 'Y', 8, 0, '2025-05-21 04:39:32', '0000-00-00 00:00:00', 'N', 'N', 0, 1001, 0),
(20014, '2025-05-23', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-05-23 07:48:38', '0000-00-00 00:00:00', 'N', '', 0, 20002, 0),
(20015, '2025-06-10', 0, 0, 0, 0, 1092, 0, 0, 0, 1, '', '', '', '20023', '', 'Y', 'Y', 1, 0, '2025-06-10 03:40:29', '0000-00-00 00:00:00', 'N', 'N', 0, 20023, 0),
(20016, '2025-06-11', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Test', '', 'Y', 'Y', 1, 0, '2025-06-11 11:52:34', '0000-00-00 00:00:00', 'N', '', 0, 20002, 0),
(20017, '2025-06-12', 0, 0, 0, 0, 1089, 0, 0, 0, 1, '', '', '', 'Test', '', 'Y', 'Y', 1, 1, '2025-06-12 01:59:46', '2025-06-12 03:30:26', 'N', 'N', 0, 2001, 0),
(20018, '2025-06-13', 0, 0, 0, 0, 1089, 0, 0, 0, 1, '', '', '', '123', '', 'Y', 'Y', 1, 0, '2025-06-13 09:47:08', '0000-00-00 00:00:00', 'N', '', 0, 2002, 0),
(20019, '2025-06-23', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-06-23 05:11:43', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20020, '2025-06-24', 0, 0, 0, 0, 1001, 10001, 0, 0, 1, '', '', '', '7896666', '', 'Y', 'Y', 8, 0, '2025-06-24 08:46:12', '0000-00-00 00:00:00', 'N', 'N', 0, 2001, 0),
(20021, '2025-06-24', 0, 0, 0, 0, 1002, 10001, 0, 0, 1, '', '', '', 'ref 123', '', 'Y', 'Y', 8, 0, '2025-06-24 08:48:04', '0000-00-00 00:00:00', 'N', 'N', 0, 2002, 0),
(20022, '2025-06-24', 0, 0, 0, 0, 1092, 10001, 0, 0, 1, '', '', '', 'REFI1111', '', 'Y', 'Y', 8, 0, '2025-06-24 17:10:41', '0000-00-00 00:00:00', 'N', '', 0, 0, 0),
(20023, '2025-06-27', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '2007', '', 'Y', 'Y', 1, 0, '2025-06-27 18:19:52', '0000-00-00 00:00:00', 'N', '', 0, 2007, 0),
(20024, '2025-06-30', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-06-30 09:01:59', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20025, '2025-06-30', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-06-30 09:05:18', '0000-00-00 00:00:00', 'N', 'PR', 0, 2010, 0),
(20026, '2025-06-30', 0, 0, 0, 0, 0, 10002, 0, 0, 1, '', '', '', 'REF-M-1001', '', 'Y', 'Y', 8, 0, '2025-06-30 09:54:09', '0000-00-00 00:00:00', 'N', 'PR', 0, 2010, 0),
(20027, '2025-06-30', 0, 0, 0, 0, 0, 10007, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-06-30 10:07:32', '0000-00-00 00:00:00', 'N', 'PR', 0, 2011, 0),
(20028, '2025-06-30', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', 'REF1001', '', 'Y', 'Y', 8, 0, '2025-06-30 10:32:50', '0000-00-00 00:00:00', 'N', 'PR', 0, 2010, 0),
(20029, '2025-06-30', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-06-30 10:35:43', '0000-00-00 00:00:00', 'N', 'PR', 0, 2012, 0),
(20030, '2025-06-30', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'Y', 8, 0, '2025-06-30 10:45:21', '0000-00-00 00:00:00', 'N', 'PR', 0, 2012, 0),
(20031, '2025-06-30', 0, 0, 0, 0, 1010, 10007, 0, 0, 1, '', '', '', 'JUNE PROJECT 2017', '', 'Y', 'Y', 1, 0, '2025-06-30 10:59:24', '0000-00-00 00:00:00', 'N', 'PR', 0, 0, 0),
(20032, '2025-06-30', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', 'REF1005', '', 'Y', 'Y', 8, 0, '2025-06-30 14:04:18', '0000-00-00 00:00:00', 'N', 'PR', 0, 2014, 0),
(20033, '2025-06-30', 0, 0, 0, 0, 1001, 0, 0, 0, 1, '', '', '', '20026', '', 'Y', 'Y', 8, 0, '2025-06-30 15:12:09', '0000-00-00 00:00:00', 'N', 'PR', 0, 2015, 0),
(20034, '2025-06-30', 0, 0, 0, 0, 1028, 0, 0, 0, 1, '', '', '', '20003', '', 'Y', 'Y', 8, 0, '2025-06-30 15:30:44', '0000-00-00 00:00:00', 'N', 'PR', 0, 2009, 0),
(20035, '2025-09-22', 0, 0, 0, 0, 1002, 10001, 0, 0, 1, '', '', '', 'test athulya edit', '', 'Y', 'Y', 1, 13, '2025-09-22 12:31:19', '2025-09-22 12:31:45', 'N', 'PR', 0, 0, 0),
(20036, '2025-09-29', 0, 0, 0, 0, 1002, 10001, 0, 0, 1, '', '', '', '10001', '', 'Y', 'Y', 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20037, '2025-10-03', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'N', 1, 0, '2025-10-03 15:18:35', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20038, '2025-10-03', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'Y', 'N', 1, 0, '2025-10-03 16:48:52', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20039, '2025-10-03', 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '', '', '2', '', 'Y', 'Y', 1, 0, '2025-10-03 16:53:27', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0),
(20040, '2025-10-16', 0, 0, 0, 0, 1004, 0, 0, 0, 1, '', '', '', 'test athulya', '', 'Y', 'Y', 1, 0, '2025-10-16 08:44:56', '0000-00-00 00:00:00', 'N', 'N', 0, 0, 0);

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

--
-- Table structure for table `erp_inventory_goods_issue_item`
--

CREATE TABLE `erp_inventory_goods_issue_item` (
  `id` int(11) NOT NULL,
  `inventory_goods_issue_id` int(11) NOT NULL COMMENT 'foreign key to material receipt table',
  `product_id` int(11) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `unit` varchar(20) NOT NULL,
  `rate` decimal(15,3) NOT NULL,
  `picked_qty` decimal(15,2) DEFAULT NULL,
  `product_location_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_inventory_goods_issue_item`
--

INSERT INTO `erp_inventory_goods_issue_item` (`id`, `inventory_goods_issue_id`, `product_id`, `product_name`, `description`, `unit`, `rate`, `picked_qty`, `product_location_id`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`) VALUES
(1, 20001, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 25.000, 2.00, 0, 1, 0, '2025-05-06 11:23:59', '0000-00-00 00:00:00'),
(2, 20002, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 25.000, 40.00, 0, 8, 0, '2025-05-19 15:56:05', '0000-00-00 00:00:00'),
(3, 20002, 1, '03-DD-B-30063/ISS2', 'Issue 2 Bag', '1', 15.336, 34.00, 0, 8, 0, '2025-05-19 15:56:05', '0000-00-00 00:00:00'),
(4, 20003, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 139.000, 20.00, 0, 8, 0, '2025-05-20 16:35:33', '0000-00-00 00:00:00'),
(5, 20003, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 77.000, 25.00, 0, 8, 0, '2025-05-20 16:35:33', '0000-00-00 00:00:00'),
(9, 20004, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 77.000, 1.00, 0, 8, 0, '2025-05-21 07:28:01', '0000-00-00 00:00:00'),
(7, 20005, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 25.000, 1.00, 1, 8, 0, '2025-05-21 07:26:40', '0000-00-00 00:00:00'),
(10, 20006, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 3.200, 2.00, 0, 8, 0, '2025-05-21 10:21:58', '0000-00-00 00:00:00'),
(11, 20006, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 5.380, 2.00, 0, 8, 0, '2025-05-21 10:21:58', '0000-00-00 00:00:00'),
(12, 20007, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 25.000, 1.00, 0, 1, 0, '2025-05-21 15:21:54', '0000-00-00 00:00:00'),
(26, 20008, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 0.000, 5.00, 0, 1, 0, '2025-06-11 13:54:56', '0000-00-00 00:00:00'),
(14, 20009, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 11.000, 1.00, 0, 1, 0, '2025-05-21 16:03:34', '0000-00-00 00:00:00'),
(15, 20010, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 0.000, 4.00, 0, 1, 0, '2025-05-21 16:17:35', '0000-00-00 00:00:00'),
(16, 20011, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 0.000, 5.00, 0, 1, 0, '2025-05-21 16:20:57', '0000-00-00 00:00:00'),
(19, 20012, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 0.000, 1.00, 0, 8, 0, '2025-05-21 16:56:08', '0000-00-00 00:00:00'),
(18, 20013, 114, 'R1291K/2L', '1U Rack Drawer with 2 Slam Locks', '114', 11.000, 1.00, 0, 8, 0, '2025-05-21 16:39:32', '0000-00-00 00:00:00'),
(20, 20014, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 3.00, 0, 8, 0, '2025-05-23 07:48:38', '0000-00-00 00:00:00'),
(21, 20014, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 0.000, 5.00, 0, 8, 0, '2025-05-23 07:48:38', '0000-00-00 00:00:00'),
(22, 20015, 349, '1SKB-SC2111', 'Foot Controller Soft Case 21 x 11 x 3 (VG99- FC300- RP1000- M13)', '349', 25.000, 1.00, 0, 1, 0, '2025-06-10 15:40:29', '0000-00-00 00:00:00'),
(23, 20016, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 3.00, 0, 1, 0, '2025-06-11 11:52:34', '0000-00-00 00:00:00'),
(24, 20016, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 0.000, 5.00, 0, 1, 0, '2025-06-11 11:52:34', '0000-00-00 00:00:00'),
(30, 20017, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 6.00, 0, 1, 0, '2025-06-12 15:30:26', '0000-00-00 00:00:00'),
(29, 20017, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 4.00, 0, 1, 0, '2025-06-12 15:30:26', '0000-00-00 00:00:00'),
(31, 20018, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 1.00, 0, 1, 0, '2025-06-13 09:47:08', '0000-00-00 00:00:00'),
(32, 20018, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 2.00, 0, 1, 0, '2025-06-13 09:47:08', '0000-00-00 00:00:00'),
(33, 20019, 672, '1001', 'Test Item', '672', 10.000, 10.00, 0, 8, 0, '2025-06-23 17:11:43', '0000-00-00 00:00:00'),
(34, 20020, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 4.00, 0, 8, 0, '2025-06-24 08:46:12', '0000-00-00 00:00:00'),
(35, 20020, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 6.00, 0, 8, 0, '2025-06-24 08:46:12', '0000-00-00 00:00:00'),
(36, 20021, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 2.00, 0, 8, 0, '2025-06-24 08:48:04', '0000-00-00 00:00:00'),
(37, 20021, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 3.00, 0, 8, 0, '2025-06-24 08:48:04', '0000-00-00 00:00:00'),
(38, 20022, 668, 'A10001', 'Test Item A10001', '668', 28.561, 10.00, 0, 8, 0, '2025-06-24 17:10:41', '0000-00-00 00:00:00'),
(39, 20023, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 2.00, 0, 1, 0, '2025-06-27 18:19:52', '0000-00-00 00:00:00'),
(40, 20023, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 3.00, 0, 1, 0, '2025-06-27 18:19:52', '0000-00-00 00:00:00'),
(41, 20024, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 70.133, 1.00, 0, 8, 0, '2025-06-30 09:01:59', '0000-00-00 00:00:00'),
(42, 20025, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 0.000, 1.00, 0, 8, 0, '2025-06-30 09:05:18', '0000-00-00 00:00:00'),
(43, 20025, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 0.000, 1.00, 0, 8, 0, '2025-06-30 09:05:18', '0000-00-00 00:00:00'),
(44, 20026, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 0.000, 1.00, 0, 8, 0, '2025-06-30 09:54:09', '0000-00-00 00:00:00'),
(45, 20026, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 0.000, 1.00, 0, 8, 0, '2025-06-30 09:54:09', '0000-00-00 00:00:00'),
(46, 20027, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 0.000, 2.00, 0, 8, 0, '2025-06-30 10:07:32', '0000-00-00 00:00:00'),
(47, 20027, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 0.000, 3.00, 0, 8, 0, '2025-06-30 10:07:32', '0000-00-00 00:00:00'),
(48, 20028, 245, 'BPLY-019', '18mm BB/BB Birch Ply [2400x1200mm]', '245', 0.000, 1.00, 0, 8, 0, '2025-06-30 10:32:50', '0000-00-00 00:00:00'),
(49, 20028, 246, 'BPLY-020', '9mm BB/BB Birch Ply [2400x1200mm]', '246', 0.000, 1.00, 0, 8, 0, '2025-06-30 10:32:50', '0000-00-00 00:00:00'),
(50, 20029, 31, 'C1150Z', 'Medium Flat Corners- Male Stacking', '31', 0.000, 1.00, 0, 8, 0, '2025-06-30 10:35:43', '0000-00-00 00:00:00'),
(51, 20029, 36, 'C1374', 'Brace Ball Corner 81mm / 3.19', '36', 0.000, 1.00, 0, 8, 0, '2025-06-30 10:35:43', '0000-00-00 00:00:00'),
(52, 20030, 31, 'C1150Z', 'Medium Flat Corners- Male Stacking', '31', 0.000, 5.00, 0, 8, 0, '2025-06-30 10:45:21', '0000-00-00 00:00:00'),
(53, 20030, 36, 'C1374', 'Brace Ball Corner 81mm / 3.19', '36', 0.000, 5.00, 0, 8, 0, '2025-06-30 10:45:21', '0000-00-00 00:00:00'),
(54, 20031, 667, 'IMP001', 'Shipping Charges', '667', 0.000, 1.00, 0, 1, 0, '2025-06-30 10:59:24', '0000-00-00 00:00:00'),
(55, 20031, 36, 'C1374', 'Brace Ball Corner 81mm / 3.19', '36', 0.000, 10.00, 0, 1, 0, '2025-06-30 10:59:24', '0000-00-00 00:00:00'),
(56, 20032, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 1.00, 0, 8, 0, '2025-06-30 14:04:18', '0000-00-00 00:00:00'),
(57, 20032, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 1.00, 0, 8, 0, '2025-06-30 14:04:18', '0000-00-00 00:00:00'),
(58, 20033, 24, 'BPLY-001', '6.5mm Russian Birch Ply [2400x1200mm]', '24', 0.000, 2.00, 0, 8, 0, '2025-06-30 15:12:09', '0000-00-00 00:00:00'),
(59, 20033, 25, 'BPLY-002', '9mm Russian Birch Ply [2400x1200mm]', '25', 0.000, 3.00, 0, 8, 0, '2025-06-30 15:12:09', '0000-00-00 00:00:00'),
(60, 20034, 664, 'D100001', 'Dummy Item', '664', 0.000, 1.00, 0, 8, 0, '2025-06-30 15:30:44', '0000-00-00 00:00:00'),
(74, 20035, 212, 'B1130', '4 Hole Brace - Rounded', '212', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(72, 20035, 20, 'B1131', '6 Hole Brace', '20', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(73, 20035, 22, 'B1631', '3-Way Divider Brace for 9.2mm / 3/8 panels', '22', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(71, 20035, 185, 'W0975-V6', 'Castor 4- Fixed', '185', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(70, 20035, 156, 'W8675', 'Die-Cast Corner Castor with Heavy Duty 75mm / 3 Diameter Wheel - Recommended Load Capacity per Wheel: 150kg/330.69lb', '156', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(69, 20035, 154, 'W2065Z', 'Steel Recessed Castor with 64mm / 2.52 Diameter Black Wheel', '154', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(75, 20035, 153, 'W0964Z', 'Recess Castor Dish - Square', '153', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(76, 20035, 60, 'G1570', 'G1570 Fan Grill/Guard', '60', 0.000, 1.00, 0, 13, 0, '2025-09-22 12:31:45', '0000-00-00 00:00:00'),
(77, 20036, 154, 'W2065Z', 'Steel Recessed Castor with 64mm / 2.52 Diameter Black Wheel', '154', 0.000, 3.00, 0, 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00'),
(78, 20036, 156, 'W8675', 'Die-Cast Corner Castor with Heavy Duty 75mm / 3 Diameter Wheel - Recommended Load Capacity per Wheel: 150kg/330.69lb', '156', 0.000, 4.00, 0, 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00'),
(79, 20036, 185, 'W0975-V6', 'Castor 4- Fixed', '185', 0.000, 7.00, 0, 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00'),
(80, 20036, 20, 'B1131', '6 Hole Brace', '20', 0.000, 2.00, 0, 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00'),
(81, 20036, 153, 'W0964Z', 'Recess Castor Dish - Square', '153', 0.000, 3.00, 0, 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00'),
(82, 20036, 60, 'G1570', 'G1570 Fan Grill/Guard', '60', 0.000, 3.00, 0, 1, 0, '2025-09-29 09:51:29', '0000-00-00 00:00:00'),
(83, 20037, 681, 'A1001', 'Test Item for A100', '681', 10.000, 2.00, 0, 1, 0, '2025-10-03 15:18:35', '0000-00-00 00:00:00'),
(84, 20038, 681, 'A1001', 'Test Item for A100', '681', 10.000, 2.00, 0, 1, 0, '2025-10-03 16:48:52', '0000-00-00 00:00:00'),
(85, 20039, 681, 'A1001', 'Test Item for A100', '681', 10.000, 2.00, 0, 1, 0, '2025-10-03 16:53:27', '0000-00-00 00:00:00'),
(86, 20040, 2, '1207SF', 'GP Laminate SF (261) Dark Gray 4x8x0.8mm', '2', 132.382, 10.00, 0, 1, 0, '2025-10-16 08:44:56', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_inventory_goods_receipt`
--

CREATE TABLE `erp_inventory_goods_receipt` (
  `id` int(11) NOT NULL,
  `goods_receipt_date` date NOT NULL,
  `file_id` int(11) NOT NULL COMMENT 'foreign key reference to activity table',
  `customer_id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `ticket_id` int(11) NOT NULL,
  `contract_id` int(11) NOT NULL,
  `project_classification_id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `reference` varchar(5000) NOT NULL,
  `receipt_notification` varchar(500) NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `receipt_type` varchar(25) NOT NULL,
  `stock_updated` enum('Y','N') NOT NULL DEFAULT 'N',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `reference_id` int(11) NOT NULL COMMENT 'production_order_id'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_inventory_goods_receipt`
--

INSERT INTO `erp_inventory_goods_receipt` (`id`, `goods_receipt_date`, `file_id`, `customer_id`, `project_id`, `ticket_id`, `contract_id`, `project_classification_id`, `warehouse_id`, `notes`, `terms_and_conditions`, `remarks`, `reference`, `receipt_notification`, `posted`, `receipt_type`, `stock_updated`, `isActive`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`, `reference_id`) VALUES
(10008, '2025-06-13', 0, 1089, 0, 0, 0, 0, 1, '', '', '', '123', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-06-13 09:48:25', '0000-00-00 00:00:00', 0),
(10007, '2025-06-12', 0, 1089, 0, 0, 0, 0, 1, '', '', '', 'New Test', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-06-12 04:00:39', '0000-00-00 00:00:00', 0),
(10006, '2025-06-12', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Test', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-06-12 09:47:58', '0000-00-00 00:00:00', 0),
(10009, '2025-06-23', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'ref', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-06-23 05:11:19', '0000-00-00 00:00:00', 0),
(10010, '2025-06-24', 0, 1001, 0, 0, 0, 0, 4, '', '', '', 'REF2003', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-06-24 17:18:29', '0000-00-00 00:00:00', 0),
(10011, '2025-06-25', 0, 1019, 0, 0, 0, 0, 1, '', '', '', '12', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-06-25 17:10:13', '0000-00-00 00:00:00', 0),
(10012, '2025-06-27', 0, 0, 0, 0, 0, 0, 1, '', '', '', '2007', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-06-27 18:21:49', '0000-00-00 00:00:00', 0),
(10014, '2025-06-30', 0, 1089, 0, 0, 0, 0, 1, '', '', '', '2001-test', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-06-30 08:37:46', '0000-00-00 00:00:00', 2001),
(10015, '2025-06-30', 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-06-30 09:03:01', '0000-00-00 00:00:00', 0),
(10016, '2025-06-30', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'REF-M-1001', '', 'N', 'PRO', 'Y', 'Y', 8, 0, '2025-06-30 10:05:42', '0000-00-00 00:00:00', 2010),
(10017, '2025-06-30', 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'N', 'PRO', 'Y', 'Y', 8, 0, '2025-06-30 10:12:09', '0000-00-00 00:00:00', 2011),
(10018, '2025-06-30', 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'N', 'PRO', 'Y', 'Y', 8, 0, '2025-06-30 10:36:27', '0000-00-00 00:00:00', 2012),
(10019, '2025-06-30', 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'N', 'PR', 'Y', 'Y', 8, 0, '2025-06-30 10:46:58', '0000-00-00 00:00:00', 2012),
(10020, '2025-06-30', 0, 1001, 0, 0, 0, 0, 1, '', '', '', '20027', '', 'N', 'PR', 'Y', 'Y', 8, 0, '2025-06-30 11:58:02', '0000-00-00 00:00:00', 2013),
(10021, '2025-06-30', 0, 1001, 0, 0, 0, 0, 1, '', '', '', '20026', '', 'N', 'PR', 'Y', 'Y', 8, 0, '2025-06-30 15:16:49', '0000-00-00 00:00:00', 2015),
(10022, '2025-06-30', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'REF1001', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-06-30 15:30:06', '0000-00-00 00:00:00', 0),
(10023, '2025-06-30', 0, 1001, 0, 0, 0, 0, 1, '', '', '', '20026', '', 'N', 'PR', 'Y', 'Y', 8, 0, '2025-06-30 15:34:19', '0000-00-00 00:00:00', 2015),
(10024, '2025-07-01', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'REF1001', '', 'N', 'N', 'Y', 'Y', 8, 0, '2025-07-01 13:46:50', '0000-00-00 00:00:00', 0),
(10025, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'N', 'Y', 1, 0, '2025-07-03 12:09:32', '0000-00-00 00:00:00', 0),
(10026, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'N', 'Y', 1, 0, '2025-07-03 12:14:34', '0000-00-00 00:00:00', 0),
(10027, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'Y', 'Y', 1, 0, '2025-07-03 12:14:53', '0000-00-00 00:00:00', 0),
(10028, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'Y', 'Y', 1, 0, '2025-07-03 12:16:56', '0000-00-00 00:00:00', 0),
(10029, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'Y', 'Y', 1, 0, '2025-07-03 04:05:15', '0000-00-00 00:00:00', 0),
(10030, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'Y', 'Y', 8, 0, '2025-07-03 04:34:26', '0000-00-00 00:00:00', 0),
(10031, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'Y', 'Y', 8, 0, '2025-07-03 04:34:30', '0000-00-00 00:00:00', 0),
(10032, '2025-07-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', '', 'Y', 'Y', 8, 0, '2025-07-03 04:34:32', '0000-00-00 00:00:00', 0),
(10033, '2025-07-16', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Added From Inventory Upload', '', 'N', 'N', 'N', 'Y', 1, 13, '2025-07-16 04:27:23', '2025-09-22 12:40:38', 0),
(10034, '2025-09-22', 0, 1028, 0, 0, 0, 0, 1, '', '', '', 'Testting', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-09-22 12:33:06', '0000-00-00 00:00:00', 11),
(10035, '2025-10-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-10-03 15:14:52', '0000-00-00 00:00:00', 0),
(10036, '2025-10-03', 0, 0, 0, 0, 0, 0, 1, '', '', '', '-', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-10-03 15:19:15', '0000-00-00 00:00:00', 0),
(10037, '2025-10-06', 0, 0, 0, 0, 0, 0, 1, '', '', '', '	03-DD-B-30063/ISS2', '', 'N', 'N', 'N', 'Y', 1, 0, '2025-10-06 10:26:51', '0000-00-00 00:00:00', 3),
(10038, '2025-10-06', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'Product 003', '', 'N', 'N', 'N', 'Y', 1, 0, '2025-10-06 10:50:26', '0000-00-00 00:00:00', 0),
(10039, '2025-10-06', 0, 0, 0, 0, 0, 0, 1, '', '', '', 'pro01', '', 'N', 'N', 'Y', 'Y', 1, 0, '2025-10-06 10:55:00', '0000-00-00 00:00:00', 0);

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

--
