text: -- phpMyAdmin SQL Dump
  -- version 4.8.5
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: May 23, 2021 at 12:01 AM
  -- Server version: 10.1.38-MariaDB
  -- PHP Version: 7.3.4
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  START TRANSACTION;
  SET time_zone = "+00:00";
  
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!40101 SET NAMES utf8mb4 */;
  
  --
  -- Database: `db_grh`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `cv`
  --
  
  CREATE TABLE `cv` (
    `id` int(11) NOT NULL,
    `file` varchar(255) NOT NULL,
    `poste_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `cv`
  --
  
  INSERT INTO `cv` (`id`, `file`, `poste_id`) VALUES
  (2, 'Cuisinier-DIRECTEUR - CODIRECTEUR.pdf', 6),
  (4, 'fruits.csv-96bd2b77e33be40da5310f2e1ef3bc79', 6),
  (5, 'fruits.csv-9dcca055123fde3ec94b8a736ea6af5c', 6),
  (6, 'fruits.csv-d6e61dd52568145791b786bea1169b93', 6),
  (7, 'cv.csv-1f5f3b26d9e174d9c30d37c5fae58787', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `poste`
  --
  
  CREATE TABLE `poste` (
    `id` int(11) NOT NULL,
    `name` varchar(100) NOT NULL,
    `etat` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `poste`
  --
  
  INSERT INTO `poste` (`id`, `name`, `etat`) VALUES
  (1, 'Gestionnaire de ressources humaines', 1),
  (2, 'Chargé de la logistique', 0),
  (3, 'Administrateur du budget', 1),
  (4, 'Developpeur Web', 1),
  (5, 'Developpeur Mobile & DeskTop', 1),
  (6, 'Cuisinier', 0);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE `user` (
    `id` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `email` varchar(255) NOT NULL,
    `username` varchar(50) NOT NULL,
    `mdp` varchar(50) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `user`
  --
  
  INSERT INTO `user` (`id`, `name`, `email`, `username`, `mdp`) VALUES
  (1, 'Jean-Luc Kabulu', 'kabulu@gmail.com', 'jeanluc', '0000'),
  (2, 'Jesus Kaz', 'kazembe@gmail.com', 'jesus', '0000'),
  (3, 'Alex Lukusa', 'alex@gmail.com', 'alex', '0000');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `cv`
  --
  ALTER TABLE `cv`
    ADD PRIMARY KEY (`id`),
    ADD KEY `poste_ind` (`poste_id`);
  
  --
  -- Indexes for table `poste`
  --
  ALTER TABLE `poste`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `cv`
  --
  ALTER TABLE `cv`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
  
  --
  -- AUTO_INCREMENT for table `poste`
  --
  ALTER TABLE `poste`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
  
  --
  -- AUTO_INCREMENT for table `user`
  --
  ALTER TABLE `user`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `cv`
  --
  ALTER TABLE `cv`
    ADD CONSTRAINT `pst_fk` FOREIGN KEY (`poste_id`) REFERENCES `poste` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
  COMMIT;
  
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  