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

CREATE TABLE `erp_hr_mas_eos_noticeperiod` (
  `id` int(11) NOT NULL,
  `period_name` varchar(255) NOT NULL,
  `month_day_value` int(11) NOT NULL,
  `type` enum('M','D') NOT NULL,
  `sort_order` 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_mas_eos_noticeperiod`
--

INSERT INTO `erp_hr_mas_eos_noticeperiod` (`id`, `period_name`, `month_day_value`, `type`, `sort_order`, `isActive`) VALUES
(1, 'None', 0, 'D', 1, 'Y'),
(2, '1 Month', 1, 'M', 3, 'Y'),
(3, '2 Months', 2, 'M', 4, 'Y'),
(4, '14 Days', 14, 'D', 2, 'Y');

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

--
-- 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_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_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-21 12:01:41', 'Y'),
(6, 'Loan', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(2, 'Attendance', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(5, 'Salary Advance', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(7, 'Payroll', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(4, 'Leave Encashment', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(8, 'Ticket', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(9, 'Ticket Encashment', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(14, 'Resignation', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(13, 'Recruitment', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(12, 'Appraisal', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(11, 'Expense', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(10, 'Document Request', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(1, 'Employee', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(15, 'Training', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(16, 'Purchase', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(17, 'EOS', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(18, 'Circular', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(19, 'Company Expense', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(20, 'Room Management', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(21, 'Catalogue', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(22, 'Staff Board', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(23, 'Notes', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(24, 'Notice of Conduct', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(25, 'Calendar Notification', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(26, 'Templates', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(27, 'PDF Settings', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(28, 'Mail Settings', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(29, 'Mobile Application', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(30, 'Asset', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(31, 'Service', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(36, 'Company', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(32, 'Flexitime Request', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(34, 'Snapshot', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(35, 'Organization Chart', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(33, 'ESS Portal', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(37, 'Admin', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(38, 'Passport Requisition\r\n', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', 'Y'),
(39, 'Duty Resumption', 1, 'Y', 0, '0000-00-00 00:00:00', 1, '2025-10-21 12:01:41', '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_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,\"employee_requisition_view\":1,\"duty_resumption_view\":1}', 0, '0000-00-00 00:00:00', 1, '2025-12-15 09:26:04', '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_passport_requisition`
--

CREATE TABLE `erp_hr_passport_requisition` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `last_issue_date` date NOT NULL,
  `last_return_date` date NOT NULL,
  `last_status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1-With Company,2-With Employee',
  `last_request_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
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_hr_passport_requisition`
--

INSERT INTO `erp_hr_passport_requisition` (`id`, `employee_id`, `last_issue_date`, `last_return_date`, `last_status`, `last_request_id`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(2, 1, '2021-02-10', '2021-02-10', 1, 0, 1, '2025-12-11 10:51:52', 0, '0000-00-00 00:00:00');

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

--
-- 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'),
(7, 1, '2025-08-01', '2025-08-31', 'August', 1, '0000-00-00', 'N', '0000-00-00', 0, 'N', 8, '2025-12-12 13:19:56', 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'),
(20, 7, 3, 31.00, 0.00, 0.00, 0.00, 0.00, 0.00, 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', 8, '2025-12-12 13:19:56', 0, '0000-00-00 00:00:00'),
(21, 7, 2, 31.00, 0.00, 0.00, 0.00, 0.00, 0.00, 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', 8, '2025-12-12 13:19:56', 0, '0000-00-00 00:00:00'),
(22, 7, 1, 31.00, 0.00, 0.00, 0.00, 0.00, 0.00, 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', 8, '2025-12-12 13:19:56', 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'),
(20, 7, 20, 1, 1, 'Basic', 4500.00, 8, '2025-12-12 13:19:56', 0, '0000-00-00 00:00:00'),
(21, 7, 21, 1, 1, 'Basic', 3000.00, 8, '2025-12-12 13:19:56', 0, '0000-00-00 00:00:00'),
(22, 7, 22, 1, 1, 'Basic', 5600.00, 8, '2025-12-12 13:19:56', 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_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,
  `lead_owner_id` int(11) 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 ',
  `type` enum('I','T') NOT NULL DEFAULT 'T' COMMENT 'I - Issue, T- transfer',
  `customer_id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `outlet_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,
  `isApproved` enum('Y','N') NOT NULL DEFAULT 'N',
  `approved_by` int(11) NOT NULL,
  `approved_date_time` datetime NOT NULL,
  `signature_file_name` varchar(255) NOT NULL,
  `approved_remarks` varchar(255) NOT NULL,
  `service_order_id` int(11) NOT NULL,
  `job_id` int(11) NOT NULL COMMENT 'erp_sale_repair_request id'
) 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`, `lead_owner_id`, `direct_transfer_description`, `reference`, `transfer_date`, `status`, `added_from`, `type`, `customer_id`, `file_id`, `outlet_id`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`, `isApproved`, `approved_by`, `approved_date_time`, `signature_file_name`, `approved_remarks`, `service_order_id`, `job_id`) VALUES
(1, 1, 3, 0, '', 'R12345', '2025-12-19', 'C', 'DT', 'T', 0, 0, 0, 2, 0, '2025-12-19 12:12:50', '0000-00-00 00:00:00', 'N', 0, '0000-00-00 00:00:00', '', '', 0, 0),
(2, 1, 3, 0, '', 'R1', '2025-12-23', 'T', 'DT', 'T', 0, 1016, 0, 1, 1, '2025-12-20 10:12:34', '2025-12-23 00:00:00', 'N', 0, '0000-00-00 00:00:00', '', '', 0, 0);

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

--
-- 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',
  `customer_id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL COMMENT 'production_order_id',
  `outlet_id` int(11) NOT NULL,
  `stock_ledger_id` int(11) NOT NULL
) 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`, `customer_id`, `file_id`, `outlet_id`, `stock_ledger_id`) VALUES
(1, 1, 1, 'A1001', 'A1001 Item', 10.000, 0.000, 0.000, 1, 'N', 0, 0, 0, 0),
(3, 2, 1, 'A1001', 'A1001 Item', 2.000, 0.000, 0.000, 1, 'N', 0, 0, 0, 0),
(4, 2, 2, 'A1002', 'A1002 Item', 5.000, 0.000, 0.000, 2, 'N', 0, 0, 0, 0);

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

--
-- 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, 'None', '', 'Y', '', 0, 0, 0, 0, 'Y', 8, '2025-12-18 00:00:00', 0, '0000-00-00 00:00:00');

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

--
-- 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',
  `ledger_id` int(11) NOT NULL,
  `subledger_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `contract_id` int(11) NOT NULL COMMENT 'planned_maintenance',
  `warehouse_id` int(11) NOT NULL,
  `outlet_id` int(11) NOT NULL,
  `lead_owner_id` int(11) NOT NULL,
  `notes` text NOT NULL,
  `reference` varchar(255) NOT NULL,
  `stock_updated` enum('Y','N') NOT NULL DEFAULT 'N',
  `production_order_id` int(11) NOT NULL,
  `job_order_id` int(11) NOT NULL COMMENT 'primary key id from erp_sales_repair_request id',
  `issue_type` enum('D','E','M','L','N','S','PR','WI','MH','OI') NOT NULL DEFAULT 'N' COMMENT 'Damage,Near Expiry, Missing, Loss,None, MH-Machine type,OI-oil iSSUE',
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `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,
  `service_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`, `ledger_id`, `subledger_id`, `customer_id`, `project_id`, `contract_id`, `warehouse_id`, `outlet_id`, `lead_owner_id`, `notes`, `reference`, `stock_updated`, `production_order_id`, `job_order_id`, `issue_type`, `posted`, `isActive`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `service_order_id`) VALUES
(45001, '2025-12-19', 0, 0, 0, 1001, 0, 0, 1, 0, 0, '', '123', 'N', 123, 0, 'N', 'N', 'Y', 2, '2025-12-19 09:21:53', 0, '0000-00-00 00:00:00', 0),
(45002, '2025-12-19', 1016, 0, 0, 0, 0, 0, 1, 0, 0, '', 'Testing 123', 'Y', 0, 0, 'N', 'N', 'Y', 1, '2025-12-19 09:26:40', 0, '0000-00-00 00:00:00', 0),
(45003, '2025-12-22', 0, 0, 0, 0, 0, 0, 1, 0, 0, '', '90001', 'N', 90001, 0, 'N', 'N', 'Y', 2, '2025-12-22 14:53:18', 2, '2025-12-22 03:08:48', 0),
(45004, '2025-12-22', 0, 0, 0, 0, 0, 0, 1, 0, 0, '', '90002', 'N', 90002, 0, 'PR', 'N', 'Y', 2, '2025-12-22 15:56:47', 0, '0000-00-00 00:00:00', 0);

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

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

CREATE TABLE `erp_inventory_goods_issue_item` (
  `id` int(11) NOT NULL,
  `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,
  `serial_no` varchar(255) NOT NULL,
  `unit` varchar(20) NOT NULL,
  `rate` decimal(15,3) NOT NULL,
  `picked_qty` decimal(15,2) DEFAULT NULL,
  `location_id` int(11) NOT NULL,
  `is_issued` enum('Y','N','C') NOT NULL DEFAULT 'Y',
  `job_order_item_id` int(11) NOT NULL COMMENT 'primary key id from erp_sales_repair_request_item id',
  `production_order_item_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`, `goods_issue_id`, `product_id`, `product_name`, `description`, `serial_no`, `unit`, `rate`, `picked_qty`, `location_id`, `is_issued`, `job_order_item_id`, `production_order_item_id`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`) VALUES
(1, 45001, 1, 'A1001', 'A1001 Item', '', '1', 15.890, 10.00, 0, 'Y', 0, 0, 2, 0, '2025-12-19 09:21:53', '0000-00-00 00:00:00'),
(2, 45002, 1, 'A1001', 'A1001 Item', '', '1', 15.890, 2.00, 0, 'Y', 0, 0, 1, 0, '2025-12-19 09:26:40', '0000-00-00 00:00:00'),
(3, 45002, 2, 'A1002', 'A1002 Item', '', '1', 26.270, 2.00, 0, 'Y', 0, 0, 1, 0, '2025-12-19 09:26:40', '0000-00-00 00:00:00'),
(7, 45003, 2, 'A1002', 'A1002 Item', '', '2', 0.000, 2.00, 0, 'Y', 0, 0, 2, 0, '2025-12-22 15:08:48', '0000-00-00 00:00:00'),
(8, 45003, 3, 'A1003', 'A1003 Item', '', '3', 36.750, 2.00, 0, 'Y', 0, 0, 2, 0, '2025-12-22 15:08:48', '0000-00-00 00:00:00'),
(9, 45004, 1, 'A1001', 'A1001 Item', '', '1', 0.000, 1.00, 0, 'Y', 0, 0, 2, 0, '2025-12-22 15:56:47', '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,
  `del_ticket_id` int(11) NOT NULL,
  `contract_id` int(11) NOT NULL,
  `del_project_classification_id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `outlet_id` int(11) NOT NULL,
  `notes` text NOT NULL,
  `del_terms_and_conditions` text NOT NULL,
  `del_remarks` text NOT NULL,
  `reference` varchar(5000) NOT NULL,
  `del_receipt_notification` varchar(500) NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `receipt_type` enum('N','MH','PR','PGR') NOT NULL COMMENT 'MH-Machine type',
  `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',
  `lead_owner_id` int(11) NOT NULL,
  `job_order_id` int(11) NOT NULL,
  `service_order_id` int(11) NOT NULL
) 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`, `del_ticket_id`, `contract_id`, `del_project_classification_id`, `warehouse_id`, `outlet_id`, `notes`, `del_terms_and_conditions`, `del_remarks`, `reference`, `del_receipt_notification`, `posted`, `receipt_type`, `stock_updated`, `isActive`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`, `reference_id`, `lead_owner_id`, `job_order_id`, `service_order_id`) VALUES
(35001, '2025-12-19', 0, 0, 0, 0, 0, 0, 1, 0, '', '', '', '', '', 'N', 'N', 'Y', 'Y', 2, 0, '2025-12-19 08:23:50', '0000-00-00 00:00:00', 0, 0, 0, 0),
(35002, '2025-12-19', 1016, 1001, 0, 0, 0, 0, 1, 0, '', '', '', 'R11', '', 'N', 'N', 'Y', 'Y', 2, 0, '2025-12-19 11:59:25', '0000-00-00 00:00:00', 0, 0, 0, 0),
(35003, '2025-12-22', 0, 0, 0, 0, 0, 0, 1, 0, '', '', '', '', '', 'N', 'PR', 'N', 'Y', 2, 0, '2025-12-22 14:54:06', '0000-00-00 00:00:00', 90001, 0, 0, 0),
(35004, '2025-12-22', 0, 1001, 0, 0, 0, 0, 1, 0, '', '', '', '111', '', 'N', 'N', 'N', 'Y', 2, 2, '2025-12-22 15:43:00', '2025-12-22 15:59:37', 90002, 0, 0, 0);

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

--
-- Table structure for table `erp_inventory_goods_receipt_item`
--

CREATE TABLE `erp_inventory_goods_receipt_item` (
  `id` int(11) NOT NULL,
  `goods_receipt_id` int(11) NOT NULL COMMENT 'foreign key reference to enquiry table',
  `product_id` int(11) NOT NULL COMMENT '(item:the product to be purchased,foreign key reference to inventory item table)',
  `product_name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `serial_no` varchar(255) NOT NULL,
  `unit` varchar(255) NOT NULL,
  `rate` decimal(15,6) NOT NULL,
  `del_old_rate` decimal(15,6) NOT NULL,
  `picked_qty` decimal(15,2) DEFAULT NULL,
  `po_item_id` int(11) NOT NULL,
  `location_id` int(11) NOT NULL,
  `is_received` enum('N','Y') 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,
  `isApproved` enum('Y','N') NOT NULL DEFAULT 'N',
  `approved_by` int(11) NOT NULL,
  `approved_date_time` datetime NOT NULL,
  `signature_file_name` varchar(255) NOT NULL,
  `approved_remarks` varchar(255) NOT NULL,
  `job_order_item_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_inventory_goods_receipt_item`
--

