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

START TRANSACTION;



--
-- Database: `u240644457_GP_Latest`
--

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

--
-- Table structure for table `applicants`
--

CREATE TABLE `applicants` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `phoneNumber` varchar(255) NOT NULL,
  `cv` varchar(255) NOT NULL,
  `coverLetter` varchar(6000) NOT NULL,
  `JobID` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `applicants`
--

INSERT INTO `applicants` (`id`, `name`, `email`, `phoneNumber`, `cv`, `coverLetter`, `JobID`) VALUES
(1, 'saqer basem', 'saqeralnairab@gmail.com', '0790089551', 'uploads/Tasneem CV Updated.pdf', 'sa', 1),
(2, 'nadine al-saifi', 'nadinenihadals@gmail.com', '0799729026', 'uploads/bulk-upload - completed.xlsx', 'aaaa', 1),
(3, 'nadine alsaifi', 'nadinenihadals@gmail.com', '0799729027', 'uploads/bulk-upload - completed.xlsx', 'qqqqqq', 1),
(4, 'test', 'saqeralnairab@gmail.com', '+962790089551', 'uploads/images.png', 'test', 1);

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

--
-- Table structure for table `attendance`
--

CREATE TABLE `attendance` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `attendance_date` varchar(20) NOT NULL,
  `checkin_time` varchar(20) DEFAULT NULL,
  `checkout_time` varchar(20) DEFAULT NULL,
  `lat` decimal(10,8) DEFAULT NULL,
  `lng` decimal(11,8) DEFAULT NULL,
  `distance` int(10) UNSIGNED DEFAULT NULL,
  `checkout_accuracy` int(10) UNSIGNED DEFAULT NULL,
  `checkout_lat` decimal(10,8) DEFAULT NULL,
  `checkout_lng` decimal(11,8) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `attendance`
--

INSERT INTO `attendance` (`id`, `user_id`, `attendance_date`, `checkin_time`, `checkout_time`, `lat`, `lng`, `distance`, `checkout_accuracy`, `checkout_lat`, `checkout_lng`) VALUES
(1, 6, '2025-12-22', '2025-12-22 20:33:38', NULL, 31.85499690, 35.94257370, 0, NULL, NULL, NULL),
(2, 17, '2026-01-05', '2026-01-05 13:08:15', NULL, 31.99913714, 35.84594051, 22057, NULL, NULL, NULL),
(3, 17, '2026-01-05', '2026-01-05 13:08:15', NULL, 31.99913714, 35.84594051, 22057, NULL, NULL, NULL),
(4, 17, '2026-01-07', '2026-01-07 13:13:21', NULL, 31.99894334, 35.84585572, 22058, NULL, NULL, NULL),
(5, 6, '2026-01-09', '2026-01-09 18:40:20', '2026-01-09 18:40:41', 31.99913714, 35.84594051, 22057, 22057, 31.99913714, 35.84594051),
(6, 6, '2026-01-09', '2026-01-09 18:40:23', '2026-01-09 18:40:41', 31.99913714, 35.84594051, 22057, 22057, 31.99913714, 35.84594051);

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

--
-- Table structure for table `interviews`
--

