-- phpMyAdmin SQL Dump
-- version 4.9.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Nov 23, 2020 at 11:17 AM
-- Server version: 5.7.26
-- PHP Version: 7.4.2

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

--
-- Database: `dbtest`
--

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

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

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `firstname` varchar(50) NOT NULL,
  `lastname` varchar(50) NOT NULL,
  `login` varchar(50) NOT NULL,
  `email` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `role` smallint(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

INSERT INTO `users` (`id`, `firstname`, `lastname`, `login`, `email`, `password`, `role`) VALUES
(1, 'Raphaël', 'Peim', 'Raph', 'rp@gmail.com', '$2y$10$zp8765FkqTQrDX/tmeLR8e/wbn5wcxwNntalYrUDqHgyj4xLw9bPC', 1),
(2, 'John', 'Doe', 'John', 'jd@etu.imt-lille-douai.fr', '$2y$10$zp8765FkqTQrDX/tmeLR8e/wbn5wcxwNntalYrUDqHgyj4xLw9bPC', 0),
(3, 'Nolwenn', 'Le Gourierec', 'Nono', 'nlg@etu.imt-lille-douai.fr', '$2y$10$zp8765FkqTQrDX/tmeLR8e/wbn5wcxwNntalYrUDqHgyj4xLw9bPC', 0),
(4, 'Romain', 'Benaya', 'Romich', 'rb@etu.imt-lille-douai.fr', '$2y$10$zp8765FkqTQrDX/tmeLR8e/wbn5wcxwNntalYrUDqHgyj4xLw9bPC', 0),
(5, 'Nadège', 'Faure', 'Nadou', 'nf@etu.imt-lille-douai.fr', '$2y$10$zp8765FkqTQrDX/tmeLR8e/wbn5wcxwNntalYrUDqHgyj4xLw9bPC', 0),
(6, 'Elise', 'Drouault', 'Elise', 'ed@etu.imt-lille-douai.fr', '$2y$10$zp8765FkqTQrDX/tmeLR8e/wbn5wcxwNntalYrUDqHgyj4xLw9bPC', 0),
(7, 'FirstName', 'Lastname', 'Login', 'email@gmail.com', '$2y$10$zp8765FkqTQrDX/tmeLR8e/wbn5wcxwNntalYrUDqHgyj4xLw9bPC', 0),
(8, 'Prenom', 'Nom', 'Pseudo', 'mail@gmail.com', '$2y$10$fG1ntlsrMZEdDbnK1O7Jiu/XCL3CCiJsWHgkIMGsTw6PrPfImcLwe', 0);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `email` (`email`),
  ADD UNIQUE KEY `login` (`login`);

--
-- AUTO_INCREMENT for dumped tables
--

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