INSERT INTO `erp_inventory_goods_receipt_item` (`id`, `goods_receipt_id`, `product_id`, `product_name`, `description`, `serial_no`, `unit`, `rate`, `del_old_rate`, `picked_qty`, `po_item_id`, `location_id`, `is_received`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`, `isApproved`, `approved_by`, `approved_date_time`, `signature_file_name`, `approved_remarks`, `job_order_item_id`) VALUES
(1, 35001, 2, 'A1002', 'A1002 Item', '', '2', 26.250000, 0.000000, 2000.00, 0, 0, 'N', 2, 0, '2025-12-19 08:23:50', '0000-00-00 00:00:00', 'N', 0, '0000-00-00 00:00:00', '', '', 0),
(2, 35002, 1, 'A1001', 'A1001 Item', '', '1', 859.180000, 0.000000, 2.00, 0, 0, 'N', 2, 0, '2025-12-19 11:59:25', '0000-00-00 00:00:00', 'N', 0, '0000-00-00 00:00:00', '', '', 0),
(3, 35002, 2, 'A1002', 'A1002 Item', '', '2', 26.270000, 0.000000, 2.00, 0, 0, 'N', 2, 0, '2025-12-19 11:59:25', '0000-00-00 00:00:00', 'N', 0, '0000-00-00 00:00:00', '', '', 0),
(4, 35003, 1, 'A1001', 'A1001 Item', '', '1', 26.270000, 0.000000, 1.00, 0, 0, 'N', 2, 0, '2025-12-22 14:54:06', '0000-00-00 00:00:00', 'N', 0, '0000-00-00 00:00:00', '', '', 0),
(5, 35004, 5, 'B1002', 'B1002 RM', '', '5', 786.440000, 0.000000, 1.00, 0, 0, 'N', 2, 2, '2025-12-22 15:43:00', '2025-12-22 15:59:37', 'N', 0, '0000-00-00 00:00:00', '', '', 0);

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

--
-- Table structure for table `erp_inventory_indirect_transfer`
--

CREATE TABLE `erp_inventory_indirect_transfer` (
  `id` bigint(20) NOT NULL,
  `from_warehouse_id` bigint(20) NOT NULL,
  `to_warehouse_id` bigint(20) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `customer_name` varchar(255) NOT NULL,
  `intermediate_location` varchar(255) NOT NULL,
  `indirect_transfer_description` text NOT NULL,
  `reference` varchar(255) NOT NULL,
  `transfer_date` date NOT NULL,
  `is_complete` enum('Y','N','P') DEFAULT 'N',
  `status` enum('P','TO','C','TI') 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;

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

--
-- Table structure for table `erp_inventory_indirect_transfer_item`
--

CREATE TABLE `erp_inventory_indirect_transfer_item` (
  `id` int(11) NOT NULL,
  `indirect_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,
  `available_qty` decimal(15,3) NOT NULL,
  `damaged_qty` decimal(15,3) NOT NULL,
  `missing_qty` decimal(15,3) NOT NULL,
  `transferred_qty` decimal(15,3) NOT NULL,
  `balance_qty` decimal(15,3) DEFAULT NULL,
  `to_warehouse_id` int(11) NOT NULL,
  `unit` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_inventory_kit`
--

CREATE TABLE `erp_inventory_kit` (
  `id` int(11) NOT NULL,
  `kit_name` varchar(255) NOT NULL,
  `alias_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_persian_ci NOT NULL,
  `isActive` enum('Y','N') 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;

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

--
-- Table structure for table `erp_inventory_kit_items`
--

CREATE TABLE `erp_inventory_kit_items` (
  `id` int(11) NOT NULL,
  `kit_id` int(11) NOT NULL,
  `item` int(11) NOT NULL,
  `quantity` decimal(15,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_inventory_serialno_change_history`
--

CREATE TABLE `erp_inventory_serialno_change_history` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `process` enum('SNO','EXP') NOT NULL,
  `status_from` enum('Y','N') NOT NULL,
  `status_to` enum('Y','N') NOT NULL,
  `old_product_location_ids` text NOT NULL,
  `new_product_location_ids` text NOT NULL,
  `old_stock_ledger_ids` text NOT NULL,
  `new_stock_ledger_ids` text NOT NULL,
  `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_inventory_uploaded_stock`
--

CREATE TABLE `erp_inventory_uploaded_stock` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `part_number` varchar(255) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `rate` decimal(15,3) 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_invoice`
--

CREATE TABLE `erp_invoice` (
  `id` bigint(20) NOT NULL,
  `delivery_ids` varchar(255) NOT NULL,
  `file_id` int(11) NOT NULL,
  `quotes_id` int(11) NOT NULL,
  `order_id` bigint(20) NOT NULL,
  `project_id` int(11) NOT NULL,
  `invoice_no` varchar(255) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `contact_id` int(11) NOT NULL,
  `lead_owner_id` int(11) NOT NULL,
  `billing_address` text NOT NULL,
  `invoice_date` date NOT NULL,
  `sales_group_id` int(11) NOT NULL,
  `reference` enum('ITEM_DISCOUNT','FOOTER_DISCOUNT','NONE') NOT NULL DEFAULT 'NONE',
  `currency_id` int(11) NOT NULL,
  `exchange_rate` decimal(15,2) NOT NULL,
  `payment_terms_id` int(11) NOT NULL,
  `shipping_by` varchar(255) NOT NULL,
  `notes` text NOT NULL,
  `remarks` text NOT NULL,
  `terms_id` int(11) NOT NULL COMMENT 'primary key to masterms ',
  `terms_and_conditions` text NOT NULL,
  `is_direct_invoice` enum('Y','N') NOT NULL DEFAULT 'N',
  `invoice_status` enum('Y','C') NOT NULL DEFAULT 'Y' COMMENT 'Y-Active,C-Cancelled',
  `invoice_type` int(11) NOT NULL COMMENT 'Primary key of crmmas_invoice_type id',
  `added_from` enum('W','A') NOT NULL DEFAULT 'W',
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `net_amount` decimal(15,6) NOT NULL COMMENT 'item_total - total_discount_amount\r\n',
  `total_tax_amount` decimal(15,2) NOT NULL,
  `grand_total` decimal(15,6) NOT NULL,
  `round_off_amount` decimal(15,6) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `sales_inv_type` enum('sales','service') NOT NULL DEFAULT 'sales',
  `total_discount_percentage` decimal(15,2) NOT NULL,
  `total_discount_amount` decimal(15,2) NOT NULL,
  `commision_percentage` decimal(15,3) NOT NULL,
  `commision_amount` decimal(15,3) NOT NULL,
  `type_of_invoice` enum('sales','service') NOT NULL,
  `customer_shipping_id` int(11) NOT NULL,
  `paymentmode_id` int(11) NOT NULL COMMENT 'Primary key of erp_acc_payment_mode id	',
  `received_amount` decimal(15,6) NOT NULL COMMENT 'used in accounts RV receipt',
  `inco_term_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `advance_invoice` enum('Y','N') NOT NULL DEFAULT 'N',
  `contract_start_date` date NOT NULL,
  `contract_end_date` date NOT NULL,
  `contract_no` varchar(225) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_invoice`
--

INSERT INTO `erp_invoice` (`id`, `delivery_ids`, `file_id`, `quotes_id`, `order_id`, `project_id`, `invoice_no`, `customer_id`, `contact_id`, `lead_owner_id`, `billing_address`, `invoice_date`, `sales_group_id`, `reference`, `currency_id`, `exchange_rate`, `payment_terms_id`, `shipping_by`, `notes`, `remarks`, `terms_id`, `terms_and_conditions`, `is_direct_invoice`, `invoice_status`, `invoice_type`, `added_from`, `posted`, `net_amount`, `total_tax_amount`, `grand_total`, `round_off_amount`, `warehouse_id`, `isActive`, `sales_inv_type`, `total_discount_percentage`, `total_discount_amount`, `commision_percentage`, `commision_amount`, `type_of_invoice`, `customer_shipping_id`, `paymentmode_id`, `received_amount`, `inco_term_id`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`, `advance_invoice`, `contract_start_date`, `contract_end_date`, `contract_no`) VALUES
(40001, '30001', 1005, 1, 20001, 0, '40001', 1001, 1, 2, 'United Arab Emirates', '2025-12-19', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 1001000.000000, 50050.00, 1051050.000000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0.000, 0.000, 'sales', 0, 0, 0.000000, 1, 2, 0, '2025-12-19 08:40:07', '0000-00-00 00:00:00', 'N', '1970-01-01', '1970-01-01', '0'),
(40002, '30003', 1016, 10004, 20004, 25001, '40002', 1001, 1, 2, 'Building 870\r\nBusiness Bay\r\nP.O Box 58974\r\nDubai , United Arab Emirates', '2025-12-19', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 10699.500000, 509.50, 11209.000000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0.000, 0.000, 'sales', 0, 0, 0.000000, 1, 2, 0, '2025-12-19 13:56:28', '0000-00-00 00:00:00', 'N', '1970-01-01', '1970-01-01', '0'),
(40003, '30002', 1009, 10003, 20002, 25001, '40003', 1002, 2, 2, 'P.O Box : 87954\r\nBuilding 1\r\nIndustrial Area 2\r\nSharjah, United Arab Emirates', '2025-12-19', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here\r\nMore Conditions can be entered in T&C Master also', 'N', 'Y', 1, 'W', 'N', 12050.000000, 607.00, 12747.000000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0.000, 0.000, 'sales', 0, 0, 0.000000, 1, 2, 0, '2025-12-19 15:11:34', '0000-00-00 00:00:00', 'N', '1970-01-01', '1970-01-01', '0'),
(40004, '30003', 1016, 10004, 20004, 25001, '', 1001, 1, 2, 'Building 870\r\nBusiness Bay\r\nP.O Box 58974\r\nDubai , United Arab Emirates', '2025-12-19', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 0.000000, 0.00, 0.000000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0.000, 0.000, 'sales', 0, 0, 0.000000, 1, 2, 0, '2025-12-19 15:13:20', '0000-00-00 00:00:00', 'N', '1970-01-01', '1970-01-01', '0'),
(40008, '30004', 1008, 10002, 20003, 0, '40008', 1001, 1, 2, 'Building 870\r\nBusiness Bay\r\nP.O Box 58974\r\nDubai , United Arab Emirates', '2025-12-19', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here\r\nMore Conditions can be entered in T&C Master also', 'N', 'Y', 1, 'W', 'N', 17540.000000, 879.50, 18469.500000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0.000, 0.000, 'sales', 0, 0, 0.000000, 1, 2, 0, '2025-12-19 15:46:59', '0000-00-00 00:00:00', 'N', '1970-01-01', '1970-01-01', '0'),
(40012, '30005', 1032, 0, 20005, 0, '40012', 1001, 1, 2, 'Building 870\r\nBusiness Bay\r\nPO Box : 58974\r\nDubai\r\nUnited Arab Emirates', '2025-12-19', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'N', 1000.000000, 50.50, 1060.500000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0.000, 0.000, 'sales', 0, 0, 0.000000, 1, 2, 0, '2025-12-19 15:56:02', '0000-00-00 00:00:00', 'N', '1970-01-01', '1970-01-01', '0'),
(40013, '30006', 1033, 0, 20006, 0, '40013', 1001, 1, 2, 'Building 870\r\nBusiness Bay\r\nPO Box : 58974\r\nDubai\r\nUnited Arab Emirates', '2025-12-19', 1, 'NONE', 1, 1.00, 2, '', '', '', 0, '', 'N', 'Y', 1, 'W', 'Y', 1000.000000, 50.50, 1060.500000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0.000, 0.000, 'sales', 0, 0, 0.000000, 1, 2, 0, '2025-12-19 15:58:50', '0000-00-00 00:00:00', 'N', '1970-01-01', '1970-01-01', '0'),
(40014, '30007', 1035, 10005, 20007, 0, '40014', 1001, 1, 2, 'P.O Box : 58974\r\nBuilding 870\r\nBusiness Bay\r\nDubai, United Arab Emirates', '2025-12-20', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here', 'N', 'Y', 1, 'W', 'N', 4600.000000, 232.50, 4882.500000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0.000, 0.000, 'sales', 0, 0, 0.000000, 1, 2, 0, '2025-12-20 09:29:46', '0000-00-00 00:00:00', 'N', '1970-01-01', '1970-01-01', '0'),
(40015, '30008', 1037, 10006, 20008, 0, '40015', 1001, 1, 2, 'PO Box 58974\r\nBuilding 870\r\nBusiness Bay\r\nDubai, United Arab Emirates', '2025-12-20', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here\r\nNext Line', 'N', 'Y', 1, 'W', 'N', 5500.000000, 277.50, 5827.500000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0.000, 0.000, 'sales', 0, 0, 0.000000, 1, 2, 0, '2025-12-20 14:32:20', '0000-00-00 00:00:00', 'N', '1970-01-01', '1970-01-01', '0'),
(40016, '30009', 1039, 10006, 20009, 0, '40016', 1002, 2, 2, 'Building 1\r\nIndustrial Area 2\r\nPO Box : 87954\r\nSharjah\r\nUnited Arab Emirates', '2025-12-22', 1, 'NONE', 1, 1.00, 2, '', '', '', 1, 'Sales Terms and Conditions come here\r\nNext Line', 'N', 'Y', 1, 'W', 'N', 6800.000000, 340.00, 7190.000000, 0.000000, 1, 'Y', 'sales', 0.00, 0.00, 0.000, 0.000, 'sales', 0, 0, 0.000000, 1, 2, 0, '2025-12-22 11:00:58', '0000-00-00 00:00:00', 'N', '1970-01-01', '1970-01-01', '0');

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

--
-- Table structure for table `erp_invoice_addition`
--

CREATE TABLE `erp_invoice_addition` (
  `id` int(11) NOT NULL,
  `invoice_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `calculated_value` decimal(15,2) NOT NULL,
  `particular_vat_percent` decimal(15,3) NOT NULL,
  `particular_vat` decimal(15,3) 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;

--
-- Dumping data for table `erp_invoice_addition`
--

INSERT INTO `erp_invoice_addition` (`id`, `invoice_id`, `particular`, `particular_value`, `calculated_value`, `particular_vat_percent`, `particular_vat`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(2, 40012, '13', '20', 20.00, 5.000, 1.000, 2, 2, '2025-12-19 03:56:02', '2025-12-19 03:56:02'),
(3, 40013, '13', '20', 20.00, 5.000, 1.000, 2, 2, '2025-12-19 03:58:50', '2025-12-19 03:58:50'),
(4, 40014, '8', '100', 100.00, 5.000, 5.000, 2, 2, '2025-12-20 09:29:46', '2025-12-20 09:29:46'),
(5, 40015, '5', '100', 100.00, 5.000, 5.000, 2, 2, '2025-12-20 02:32:20', '2025-12-20 02:32:20'),
(6, 40016, '5', '100', 100.00, 0.000, 0.000, 2, 2, '2025-12-22 11:00:58', '2025-12-22 11:00:58');

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

--
-- Table structure for table `erp_invoice_advance_deduction`
--

CREATE TABLE `erp_invoice_advance_deduction` (
  `id` int(11) NOT NULL,
  `invoice_id` int(11) NOT NULL,
  `order_id` int(11) NOT NULL,
  `order_advance_invoice_id` int(11) NOT NULL,
  `description` text NOT NULL,
  `total_amount` decimal(15,3) NOT NULL COMMENT 'As in Advance Invoice',
  `tax_amount` decimal(15,3) NOT NULL COMMENT 'As in Advance Invoice',
  `advance_without_tax` decimal(15,3) NOT NULL COMMENT 'Advance Deduction Amount Without Tax',
  `advance_tax_amount` decimal(15,3) NOT NULL COMMENT 'Tax amount of Advance Deduction',
  `advance_deduction` decimal(15,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_invoice_deduction`
--

CREATE TABLE `erp_invoice_deduction` (
  `id` int(11) NOT NULL,
  `invoice_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `particular_vat` decimal(15,3) NOT NULL,
  `particular_vat_percent` decimal(15,3) NOT NULL,
  `calculated_value` 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;

--
-- Dumping data for table `erp_invoice_deduction`
--

INSERT INTO `erp_invoice_deduction` (`id`, `invoice_id`, `particular`, `particular_value`, `particular_vat`, `particular_vat_percent`, `calculated_value`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(3, 40012, '3', '10', 0.500, 5.000, 10.00, 2, 2, '0000-00-00 00:00:00', '2025-12-19 03:56:02'),
(4, 40013, '3', '10', 0.500, 5.000, 10.00, 2, 2, '0000-00-00 00:00:00', '2025-12-19 03:58:50'),
(5, 40014, '9', '50', 2.500, 5.000, 50.00, 2, 2, '0000-00-00 00:00:00', '2025-12-20 09:29:46'),
(6, 40015, '9', '50', 2.500, 5.000, 50.00, 2, 2, '0000-00-00 00:00:00', '2025-12-20 02:32:20'),
(7, 40016, '9', '50', 0.000, 0.000, 50.00, 2, 2, '0000-00-00 00:00:00', '2025-12-22 11:00:58');

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

--
-- Table structure for table `erp_invoice_exchange`
--

CREATE TABLE `erp_invoice_exchange` (
  `id` bigint(20) NOT NULL,
  `file_id` bigint(20) NOT NULL,
  `order_id` bigint(20) NOT NULL,
  `crm_user_id` bigint(20) NOT NULL,
  `invoice_id` bigint(20) NOT NULL,
  `project_id` int(11) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `contact_id` bigint(20) NOT NULL,
  `exchange_rate` decimal(15,2) NOT NULL,
  `reference` varchar(255) NOT NULL,
  `currency` varchar(255) NOT NULL,
  `credited_amount` decimal(15,2) NOT NULL,
  `credited_date` date NOT NULL,
  `reason` text NOT NULL,
  `tax_type` int(11) NOT NULL,
  `total_tax_amount` decimal(15,2) NOT NULL,
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `invoice_type` int(11) NOT NULL COMMENT 'Primary key of crmmas_invoice_type id',
  `sales_return` enum('ST','DA') NOT NULL COMMENT 'ST->update in stock,DA-> update in Damage',
  `creditnote_notification` varchar(500) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `is_updated_store` enum('Y','N') NOT NULL DEFAULT 'N',
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `responsible_user` int(11) NOT NULL,
  `creditnote_no` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_invoice_exchange_item`
--

CREATE TABLE `erp_invoice_exchange_item` (
  `id` int(11) NOT NULL,
  `creditnote_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `bonus_qty` decimal(15,3) NOT NULL,
  `description` text NOT NULL,
  `rate` decimal(15,3) NOT NULL,
  `returned_unit_id` int(11) NOT NULL,
  `returned_quantity` decimal(15,3) NOT NULL,
  `returned_bonus_qty` decimal(15,2) NOT NULL,
  `damage_quantity` decimal(15,3) NOT NULL,
  `net_amount` decimal(15,3) NOT NULL,
  `deliverynote_id` int(11) NOT NULL,
  `invoice_item_id` int(11) NOT NULL,
  `product_loc_hiring_id` int(11) NOT NULL,
  `tax_vat_amount` decimal(15,2) NOT NULL,
  `tax_vat_percentage` decimal(15,2) NOT NULL,
  `unit` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `remarks` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_invoice_item`
--

CREATE TABLE `erp_invoice_item` (
  `id` bigint(20) NOT NULL,
  `invoice_id` int(11) NOT NULL,
  `quotes_item_id` int(11) NOT NULL,
  `order_item_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `description` text NOT NULL,
  `product_generic_name` varchar(255) NOT NULL,
  `brand_class_id` int(11) NOT NULL,
  `quantity` decimal(15,2) NOT NULL,
  `picked_qty` decimal(15,3) NOT NULL,
  `unit_id` int(11) NOT NULL,
  `rate` decimal(15,6) NOT NULL,
  `amount` decimal(15,6) NOT NULL,
  `addition_percentage` varchar(50) NOT NULL DEFAULT '0',
  `addition_amount` decimal(15,6) NOT NULL DEFAULT 0.000000,
  `deduction_percentage` decimal(15,6) NOT NULL DEFAULT 0.000000,
  `deduction_amount` decimal(15,6) NOT NULL DEFAULT 0.000000,
  `tax_vat_percentage` decimal(15,2) NOT NULL,
  `tax_vat_amount` decimal(15,6) NOT NULL,
  `net_amount` decimal(15,6) NOT NULL,
  `net_per_item` decimal(15,6) NOT NULL,
  `cost_rate` decimal(15,6) NOT NULL,
  `fin_account_id` int(11) NOT NULL,
  `unit_factor` decimal(15,6) NOT NULL,
  `unit_cost_rate` decimal(15,6) NOT NULL,
  `base_cost_rate` decimal(15,6) NOT NULL,
  `cost_updated` enum('Y','N') NOT NULL DEFAULT 'N',
  `alternate_id` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_cost_rate` decimal(15,6) 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;

--
-- Dumping data for table `erp_invoice_item`
--

INSERT INTO `erp_invoice_item` (`id`, `invoice_id`, `quotes_item_id`, `order_item_id`, `product_id`, `description`, `product_generic_name`, `brand_class_id`, `quantity`, `picked_qty`, `unit_id`, `rate`, `amount`, `addition_percentage`, `addition_amount`, `deduction_percentage`, `deduction_amount`, `tax_vat_percentage`, `tax_vat_amount`, `net_amount`, `net_per_item`, `cost_rate`, `fin_account_id`, `unit_factor`, `unit_cost_rate`, `base_cost_rate`, `cost_updated`, `alternate_id`, `created_by`, `updated_cost_rate`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 40001, 13, 1, 1, 'A1001 Item', '1', 1, 1.00, 1.000, 1, 1000.000000, 1000.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 50.000000, 1000.000000, 0.000000, 15.750000, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-19 08:40:07', '0000-00-00 00:00:00'),
(2, 40001, 14, 2, 2, 'A1002 Item', '1', 1, 1000.00, 1000.000, 2, 1000.000000, 1000000.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 50000.000000, 1000000.000000, 0.000000, 26.250000, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-19 08:40:07', '0000-00-00 00:00:00'),
(3, 40002, 39, 27, 1, 'A1001 Item', '1', 1, 5.00, 5.000, 1, 1258.000000, 6290.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 314.500000, 6290.000000, 0.000000, 859.183118, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-19 13:56:28', '0000-00-00 00:00:00'),
(4, 40002, 40, 28, 2, 'A1002 Item', '1', 1, 5.00, 5.000, 2, 780.000000, 3900.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 195.000000, 3900.000000, 0.000000, 26.271672, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-19 13:56:28', '0000-00-00 00:00:00'),
(5, 40003, 35, 19, 1, 'A1001 Item', '1', 1, 1.00, 1.000, 1, 7250.000000, 7250.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 362.500000, 7250.000000, 0.000000, 830.303434, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-19 15:11:34', '0000-00-00 00:00:00'),
(6, 40003, 36, 20, 2, 'A1002 Item', '1', 1, 3.00, 3.000, 2, 1600.000000, 4800.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 240.000000, 4800.000000, 0.000000, 26.271672, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-19 15:11:34', '0000-00-00 00:00:00'),
(7, 40004, 39, 27, 1, 'A1001 Item', '1', 1, 5.00, 5.000, 1, 1258.000000, 6290.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 314.500000, 6290.000000, 0.000000, 830.303434, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-19 15:13:20', '0000-00-00 00:00:00'),
(8, 40004, 40, 28, 2, 'A1002 Item', '1', 1, 5.00, 5.000, 2, 780.000000, 3900.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 195.000000, 3900.000000, 0.000000, 26.271672, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-19 15:13:20', '0000-00-00 00:00:00'),
(16, 40008, 38, 22, 2, 'A1002 Item', '1', 1, 2.00, 2.000, 2, 1520.000000, 3040.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 152.000000, 3040.000000, 0.000000, 26.271672, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-19 15:46:59', '0000-00-00 00:00:00'),
(15, 40008, 37, 21, 1, 'A1001 Item', '1', 1, 2.00, 2.000, 1, 7250.000000, 14500.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 725.000000, 14500.000000, 0.000000, 830.303434, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-19 15:46:59', '0000-00-00 00:00:00'),
(19, 40012, 0, 31, 1, 'A1001 Item', '1', 1, 1.00, 1.000, 1, 1000.000000, 1000.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 50.000000, 1000.000000, 0.000000, 830.303434, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-19 15:56:02', '0000-00-00 00:00:00'),
(20, 40013, 0, 32, 1, 'A1001 Item', '1', 1, 1.00, 1.000, 1, 1000.000000, 1000.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 50.000000, 1000.000000, 0.000000, 830.303434, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-19 15:58:50', '0000-00-00 00:00:00'),
(21, 40014, 43, 33, 1, 'A1001 Item', '1', 1, 2.00, 2.000, 1, 1800.000000, 3600.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 180.000000, 3600.000000, 0.000000, 830.303434, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-20 09:29:46', '0000-00-00 00:00:00'),
(22, 40014, 44, 34, 2, 'A1002 Item', '1', 1, 2.00, 2.000, 2, 500.000000, 1000.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 50.000000, 1000.000000, 0.000000, 26.271672, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-20 09:29:46', '0000-00-00 00:00:00'),
(23, 40015, 49, 37, 1, 'A1001 Item', '1', 1, 2.00, 2.000, 1, 1300.000000, 2600.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 130.000000, 2600.000000, 0.000000, 830.303434, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-20 14:32:20', '0000-00-00 00:00:00'),
(24, 40015, 50, 38, 2, 'A1002 Item', '1', 1, 2.00, 2.000, 2, 1450.000000, 2900.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 145.000000, 2900.000000, 0.000000, 26.271672, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-20 14:32:20', '0000-00-00 00:00:00'),
(25, 40016, 0, 39, 1, 'A1001 Item', '1', 1, 3.00, 3.000, 1, 1300.000000, 3900.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 195.000000, 3900.000000, 0.000000, 812.888669, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-22 11:00:58', '0000-00-00 00:00:00'),
(26, 40016, 0, 40, 2, 'A1002 Item', '1', 1, 2.00, 2.000, 2, 1450.000000, 2900.000000, '0', 0.000000, 0.000000, 0.000000, 5.00, 145.000000, 2900.000000, 0.000000, 26.255879, 0, 0.000000, 0.000000, 0.000000, 'N', '', 0, 0.000000, 0, '2025-12-22 11:00:58', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_kitchen`
--

CREATE TABLE `erp_kitchen` (
  `id` int(11) NOT NULL,
  `name` varchar(30) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_landing_cost`
--

CREATE TABLE `erp_landing_cost` (
  `id` int(11) NOT NULL,
  `parent_invoice_id` int(11) NOT NULL,
  `parent_invoice_item_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `service_invoice_id` int(11) NOT NULL,
  `quantity` decimal(15,2) NOT NULL,
  `rate` decimal(15,2) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `currency` int(11) NOT NULL,
  `exchange_rate` decimal(15,2) NOT NULL,
  `service_amount_percentage` decimal(15,6) NOT NULL,
  `service_invoice_value` decimal(15,6) 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_lead`
--

CREATE TABLE `erp_lead` (
  `id` bigint(20) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `workspace_note_id` int(11) NOT NULL,
  `lead_owner_id` int(11) NOT NULL,
  `sales_group_id` int(11) NOT NULL,
  `currency` varchar(255) NOT NULL,
  `value` decimal(15,2) NOT NULL,
  `contact_id` int(11) NOT NULL,
  `mobile` varchar(15) NOT NULL,
  `email` varchar(255) NOT NULL,
  `enq_date` date NOT NULL,
  `closing_date` date NOT NULL,
  `source_of_lead` int(11) NOT NULL COMMENT '1->Facebook,2->Social Media Marketing,3->News Paper,4->Word of Mouth',
  `title` varchar(255) NOT NULL,
  `remarks` text NOT NULL,
  `status` enum('Y','N','F','S','M','C','O','L') NOT NULL,
  `lead_status` enum('H','M','L') NOT NULL DEFAULT 'L',
  `lead_notification` varchar(500) DEFAULT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `lead_type` enum('sale','service') NOT NULL DEFAULT 'sale',
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_datetime` datetime DEFAULT NULL,
  `updated_datetime` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_lead`
--

INSERT INTO `erp_lead` (`id`, `crm_user_id`, `file_id`, `customer_id`, `workspace_note_id`, `lead_owner_id`, `sales_group_id`, `currency`, `value`, `contact_id`, `mobile`, `email`, `enq_date`, `closing_date`, `source_of_lead`, `title`, `remarks`, `status`, `lead_status`, `lead_notification`, `isActive`, `lead_type`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1001, 1, 1008, 1001, 0, 2, 1, '', 0.00, 1, '', '', '2025-12-19', '2025-12-26', 1, '', 'Test Lead', 'O', 'L', NULL, 'Y', 'sale', 1, NULL, '2025-12-19 08:17:15', NULL),
(1002, 2, 1016, 1001, 0, 2, 1, '', 0.00, 1, '', '', '2025-12-19', '2025-12-26', 3, '', '', 'O', 'L', NULL, 'Y', 'sale', 2, NULL, '2025-12-19 12:12:08', NULL),
(1003, 1, 1036, 1001, 0, 2, 1, '', 0.00, 1, '', '', '2025-12-20', '2025-12-27', 1, '', '', 'O', 'L', NULL, 'Y', 'sale', 1, NULL, '2025-12-20 12:23:49', NULL);

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

--
-- Table structure for table `erp_mail_events`
--

CREATE TABLE `erp_mail_events` (
  `id` int(11) NOT NULL,
  `event_name` varchar(500) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_master_cloth_type`
--

CREATE TABLE `erp_master_cloth_type` (
  `id` int(11) NOT NULL,
  `type_name` varchar(255) NOT NULL,
  `rate` decimal(10,2) 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;

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

--
-- Table structure for table `erp_master_file`
--

CREATE TABLE `erp_master_file` (
  `id` bigint(20) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `file_title` varchar(255) NOT NULL,
  `ticket_id` int(11) NOT NULL,
  `start_from` enum('L','Q','O','P_R','P_E','P_O','M_R','B_M','PR_O','I_GI','I_GR','DI','I') NOT NULL COMMENT 'from where the file created',
  `current_process_status` enum('L','Q','O','PD','D','PI','I','P_R','P_E','P_O','M_R','Q_C','P_PI','P_I','P_C','C','B_M','PR_O','G_I','G_R','I_GI','I_GR') NOT NULL COMMENT 'current status of the file, it may lead,quotation,order,delivery,invoice etc.,',
  `lead_owner_id` int(11) NOT NULL,
  `is_approved` enum('Y','N') NOT NULL DEFAULT 'N',
  `approved_by` bigint(20) DEFAULT NULL,
  `date_of_approval` date DEFAULT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_datetime` datetime DEFAULT NULL,
  `updated_datetime` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_master_file`
--

INSERT INTO `erp_master_file` (`id`, `crm_user_id`, `customer_id`, `file_title`, `ticket_id`, `start_from`, `current_process_status`, `lead_owner_id`, `is_approved`, `approved_by`, `date_of_approval`, `isActive`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1001, 2, 1001, '', 0, 'Q', 'Q', 2, 'N', 2, '2025-12-18', 'Y', NULL, 2, NULL, '2025-12-18 18:21:09'),
(1002, 2, 0, '', 0, 'P_R', 'P_R', 0, 'N', 2, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 09:29:35'),
(1003, 2, 2001, '', 0, 'P_E', 'P_E', 0, 'N', 2, '2025-12-19', 'Y', 2, 2, '2025-12-18 06:22:28', '2025-12-19 10:31:41'),
(1004, 2, 1001, '', 0, 'Q', 'Q', 2, 'N', 2, '2025-12-18', 'Y', NULL, 2, NULL, '2025-12-18 18:24:20'),
(1005, 2, 1001, '', 0, 'Q', 'I', 2, 'Y', 2, '2025-12-19', 'Y', NULL, 0, NULL, '2025-12-19 08:40:00'),
(1006, 2, 2001, '', 0, 'P_O', 'P_I', 0, 'Y', 2, '2025-12-18', 'Y', NULL, 2, NULL, '2025-12-18 18:33:28'),
(1007, 2, 2001, '', 0, 'P_O', 'P_I', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 09:05:06'),
(1008, 1, 1001, '', 0, 'L', 'I', 2, 'Y', 2, '2025-12-19', 'Y', 1, 0, '2025-12-19 08:17:15', '2025-12-19 15:46:00'),
(1009, 2, 1002, '', 0, 'Q', 'I', 2, 'Y', 2, '2025-12-19', 'Y', NULL, 0, NULL, '2025-12-19 15:11:00'),
(1010, 2, 0, '', 0, 'P_R', 'P_R', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 09:21:07'),
(1011, 2, 2001, '', 0, 'P_E', 'P_E', 0, 'Y', 2, '2025-12-19', 'Y', 2, 2, '2025-12-19 09:04:51', '2025-12-19 10:30:23'),
(1012, 2, 0, '', 0, 'P_R', 'P_R', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 09:44:45'),
(1013, 2, 2001, '', 0, 'P_O', 'P_I', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 10:56:25'),
(1014, 2, 2001, '', 0, 'P_O', 'P_I', 0, 'Y', 0, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 11:19:50'),
(1015, 2, 2001, '', 0, 'P_O', 'P_I', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 11:18:58'),
(1016, 2, 1001, '', 0, 'L', 'I', 2, 'Y', 2, '2025-12-19', 'Y', 2, 0, '2025-12-19 12:12:08', '2025-12-19 15:13:00'),
(1017, 2, 0, '', 0, 'P_R', 'P_R', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 12:20:36'),
(1018, 2, 2001, '', 0, 'P_E', 'P_E', 0, 'Y', 2, '2025-12-19', 'Y', 2, 2, '2025-12-19 12:20:59', '2025-12-19 12:20:59'),
(1019, 2, 2001, '', 0, 'P_O', 'Q_C', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 12:21:40'),
(1020, 1, 2003, '', 0, 'P_E', 'P_E', 0, 'N', NULL, NULL, 'Y', 1, 1, '2025-12-19 02:21:51', '2025-12-19 14:21:51'),
(1021, 1, 2003, '', 0, 'P_O', 'P_I', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 1, NULL, '2025-12-19 14:23:43'),
(1022, 2, 0, '', 0, 'P_R', 'P_R', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 14:52:24'),
(1023, 2, 0, '', 0, 'P_E', 'P_E', 0, 'N', NULL, NULL, 'Y', 2, NULL, '2025-12-19 02:52:48', NULL),
(1024, 2, 2001, '', 0, 'P_E', 'P_E', 0, 'N', NULL, NULL, 'Y', 2, 2, '2025-12-19 02:52:54', '2025-12-19 14:52:54'),
(1025, 2, 2001, '', 0, 'P_E', 'P_E', 0, 'Y', 2, '2025-12-19', 'Y', 2, 2, '2025-12-19 02:55:02', '2025-12-19 14:55:21'),
(1026, 2, 2001, '', 0, 'P_O', 'P_I', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 14:57:07'),
(1027, 2, 0, '', 0, 'P_R', 'P_R', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 15:02:06'),
(1028, 2, 2001, '', 0, 'P_E', 'P_E', 0, 'Y', 2, '2025-12-19', 'Y', 2, 2, '2025-12-19 03:02:20', '2025-12-19 15:02:20'),
(1029, 2, 2001, '', 0, 'P_O', 'P_I', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 15:02:53'),
(1030, 2, 2002, '', 0, 'P_O', 'M_R', 0, 'Y', 2, '2025-12-23', 'Y', NULL, 1, NULL, '2025-12-23 10:21:28'),
(1031, 2, 2001, '', 0, 'P_O', 'M_R', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 2, NULL, '2025-12-19 15:23:12'),
(1032, 2, 1001, '', 0, 'O', 'I', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 0, NULL, '2025-12-19 15:56:00'),
(1033, 2, 1001, '', 0, 'O', 'I', 0, 'Y', 2, '2025-12-19', 'Y', NULL, 0, NULL, '2025-12-19 15:58:00'),
(1034, 1, 0, '', 0, '', 'P_O', 0, 'Y', 2, '2025-12-22', 'Y', NULL, NULL, NULL, NULL),
(1035, 2, 1001, '', 0, 'Q', 'I', 2, 'Y', 2, '2025-12-20', 'Y', NULL, 0, NULL, '2025-12-20 09:29:00'),
(1036, 1, 1001, '', 0, 'L', 'L', 2, 'Y', 2, '2025-12-20', 'Y', 1, 1, '2025-12-20 12:23:49', '2025-12-20 12:23:59'),
(1037, 2, 1001, '', 0, 'Q', 'I', 2, 'Y', 2, '2025-12-20', 'Y', NULL, 0, NULL, '2025-12-20 14:32:00'),
(1038, 2, 1002, '', 0, 'Q', 'Q', 2, 'Y', 2, '2025-12-20', 'Y', NULL, 2, NULL, '2025-12-20 13:22:57'),
(1039, 2, 1002, '', 0, 'O', 'I', 0, 'Y', 2, '2025-12-22', 'Y', NULL, 0, NULL, '2025-12-22 11:00:00'),
(1040, 2, 0, '', 0, 'P_R', 'P_R', 0, 'Y', 2, '2025-12-22', 'Y', NULL, 2, NULL, '2025-12-22 08:35:21'),
(1041, 2, 2001, '', 0, 'P_E', 'P_E', 0, 'Y', 2, '2025-12-23', 'Y', 2, 2, '2025-12-22 08:40:17', '2025-12-23 10:28:27'),
(1042, 2, 2001, '', 0, 'P_O', 'P_I', 0, 'Y', 2, '2025-12-22', 'Y', NULL, 2, NULL, '2025-12-22 09:47:06'),
(1043, 2, 0, '', 0, '', '', 0, 'Y', 0, '2025-12-22', 'Y', NULL, NULL, NULL, NULL),
(1044, 2, 2001, '', 0, 'P_O', 'P_O', 0, 'Y', 2, '2025-12-23', 'Y', NULL, 2, NULL, '2025-12-23 10:27:22'),
(1045, 2, 2001, '', 0, 'P_O', 'P_O', 0, 'N', 0, '0000-00-00', 'Y', NULL, 2, NULL, '2025-12-23 10:30:36');

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

--
-- Table structure for table `erp_master_labour_hours`
--

CREATE TABLE `erp_master_labour_hours` (
  `id` int(11) NOT NULL,
  `task_duration_type` int(11) NOT NULL,
  `task_duration` varchar(255) NOT NULL,
  `task_duration_hour` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_date_time` date NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_master_labour_hours`
--

INSERT INTO `erp_master_labour_hours` (`id`, `task_duration_type`, `task_duration`, `task_duration_hour`, `isActive`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1, '12', 'Months', 'Y', 1, '2024-01-01', 1, '2024-01-01'),
(2, 2, '26', 'Days', 'Y', 1, '2024-01-01', 1, '2024-01-01'),
(3, 3, '8', 'Hours', 'Y', 1, '2024-01-01', 1, '2024-01-01'),
(4, 4, '16', 'AED', 'Y', 1, '2024-01-01', 1, '2024-01-01');

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

--
-- Table structure for table `erp_mas_aidashboard_settings`
--

CREATE TABLE `erp_mas_aidashboard_settings` (
  `id` int(11) NOT NULL,
  `ai_type` enum('SA','PR','PO','CF','ST','FI','IN') NOT NULL COMMENT 'SA-Sales,PR-Purchase,PO-Production Order,CF-Contact Favourite,ST-Stock/Inventory,FI-Finance,IN-Info',
  `serial_no` varchar(50) NOT NULL,
  `description` varchar(500) NOT NULL,
  `help` varchar(225) NOT NULL,
  `weigtage` int(22) NOT NULL,
  `isActive` enum('Y','N') 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_mas_aidashboard_settings`
--

INSERT INTO `erp_mas_aidashboard_settings` (`id`, `ai_type`, `serial_no`, `description`, `help`, `weigtage`, `isActive`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'SA', '100', 'Regular Sales', 'Higher grade for Regular Sales', 12, 'Y', 1, '2025-06-09 12:58:28', 0, '0000-00-00 00:00:00'),
(2, 'SA', '200', 'Sales Increase', 'Higher grade for Sales Increase every year', 15, 'Y', 1, '2025-06-09 12:58:28', 0, '0000-00-00 00:00:00'),
(3, 'SA', '300', 'Ontime Payment', 'Higher grade for Payments being on time', 15, 'Y', 1, '2025-06-09 12:58:28', 0, '0000-00-00 00:00:00'),
(4, 'SA', '400', 'Outstanding', 'Higher grade forLess Outstanding', 12, 'Y', 1, '2025-06-09 12:58:28', 0, '0000-00-00 00:00:00'),
(5, 'SA', '500', 'Credit Notes', 'Higher grade for lesser Credit Notes / Returns', 8, 'Y', 1, '2025-06-09 12:58:28', 0, '0000-00-00 00:00:00'),
(6, 'SA', '600', 'Support Tickets', 'Higher grade for lesser Support requests', 8, 'Y', 1, '2025-06-09 12:58:28', 0, '0000-00-00 00:00:00'),
(7, 'SA', '700', 'Good will of the company', 'Higher grade for Popular Company', 15, 'Y', 1, '2025-06-09 12:58:28', 0, '0000-00-00 00:00:00'),
(8, 'SA', '800', 'Relationship ', 'Higher grade for better relationship with the customer', 15, 'Y', 1, '2025-06-09 12:58:28', 0, '0000-00-00 00:00:00'),
(9, 'PR', '100', 'Regular Purchase', 'Higher grade for Regular Sales', 10, 'Y', 1, '2025-06-09 10:13:35', 0, '0000-00-00 00:00:00'),
(10, 'PR', '200', 'Increase in Purchase', 'Higher grade for Increase every year', 15, 'Y', 1, '2025-06-09 10:13:35', 0, '0000-00-00 00:00:00'),
(11, 'PR', '300', 'Payment', 'Higher grade for Less Payments issues', 15, 'Y', 1, '2025-06-09 10:13:35', 0, '0000-00-00 00:00:00'),
(12, 'PR', '400', 'Outstanding', 'Higher grade for Higher Outstanding', 10, 'Y', 1, '2025-06-09 10:13:35', 0, '0000-00-00 00:00:00'),
(13, 'PR', '500', 'Debit Notes', 'Higher grade for lesser Returns', 10, 'Y', 1, '2025-06-09 10:13:35', 0, '0000-00-00 00:00:00'),
(14, 'PR', '600', 'Support Tickets / Followups', 'Higher grade for lesser Support requests', 10, 'Y', 1, '2025-06-09 10:13:35', 0, '0000-00-00 00:00:00'),
(15, 'PR', '700', 'Goodwill of the company', 'Higher grade for Popular Company', 15, 'Y', 1, '2025-06-09 10:13:35', 0, '0000-00-00 00:00:00'),
(16, 'PR', '800', 'Relationship', 'Higher grade for better relationship with the customer', 15, 'Y', 1, '2025-06-09 10:13:35', 0, '0000-00-00 00:00:00'),
(17, 'PO', '100', 'Regular Item', '', 0, 'Y', 1, '2025-06-04 12:36:10', 0, '0000-00-00 00:00:00'),
(18, 'PO', '200', 'Raw Materials available', '', 0, 'Y', 1, '2025-06-04 12:36:28', 0, '0000-00-00 00:00:00'),
(19, 'CF', '100', 'Favorite Contact', '', 0, 'Y', 1, '2025-06-09 09:38:26', 0, '0000-00-00 00:00:00'),
(20, 'IN', '100', 'Company Info', '', 0, 'Y', 1, '2025-06-04 12:37:19', 0, '0000-00-00 00:00:00'),
(21, 'IN', '200', 'News', '', 0, 'Y', 1, '2025-06-04 12:37:27', 0, '0000-00-00 00:00:00'),
(22, 'IN', '300', 'Employees', '', 0, 'Y', 1, '2025-06-04 12:37:39', 0, '0000-00-00 00:00:00'),
(23, 'IN', '400', 'Review', '', 0, 'Y', 1, '2025-06-04 12:37:48', 0, '0000-00-00 00:00:00'),
(24, 'IN', '500', 'Map', '', 0, 'Y', 1, '2025-06-04 12:38:15', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_mas_aidashboard_settings_data`
--

CREATE TABLE `erp_mas_aidashboard_settings_data` (
  `id` int(11) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `rating_id` int(11) NOT NULL,
  `rating` int(11) 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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_mas_aidashboard_settings_data`
--

INSERT INTO `erp_mas_aidashboard_settings_data` (`id`, `customer_id`, `rating_id`, `rating`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 1001, 1, 63, 8, '2025-06-05 03:41:40', 1, '2025-08-24 10:15:20'),
(2, 1001, 2, 70, 8, '2025-06-05 03:41:55', 1, '2025-08-24 10:15:22'),
(3, 1001, 3, 70, 8, '2025-06-05 03:41:58', 1, '2025-08-24 10:15:24'),
(5, 1001, 4, 65, 8, '2025-06-05 04:11:09', 1, '2025-08-24 10:15:25'),
(6, 1001, 8, 92, 1, '2025-06-05 04:28:59', 8, '2025-06-23 11:11:19'),
(7, 1001, 7, 81, 1, '2025-06-05 04:29:01', 8, '2025-06-16 07:47:34'),
(8, 1001, 6, 41, 1, '2025-06-05 04:29:04', 1, '2025-08-24 10:15:34'),
(9, 1092, 1, 47, 1, '2025-06-05 04:29:31', NULL, NULL),
(10, 1092, 2, 42, 1, '2025-06-05 04:29:33', NULL, NULL),
(11, 1092, 3, 48, 1, '2025-06-05 04:29:34', NULL, NULL),
(12, 1001, 5, 77, 1, '2025-06-05 04:29:53', 1, '2025-08-24 10:15:32'),
(13, 2001, 1, 60, 1, '2025-06-06 09:57:39', 1, '2025-06-09 09:54:11'),
(14, 2001, 2, 30, 1, '2025-06-06 09:57:41', 1, '2025-06-09 10:06:12'),
(15, 2001, 4, 67, 1, '2025-06-07 09:54:03', 1, '2025-06-09 10:08:34'),
(16, 2001, 5, 28, 1, '2025-06-07 09:54:05', 1, '2025-06-09 08:39:57'),
(17, 2001, 6, 76, 1, '2025-06-07 09:54:06', NULL, NULL),
(18, 2001, 7, 70, 1, '2025-06-07 09:54:07', 1, '2025-06-09 09:54:13'),
(19, 2001, 8, 68, 1, '2025-06-07 09:54:07', 1, '2025-06-09 09:54:15'),
(20, 2001, 3, 70, 1, '2025-06-07 09:54:08', 1, '2025-06-09 10:06:42'),
(21, 2014, 3, 97, 8, '2025-06-25 10:15:30', NULL, NULL),
(22, 1069, 1, 29, 8, '2025-09-24 04:01:20', NULL, NULL),
(23, 1083, 1, 87, 1, '2025-09-29 10:00:41', NULL, NULL),
(24, 1083, 2, 45, 1, '2025-09-29 10:00:48', NULL, NULL),
(25, 1083, 8, 8, 1, '2025-09-30 08:01:03', NULL, NULL);

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

--
-- Table structure for table `erp_mas_bank`
--

CREATE TABLE `erp_mas_bank` (
  `id` int(11) NOT NULL,
  `bank_code` varchar(100) NOT NULL,
  `routing_code` varchar(100) NOT NULL,
  `bank_name` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `isDefault` enum('Y','N') NOT NULL DEFAULT 'Y',
  `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;

--
-- Dumping data for table `erp_mas_bank`
--

INSERT INTO `erp_mas_bank` (`id`, `bank_code`, `routing_code`, `bank_name`, `isActive`, `isDefault`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'RAK', '804020101', 'RAK Bank', 'Y', 'N', 1, 8, '2024-01-01 06:00:00', '2025-05-10 07:53:58'),
(2, 'AJM', '805740101', 'Ajman Bank', 'Y', 'N', 1, 8, '2025-04-29 07:50:16', '2025-05-10 07:48:45'),
(4, 'ABNAMRO', '000', 'ABN AMRO Group NV', 'Y', 'N', 8, 1, '2025-05-06 01:50:24', '2025-06-19 09:20:29'),
(5, 'ADCB', '600310101', 'Abu Dhabi Commercial Bank', 'Y', 'N', 8, 8, '2025-05-06 01:50:48', '2025-05-10 07:44:44'),
(6, 'ADCB-IB', '405010101', 'ADCB Islamic Bank', 'Y', 'N', 8, 1, '2025-05-06 01:51:09', '2025-06-19 09:16:59'),
(7, 'ADIB', '', 'ADIB', 'Y', 'N', 8, 1, '2025-05-06 01:51:20', '2025-06-05 01:25:18'),
(8, 'BPM', '', 'Banco BPM', 'Y', 'N', 8, 0, '2025-05-06 01:51:39', '0000-00-00 00:00:00'),
(9, 'BoB', '801120101', 'Bank of Baroda', 'Y', 'N', 8, 8, '2025-05-06 01:51:57', '2025-05-10 07:49:38'),
(10, 'BBF', '', 'Banque Banorient France', 'Y', 'N', 8, 0, '2025-05-06 01:52:17', '0000-00-00 00:00:00'),
(11, 'BB', '', 'Barclays Bank PLC', 'Y', 'N', 8, 0, '2025-05-06 01:53:18', '0000-00-00 00:00:00'),
(12, 'CITI', '102120101', 'Citibank', 'Y', 'N', 8, 8, '2025-05-06 01:53:29', '2025-06-25 09:45:16'),
(13, 'CBD', '102320150', 'Commercial Bank of Dubai', 'Y', 'N', 8, 8, '2025-05-06 01:53:47', '2025-05-10 07:50:32'),
(14, 'EIB', '703420114', 'Emirates Islamic Bank', 'Y', 'N', 8, 8, '2025-05-06 01:54:02', '2025-05-10 07:50:59'),
(15, 'FAB', '803510106', 'First Abu Dhabi Bank', 'Y', 'N', 8, 8, '2025-05-06 01:54:23', '2025-05-10 07:51:33'),
(16, 'HSBC', '302020120', 'HSBC MIddle East', 'Y', 'N', 8, 8, '2025-05-06 01:54:40', '2025-05-10 07:51:56'),
(17, 'JPM', '', 'JPMorgan Chase Bank', 'Y', 'N', 8, 0, '2025-05-06 01:54:52', '0000-00-00 00:00:00'),
(18, 'LB', '', 'Lloyds Bank', 'Y', 'N', 8, 0, '2025-05-06 01:55:07', '0000-00-00 00:00:00'),
(19, 'Mashreq', '203320101', 'Mashreq Bank', 'Y', 'N', 8, 8, '2025-05-06 01:55:23', '2025-05-10 07:52:26'),
(20, 'NBF', '703820101', 'National Bank of Fujairah', 'Y', 'N', 8, 8, '2025-05-06 01:55:39', '2025-05-10 07:53:24'),
(21, 'UAB', '904630101', 'United Arab Bank', 'Y', 'N', 8, 8, '2025-05-06 01:56:02', '2025-05-10 07:54:22'),
(22, 'VRB', '', 'VR Bank Munchen Land', 'Y', 'N', 8, 0, '2025-05-06 01:56:17', '0000-00-00 00:00:00'),
(23, 'Wells', '', 'Wells Fargo Bank NA', 'Y', 'N', 8, 0, '2025-05-06 01:56:28', '0000-00-00 00:00:00'),
(24, 'WIO', '808610001', 'WIO Bank', 'Y', 'N', 8, 8, '2025-05-06 01:56:45', '2025-05-10 07:54:59'),
(29, 'DIB', '802420101', 'Dubai Islamic Bank', 'Y', 'N', 8, 1, '2025-05-07 10:44:39', '2025-05-07 11:30:49'),
(30, 'NISL', '905220101', 'NOOR ISLAMIC BANK', 'Y', 'N', 8, 0, '2025-05-10 07:57:08', '0000-00-00 00:00:00'),
(31, '', '302620122', 'Emirates NBD', 'Y', 'N', 8, 1, '2025-05-10 07:58:55', '2025-06-05 01:25:05'),
(32, 'SCBL', '504420120', 'Standard Chartered Bank', 'Y', 'N', 8, 0, '2025-05-10 08:00:54', '0000-00-00 00:00:00'),
(33, 'HLAL', '105310101', 'Al Hilal Bank', 'Y', 'N', 8, 0, '2025-05-10 08:02:10', '0000-00-00 00:00:00'),
(34, 'CLBI', '002220101', 'COMMERCIAL BANK INTERNATIONAL', 'Y', 'N', 8, 0, '2025-05-10 08:03:57', '0000-00-00 00:00:00'),
(35, 'NBSH', '404130101', 'Sharjah Islamic Bank', 'Y', 'N', 8, 0, '2025-05-10 08:05:14', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_mas_barcode_heading`
--

CREATE TABLE `erp_mas_barcode_heading` (
  `id` int(11) NOT NULL,
  `heading` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `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_mas_bill_type`
--

CREATE TABLE `erp_mas_bill_type` (
  `id` int(11) NOT NULL,
  `bill_type` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `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;

--
-- Dumping data for table `erp_mas_bill_type`
--

INSERT INTO `erp_mas_bill_type` (`id`, `bill_type`, `isActive`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'AWB No', 'Y', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(2, 'Bill of Lading', 'Y', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00');

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

--
-- Table structure for table `erp_mas_colour_scheme`
--

CREATE TABLE `erp_mas_colour_scheme` (
  `id` int(11) NOT NULL,
  `type` enum('Q','L','O','A','PO') NOT NULL,
  `item` varchar(255) NOT NULL,
  `field` varchar(255) NOT NULL,
  `colour` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_mas_colour_scheme`
--

INSERT INTO `erp_mas_colour_scheme` (`id`, `type`, `item`, `field`, `colour`) VALUES
(1, 'O', 'Order Approval Level 0', 'Sales Dept', '#fcdede'),
(2, 'O', 'Order Approval Level 1', 'Finance / Commercial Dept', '#ffffff'),
(3, 'O', 'Order Approval Level 2', 'Service Dept', '#8080ff'),
(4, 'O', 'Order Approval Level 3', 'Approved', '#f7f7f7'),
(5, 'L', 'Lead Priority - Low', 'Low', '#ffffff'),
(6, 'L', 'Lead Priority - Medium', 'Medium', '#bee0bf'),
(7, 'O', 'Lead Priority - High', 'low', '#ffe4d6'),
(8, 'Q', 'Quotation - UnApproved', 'Quotation - UnApproved', '#fcd4d4'),
(9, 'Q', 'Quotation - Approved', 'Quotation - Approved', '#ffffff'),
(10, 'Q', 'Quotation - Expired', 'Quotation - Expired', '#939393'),
(11, 'Q', 'Purchase Order Approval Level 0', 'Finance', '#fac6fb'),
(12, 'PO', 'Purchase Order Approval Level 1', 'Managing Director', '#ffffbd'),
(13, 'PO', 'Purchase Order Approval Level 2', 'Chairman', '#8080ff'),
(14, 'PO', 'Purchase Order Approval Level 3', 'Approved', '#ffffff');

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

--
-- Table structure for table `erp_mas_company_level`
--

CREATE TABLE `erp_mas_company_level` (
  `id` int(11) NOT NULL,
  `level_name` varchar(255) NOT NULL,
  `permissions` text NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `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;

--
-- Dumping data for table `erp_mas_company_level`
--

INSERT INTO `erp_mas_company_level` (`id`, `level_name`, `permissions`, `isActive`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'Level 1', '{\"mis_level_permission_calendar\":\"1\",\"mis_level_permission_mis_dashboard\":\"1\",\"mis_level_permission_mis_graph\":\"1\",\"sales_level_permission_contact\":\"0\",\"sales_level_permission_documents\":\"1\",\"sales_level_permission_shipping\":\"0\",\"master_level_permission_sales_groups\":\"0\",\"master_level_permission_industry\":\"0\",\"sales_level_permission_approvals\":\"1\",\"sales_level_permission_balncerecevble\":\"0\",\"sales_level_permission_delivery_tracker\":\"0\",\"sales_level_permission_receipt_tracker\":\"0\",\"inventory_level_permission_expiry_date\":\"0\",\"inventory_level_permission_serial_number\":\"0\",\"inventory_level_permission_ledger_selection\":\"1\",\"inventory_level_permission_length\":\"0\",\"inventory_level_permission_width\":\"0\",\"inventory_level_permission_height\":\"0\",\"inventory_level_permission_weight\":\"0\",\"inventory_level_permission_cbm\":\"0\",\"inventory_level_permission_thickness\":\"0\",\"inventory_level_permission_material\":\"0\",\"inventory_level_permission_finish\":\"0\",\"inventory_level_permission_reorderlevel\":\"0\",\"inventory_level_permission_hscode\":\"0\",\"inventory_level_permission_barcode\":\"0\",\"inventory_level_permission_picture_upload\":\"0\",\"inventory_level_permission_markup_percent\":\"0\",\"purchase_level_permission_supplier_documents\":\"0\",\"purchase_level_permission_supplier_banking\":\"0\",\"purchase_level_permission_supplier_contact\":\"0\",\"purchase_level_permission_requisition\":\"1\",\"purchase_level_permission_purchase_enquiry\":\"1\",\"purchase_level_permission_approval\":\"0\",\"purchase_level_permission_edit_invoice_no\":\"0\",\"purchase_level_permission_delivery_tracker\":\"0\",\"purchase_level_permission_payment_tracker\":\"0\",\"master_level_permission_banks\":\"0\",\"master_level_permission_currency\":\"0\",\"master_level_permission_unit\":\"0\",\"master_level_permission_warehouses\":\"0\",\"master_level_permission_brands\":\"0\",\"master_level_permission_racks\":\"0\",\"master_level_permission_bin\":\"0\",\"master_level_permission_item_type\":\"2\",\"master_level_permission_category\":\"0\",\"master_level_permission_qc_close_rsn\":\"0\",\"master_level_permission_TC\":\"0\",\"master_level_permission_shipping_methods\":\"0\",\"master_level_permission_document_type\":\"0\",\"master_level_permission_ai_dashboard\":\"1\",\"master_level_permission_workspace\":\"1\",\"reports_sales_level_permission_lead_list\":\"0\",\"reports_sales_level_permission_quotation_list\":\"1\",\"reports_sales_level_permission_order_list\":\"1\",\"reports_sales_level_permission_delivery_list\":\"1\",\"reports_sales_level_permission_invoice_list\":\"1\",\"reports_sales_level_permission_creditnote_list\":\"1\",\"reports_sales_level_permission_datewisesales_list\":\"0\",\"reports_sales_level_permission_daybook\":\"0\",\"reports_sales_level_permission_deliverynt_invoiced\":\"0\",\"reports_sales_level_permission_grossprofit\":\"0\",\"reports_sales_level_permission_ordertodelivered\":\"0\",\"reports_sales_level_permission_salesitembybrand\":\"0\",\"reports_sales_level_permission_netsales\":\"1\",\"reports_inv_level_permission_current_stock\":\"1\",\"reports_inv_level_permission_direct_transfer\":\"1\",\"reports_inv_level_permission_stock_transactn_ledger\":\"1\",\"reports_inv_level_permission_transaction_detail\":\"1\",\"reports_inv_level_permission_warehouse_report\":\"0\",\"reports_pur_level_permission_purchase_list\":\"1\",\"reports_pur_level_permission_mr_list\":\"1\",\"reports_pur_level_permission_pending_po_list\":\"1\",\"reports_pur_level_permission_purchase_invoice\":\"1\",\"reports_pur_level_permission_debit_notes\":\"1\",\"reports_pur_level_permission_list_of_ordered_item\":\"0\",\"reports_pur_level_permission_net_purchase\":\"1\",\"activities_level_permission_activities\":\"0\",\"activities_level_permission_activity_report\":\"0\"}', 'Y', 8, 0, '2025-05-26 05:54:31', '0000-00-00 00:00:00'),
(2, 'Level 2', '{\"mis_level_permission_calendar\":\"1\",\"mis_level_permission_mis_dashboard\":\"1\",\"mis_level_permission_mis_graph\":\"1\",\"sales_level_permission_contact\":\"1\",\"sales_level_permission_documents\":\"1\",\"sales_level_permission_shipping\":\"1\",\"master_level_permission_sales_groups\":\"2\",\"master_level_permission_industry\":\"0\",\"master_level_permission_TC\":\"1\",\"sales_level_permission_approvals\":\"1\",\"sales_level_permission_balncerecevble\":\"0\",\"sales_level_permission_delivery_tracker\":\"1\",\"sales_level_permission_receipt_tracker\":\"1\",\"inventory_level_permission_expiry_date\":\"0\",\"inventory_level_permission_serial_number\":\"0\",\"inventory_level_permission_ledger_selection\":\"1\",\"inventory_level_permission_length\":\"0\",\"inventory_level_permission_width\":\"0\",\"inventory_level_permission_height\":\"0\",\"inventory_level_permission_weight\":\"0\",\"inventory_level_permission_cbm\":\"0\",\"inventory_level_permission_thickness\":\"0\",\"inventory_level_permission_material\":\"0\",\"inventory_level_permission_finish\":\"0\",\"inventory_level_permission_reorderlevel\":\"0\",\"inventory_level_permission_hscode\":\"0\",\"inventory_level_permission_barcode\":\"1\",\"inventory_level_permission_picture_upload\":\"0\",\"inventory_level_permission_markup_percent\":\"0\",\"purchase_level_permission_supplier_documents\":\"0\",\"purchase_level_permission_supplier_banking\":\"0\",\"purchase_level_permission_supplier_contact\":\"0\",\"purchase_level_permission_requisition\":\"0\",\"purchase_level_permission_purchase_enquiry\":\"0\",\"purchase_level_permission_approval\":\"1\",\"purchase_level_permission_edit_invoice_no\":\"0\",\"purchase_level_permission_delivery_tracker\":\"0\",\"purchase_level_permission_payment_tracker\":\"0\",\"master_level_permission_banks\":\"0\",\"master_level_permission_currency\":\"2\",\"master_level_permission_unit\":\"\",\"master_level_permission_warehouses\":\"0\",\"master_level_permission_brands\":\"2\",\"master_level_permission_racks\":\"0\",\"master_level_permission_bin\":\"0\",\"master_level_permission_item_type\":\"2\",\"master_level_permission_category\":\"2\",\"master_level_permission_qc_close_rsn\":\"0\",\"master_level_permission_shipping_methods\":\"0\",\"master_level_permission_document_type\":\"0\",\"reports_sales_level_permission_lead_list\":\"1\",\"reports_sales_level_permission_quotation_list\":\"1\",\"reports_sales_level_permission_order_list\":\"1\",\"reports_sales_level_permission_delivery_list\":\"1\",\"reports_sales_level_permission_invoice_list\":\"1\",\"reports_sales_level_permission_creditnote_list\":\"1\",\"reports_sales_level_permission_datewisesales_list\":\"1\",\"reports_sales_level_permission_daybook\":\"1\",\"reports_sales_level_permission_deliverynt_invoiced\":\"0\",\"reports_sales_level_permission_grossprofit\":\"0\",\"reports_sales_level_permission_ordertodelivered\":\"1\",\"reports_sales_level_permission_salesitembybrand\":\"0\",\"reports_sales_level_permission_netsales\":\"1\",\"reports_inv_level_permission_current_stock\":\"1\",\"reports_inv_level_permission_direct_transfer\":\"1\",\"reports_inv_level_permission_stock_transactn_ledger\":\"\",\"reports_inv_level_permission_transaction_detail\":\"1\",\"reports_inv_level_permission_warehouse_report\":\"1\",\"reports_pur_level_permission_purchase_list\":\"1\",\"reports_pur_level_permission_mr_list\":\"1\",\"reports_pur_level_permission_pending_po_list\":\"1\",\"reports_pur_level_permission_purchase_invoice\":\"1\",\"reports_pur_level_permission_debit_notes\":\"1\",\"reports_pur_level_permission_list_of_ordered_item\":\"0\",\"reports_pur_level_permission_net_purchase\":\"1\",\"activities_level_permission_activities\":\"0\",\"activities_level_permission_activity_report\":\"0\"}', 'Y', 8, 0, '2025-05-26 05:54:37', '0000-00-00 00:00:00'),
(3, 'Level 3', '{\"mis_level_permission_calendar\":\"1\",\"mis_level_permission_mis_dashboard\":\"1\",\"mis_level_permission_mis_graph\":\"1\",\"sales_level_permission_contact\":\"1\",\"sales_level_permission_documents\":\"1\",\"sales_level_permission_shipping\":\"1\",\"master_level_permission_sales_groups\":\"2\",\"master_level_permission_industry\":\"2\",\"sales_level_permission_approvals\":\"1\",\"sales_level_permission_balncerecevble\":\"1\",\"sales_level_permission_delivery_tracker\":\"1\",\"sales_level_permission_receipt_tracker\":\"1\",\"inventory_level_permission_expiry_date\":\"1\",\"inventory_level_permission_serial_number\":\"1\",\"inventory_level_permission_ledger_selection\":\"1\",\"inventory_level_permission_length\":\"1\",\"inventory_level_permission_width\":\"1\",\"inventory_level_permission_height\":\"1\",\"inventory_level_permission_weight\":\"1\",\"inventory_level_permission_cbm\":\"1\",\"inventory_level_permission_thickness\":\"1\",\"inventory_level_permission_material\":\"1\",\"inventory_level_permission_finish\":\"1\",\"inventory_level_permission_reorderlevel\":\"1\",\"inventory_level_permission_hscode\":\"1\",\"inventory_level_permission_barcode\":\"1\",\"inventory_level_permission_picture_upload\":\"1\",\"inventory_level_permission_markup_percent\":\"1\",\"purchase_level_permission_supplier_documents\":\"1\",\"purchase_level_permission_supplier_banking\":\"1\",\"purchase_level_permission_supplier_contact\":\"1\",\"purchase_level_permission_requisition\":\"1\",\"purchase_level_permission_purchase_enquiry\":\"1\",\"purchase_level_permission_approval\":\"1\",\"purchase_level_permission_edit_invoice_no\":\"1\",\"purchase_level_permission_delivery_tracker\":\"1\",\"purchase_level_permission_payment_tracker\":\"1\",\"master_level_permission_banks\":\"1\",\"master_level_permission_currency\":\"2\",\"master_level_permission_unit\":\"2\",\"master_level_permission_warehouses\":\"2\",\"master_level_permission_brands\":\"2\",\"master_level_permission_racks\":\"2\",\"master_level_permission_bin\":\"2\",\"master_level_permission_item_type\":\"2\",\"master_level_permission_category\":\"2\",\"master_level_permission_qc_close_rsn\":\"1\",\"master_level_permission_TC\":\"1\",\"master_level_permission_shipping_methods\":\"1\",\"master_level_permission_document_type\":\"1\",\"master_level_permission_ai_dashboard\":\"1\",\"master_level_permission_workspace\":\"\",\"reports_sales_level_permission_lead_list\":\"1\",\"reports_sales_level_permission_quotation_list\":\"1\",\"reports_sales_level_permission_order_list\":\"1\",\"reports_sales_level_permission_delivery_list\":\"1\",\"reports_sales_level_permission_invoice_list\":\"1\",\"reports_sales_level_permission_creditnote_list\":\"1\",\"reports_sales_level_permission_datewisesales_list\":\"1\",\"reports_sales_level_permission_daybook\":\"1\",\"reports_sales_level_permission_deliverynt_invoiced\":\"1\",\"reports_sales_level_permission_grossprofit\":\"1\",\"reports_sales_level_permission_ordertodelivered\":\"1\",\"reports_sales_level_permission_salesitembybrand\":\"1\",\"reports_sales_level_permission_netsales\":\"1\",\"reports_inv_level_permission_current_stock\":\"1\",\"reports_inv_level_permission_direct_transfer\":\"1\",\"reports_inv_level_permission_stock_transactn_ledger\":\"1\",\"reports_inv_level_permission_transaction_detail\":\"1\",\"reports_inv_level_permission_warehouse_report\":\"1\",\"reports_pur_level_permission_purchase_list\":\"1\",\"reports_pur_level_permission_mr_list\":\"1\",\"reports_pur_level_permission_pending_po_list\":\"1\",\"reports_pur_level_permission_purchase_invoice\":\"1\",\"reports_pur_level_permission_debit_notes\":\"1\",\"reports_pur_level_permission_list_of_ordered_item\":\"1\",\"reports_pur_level_permission_net_purchase\":\"1\",\"activities_level_permission_activities\":\"1\",\"activities_level_permission_activity_report\":\"1\"}', 'Y', 8, 0, '2025-05-26 05:54:43', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_mas_company_terms_conditions`
--

CREATE TABLE `erp_mas_company_terms_conditions` (
  `id` int(11) NOT NULL,
  `type` enum('Q','O','D','I','PO','MR','PI') NOT NULL COMMENT '''Q''=>Quotation,''O''=>order,''D''=>debite Note,''I''=>invoice,''PO''=>purchase Order,''MR''=>meterial Receipt,''PI''=>purchase Invoice',
  `terms_conditions` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_mas_company_type`
--

CREATE TABLE `erp_mas_company_type` (
  `id` int(11) NOT NULL,
  `type` enum('C','V') NOT NULL,
  `description` text NOT NULL COMMENT 'type of company',
  `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;

--
-- Dumping data for table `erp_mas_company_type`
--

INSERT INTO `erp_mas_company_type` (`id`, `type`, `description`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'C', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, 'V', '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_mas_country`
--

CREATE TABLE `erp_mas_country` (
  `id` int(11) NOT NULL,
  `country_name` varchar(255) NOT NULL,
  `nationality` varchar(500) NOT NULL,
  `country_code` varchar(100) NOT NULL,
  `phone_code` varchar(20) NOT NULL,
  `flag_image` varchar(300) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `isDefault` enum('Y','N') NOT NULL DEFAULT 'N',
  `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;

--
-- Dumping data for table `erp_mas_country`
--

INSERT INTO `erp_mas_country` (`id`, `country_name`, `nationality`, `country_code`, `phone_code`, `flag_image`, `isActive`, `isDefault`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'Afghanistan', 'Afghanistan', 'AF', '+93', 'Flag of Afghanistan  2004   2021  variant  svg.png', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-08-07 15:25:41'),
(2, 'Albania', 'Albania', 'AL', '+355', '', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-06-09 11:35:48'),
(3, 'Algeria', 'Algeria', 'DZ', '', 'bluesky image.jpg', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(4, 'American Samoa', 'American Samoa', 'AS', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(5, 'Andorra', 'Andorra', 'AD', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(6, 'Angola', 'Angola', 'AO', '', 'Flag of Angola svg.png', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-08-07 15:25:28'),
(7, 'Anguilla', 'Anguilla', 'AI', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(8, 'Antarctica', 'Antarctica', 'AQ', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(9, 'Argentina', 'Argentina', 'AR', '+54', '360 F 528361266 T33O3baj2T0v5SSfvTL8u5RqquFlv3yd.jpg', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-06-09 11:21:44'),
(10, 'Armenia', 'Armenia', 'AM', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(11, 'Australia', 'Australia', 'AU', '+61', '360 F 1054631254 cVq2WEOjGmmXQLK351LnZVGEqfJrzaMf.jpg', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(12, 'Austria', 'Austria', 'AT', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(13, 'Azerbaijan', 'Azerbaijan', 'AZ', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(14, 'Bahrain', 'Bahrain', 'BH', '+973', 'Flag of Bahrain svg.png', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-06-18 07:37:44'),
(15, 'Bangladesh', 'Bangladesh', 'BD', '+880', '218hFID2i6L  AC UF894 1000 QL80 .jpg', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-06-09 11:24:12'),
(16, 'Barbados', 'Barbados', 'BB', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(17, 'Belarus', 'Belarus', 'BY', '+375', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(18, 'Belgium', 'Belgium', 'BE', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(19, 'Bermuda', 'Bermuda', 'BM', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(20, 'Bhutan', 'Bhutan', 'BT', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(21, 'Bolivia', 'Bolivia', 'BO', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(22, 'Botswana', 'Botswana', 'BW', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(23, 'Bouvet Island', 'Bouvet Island', 'BV', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(24, 'Brazil', 'Brazil', 'BR', '+55', 'Flag of Brazil.png', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-06-09 11:25:57'),
(25, 'Bulgaria', 'Bulgaria', 'BG', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(26, 'Burkina Faso', 'Burkina Faso', 'BF', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(27, 'Cambodia', 'Cambodia', 'KH', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(28, 'Cameroon', 'Cameroon', 'CM', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(29, 'Canada', 'Canada', 'CA', '+1', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(30, 'Cape Verde', 'Cape Verde', 'CV', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(31, 'Cayman Islands', 'Cayman Islands', 'KY', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(32, 'Central African Republic', 'Central African Republic', 'CF', '+236', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(33, 'Chad', 'Chad', 'TD', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(34, 'Chile', 'Chile', 'CL', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(35, 'China', 'China', 'CN', '+86', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(36, 'Colombia', 'Colombia', 'CO', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(37, 'Congo', 'Congo', 'CG', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(38, 'Cuba', 'Cuba', 'CU', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(39, 'Czech Republic', 'Czech Republic', 'CZ', '+420', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(40, 'Denmark', 'Denmark', 'DK', '+45', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(41, 'Djibouti', 'Djibouti', 'DJ', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(42, 'Dominica', 'Dominica', 'DM', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(43, 'Dominican Republic', 'Dominican Republic', 'DO', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(44, 'Ecuador', 'Ecuador', 'EC', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(45, 'Egypt', 'Egypt', 'EG', '+20', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(46, 'El Salvador', 'El Salvador', 'SV', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(47, 'Equatorial Guinea', 'Equatorial Guinea', 'GQ', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(48, 'Eritrea', 'Eritrea', 'ER', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(49, 'Estonia', 'Estonia', 'EE', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(50, 'Ethiopia', 'Ethiopia', 'ET', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(51, 'European Union', 'European Union', 'EU', '', 'european-union-eu-flag-uhd-4k-wallpaper.jpg', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-06-09 11:19:44'),
(52, 'Faroe Islands', 'Faroe Islands', 'FO', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(53, 'Fiji', 'Fiji', 'FJ', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(54, 'Finland', 'Finland', 'FI', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(55, 'France', 'France', 'FR', '+33', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(56, 'French Guiana', 'French Guiana', 'GF', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(57, 'French Polynesia', 'French Polynesia', 'PF', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(58, 'Gabon', 'Gabon', 'GA', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(59, 'Georgia', 'Georgia', 'GE', '+995', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(60, 'Germany', 'Germany', 'DE', '+49', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(61, 'Ghana', 'Ghana', 'GH', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(62, 'Greece', 'Greece', 'GR', '+30', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(63, 'Greenland', 'Greenland', 'GL', '+299', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(64, 'Grenada', 'Grenada', 'GD', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(65, 'Guadeloupe', 'Guadeloupe', 'GP', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(66, 'Guinea', 'Guinea', 'GN', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(67, 'Guinea-Bissau', 'Guinea-Bissau', 'GW', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(68, 'Guyana', 'Guyana', 'GY', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(69, 'Haiti', 'Haiti', 'HT', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(70, 'Hungary', 'Hungary', 'HU', '+36', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(71, 'Iceland', 'Iceland', 'IS', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(72, 'India', 'India', 'IN', '+91', 'indian-flag.png', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-09-02 12:47:08'),
(73, 'Ireland', 'Ireland', 'IE', '+353', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(74, 'Indonesia', 'Indonesia', 'ID', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(75, 'Iran', 'Iran', 'IR', '+98', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(76, 'Iraq', 'Iraq', 'IQ', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(77, 'Israel', 'Israel', 'IL', '+972', 'Flag of Israel svg.png', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-06-09 11:30:21'),
(78, 'Italy', 'Italy', 'IT', '+39', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(79, 'Jamaica', 'Jamaica', 'JM', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(80, 'Japan', 'Japan', 'JP', '+81', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(81, 'Jordan', 'Jordan', 'JO', '+962', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(82, 'Kazakhstan', 'Kazakhstan', 'KZ', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(83, 'Kenya', 'Kenya', 'KE', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(84, 'Kiribati', 'Kiribati', 'KI', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(85, 'Korea, (South) Republic of', 'Korea, (South) Republic of', 'KR', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(86, 'Kosovo', 'Kosovo', 'KV', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(87, 'Kuwait', 'Kuwait', 'KW', '+965', 'Flag of Kuwait svg.png', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-06-09 11:27:10'),
(88, 'Latvia', 'Latvia', 'LV', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(89, 'Lebanon', 'Lebanon', 'LB', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(90, 'Lesotho', 'Lesotho', 'LS', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(91, 'Liberia', 'Liberia', 'LR', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(92, 'Libya', 'Libya', 'LY', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(93, 'Lithuania', 'Lithuania', 'LT', '+370', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(94, 'Luxembourg', 'Luxembourg', 'LU', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(95, 'Madagascar', 'Madagascar', 'MG', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(96, 'Malaysia', 'Malaysia', 'MY', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(97, 'Maldives', 'Maldives', 'MV', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(98, 'Mexico', 'Mexico', 'MX', '+52', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(99, 'Mongolia', 'Mongolia', 'MN', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(100, 'Morocco', 'Morocco', 'MA', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(101, 'Namibia', 'Namibia', 'NA', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(102, 'Nepal', 'Nepali', 'NP', '+977', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(103, 'Netherlands', 'Netherlands', 'NL', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(104, 'New Zealand', 'New Zealand', 'NZ', '+64', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(105, 'Nigeria', 'Nigeria', 'NG', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(106, 'Norway', 'Norway', 'NO', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(107, 'Pakistan', 'Pakistani', 'PK', '+92', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(108, 'Papua New Guinea', 'Papua New Guinea', 'PG', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(109, 'Peru', 'Peru', 'PE', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(110, 'Poland', 'Poland', 'PL', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(111, 'Portugal', 'Portugal', 'PT', '+351', 'Flag of Portugal svg.png', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-06-09 11:34:28'),
(112, 'Qatar', 'Qatar', 'QA', '+974', 'istockphoto-1063898358-612x612.jpg', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-06-09 11:31:36'),
(113, 'Russia', 'Russia', 'RU', '+7', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(114, 'Saudi Arabia', 'Saudi', 'SA', '+966', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(115, 'Senegal', 'Senegal', 'SN', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(116, 'Singapore', 'Singapore', 'SG', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(117, 'Somalia', 'Somalia', 'SO', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(118, 'South Africa', 'South Africa', 'ZA', '+27', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(119, 'Spain', 'Spain', 'ES', '+34', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(120, 'Sudan', 'Sudan', 'SD', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(121, 'Sweden', 'Sweden', 'SE', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(122, 'Switzerland', 'Switzerland', 'CH', '+41', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(123, 'Taiwan', 'Taiwan', 'TW', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(124, 'Thailand', 'Thailand', 'TH', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(125, 'Togo', 'Togo', 'TG', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(126, 'Tunisia', 'Tunisia', 'TN', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(127, 'Turkey', 'Turkey', 'TR', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(128, 'Uganda', 'Uganda', 'UG', '+256', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(129, 'Ukraine', 'Ukraine', 'UK', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(130, 'United Arab Emirates', 'United Arab Emirates', 'AE', '+971', 'uae-flag.png', 'Y', 'Y', 1, 1, '2020-10-05 10:00:00', '2025-09-02 12:46:47'),
(131, 'United Kingdom', 'United Kingdom', 'UK', '+44', 'Flag of the United Kingdom  1-2  svg.png', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-06-09 11:33:27'),
(132, 'United States', 'United States', 'US', '+1', 'Flag of the United States svg.png', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(133, 'Uruguay', 'Uruguay', 'UY', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(134, 'Uzbekistan', 'Uzbekistan', 'UZ', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(135, 'Venezuela', 'Venezuela', 'VE', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(136, 'Yemen', 'Yemen', 'YE', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(137, 'Zambia', 'Zambia', 'ZM', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(138, 'Zimbabwe', 'Zimbabwe', 'ZW', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(139, 'Slovak Republic', 'Slovak Republic', 'SR', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(140, 'Sultanate of Oman', 'Sultanate of Oman', 'OM', '+968', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(141, 'Turkmenistan', 'Turkmenistan', 'TM', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(142, 'Syria', 'Syria', 'SY', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(143, 'Mauritania', 'Mauritania', 'MU', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(144, 'Mozambique', 'Mozambique', 'MZ', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(145, 'Sri Lanka', 'Sri Lanka', 'SL', '+94', 'istockphoto-1063902464-612x612.jpg', 'Y', 'N', 1, 1, '2020-10-05 10:00:00', '2025-06-09 11:29:24'),
(146, 'Tanzania', 'Tanzania', 'TZ', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(147, 'Palestine', 'Palestine', 'PS', '+970', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(148, 'Vietnam', 'Vietnam', 'VN', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(149, 'Mauritius', 'Mauritius', 'MAU', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(150, 'Philippines', 'Filipino', 'PH', '', '', 'Y', 'N', 128, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(151, 'Croatia', 'Croatia', 'HR', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(152, 'Benin', 'Benin', 'BJ', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(153, 'Cyprus', 'Cyprus', 'CY', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(154, 'Kyrgyzstan', 'Kyrgyzstan', 'KG', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(155, 'Malawi', 'Malawi', 'MWI', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(156, 'Myanmar', 'Myanmar', 'MM', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(157, 'Romania', 'Romania', 'RO', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(158, 'Seychelles', 'Seychelles', 'SE', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(159, 'Trinidad & Tobago', 'Trinidad & Tobago', 'TT', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(160, 'Turkas & Caico Islands', 'Turkas & Caico Islands', 'TC', '', '', 'Y', 'N', 1, 0, '2020-10-05 10:00:00', '0000-00-00 00:00:00'),
(161, 'Monaco', 'Monaco', 'MO', '', '', 'Y', 'N', 2, 0, '2024-01-19 12:03:18', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_mas_currency`
--

CREATE TABLE `erp_mas_currency` (
  `id` int(11) NOT NULL,
  `currency` varchar(255) NOT NULL,
  `currency_code` varchar(255) NOT NULL,
  `sub_label` varchar(255) NOT NULL,
  `currency_decimal` int(11) NOT NULL COMMENT 'used in accounts',
  `exchange_rate` float NOT NULL,
  `isBaseCurrency` enum('Y','N') NOT NULL COMMENT 'column is not using now',
  `default_usage` enum('Y','N') NOT NULL DEFAULT 'N',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `customer_ledger_id` int(11) NOT NULL COMMENT 'master from erp_acc_ledger',
  `supplier_ledger_id` int(11) NOT NULL COMMENT 'master from erp_acc_ledger',
  `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;

--
-- Dumping data for table `erp_mas_currency`
--

INSERT INTO `erp_mas_currency` (`id`, `currency`, `currency_code`, `sub_label`, `currency_decimal`, `exchange_rate`, `isBaseCurrency`, `default_usage`, `isActive`, `customer_ledger_id`, `supplier_ledger_id`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'UAE Dirham', 'AED', '', 2, 1, 'Y', 'Y', 'Y', 0, 0, 1, 8, '2025-04-29 09:38:40', '2025-06-25 10:00:36'),
(2, 'US Dollar', 'USD', '', 2, 3.685, 'N', 'N', 'Y', 0, 0, 1, 8, '2025-04-29 12:11:46', '2025-05-05 10:34:26'),
(3, 'Euro', 'EUR', '', 2, 4.15, 'N', 'N', 'Y', 0, 0, 1, 1, '2025-04-30 03:41:39', '2025-05-01 09:21:07'),
(4, 'GBP', 'GBP', '', 0, 5.04, 'N', 'N', 'Y', 0, 0, 8, 0, '2025-05-05 05:49:48', '0000-00-00 00:00:00'),
(8, 'INR', 'INR', '', 0, 24.55, 'N', 'N', 'Y', 0, 0, 2, 0, '2025-12-19 12:07:09', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_mas_currency_exchange`
--

CREATE TABLE `erp_mas_currency_exchange` (
  `id` int(11) NOT NULL,
  `currency_code` varchar(50) NOT NULL,
  `AED` float NOT NULL,
  `USD` float NOT NULL,
  `Euro` float NOT NULL,
  `GHC` float NOT NULL,
  `GBP` float NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `INR` float DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_mas_currency_exchange`
--

INSERT INTO `erp_mas_currency_exchange` (`id`, `currency_code`, `AED`, `USD`, `Euro`, `GHC`, `GBP`, `isActive`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`, `INR`) VALUES
(1, 'AED', 1, 0.27, 0.25, 4.19, 0.21, 'Y', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 22.73),
(2, 'USD', 3.67, 1, 0.92, 15.38, 0.78, 'Y', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 83.72),
(3, 'Euro', 3.98, 1.08, 1, 16.65, 0.85, 'Y', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 90.65),
(4, 'GHC', 0.24, 0.065, 0.06, 1, 0.05, 'Y', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 5.38),
(5, 'GBP', 0.21, 1.28, 1.18, 19.65, 1, 'Y', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0),
(15, 'INR', 0.044, 0, 0, 0, 0, 'Y', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1);

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

--
-- Table structure for table `erp_mas_document_type`
--

CREATE TABLE `erp_mas_document_type` (
  `id` int(11) NOT NULL,
  `document_type` varchar(255) NOT NULL,
  `isDefault` 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_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_mas_document_type`
--

INSERT INTO `erp_mas_document_type` (`id`, `document_type`, `isDefault`, `isActive`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'Trade License', 'Y', 'Y', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(2, 'Statement of Accounts', 'N', 'Y', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(3, 'ICV Certificate', 'N', 'Y', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(4, 'VAT Certificate', 'N', 'Y', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(5, 'Credit application form', 'N', 'Y', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(6, 'Cheque Scan Copy', 'N', 'Y', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(7, 'Customer EID/Passport/Power of Attorney', 'N', 'Y', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(8, 'Others', 'N', 'Y', 1, 2, '2024-01-01 06:00:00', '2024-01-05 10:58:10'),
(9, 'DFB Documents', 'N', 'Y', 2, 0, '2024-01-19 12:05:57', '0000-00-00 00:00:00'),
(10, 'ISO Certificate', 'N', 'Y', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_mas_emirates_list`
--

CREATE TABLE `erp_mas_emirates_list` (
  `id` int(11) NOT NULL,
  `country_id` int(11) NOT NULL,
  `emirates_name` varchar(255) NOT NULL,
  `isDefault` enum('Y','N') NOT NULL DEFAULT 'N',
  `have_vat` enum('Y','N') NOT NULL DEFAULT 'Y',
  `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;

--
-- Dumping data for table `erp_mas_emirates_list`
--

INSERT INTO `erp_mas_emirates_list` (`id`, `country_id`, `emirates_name`, `isDefault`, `have_vat`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 130, 'Abu Dhabi', 'N', 'Y', 30, 0, '2020-10-05 10:00:00', '2020-10-05 10:00:00'),
(2, 130, 'Ajman', 'N', 'Y', 30, 0, '2020-10-05 10:00:00', '2020-10-05 10:00:00'),
(3, 130, 'Sharjah', 'N', 'Y', 30, 0, '2020-10-05 10:00:00', '2020-10-05 10:00:00'),
(4, 130, 'Dubai', 'Y', 'Y', 30, 0, '2020-10-05 10:00:00', '2020-10-05 10:00:00'),
(5, 130, 'Fujairah', 'N', 'Y', 30, 0, '2020-10-05 10:00:00', '2020-10-05 10:00:00'),
(6, 130, 'Umm Al Quwain', 'N', 'Y', 30, 0, '2020-10-05 10:00:00', '2020-10-05 10:00:00'),
(7, 130, 'Ras Al Khaimah', 'N', 'Y', 30, 0, '2020-10-05 10:00:00', '2020-10-05 10:00:00'),
(8, 130, 'Freezone', 'N', 'Y', 30, 0, '2020-10-05 10:00:00', '2020-10-05 10:00:00'),
(9, 130, 'Other', 'N', 'N', 30, 0, '2020-10-05 10:00:00', '2020-10-05 10:00:00');

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

--
-- Table structure for table `erp_mas_employee_type`
--

CREATE TABLE `erp_mas_employee_type` (
  `id` int(11) NOT NULL,
  `employee_type_name` varchar(255) NOT NULL,
  `da_per_hour` varchar(255) NOT NULL,
  `ot_per_hour` 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
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_mas_employee_type`
--

INSERT INTO `erp_mas_employee_type` (`id`, `employee_type_name`, `da_per_hour`, `ot_per_hour`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `isActive`) VALUES
(1, 'Trainee', '0', '0', 1, '2020-10-05 10:00:00', 1, '2020-10-05 10:00:00', 'Y'),
(2, 'Operator', '15', '15', 1, '2020-10-05 10:00:00', 1, '2020-10-05 10:00:00', 'Y'),
(3, 'Spray Man', '30', '30', 1, '2020-10-05 10:00:00', 0, '2020-10-05 10:00:00', 'Y');

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

--
-- Table structure for table `erp_mas_erp_notification`
--

CREATE TABLE `erp_mas_erp_notification` (
  `id` int(11) NOT NULL,
  `reference_no` varchar(100) NOT NULL,
  `user_ids` varchar(100) NOT NULL,
  `notes` text NOT NULL,
  `notification_type` int(11) NOT NULL,
  `notification_date_time` datetime NOT NULL,
  `status` enum('O','S','C') NOT NULL DEFAULT 'O',
  `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_mas_erp_notification`
--

INSERT INTO `erp_mas_erp_notification` (`id`, `reference_no`, `user_ids`, `notes`, `notification_type`, `notification_date_time`, `status`, `created_by`, `created_date_time`) VALUES
(7, 'REF123', '8,9', 'T1', 3, '2025-06-27 14:45:00', 'O', 1, '2025-06-26 17:41:30'),
(8, 'Ref124', '8', 'test', 1, '2025-06-27 14:30:00', 'C', 1, '2025-06-26 17:58:05'),
(9, '124', '8', 'Test', 3, '2025-07-01 13:38:00', 'C', 1, '2025-07-01 13:39:02'),
(10, '1456', '8', '..', 12, '2025-07-03 08:38:00', 'O', 1, '2025-07-03 08:38:48'),
(11, '778', '5,8', 'Issued from ', 14, '2025-07-03 08:41:00', 'O', 1, '2025-07-03 08:41:51'),
(12, 'BT101', '5', '..', 15, '2025-07-09 09:01:00', 'O', 5, '2025-07-09 09:01:58'),
(13, 'BT102', '5', 'BT', 6, '2025-07-09 09:04:00', 'O', 5, '2025-07-09 09:04:30'),
(14, 'BD100', '5,8,9', 'Delivery Pending', 6, '2025-07-09 09:12:00', 'C', 5, '2025-07-09 09:12:37'),
(15, '-', '8', 'T1', 7, '2025-07-09 09:55:00', 'C', 8, '2025-07-09 09:56:05'),
(16, 'REf001', '13', 'Testing', 2, '2025-09-29 14:27:00', 'C', 1, '2025-09-29 14:28:13'),
(17, 'REF001', '13', 'Added for testing', 9, '2025-12-08 09:20:00', 'C', 1, '2025-12-08 09:24:46'),
(18, 'REF00123', '13', 'added for testing', 4, '2025-12-08 12:08:00', 'C', 1, '2025-12-08 12:09:05'),
(19, 'REF00112', '13', 'notes added for quotations testing', 4, '2025-12-08 12:28:00', 'C', 1, '2025-12-08 12:29:33'),
(20, 'REF001233', '13', 'notes added', 4, '2025-12-08 14:18:00', 'C', 1, '2025-12-08 14:19:37'),
(21, 'REF00028', '13', 'notes added for testing purposes', 6, '2025-12-08 15:17:00', 'C', 1, '2025-12-08 15:18:46'),
(22, 'REF001', '13,9,7', 'notes added on 8 dec 2025', 2, '2025-12-08 15:27:00', 'O', 1, '2025-12-08 15:28:39'),
(23, 'REF001234', '13,7', 'dsfss', 2, '2025-12-08 16:53:00', 'O', 1, '2025-12-08 16:53:56'),
(24, 't12', '13,7', 'tEST  111111', 3, '2025-12-08 18:00:00', 'O', 1, '2025-12-08 16:56:40'),
(25, 'REF00178', '13', 'notes added', 3, '2025-12-09 17:30:00', 'C', 1, '2025-12-08 16:57:07'),
(26, '', '13', 'Notes added for testing', 0, '2025-12-09 07:17:00', 'C', 1, '2025-12-09 08:11:19'),
(27, '', '4,13', 'Notes added  for testing', 0, '2025-12-09 17:46:00', 'C', 1, '2025-12-09 17:47:20'),
(28, '', '13', '6Pm Notes', 0, '2025-12-09 18:00:00', 'C', 13, '2025-12-09 17:55:53'),
(29, '', '4,13,15', 'notification added for testing on dec 9th', 0, '2025-12-09 17:55:00', 'C', 1, '2025-12-09 17:56:15'),
(30, '', '4,13', 'notes added for testing', 0, '2025-12-09 17:58:00', 'C', 1, '2025-12-09 17:58:56'),
(31, '', '13', 'Test 6 05', 0, '2025-12-09 18:05:00', 'C', 1, '2025-12-09 18:00:31'),
(32, '', '13', 'TEst 8 PM', 0, '2025-12-09 20:00:00', 'C', 1, '2025-12-09 18:02:06'),
(33, '', '13', 'Notes added for testing', 0, '2025-12-09 08:00:00', 'C', 1, '2025-12-10 08:00:35'),
(34, '', '13', 'notes added for dec 10th 100pm', 0, '2025-12-10 22:00:00', 'C', 1, '2025-12-10 08:19:29'),
(35, '', '13', 'notes added for dec8:35 am', 0, '2025-12-10 08:35:00', 'C', 1, '2025-12-10 08:36:18'),
(36, '', '13', 'notes added for dec 9th 8:00pm', 0, '2025-12-09 08:37:00', 'C', 1, '2025-12-10 08:37:49'),
(37, '', '13', 'notes added at time 10:13 am', 0, '2025-12-10 08:43:00', 'C', 1, '2025-12-10 08:43:58'),
(38, '', '13', 'notes added for 8:31 am in calendar in dec 10th', 0, '2025-12-10 08:31:00', 'C', 1, '2025-12-10 08:45:43'),
(39, '', '13', 'added for testing on dec 10th 11:01am', 0, '2025-12-10 09:31:00', 'C', 1, '2025-12-10 09:31:39'),
(40, '', '13', 'added to notification comes after Dubai 10:31 am', 0, '2025-12-10 10:31:00', 'C', 1, '2025-12-10 09:33:08'),
(41, '', '13', 'notes added on 9:43am on 10th dec', 0, '2025-12-10 09:43:00', 'C', 1, '2025-12-10 09:43:36'),
(42, '', '4,13,15', 'adde for 10:43 am in Dubai', 0, '2025-12-10 10:43:00', 'O', 1, '2025-12-10 09:47:34'),
(43, '', '6', 'Shebin Test', 0, '2025-12-10 11:10:00', 'C', 1, '2025-12-10 11:02:10'),
(44, '', '4,13,15', 'notes added for testing 9:24 am dubai', 0, '2025-12-12 09:24:00', 'O', 8, '2025-12-12 09:14:23'),
(45, '', '13', 'tested at dubai time 9:17am', 0, '2025-12-12 09:17:00', 'O', 15, '2025-12-12 09:17:53'),
(46, '', '13', 'added for test at 9:21 am', 0, '2025-12-12 09:21:00', 'O', 1, '2025-12-12 09:21:44'),
(47, '', '2,17,16', 'Test Notification', 0, '2025-12-18 10:00:00', 'O', 2, '2025-12-18 09:10:13'),
(48, '', '2', 'Test 2', 0, '2025-12-18 10:45:00', 'O', 2, '2025-12-18 09:32:34'),
(49, '', '2,17', 'Testing on ', 0, '2025-12-18 10:30:00', 'O', 2, '2025-12-18 09:34:16'),
(50, '', '16', 'notes added', 0, '2025-12-18 09:36:00', 'O', 2, '2025-12-18 09:37:27'),
(51, '', '16', 'testing notification data', 0, '2025-12-18 09:56:00', 'O', 2, '2025-12-18 09:56:25'),
(52, '', '16', 'testing data for verification', 0, '2025-12-18 09:57:00', 'O', 2, '2025-12-18 09:57:31'),
(53, '', '17,16', 'Test Progress', 0, '2025-12-18 10:15:00', 'O', 2, '2025-12-18 10:03:03'),
(54, '', '17', 'Test 45', 0, '2025-12-18 10:03:00', 'O', 2, '2025-12-18 10:04:00'),
(55, '', '2', '2 PM Notification', 0, '2025-12-18 14:00:00', 'O', 2, '2025-12-18 10:17:45'),
(56, '', '2', 'Test 6PM', 0, '2025-12-18 18:00:00', 'O', 2, '2025-12-18 17:52:42');

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

--
-- Table structure for table `erp_mas_favourite`
--

CREATE TABLE `erp_mas_favourite` (
  `id` int(11) NOT NULL,
  `favourites` text 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;

--
-- Dumping data for table `erp_mas_favourite`
--

INSERT INTO `erp_mas_favourite` (`id`, `favourites`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(33, '{\"customer_add\":1,\"quotes_add\":1,\"order_add\":1,\"delivery_add\":1,\"invoice_add\":1,\"credit_add\":1,\"stock_view\":1,\"mov_issue_view\":1,\"mov_receipt_view\":1,\"vendor_add\":1,\"requisition_add\":1,\"enquiry_add\":1,\"purchase_order_add\":1,\"purchase_material_view\":1,\"purchase_qc_view\":1,\"purchase_invoice_view\":1,\"pur_debitnote_view\":1,\"report_sale_lead_view\":1,\"report_sale_quotes_view\":1,\"report_sale_order_view\":1,\"report_sale_delivery_view\":1,\"report_sale_invoice_view\":1,\"report_sale_creditnote_view\":1,\"report_sale_datewisesales_view\":1,\"report_sale_daybook_view\":1,\"report_sale_delivertoinvoice_view\":1,\"report_sale_grossprofit_view\":1,\"report_sale_ordertodeliver_view\":1,\"sales_items_by_brand\":1,\"report_sale_netsales_view\":1,\"report_currentstock_view\":1,\"report_directtransfer_view\":1,\"report_inv_stock_transn_view\":1,\"report_inv_transdetail_view\":1,\"report_inv_warehouse_stock\":1}', 8, 8, '2025-05-01 11:50:57', '2025-05-06 15:22:02'),
(34, '{\"sales_check_all\":1,\"customer_add\":1,\"quotes_add\":1,\"order_add\":1,\"delivery_add\":1,\"invoice_add\":1,\"credit_add\":1,\"sales_reports_view\":1,\"stock_view\":1,\"vendor_add\":1,\"purchase_order_add\":1,\"purchase_material_receipt_edit\":1,\"purchase_quality_check_edit\":1,\"purchase_invoice_edit\":1}', 1, 1, '2025-05-02 14:42:28', '2025-05-06 11:16:43');

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

--
-- Table structure for table `erp_mas_feature`
--

CREATE TABLE `erp_mas_feature` (
  `id` int(11) NOT NULL,
  `feature_desc` varchar(255) NOT NULL,
  `module` int(11) NOT NULL,
  `sub_module` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_mas_feature`
--

INSERT INTO `erp_mas_feature` (`id`, `feature_desc`, `module`, `sub_module`, `isActive`, `created_date_time`, `created_by`) VALUES
(1, 'Test', 1, 1, 'Y', '2025-12-18 10:36:10', 1),
(2, 'test', 1, 1, 'Y', '2025-12-18 11:38:32', 1),
(3, 'New Feature', 1, 1, 'Y', '2025-12-19 07:54:15', 1),
(4, 'test', 1, 1, 'Y', '2025-12-19 08:00:11', 1),
(5, 'description', 1, 1, 'Y', '2025-12-19 08:02:57', 1),
(6, 'description added for testing', 1, 1, 'Y', '2025-12-19 14:57:41', 1),
(7, 'Testing Sales Lead', 2, 8, 'Y', '2025-12-19 16:59:06', 1),
(8, 'Testing New Feature in Sale  Quotation', 2, 9, 'Y', '2025-12-19 17:03:49', 1),
(9, 'Purchase Section ', 1, 1, 'Y', '2025-12-19 17:37:21', 1),
(10, 'Sales Lead', 2, 8, 'Y', '2025-12-19 17:37:48', 1),
(11, 'New Features Added here', 9, 13, 'Y', '2025-12-19 17:51:15', 1),
(12, 'description added for masters module', 9, 13, 'Y', '2025-12-22 07:53:37', 1),
(13, 'Master Setting', 9, 13, 'Y', '2025-12-22 08:12:53', 1),
(14, 'Purchase Enquires', 1, 1, 'Y', '2025-12-22 08:25:29', 1),
(15, 'Deliver Note Details', 2, 10, 'Y', '2025-12-22 08:26:06', 1),
(16, 'Sales Invoice Details ', 2, 11, 'Y', '2025-12-22 08:26:46', 1),
(17, 'description added for it', 9, 13, 'Y', '2025-12-22 09:51:53', 1);

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

--
-- Table structure for table `erp_mas_feature_details`
--

CREATE TABLE `erp_mas_feature_details` (
  `id` int(11) NOT NULL,
  `feature_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `accept_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `accepted_date_time` datetime NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_mas_feature_details`
--

INSERT INTO `erp_mas_feature_details` (`id`, `feature_id`, `user_id`, `accept_status`, `accepted_date_time`, `created_date_time`) VALUES
(1, 1, 16, 'N', '0000-00-00 00:00:00', '2025-12-18 10:36:10'),
(2, 2, 2, 'Y', '2025-12-18 17:12:35', '2025-12-18 11:38:32'),
(3, 3, 2, 'Y', '2025-12-19 13:23:56', '2025-12-19 07:54:15'),
(4, 4, 16, 'N', '0000-00-00 00:00:00', '2025-12-19 08:00:11'),
(5, 5, 2, 'Y', '2025-12-19 13:23:52', '2025-12-19 08:02:57'),
(6, 6, 2, 'Y', '2025-12-19 16:54:00', '2025-12-19 14:57:41'),
(7, 7, 2, 'Y', '2025-12-20 09:27:54', '2025-12-19 16:59:06'),
(8, 8, 2, 'Y', '2025-12-20 09:27:50', '2025-12-19 17:03:49'),
(9, 9, 2, 'Y', '2025-12-20 09:27:47', '2025-12-19 17:37:21'),
(10, 10, 2, 'Y', '2025-12-20 09:27:44', '2025-12-19 17:37:48'),
(11, 11, 2, 'Y', '2025-12-20 09:27:41', '2025-12-19 17:51:15'),
(12, 12, 2, 'Y', '2025-12-22 08:00:35', '2025-12-22 07:53:37'),
(13, 12, 16, 'N', '0000-00-00 00:00:00', '2025-12-22 07:53:37'),
(14, 12, 17, 'N', '0000-00-00 00:00:00', '2025-12-22 07:53:37'),
(15, 13, 2, 'Y', '2025-12-22 09:23:16', '2025-12-22 08:12:53'),
(16, 14, 2, 'Y', '2025-12-22 09:23:16', '2025-12-22 08:25:29'),
(17, 15, 2, 'Y', '2025-12-22 09:23:16', '2025-12-22 08:26:06'),
(18, 16, 2, 'Y', '2025-12-22 09:23:16', '2025-12-22 08:26:46'),
(19, 17, 2, 'Y', '2025-12-23 09:08:00', '2025-12-22 09:51:53'),
(20, 17, 16, 'N', '0000-00-00 00:00:00', '2025-12-22 09:51:53'),
(21, 17, 17, 'N', '0000-00-00 00:00:00', '2025-12-22 09:51:53');

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

--
-- Table structure for table `erp_mas_feature_module`
--

CREATE TABLE `erp_mas_feature_module` (
  `id` int(11) NOT NULL,
  `module` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `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_mas_feature_module`
--

INSERT INTO `erp_mas_feature_module` (`id`, `module`, `isActive`, `created_by`, `created_date_time`) VALUES
(1, 'lead', 'Y', 1, '2025-12-11 07:33:48');

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

--
-- Table structure for table `erp_mas_feature_submodule`
--

CREATE TABLE `erp_mas_feature_submodule` (
  `id` int(11) NOT NULL,
  `feature_desc` text NOT NULL,
  `module` varchar(255) NOT NULL,
  `sub_module` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `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_mas_feature_submodule`
--

INSERT INTO `erp_mas_feature_submodule` (`id`, `feature_desc`, `module`, `sub_module`, `isActive`, `created_by`, `created_date_time`) VALUES
(1, 'lead order', 'lead', 'order', 'Y', 1, '2025-12-11 07:33:48');

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

--
-- Table structure for table `erp_mas_footer_items`
--

CREATE TABLE `erp_mas_footer_items` (
  `id` int(11) NOT NULL,
  `sales_purchase_type` int(11) NOT NULL COMMENT '1-sales,2-Purchase',
  `account_id` int(11) NOT NULL DEFAULT 0 COMMENT 'fin_accont_id',
  `subledger_id` int(11) DEFAULT 0,
  `item_type` int(11) NOT NULL COMMENT '1-Addition, 2- Deduction',
  `item_name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `tax_id` int(11) NOT NULL,
  `isActive` enum('Y','N') 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_mas_footer_items`
--

INSERT INTO `erp_mas_footer_items` (`id`, `sales_purchase_type`, `account_id`, `subledger_id`, `item_type`, `item_name`, `description`, `tax_id`, `isActive`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 2, 643, NULL, 1, 'Transport Charges', 'Transport Charges - PA', 1, 'Y', 30, '2020-10-05 10:00:00', 1, '2025-12-19 03:49:06'),
(2, 2, 642, NULL, 1, 'Customs Duties', 'Customs Duties - PA', 1, 'Y', 30, '2020-10-05 10:00:00', 1, '2025-12-19 03:48:52'),
(3, 2, 439, NULL, 2, 'Discount', 'Discount - PD', 1, 'Y', 30, '2020-10-05 10:00:00', 2, '2025-12-19 17:22:02'),
(4, 2, 0, NULL, 2, 'Round Off', 'Round Off - PD', 1, 'Y', 30, '2020-10-05 10:00:00', 30, '2020-10-05 10:00:00'),
(5, 1, 0, NULL, 1, 'Transport Charges', 'Transport Charges - SA', 1, 'Y', 30, '2020-10-05 10:00:00', 1, '2025-12-19 03:14:23'),
(6, 1, 0, NULL, 1, 'Bank Charges', 'Bank Charges - SA', 1, 'Y', 30, '2020-10-05 10:00:00', 2, '2023-12-16 12:05:28'),
(7, 1, 0, NULL, 1, 'Customs Duties', 'Customs Duties - SA', 1, 'Y', 30, '2020-10-05 10:00:00', 1, '2025-12-19 03:13:41'),
(8, 1, 0, NULL, 1, 'Handling Charges', 'Handling Charges - SA', 1, 'Y', 30, '2020-10-05 10:00:00', 30, '2020-10-05 10:00:00'),
(9, 1, 231, NULL, 2, 'Discount', 'Discount - SD', 1, 'Y', 30, '2020-10-05 10:00:00', 2, '2025-12-19 17:22:09'),
(10, 1, 0, NULL, 2, 'Project & Special Discount', 'Project & Special Discount - SD', 1, 'Y', 30, '2020-10-05 10:00:00', 30, '2020-10-05 10:00:00'),
(11, 1, 0, NULL, 1, 'Round Off', 'Round  off - SA', 1, 'Y', 30, '2020-10-05 10:00:00', 0, '2020-10-05 10:00:00'),
(12, 2, 0, 0, 1, 'VAT', 'VAT', 1, 'Y', 30, '2020-10-05 10:00:00', 0, '2020-10-05 10:00:00'),
(13, 2, 513, NULL, 1, 'Delivery Charges', 'Charges', 1, 'Y', 1, '2020-10-05 10:00:00', 1, '2025-12-19 04:31:55'),
(14, 2, 0, 0, 1, 'Round Off', 'Round off', 1, 'Y', 1, '2020-10-05 10:00:00', 1, '2020-10-05 10:00:00'),
(15, 1, 0, 0, 2, 'Handling Charges', 'Handling Charges', 1, 'Y', 1, '2020-10-05 10:00:00', 0, '2020-10-05 10:00:00'),
(16, 1, 0, 0, 1, 'Without tax Transport', '', 2, 'Y', 1, '0000-00-00 00:00:00', 0, '2020-11-06 04:02:49');

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

--
-- Table structure for table `erp_mas_fragrance`
--

CREATE TABLE `erp_mas_fragrance` (
  `id` int(11) NOT NULL,
  `name` varchar(500) NOT NULL,
  `code` varchar(255) 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_mas_fragrance`
--

INSERT INTO `erp_mas_fragrance` (`id`, `name`, `code`, `isActive`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(202, 'BATEERY AA', '5555', 'Y', 2, '2022-04-06 09:41:07', 0, '0000-00-00 00:00:00'),
(201, 'BATTERY D', '4444', 'Y', 2, '2022-04-06 09:40:53', 0, '0000-00-00 00:00:00'),
(200, 'GARDANIA AUTOKLEEN', '333', 'Y', 2, '2022-04-06 09:40:35', 0, '0000-00-00 00:00:00'),
(199, 'KENADIA', '222', 'Y', 2, '2022-04-06 09:40:10', 0, '0000-00-00 00:00:00'),
(9, 'AMBER PASSION ', 'AP', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(10, 'AMBI CORAL', 'AC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(11, 'ANTI VIRAL ', 'AV', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(12, 'ARABIAN RANCHES', 'AR', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(13, 'ARMANI ', 'ARM', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(14, 'BAKERY ', 'BAK', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(15, 'BAMBOO ', 'BAM', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(16, 'BASIL ', 'BAS', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(17, 'BERRY ', 'BE', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(18, 'BLACK  JASMINE ', 'BJ', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(19, 'CANELA', 'CAN', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(20, 'CHINEESE GOOSBERY ', 'CHG', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(21, 'CITRONELA ', 'CIT', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(22, 'COFFEE VANILLA ', 'CV', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(23, 'CORAL ANTISMOKE VANILLA FLORAL 5 LTR', 'CAV', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(24, 'CORALINE ', 'COR', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(25, 'DETOXIFYING ', 'DE', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(26, 'ENCENS NOBLE ', 'EN', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(27, 'ENGLISH PEAR', 'ENP', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(28, 'ESCANDER ', 'ESC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(29, 'EUCALYPTUS ', 'EU', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(30, 'FOREST MIST  ', 'FM', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(31, 'GINGER ', 'GI', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(32, 'GINGERBREAD ', 'GIB', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(33, 'GOLD ', 'GO', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(34, 'GRASS CORAL', 'GC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(35, 'GREEN TEA', 'GT', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(36, 'VERSACE  ', 'VE', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(37, 'INSPIRED 1 ', 'IN1', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(38, 'JASMINE ', 'JA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(39, 'JASMINE PETAL ', 'JAP', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(40, 'LAVENDER LINEN ', 'LAL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(41, 'LEATHER TOUCH ', 'LT', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(42, 'LEMON AIRSHIELD', 'LEA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(43, 'LEMON FRESH  ', 'LF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(44, 'LEMON GRASS ', 'LG', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(45, 'LUXURY', 'LU', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(46, 'MALAKI ', 'MAL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(47, 'MT ORIENTAL', 'MT', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(48, 'BULGARI', 'BU', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(49, 'ORANGE PLUS CINNAMON ', 'OPC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(50, 'OUD MISTERY ', 'OM', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(51, 'OZONE FRESH 2', 'OF2', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(52, 'OZONE FRESH ', 'OF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(53, 'PASSION LOVE ', 'PL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(54, 'PREMIUM LEATHER ', 'PLR', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(55, 'SAJWANI ', 'SAJ', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(56, 'SHY OUD ', 'SO', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(57, 'SOTOBOSQUE ', 'SOB', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(58, 'STRAWBERRY ', 'ST', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(59, 'TOSCANO ', 'TOS', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(60, 'TOUCH ME DIFFUSER  ', 'TOM', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(61, 'VANILA FLORAL ', 'VF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(62, 'VANILA MIX', 'VM', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(63, 'VETIVER AND CEDARWOOD', 'VAC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(64, 'WALK IN THE WOOD FRAGRANCE ', 'WIW', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(65, 'WHITE TEA AF ', 'WTAF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(66, 'WHITE TEA', 'WTA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(67, 'WOOD ', 'W', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(68, 'LEMON LCV  ', 'LEL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(69, 'AMERICANO COFFEE ', 'AMC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(70, 'APPLE FRESH ', 'AF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(71, 'ARABIC COFFEE ', 'ARC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(72, 'ASPIRE BLUE CITRUS ', 'ABC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(73, 'AUCIEL ', 'AU', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(74, 'BLACK ORCHID', 'BO', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(75, 'BLACK TEA & JASMINE ', 'BTJ', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(76, 'CEDRE PRECIOUS WOOD', 'CPW', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(77, 'CHAMIL ', 'CHA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(78, 'CINNAMON ', 'CIN', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(79, 'COFFEE ESPRESSO ', 'CEE', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(80, 'COFFEE ', 'COF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(81, 'COFFEE POWDER', 'COP', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(82, 'CORAL PL ', 'CP', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(83, 'DAISY ', 'DA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(84, 'ADDRESS  ', 'ADD', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(85, 'ENCENS ', 'ENC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(86, 'FOR YOU ', 'FU', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(87, 'FRANGIPANI', 'FRA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(88, 'FRESH LINEN ', 'FL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(89, 'GINGER BREAD ', 'GB', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(90, 'GOLDEN DUST ', 'GD', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(91, 'GRAPEFRUIT GREEN TEA ', 'GRA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(92, 'GREEN FOREST', 'GF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(93, 'GREEN TEA CITRUS', 'GTC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(94, 'HALE ', 'HA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(95, 'HARMONY', 'HAR', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(96, 'INTERCARE MALAKI ', 'INM', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(97, 'LAVENDER ', 'LAV', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(98, 'LEMOMGRASS ', 'LEG', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(99, 'LEMON PET ', 'LEP', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(100, 'LEMONGRASS (REZA) ', 'LER', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(101, 'MAGIC AMBER ', 'MAG', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(102, 'MENTHE', 'MEN', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(103, 'MUKALATH', 'MUK', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(104, 'MYSTERIOUS OUD ', 'MYS', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(105, 'OCEAN BREEZE ', 'OB', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(106, 'ORCHID ', 'OR', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(107, 'OUD VLCV ', 'OUV', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(108, 'PACHOULI ', 'PA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(109, 'PASSION C ', 'PAC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(110, 'PASSION P ', 'PAP', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(111, 'POMEGRANATE', 'POM', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(112, 'RAINFOREST ', 'RAF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(113, 'RICHMAN ', 'RIC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(114, 'ROOIBOS ', 'ROO', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(115, 'ROSE ', 'ROS', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(116, 'ROSE SANDAL WOOD  ', 'ROSW', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(117, 'RUBY BOSS ', 'RUB', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(118, 'SCARLET', 'SC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(119, 'SENSE ', 'SEN', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(120, 'SENSUALITY ', 'SENS', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(121, 'SHEIKAH ', 'SH', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(122, 'SPICY OUD ', 'SP', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(123, 'SUGAR VANILLA ', 'SUV', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(124, 'SUPREME LEATHER ', 'SUL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(125, 'SWEET CHRISTMAS', 'SWC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(126, 'SWEET MELON ', 'SWM', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(127, 'TEA ROSE ', 'TE', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(128, 'TOUCH ME ', 'TOU', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(129, 'WHITE LILY ', 'WHL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(130, 'WHITE TEA ', 'WHT', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(131, 'WOOD CORAL ', 'WO', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(132, 'ZINGARA ', 'ZI', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(133, 'BAKHOUR ', 'BAKR', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(134, 'CHOCOLATE ', 'CHO', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(135, 'EVENT', 'EV', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(136, 'FRESH GRASS ', 'FRG', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(137, 'GREEN APPLE ', 'GR', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(138, 'JASMINE FULL - ', 'JAFU', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(139, 'MINT ', 'MI', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(140, 'ORANGE PEEL ', 'ORP', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(141, 'PINK CORAL ', 'PIC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(142, 'ROSE 1 ', 'RO1', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(143, 'ROSE AMD ', 'ROA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(144, 'SANDALWOOD 2 ', 'SAN2', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(145, 'VANILLA FLORAL ', 'VA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(146, 'CALM ', 'CAL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(147, 'RICHI ', 'RI', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(148, 'GREEN FOREST AROMA GUARD - ANTISMOKE 5LTR', 'GRF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(149, 'ANTISMOKE GINGER 5 LTR', 'ANG', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(150, 'MALL OF THE EMIRATES ', 'MALL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(151, 'BACCARAT ROUGE ', 'BARE', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(152, 'SANDAL ', 'SA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(153, 'CEDAR & FIR FOREST ', 'CEF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(154, 'TRADITION', 'TR', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(155, 'FIRE FOREST ', 'FI', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(156, 'MOTIVATION', 'MO', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(157, 'PINK CORAL ANTI-SMOKE 5L', 'PICA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(158, 'FRESH LINEN ANTI-SMOKE 5L', 'FRL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(159, 'CREATION', 'CR', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(160, 'FOUR SEASON ', 'FO', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(161, 'SILVER HILL ', 'SIH', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(162, 'LEMON ', 'LEN', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(163, 'ORANGETTE ', 'ORA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(164, 'COCO & OUD ', 'COC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(165, 'GREEN TEA P ', 'GRT', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(166, 'CINNAMON BARK', 'CIB', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(167, 'THY ROSE ', 'THR', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(168, 'JASMINE FLORAL ', 'JAFL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(169, 'JUNGLE PAPAYA ', 'JU', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(170, 'THE ADDRESS ', 'THA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(171, 'BURJ KHALIFA ', 'BUK', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(172, 'ANTISMOKE FRANGIPANI 5 LTR', 'ANF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(173, 'ROSE GOLD ', 'ROG', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(174, 'HINOKI ', 'HI', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(175, 'PRECIOUS ROSEWOOD ', 'PR', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(176, 'PINE ', 'PI', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(177, 'LEMON GRASS', 'LE', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(178, 'GINGER LIME ', 'GIL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(179, 'OUD IMMORTAL ', 'OUI', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(180, 'BLACK AMBER TEA ', 'BL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(181, 'WHITE TEA &THYME ', 'WHTT', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(182, 'WHITE TEA & FIG ', 'WHTF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(183, 'LAVENDER BREEZE ', 'LAB', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(184, 'MANDARIN GRAPEFRUIT', 'MAN', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(185, 'GARDENIA ', 'GA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(186, 'OUDH AIR ', 'OUA', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(187, 'SUMMER', 'SUM', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(188, 'TULIP ', 'TU', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(189, 'SILK TREE ', 'SI', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(190, 'ECO MARINE ', 'EC', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(191, 'THE LOCATION ', 'THL', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(192, 'GRAND ORIENTAL ', 'GRO', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(193, 'FRANGIPANI GOLD  FRAGRANCE OIL 500ML', 'FRF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(194, 'TORENT  ', 'TOR', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(195, 'CAFE ', 'CAF', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(196, 'AZIZ', 'AZ', 'Y', 1, '2022-04-02 00:00:00', 2, '2022-04-02 12:21:24'),
(197, 'AQUATIC FRESHNESS', 'AQ', 'Y', 1, '2022-04-02 00:00:00', 1, '2022-04-02 00:00:00'),
(198, 'WHITE JASMINE ', 'WJ', 'Y', 2, '2022-04-04 16:34:38', 2, '2022-04-04 17:04:29'),
(203, 'BATTERY C', '6666', 'Y', 2, '2022-04-06 09:41:19', 0, '0000-00-00 00:00:00'),
(204, 'DURACELL ', '7777', 'Y', 2, '2022-04-06 09:41:35', 0, '0000-00-00 00:00:00'),
(205, 'VANILA  AEROSOL 250', 'VANILA ', 'Y', 2, '2022-04-06 15:08:33', 0, '0000-00-00 00:00:00'),
(206, 'AQUA AEROSOL 250', 'AQ1', 'Y', 2, '2022-04-06 15:09:27', 0, '0000-00-00 00:00:00'),
(207, 'LAVENDER AEROSOL 250 ', 'DDDD', 'Y', 2, '2022-04-06 15:09:40', 0, '0000-00-00 00:00:00'),
(208, 'CITRUS AEROSOL 250', 'EEEEEE', 'Y', 2, '2022-04-06 15:09:56', 0, '0000-00-00 00:00:00'),
(209, 'RASBERRY AEROSOL 250', 'ER3R', 'Y', 2, '2022-04-06 15:10:25', 0, '0000-00-00 00:00:00'),
(210, 'JASMINE JD', 'fef ', 'Y', 2, '2022-04-08 14:18:13', 2, '2022-04-08 14:18:41'),
(211, 'PASSION 100 ML ', 'FEFEF', 'Y', 2, '2022-04-23 11:27:04', 0, '0000-00-00 00:00:00'),
(212, 'FUSION 100 ML ', 'E3E', 'Y', 2, '2022-04-23 11:27:14', 0, '0000-00-00 00:00:00'),
(213, 'MOTIVATION 100ML', '3E3', 'Y', 2, '2022-04-23 11:27:26', 0, '0000-00-00 00:00:00'),
(214, 'TRADITION 100ML ', 'WQED', 'Y', 2, '2022-04-23 11:27:39', 0, '0000-00-00 00:00:00'),
(215, 'ILLUSION 100ML', '3DFF', 'Y', 2, '2022-04-23 11:27:54', 0, '0000-00-00 00:00:00'),
(216, 'DANAT AL EMARAT', 'FFFFFF', 'Y', 2, '2022-05-25 10:16:14', 0, '0000-00-00 00:00:00'),
(217, 'Coral Aroma Fragrance Oil ', 'Coral Fragrance Supply', 'Y', 2, '2022-07-18 10:32:26', 2, '2022-11-18 09:07:42'),
(218, 'LOVER AEROSOL', 'FAGLOVER', 'Y', 2, '2022-08-01 14:25:53', 2, '2022-08-01 14:28:27'),
(219, 'ADNOC SIGNATURE', 'ADNSC', 'Y', 2, '2022-08-03 12:43:06', 0, '0000-00-00 00:00:00'),
(220, 'RAMADA LOBBY', 'RAMFRG', 'Y', 2, '2022-08-08 15:47:41', 0, '0000-00-00 00:00:00'),
(221, 'CORAL AROMA P5000\r\nProduct size :230*180*165mm\r\nPower: 31 W\r\nVoltage :220V\r\nCoverage :5000 m3\r\nOil consumption :6ml/hr', '05645965f', 'Y', 2, '2022-09-14 14:05:09', 0, '0000-00-00 00:00:00'),
(222, 'OUD AROMA 250 ML', 'AER', 'Y', 2, '2022-09-14 16:59:37', 0, '0000-00-00 00:00:00'),
(223, 'DISPENSER REFILL', 'ASLFRAG', 'Y', 2, '2022-09-20 13:51:28', 2, '2022-10-20 14:02:51'),
(224, 'TURBO DC ', 'DFFF', 'Y', 2, '2022-11-18 12:05:35', 0, '0000-00-00 00:00:00'),
(225, 'Urinal Screen', 'URNSCRE', 'Y', 2, '2022-12-13 12:47:21', 0, '0000-00-00 00:00:00'),
(226, 'Coral Aroma Fragrance Oil - 5 Liter', 'FRAG5', 'Y', 2, '2023-02-14 11:13:25', 2, '2025-07-07 15:18:21'),
(227, 'Coral Room Freshener 500Ml ', 'ROOM', 'Y', 2, '2023-02-15 14:56:10', 2, '2023-07-08 11:01:02'),
(228, 'Aerosol Refill', 'ARFL', 'Y', 2, '2023-02-15 18:04:40', 0, '0000-00-00 00:00:00'),
(229, 'AEROMAX PLUS\r\n\r\nWeight: 1 Kg\r\nPower: 1.2 W / D Battery\r\nCapacity: 500ml\r\nCoverage: 150m3\r\n\r\n', 'ARMPLUS', 'Y', 2, '2023-03-13 14:48:12', 2, '2023-03-13 14:53:11'),
(230, 'Scented Candle', 'CACANDLE', 'Y', 2, '2023-04-19 14:41:42', 2, '2023-05-24 09:05:43'),
(231, 'REED DIFFUSER\r\n\r\n* Bottle & Cap\r\n* Oil ( 200ml )\r\n* Reed Sticks ( 5 )', 'Reed200', 'Y', 2, '2023-05-10 13:59:40', 0, '0000-00-00 00:00:00'),
(232, 'secret', 'vdv', 'Y', 2, '2023-06-03 12:03:12', 0, '0000-00-00 00:00:00'),
(233, 'BUKAVO', 'FRAGBUK', 'Y', 2, '2023-07-24 12:36:38', 2, '2023-07-24 12:36:50'),
(234, 'Refill and maintenance of the Coral Aroma machine monthly.\r\n\r\n*Oil will be provided by client\r\n*Monthly refills and machine maintenance will be provided.', 'RM001', 'Y', 2, '2024-09-19 15:08:56', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_mas_inco_term`
--

CREATE TABLE `erp_mas_inco_term` (
  `id` int(11) NOT NULL,
  `inco_name` varchar(225) NOT NULL,
  `isDefault` enum('Y','N') NOT NULL DEFAULT 'N',
  `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_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_mas_inco_term`
--

INSERT INTO `erp_mas_inco_term` (`id`, `inco_name`, `isDefault`, `isActive`, `created_by`, `created_datetime`, `updated_by`, `updated_date_time`) VALUES
(1, 'EXW (Ex Works)', 'Y', 'Y', 8, '2025-05-29 12:15:18', 0, '0000-00-00 00:00:00'),
(2, 'FCA (Free Carrier)', 'N', 'Y', 8, '2025-05-29 12:23:03', 0, '0000-00-00 00:00:00'),
(3, 'CPT (Carriage Paid To)', 'N', 'Y', 8, '2025-05-29 12:23:13', 0, '0000-00-00 00:00:00'),
(4, 'CIP (Carriage and Insurance Paid To)', 'N', 'Y', 8, '2025-05-29 12:23:22', 0, '0000-00-00 00:00:00'),
(5, 'DAP (Delivered at Place)', 'N', 'Y', 8, '2025-05-29 12:23:31', 0, '0000-00-00 00:00:00'),
(6, 'DPU (Delivered at Place Unloaded)', 'N', 'Y', 8, '2025-05-29 12:23:40', 0, '0000-00-00 00:00:00'),
(7, 'DDP (Delivered Duty Paid)', 'N', 'Y', 8, '2025-05-29 12:23:49', 0, '0000-00-00 00:00:00'),
(8, 'FAS (Free Alongside Ship)', 'N', 'Y', 8, '2025-05-29 12:23:59', 0, '0000-00-00 00:00:00'),
(9, 'FOB (Free On Board)', 'N', 'Y', 8, '2025-05-29 12:24:07', 0, '0000-00-00 00:00:00'),
(10, 'CFR (Cost and Freight)', 'N', 'Y', 8, '2025-05-29 12:24:21', 0, '0000-00-00 00:00:00'),
(11, 'CIF (Cost, Insurance and Freight)', 'N', 'Y', 8, '2025-05-29 12:24:31', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_mas_industry`
--

CREATE TABLE `erp_mas_industry` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `is_base_industry` enum('Y','N') NOT NULL DEFAULT 'N',
  `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;

--
-- Dumping data for table `erp_mas_industry`
--

INSERT INTO `erp_mas_industry` (`id`, `name`, `description`, `isActive`, `is_base_industry`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'Clinics', 'EPC', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(2, 'Pharmacy', 'Fire Proofing', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(3, 'Private Hospitals', 'Grouting', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(4, 'Veterinary Trading', 'Marine', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(5, 'Schools', 'Material Mfg', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(6, 'Colleges', 'Mining', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(7, 'Universities', 'Piling', 'Y', 'Y', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(8, 'Plastering', 'Plastering', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(9, 'Screeding', 'Screeding', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(10, 'Shotcrete / Gunite', 'Shotcrete / Gunite', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(11, 'Traders', 'Trader', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(12, 'General Stores', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(13, 'Others', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(14, 'Public Hospitals', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(15, 'Veterinary Clinic', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(16, 'Veterinary Pharmacy', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(17, 'Beauty Center', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(18, 'Medical Center', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(19, 'Website Order - Customer', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(20, 'Government', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(21, 'E-Commerce', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(22, 'International Customer', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(23, 'Hotels', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(24, 'Semi Government', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(25, 'Construction Company', '', 'Y', 'N', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(28, 'Studios', '', 'Y', 'N', 8, 0, '2025-05-26 09:20:22', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_mas_inventory_item_type`
--

CREATE TABLE `erp_mas_inventory_item_type` (
  `id` int(11) NOT NULL,
  `item_type` varchar(50) NOT NULL,
  `ledger_id` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `isDefault` 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,
  `income_ledger_id` int(11) NOT NULL,
  `inventory_ledger_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_mas_inventory_item_type`
--

INSERT INTO `erp_mas_inventory_item_type` (`id`, `item_type`, `ledger_id`, `isActive`, `isDefault`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `income_ledger_id`, `inventory_ledger_id`) VALUES
(1, 'Finished Goods', 610, 'Y', 'Y', 0, '2025-04-30 06:33:44', 2, '2025-12-19 05:09:49', 232, 132),
(2, 'Service', 233, 'Y', 'N', 0, '2025-04-30 06:33:44', 1, '2025-05-01 12:12:20', 0, 0),
(3, 'Raw Material', 609, 'Y', 'N', 0, '2025-04-30 06:34:14', 2, '2025-12-19 05:09:09', 233, 559),
(4, 'Equipments', 0, 'Y', 'N', 0, '2025-04-30 06:34:14', 0, '2025-04-30 06:34:14', 0, 0);

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

--
-- Table structure for table `erp_mas_inventory_stock_adjustment_type`
--

CREATE TABLE `erp_mas_inventory_stock_adjustment_type` (
  `id` int(11) NOT NULL,
  `description` varchar(255) NOT NULL,
  `code` varchar(25) NOT NULL,
  `type` enum('N','R','I') NOT NULL COMMENT 'N=none ,R = receipt, I =issue',
  `ledger_id` int(11) NOT NULL,
  `subledger_id` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `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;

--
-- Dumping data for table `erp_mas_inventory_stock_adjustment_type`
--

INSERT INTO `erp_mas_inventory_stock_adjustment_type` (`id`, `description`, `code`, `type`, `ledger_id`, `subledger_id`, `isActive`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'Job Order', 'N', 'I', 0, 0, 'Y', 1, 0, '2023-02-02 10:06:38', '0000-00-00 00:00:00'),
(2, 'Damage', 'D', 'I', 409, 0, 'Y', 1, 2, '2023-02-02 10:06:46', '2023-02-28 03:29:06'),
(3, 'Near Expiry', 'E', 'I', 0, 0, 'N', 1, 0, '2023-02-02 10:06:55', '0000-00-00 00:00:00'),
(4, 'Missing', 'M', 'I', 424, 0, 'N', 1, 2, '2023-02-02 10:07:01', '2023-04-03 11:40:18'),
(5, 'Loss', 'L', 'I', 0, 0, 'N', 1, 0, '2023-02-02 10:07:08', '0000-00-00 00:00:00'),
(6, 'Sample', 'S', 'I', 387, 0, 'N', 1, 2, '2023-02-02 10:07:16', '2023-02-28 03:22:57'),
(7, 'Job Order', 'N', 'R', 0, 0, 'Y', 1, 1, '2023-02-02 02:46:51', '2023-02-02 03:19:48'),
(8, 'Damage', 'D', 'R', 0, 0, 'Y', 1, 0, '2023-02-02 02:47:10', '0000-00-00 00:00:00'),
(9, 'Near Expiry', 'E', 'R', 0, 0, 'N', 1, 0, '2023-02-02 02:47:32', '0000-00-00 00:00:00'),
(10, 'Production Order', 'PRO', 'R', 0, 0, 'N', 1, 0, '2023-02-02 02:47:44', '0000-00-00 00:00:00'),
(11, 'Loss', 'L', 'R', 0, 0, 'Y', 1, 0, '2023-02-02 02:47:57', '0000-00-00 00:00:00'),
(12, 'Sample', 'S', 'R', 0, 0, 'N', 1, 1, '2023-02-02 02:52:25', '2023-02-02 03:02:17'),
(13, 'Production Order', 'PR', 'I', 0, 0, 'Y', 1, 0, '2023-02-02 02:47:44', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_mas_invoice_status`
--

CREATE TABLE `erp_mas_invoice_status` (
  `id` int(11) NOT NULL,
  `status` varchar(255) NOT NULL,
  `status_code` varchar(2) NOT NULL,
  `isDefault` enum('Y','N') NOT NULL DEFAULT 'N',
  `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_mas_invoice_status`
--

INSERT INTO `erp_mas_invoice_status` (`id`, `status`, `status_code`, `isDefault`, `isActive`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'InvoiceCreated', 'O', 'Y', 'Y', 1, '2021-06-11 00:00:00', 3, '2022-05-30 05:07:28'),
(2, 'Delayed', 'D', 'N', 'Y', 1, '2021-06-28 00:00:00', 1, '2021-07-08 10:25:27'),
(13, 'Closed', 'C', 'N', 'Y', 2, '2023-12-16 11:49:49', 0, '0000-00-00 00:00:00'),
(6, 'Not Paid', 'N', 'N', 'Y', 3, '2022-05-30 05:06:08', 0, '0000-00-00 00:00:00'),
(7, 'Waiting for Delivery ', 'D', 'N', 'Y', 3, '2022-05-30 05:07:05', 0, '0000-00-00 00:00:00'),
(10, 'test1', 't', 'N', 'Y', 1, '2023-09-01 10:12:01', 1, '2023-09-04 01:38:02');

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

--
-- Table structure for table `erp_mas_invoice_type`
--

CREATE TABLE `erp_mas_invoice_type` (
  `id` int(11) NOT NULL,
  `inv_type` varchar(255) NOT NULL,
  `inv_name` varchar(255) NOT NULL,
  `tax` enum('Y','N') NOT NULL DEFAULT 'Y',
  `account_no` int(11) NOT NULL COMMENT 'primary key of crm_fin_accounts',
  `sales_purchase_account_no` int(11) NOT NULL,
  `inv_code` varchar(255) NOT NULL,
  `start_serial_no` int(11) NOT NULL,
  `current_serial_no` int(11) NOT NULL,
  `cn_start_serial_no` int(11) NOT NULL,
  `cn_current_serial_no` int(11) NOT NULL,
  `warehouse_id` varchar(255) NOT NULL,
  `is_default` enum('Y','N') NOT NULL DEFAULT 'N',
  `default_code` enum('','PL','SL') NOT NULL COMMENT 'PL->Purchase Local,SL->Sales Local',
  `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;

--
-- Dumping data for table `erp_mas_invoice_type`
--

INSERT INTO `erp_mas_invoice_type` (`id`, `inv_type`, `inv_name`, `tax`, `account_no`, `sales_purchase_account_no`, `inv_code`, `start_serial_no`, `current_serial_no`, `cn_start_serial_no`, `cn_current_serial_no`, `warehouse_id`, `is_default`, `default_code`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'sales', 'Taxable 5%', 'Y', 0, 0, 'TI', 500001, 500001, 200001, 0, '1,2', 'Y', '', 30, 30, '2020-10-05 10:00:00', '2020-10-05 10:00:00'),
(2, 'sales', 'Non - Taxable', 'N', 0, 0, 'NT', 800001, 800001, 300001, 0, '1,2', 'N', '', 30, 30, '2020-10-05 10:00:00', '2020-10-05 10:00:00'),
(4, 'purchase', 'Taxable 5%', 'Y', 0, 0, 'PL', 200001, 0, 800001, 800078, '0', 'Y', '', 30, 30, '2020-10-05 10:00:00', '2020-10-05 10:00:00'),
(6, 'purchase', 'Non - Taxable', 'N', 0, 0, 'PI', 300001, 0, 500001, 500001, '1', 'N', '', 30, 30, '2020-10-05 10:00:00', '2020-10-05 10:00:00');

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

--
-- Table structure for table `erp_mas_inv_bin`
--

CREATE TABLE `erp_mas_inv_bin` (
  `id` int(11) NOT NULL,
  `bin_name` varchar(255) DEFAULT NULL,
  `rack_id` int(11) DEFAULT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `is_base_bin` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) NOT NULL DEFAULT 0,
  `created_datetime` datetime DEFAULT NULL,
  `updated_datetime` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_mas_inv_bin`
--

INSERT INTO `erp_mas_inv_bin` (`id`, `bin_name`, `rack_id`, `isActive`, `is_base_bin`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'Bin A', 1, 'Y', 'Y', 8, 0, '2025-12-18 08:17:37', NULL);

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

--
-- Table structure for table `erp_mas_inv_brand`
--

CREATE TABLE `erp_mas_inv_brand` (
  `id` int(11) NOT NULL,
  `brand_name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `is_default` enum('Y','N') NOT NULL DEFAULT 'N',
  `isActive` enum('Y','N') NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_mas_inv_brand`
--

INSERT INTO `erp_mas_inv_brand` (`id`, `brand_name`, `description`, `is_default`, `isActive`) VALUES
(1, 'None', '', 'Y', 'Y'),
(2, 'Others', '', 'N', 'Y');

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

--
-- Table structure for table `erp_mas_inv_item_color`
--

CREATE TABLE `erp_mas_inv_item_color` (
  `id` int(11) NOT NULL,
  `color_name` varchar(255) 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_mas_inv_item_color`
--

INSERT INTO `erp_mas_inv_item_color` (`id`, `color_name`, `isActive`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 'Green', 'Y', 2, '2022-09-28 10:31:18', 2, '2022-09-28 11:07:21'),
(2, 'Red', 'Y', 2, '2022-09-28 10:32:26', 0, '0000-00-00 00:00:00'),
(3, 'None', 'Y', 2, '2022-09-28 11:23:58', 2, '2022-09-28 11:24:11'),
(4, 'Lavender', 'Y', 2, '2022-10-04 12:33:26', 0, '0000-00-00 00:00:00'),
(5, 'Vanilla', 'Y', 2, '2022-10-04 12:38:46', 0, '0000-00-00 00:00:00'),
(6, 'Lemon', 'Y', 2, '2022-10-04 12:38:56', 0, '0000-00-00 00:00:00'),
(7, 'Black', 'Y', 2, '2022-10-04 12:39:09', 0, '0000-00-00 00:00:00'),
(8, 'White', 'Y', 2, '2022-10-04 12:39:21', 0, '0000-00-00 00:00:00'),
(9, 'Yellow', 'Y', 2, '2022-10-04 12:42:06', 0, '0000-00-00 00:00:00'),
(10, 'Blue', 'Y', 2, '2022-10-04 12:42:35', 0, '0000-00-00 00:00:00'),
(11, 'Chilli', 'Y', 2, '2022-10-04 12:43:36', 0, '0000-00-00 00:00:00'),
(12, 'Light ', 'Y', 2, '2022-10-04 12:51:41', 0, '0000-00-00 00:00:00'),
(13, 'Dark', 'Y', 2, '2022-10-04 12:51:49', 0, '0000-00-00 00:00:00'),
(14, 'Brown', 'Y', 2, '2022-10-04 12:52:50', 0, '0000-00-00 00:00:00'),
(15, 'Pink', 'Y', 2, '2022-10-04 13:44:33', 0, '0000-00-00 00:00:00'),
(16, 'Orange', 'Y', 2, '2022-10-04 13:51:52', 0, '0000-00-00 00:00:00'),
(17, 'Clear', 'Y', 2, '2022-10-04 14:00:05', 0, '0000-00-00 00:00:00'),
(18, 'Silver', 'Y', 2, '2022-10-04 14:10:16', 0, '0000-00-00 00:00:00'),
(19, 'Silver Glitter', 'Y', 2, '2022-10-04 14:11:05', 0, '0000-00-00 00:00:00'),
(20, 'Gold Glitter', 'Y', 2, '2022-10-04 14:11:15', 0, '0000-00-00 00:00:00'),
(21, 'Gold ', 'Y', 2, '2022-10-04 14:11:28', 0, '0000-00-00 00:00:00'),
(22, 'Rose Gold', 'Y', 2, '2022-10-04 14:11:36', 0, '0000-00-00 00:00:00'),
(23, 'Golden', 'Y', 2, '2022-10-04 14:25:18', 0, '0000-00-00 00:00:00'),
(24, 'Cream', 'Y', 2, '2022-10-04 14:25:32', 0, '0000-00-00 00:00:00'),
(25, 'Chicken Biryani', 'Y', 2, '2022-10-04 14:25:55', 0, '0000-00-00 00:00:00'),
(26, 'Mutton Biryani', 'Y', 2, '2022-10-04 14:26:19', 0, '0000-00-00 00:00:00'),
(27, 'Harees', 'Y', 2, '2022-10-04 14:26:32', 0, '0000-00-00 00:00:00'),
(28, 'Luqaimat', 'Y', 2, '2022-10-04 14:26:44', 0, '0000-00-00 00:00:00'),
(29, 'Bon Appetit', 'Y', 2, '2022-10-04 14:27:00', 0, '0000-00-00 00:00:00'),
(30, 'Star', 'Y', 2, '2022-10-04 14:43:33', 0, '0000-00-00 00:00:00'),
(31, 'Flags', 'Y', 2, '2022-10-04 14:43:54', 0, '0000-00-00 00:00:00'),
(32, 'Chakras', 'Y', 2, '2022-10-04 14:44:17', 0, '0000-00-00 00:00:00'),
(33, 'Purple', 'Y', 2, '2022-10-04 17:46:46', 0, '0000-00-00 00:00:00'),
(34, 'black / clear', 'Y', 2, '2022-10-11 19:14:57', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_mas_inv_rack`
--

CREATE TABLE `erp_mas_inv_rack` (
  `id` int(11) NOT NULL,
  `rack_name` varchar(255) NOT NULL,
  `total_bins` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `is_base_rack` enum('Y','N') NOT NULL DEFAULT 'N',
  `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;

--
-- Dumping data for table `erp_mas_inv_rack`
--

INSERT INTO `erp_mas_inv_rack` (`id`, `rack_name`, `total_bins`, `warehouse_id`, `isActive`, `is_base_rack`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'None', 0, 1, 'Y', 'Y', 8, 0, '2025-12-18 08:16:02', '0000-00-00 00:00:00'),
(2, 'Rack A', 0, 1, 'Y', 'N', 8, 0, '2025-12-18 08:16:52', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_mas_inv_tax`
--

CREATE TABLE `erp_mas_inv_tax` (
  `id` int(11) NOT NULL,
  `tax_code` varchar(255) DEFAULT NULL,
  `percentage` varchar(255) DEFAULT NULL,
  `isDefault` enum('Y','N') NOT NULL DEFAULT 'N',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_datetime` datetime DEFAULT NULL,
  `updated_datetime` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_mas_inv_tax`
--

INSERT INTO `erp_mas_inv_tax` (`id`, `tax_code`, `percentage`, `isDefault`, `isActive`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'VAT 5%', '5', 'Y', 'Y', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00'),
(2, 'Non-Taxable', '0', 'N', 'Y', 1, 1, '2024-01-01 06:00:00', '2024-01-01 06:00:00');

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

--
-- Table structure for table `erp_mas_inv_unit`
--

CREATE TABLE `erp_mas_inv_unit` (
  `id` int(11) NOT NULL,
  `unit` varchar(255) NOT NULL,
  `isActive` enum('Y','N') 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;

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

--