CREATE TABLE `interviews` (
  `id` int(11) NOT NULL,
  `applicantID` int(11) NOT NULL,
  `time` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `interviews`
--

INSERT INTO `interviews` (`id`, `applicantID`, `time`) VALUES
(1, 1, '2025-11-30T14:25'),
(2, 1, '2026-01-02T10:13'),
(3, 0, '2025-12-03T13:16'),
(4, 1, '2025-12-04T12:31'),
(5, 1, '2025-12-04T12:31'),
(6, 1, '2025-12-04T12:31'),
(7, 1, '2025-12-17T13:09'),
(8, 1, '2026-01-31T22:11');

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

--
-- Table structure for table `Jobs`
--

CREATE TABLE `Jobs` (
  `id` int(11) NOT NULL,
  `jobTitle` varchar(255) NOT NULL,
  `yearsOfExperiance` varchar(255) NOT NULL,
  `location` varchar(255) NOT NULL,
  `Description` varchar(5000) NOT NULL,
  `status` varchar(255) NOT NULL DEFAULT 'posted'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `Jobs`
--

INSERT INTO `Jobs` (`id`, `jobTitle`, `yearsOfExperiance`, `location`, `Description`, `status`) VALUES
(1, 'Developer', 'Amman', '5', 'Test', 'posted');

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

--
-- Table structure for table `leaves`
--

CREATE TABLE `leaves` (
  `id` int(10) UNSIGNED NOT NULL,
  `userID` int(10) UNSIGNED NOT NULL,
  `leave_date` varchar(20) NOT NULL,
  `leave_type` varchar(50) NOT NULL,
  `status` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `leaves`
--

INSERT INTO `leaves` (`id`, `userID`, `leave_date`, `leave_type`, `status`) VALUES
(1, 6, '2025-12-31', 'Personal', 'Approved'),
(2, 6, '2025-12-25', 'Sick', 'Approved'),
(3, 6, '2025-12-24', 'Sick', 'inserted'),
(4, 17, '2025-12-31', 'Personal', 'inserted');

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

--
-- Table structure for table `messages`
--

CREATE TABLE `messages` (
  `id` int(11) NOT NULL,
  `message` varchar(500) NOT NULL,
  `email` varchar(255) NOT NULL,
  `first_name` varchar(255) NOT NULL,
  `last_name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `messages`
--

INSERT INTO `messages` (`id`, `message`, `email`, `first_name`, `last_name`) VALUES
(1, 'test', '', '', ''),
(2, 'test', '', '', ''),
(3, 'test2', '', '', ''),
(4, 'test message', '', '', ''),
(5, 'test message', '', '', ''),
(6, 'Add your lifepulsecrm.com website in Google Search Index to have it displayed in Web Search Results.\r\n\r\nRegister lifepulsecrm.com at https://searchregister.info', 'contact@domainreg.pro', 'Benjamin', 'Spring'),
(7, 'Hi http://lifepulsecrm.com,\r\n\r\nThe New Year is coming, and this is the perfect time to upgrade your SEO and attract more customers.\r\n\r\nPlease share your target countries and main services so I can prepare your New Year SEO plan.\r\n\r\nExcited to support your growth this year.\r\n\r\nThank You,\r\nDeepa', 'deepa.dgtlsolution@gmail.com', 'Deepa', 'Gupta');

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

--
-- Table structure for table `nationalities`
--

CREATE TABLE `nationalities` (
  `id` int(11) NOT NULL,
  `nationality` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `nationalities`
--

INSERT INTO `nationalities` (`id`, `nationality`) VALUES
(1, 'Jordanian'),
(2, 'Lebanese'),
(3, 'Syrian'),
(4, 'Iraqi'),
(5, 'Palestinian'),
(6, 'Qatari'),
(7, 'Omani'),
(8, 'Emirati'),
(9, 'Kuwaiti'),
(10, 'Bahraini');

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

--
-- Table structure for table `NDAApprovals`
--

CREATE TABLE `NDAApprovals` (
  `id` int(11) NOT NULL,
  `userId` int(11) NOT NULL,
  `status` varchar(10) NOT NULL,
  `signture` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `NDAApprovals`
--

INSERT INTO `NDAApprovals` (`id`, `userId`, `status`, `signture`) VALUES
(1, 6, 'Approved', 'signtures/sig-6922c84800afa0.42812143.txt'),
(2, 17, 'Approved', 'signtures/sig-6953e3afe13af5.05467663.txt'),
(3, 17, 'Approved', 'signtures/sig-6953e3fac05501.79642728.txt'),
(4, 17, 'Approved', 'signtures/sig-6953e3fec4c8f1.44689008.txt'),
(5, 17, 'Approved', 'signtures/sig-6953e40aecc027.90121251.txt'),
(6, 17, 'Approved', 'signtures/sig-6953e48820e012.76053048.txt');

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

--
-- Table structure for table `objectives`
--

CREATE TABLE `objectives` (
  `id` int(11) NOT NULL,
  `userId` int(11) NOT NULL,
  `objective` varchar(5000) DEFAULT NULL,
  `rate` int(11) DEFAULT NULL,
  `rate_date` date DEFAULT NULL,
  `month` int(11) DEFAULT NULL,
  `year` int(11) DEFAULT NULL,
  `comments` varchar(5000) DEFAULT NULL,
  `file` varchar(5000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `objectives`
--

INSERT INTO `objectives` (`id`, `userId`, `objective`, `rate`, `rate_date`, `month`, `year`, `comments`, `file`) VALUES
(6, 6, 'test ', 90, '2025-12-03', 1, 2025, NULL, NULL),
(7, 6, 'test ', 70, '2025-12-03', 2, 2025, NULL, NULL),
(8, 6, 'hjkl;', 90, '2025-12-07', 2, 2025, NULL, NULL),
(9, 6, 'nadine', 90, '2025-12-14', 3, 2025, NULL, NULL),
(10, 6, 'nadine', 0, NULL, 3, 2025, NULL, NULL),
(11, 6, 'testt objv', 0, NULL, 6, 2025, NULL, NULL),
(12, 6, 'testt objv', 0, NULL, 6, 2025, NULL, NULL),
(13, 6, 't2', 60, '2025-12-07', 4, 2025, NULL, NULL),
(14, 6, 'ts', 0, NULL, 8, 2025, NULL, NULL),
(15, 6, 'test 1', 90, '2025-12-14', 4, 2025, 'test comments', NULL),
(16, 6, 'test 2', 0, NULL, 3, 2025, 'test comments2', NULL),
(17, 6, 'nnnn', 0, NULL, 3, 2027, 'nnnnn', NULL),
(18, 6, 'test doc', 89, '2025-12-14', 12, 2025, 'nnn', NULL),
(19, 9, 'testtest', 89, '2025-12-14', 1, 2025, 'hhh', NULL),
(20, 6, 'kpi', 100, '2025-12-16', 1, 2025, 'fghjkl', NULL),
(21, 6, 'test', 0, NULL, 1, 2026, 'test 1 ', 'Picture2.png'),
(22, 6, 'test 2', 0, NULL, 2, 2026, 'test 2 ', 'Screenshot 2025-09-16 105239.png'),
(23, 6, 'test', 0, NULL, 1, 2025, 'test', 'Picture2.png');

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

--
-- Table structure for table `positions`
--

CREATE TABLE `positions` (
  `id` int(11) NOT NULL,
  `name` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `positions`
--

INSERT INTO `positions` (`id`, `name`) VALUES
(1, 'Developer'),
(2, 'Team Leader'),
(3, 'QA'),
(4, 'Project Manager'),
(5, 'Trainee'),
(6, 'HR'),
(7, 'Recruiter'),
(8, 'CEO'),
(9, 'CHRO'),
(10, 'CTO');

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

--
-- Table structure for table `rates`
--

CREATE TABLE `rates` (
  `id` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `rate` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `rates`
--

INSERT INTO `rates` (`id`, `userid`, `rate`) VALUES
(1, 9, 4),
(2, 9, 4),
(3, 9, 5),
(4, 9, 5),
(5, 6, 0),
(6, 6, 5),
(7, 6, 0),
(8, 6, 0),
(9, 6, 0),
(10, 9, 0),
(11, 9, 5),
(12, 9, 5),
(13, 6, 0),
(14, 6, 5),
(15, 6, 4),
(16, 6, 0),
(17, 6, 5),
(18, 6, 5),
(19, 6, 5),
(20, 6, 5),
(21, 6, 5),
(22, 6, 5),
(23, 6, 5),
(24, 6, 5),
(25, 6, 5),
(26, 6, 5),
(27, 6, 5),
(28, 6, 4),
(29, 9, 1),
(30, 6, 4),
(31, 9, 3),
(32, 9, 5),
(33, 6, 5),
(34, 6, 5),
(35, 6, 5),
(36, 6, 5);

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

--
-- Table structure for table `timesheet`
--

CREATE TABLE `timesheet` (
  `id` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `tasks` varchar(1000) NOT NULL,
  `date` date NOT NULL,
  `status` varchar(10) NOT NULL DEFAULT 'new'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `timesheet`
--

INSERT INTO `timesheet` (`id`, `userid`, `tasks`, `date`, `status`) VALUES
(1, 6, 'test', '2025-11-19', 'new'),
(2, 17, 'nnnn', '2025-12-30', 'new'),
(3, 6, 'mmm', '2026-01-09', 'new');

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

--
-- Table structure for table `usersMessages`
--

CREATE TABLE `usersMessages` (
  `id` int(11) NOT NULL,
  `sender_id` int(11) NOT NULL,
  `recipient_id` int(11) NOT NULL,
  `subject` varchar(100) NOT NULL,
  `message` varchar(500) NOT NULL,
  `status` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `usersMessages`
--

INSERT INTO `usersMessages` (`id`, `sender_id`, `recipient_id`, `subject`, `message`, `status`) VALUES
(1, 5, 6, 'test', 'test', ''),
(2, 5, 6, 'test', 'nnnnn', ''),
(3, 6, 5, 'hi', 'asking', '');

--
-- Indexes for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `applicants`
--
ALTER TABLE `applicants`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

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

--
-- AUTO_INCREMENT for table `interviews`
--
ALTER TABLE `interviews`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `Jobs`
--
ALTER TABLE `Jobs`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `messages`
--
ALTER TABLE `messages`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `nationalities`
--
ALTER TABLE `nationalities`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `NDAApprovals`
--
ALTER TABLE `NDAApprovals`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `objectives`
--
ALTER TABLE `objectives`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;

--
-- AUTO_INCREMENT for table `positions`
--
ALTER TABLE `positions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `rates`
--
ALTER TABLE `rates`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;

--
-- AUTO_INCREMENT for table `timesheet`
--
ALTER TABLE `timesheet`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `usersMessages`
--
ALTER TABLE `usersMessages`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
COMMIT;

