-- 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 `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 `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 `usersMessages`
--
ALTER TABLE `usersMessages`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
COMMIT;

