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

START TRANSACTION;



--
-- Database: `u240644457_XekAE`
--

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

--
-- 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(15) 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);

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

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

CREATE TABLE `interviews` (
  `id` int(15) NOT NULL,
  `applicantID` int(15) 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');

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

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

CREATE TABLE `Jobs` (
  `id` int(25) 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 `messages`
--

CREATE TABLE `messages` (
  `id` int(10) 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', '', '', '');

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

--
-- 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(10) NOT NULL,
  `userId` int(20) 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, 'New', 'signtures/sig-6922c84800afa0.42812143.txt');

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

--
-- 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');

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

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

CREATE TABLE `rates` (
  `id` int(20) NOT NULL,
  `userid` int(20) NOT NULL,
  `rate` int(2) 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(20) NOT NULL,
  `userid` int(20) NOT NULL,
  `tasks` varchar(1000) NOT NULL,
  `date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `timesheet` (`id`, `userid`, `tasks`, `date`) VALUES
(1, 6, 'test', '2025-11-19');

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

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

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `first_name` varchar(20) NOT NULL,
  `last_name` varchar(20) NOT NULL,
  `user_name` varchar(40) NOT NULL,
  `password` varchar(100) NOT NULL,
  `phone_number` varchar(20) DEFAULT NULL,
  `position` int(20) NOT NULL,
  `Gender` varchar(10) NOT NULL,
  `personal_id` varchar(400) NOT NULL,
  `pasport` varchar(400) NOT NULL,
  `uni_cert` varchar(400) NOT NULL,
  `non_crime_cert` varchar(400) NOT NULL,
  `medical_cert` varchar(400) NOT NULL,
  `cv` varchar(400) NOT NULL,
  `iban` varchar(400) NOT NULL,
  `recommendation_letter` varchar(400) DEFAULT NULL,
  `other` varchar(400) DEFAULT NULL,
  `email` varchar(200) NOT NULL,
  `role` varchar(20) NOT NULL,
  `emergencyPhoneNumber` varchar(20) NOT NULL,
  `emergencyName` varchar(20) NOT NULL,
  `age` int(10) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'InActive',
  `signture` varchar(400) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `users` (`id`, `first_name`, `last_name`, `user_name`, `password`, `phone_number`, `position`, `Gender`, `personal_id`, `pasport`, `uni_cert`, `non_crime_cert`, `medical_cert`, `cv`, `iban`, `recommendation_letter`, `other`, `email`, `role`, `emergencyPhoneNumber`, `emergencyName`, `age`, `status`, `signture`) VALUES
(4, 'Lubna', 'Mohammad', 'lubna mohammad', 'a63ec2360343e98a2326dd545ab51d14', '+1 (791) 379-17357', 1, 'female', '/files/62ed064a20ed33.54990890.txt', '/files/62ed064a210669.17910344.txt', '/files/62ed064a212458.02372470.txt', '/files/6922c769142b31.11407627.jpg', '/files/62ed064a215426.14413402.txt', '/files/62ed064a217f96.01040743.txt', '/files/62ed064a219a75.32052465.txt', '', '', 'lubnamohammad@gmail.com', 'Admin', '+1 (146) 479-9716', 'Luke Watson', 21, 'Active', ''),
(5, 'Sarah', 'Anas', 'Sarah Anas', 'a63ec2360343e98a2326dd545ab51d14', '+1 (909) 927-9983', 0, 'female', '/files/62ed0baca0fea2.92116047.txt', '/files/62ed0baca14573.30278587.txt', '/files/62ed0baca15571.54192579.txt', '/files/6922c769142b31.11407627.jpg', '/files/62ed0baca37084.20545874.txt', '/files/62ed0baca37cd0.82363073.txt', '/files/62ed0baca387d8.74835125.txt', '/files/62ed0baca394b0.20231464.txt', '', 'sarahanas@gmail.com', 'HR', '+1 (849) 536-8329', 'Ashton Macdonald', 44, 'Active', ''),
(6, 'admad', 'yousef', 'ahmad yousef', 'a63ec2360343e98a2326dd545ab51d14', '+1 (909) 927-9983', 1, 'male', '/files/62ed0baca0fea2.92116047.txt', '/files/62ed0baca14573.30278587.txt', '/files/62ed0baca15571.54192579.txt', '/files/6922c769142b31.11407627.jpg', '/files/62ed0baca37084.20545874.txt', '/files/62ed0baca37cd0.82363073.txt', '/files/62ed0baca387d8.74835125.txt', '/files/62ed0baca394b0.20231464.txt', '', 'ahmadyousef@gmail.com', 'user', '+1 (849) 536-8329', 'Ashton Macdonald', 44, 'Active', ''),
(9, 'lama', 'rami', 'lama rami', 'd847f5bbe427010efbf1e27934b8efcb', '0798989898', 1, 'female', '/files/6347260065ec19.05120002.png', '/files/6347260065f539.62109717.png', '/files/6347260065fe94.08637552.png', '/files/6922c769142b31.11407627.jpg', '/files/63472600660c13.32578174.txt', '/files/63472600661290.34626705.png', '/files/63472600661921.26859526.png', '', '', 'lama@gmail.com', 'user', '0798855844', 'Father', 22, 'Active', 'signtures/sig-63472600655d22.89674699.txt'),
(10, 'saqer', 'Basem', 'saqer Basem', 'a63ec2360343e98a2326dd545ab51d14', '0790089551', 2, 'male', '/files/691d7ff72216e4.01035403.png', '/files/691d7ff7222a80.06477452.png', '/files/691d7ff7223ed6.40050625.png', '/files/6922c769142b31.11407627.jpg', '/files/691d7ff7225ae3.94822933.png', '/files/691d7ff7226887.69904760.pdf', '/files/691d7ff7227bd7.61890593.docx', '', '', 'test@gmail.com', 'user', '0790089551', 'saqer', 27, 'Active', 'signtures/sig-691d7ff721f378.61104620.txt'),
(11, 'saqer', 'Basem', 'saqer Basem', 'a63ec2360343e98a2326dd545ab51d14', '0790089551', 7, 'male', '/files/692ac8ea431b63.37675959.csv', '/files/692ac8ea433810.73816348.csv', '/files/692ac8ea4349f6.84393916.csv', '/files/692ac8ea435ba5.41880475.csv', '/files/692ac8ea436697.92791407.csv', '/files/692ac8ea437846.09440616.csv', '/files/692ac8ea4389e9.83541444.csv', '', '', 'saqerbasem@gmail.com', 'Recruiter', '0790089551', 'Test', 28, 'Active', 'signtures/sig-692ac8ea42e512.75665958.txt');

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

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

CREATE TABLE `usersMessages` (
  `id` int(20) NOT NULL,
  `sender_id` int(20) NOT NULL,
  `recipient_id` int(20) 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 `interviews`
--
ALTER TABLE `interviews`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Jobs`
--
ALTER TABLE `Jobs`
  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 `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 `users`
--
ALTER TABLE `users`
  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=4;

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

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

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

--
-- 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(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

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

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

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

