-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Hôte : mariadb:3306
-- Généré le : lun. 04 nov. 2024 à 17:18
-- Version du serveur : 11.5.2-MariaDB-ubu2404
-- Version de PHP : 8.2.8

--
-- Base de données : `CARIA`
--
DROP DATABASE IF EXISTS `CARIA`;
CREATE DATABASE IF NOT EXISTS `CARIA` DEFAULT CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci;
USE `CARIA`;

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

--
-- Structure de la table `Clients`
--

CREATE TABLE `Clients` (
  `id` int(11) NOT NULL,
  `privilege` int(11) DEFAULT 2,
  `dateenregistre` timestamp NOT NULL DEFAULT current_timestamp(),
  `pseudo` varchar(25) DEFAULT NULL,
  `prenom` varchar(25) DEFAULT NULL,
  `nom` varchar(25) DEFAULT NULL,
  `adresse` varchar(70) DEFAULT NULL,
  `phone` varchar(15) DEFAULT NULL,
  `email` varchar(30) DEFAULT NULL,
  `mdp` varchar(60) NOT NULL,
  `avatar` varchar(250) DEFAULT '/images/avatars/img_user.jpg'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `Clients`
--

INSERT INTO `Clients` (`id`, `privilege`, `dateenregistre`, `pseudo`, `prenom`, `nom`, `adresse`, `phone`, `email`, `mdp`, `avatar`) VALUES
(1, 4, '2016-09-11 20:00:00', 'sa', 'saPrénom', 'saNom', '96 avenue du général pétin', '0668293476', 'sa@gmail.com', '$2y$10$kqjMX5vUnwYbktZzSbyulunwAbRO7D2eDoxKfB7tHB/2mng6cw9YK', '/images/avatars/sa/img_user.jpg'),
(2, 2, '2024-05-30 11:57:23', 'utilisateur1', 'John', 'Doe', '123 Rue de Paris', '0123456789', 'john.doe@example.com', '$2y$10$OkaujySOK.TWqiNOX4BSreuc7OFYuWji9EvruDlo71RRoXNR0HCbC', '/images/avatars/utilisateur1/img_user.jpg'),
(3, 2, '2024-05-30 11:57:23', 'utilisateur2', 'Alice', 'Smith', '456 Avenue des Champs-Élysées', '9876543210', 'alice.smith@example.com', '$2y$10$rhZHTmq9QZA5uRyUr22sauEvHXKAZo.mjrLAsZ.SpImF.aqG5GSj6', '/images/avatars/utilisateur2/img_user.jpg'),
(4, 2, '2024-05-30 11:57:23', 'utilisateur3', 'Michael', 'Johnson', '789 Boulevard Saint-Michel', '1234567890', 'michael.johnson@example.com', '$2y$10$/b9EglJ5RlO8vZK36PjjAuosbVkuB6T6xnr2uvq.sMtIg3hNjN0nG', '/images/avatars/utilisateur3/img_user.jpg'),
(5, 2, '2024-05-30 11:57:23', 'utilisateur4', 'Emma', 'Brown', '1011 Rue de Rivoli', '0987654321', 'emma.brown@example.com', 'motdepasse4', '/images/avatars/utilisateur4/img_user.jpg'),
(6, 2, '2024-05-30 11:57:23', 'utilisateur5', 'David', 'Wilson', '1213 Rue du Faubourg Saint-Honoré', '1122334455', 'david.wilson@example.com', '$2y$10$9E1c4mmQqpgry7m/TuDU/eCsIb5HAWzPpK1BkP6Slg.4r.huK1gMS', '/images/avatars/utilisateur5/img_user.jpg'),
(7, 2, '2024-05-30 11:57:23', 'utilisateur6', 'Sophia', 'Martinez', '1415 Avenue Montaigne', '5544332211', 'sophia.martinez@example.com', '$2y$10$ghZ9/hsN4EdhaJ0JyUbbVO5KaYpRMx.ax9yz4ZCAzAQ5NXL9vzuIW', '/images/avatars/utilisateur6/img_user.jpg'),
(8, 2, '2024-05-30 11:57:23', 'utilisateur7', 'Matthew', 'Anderson', '1617 Avenue de la Grande Armée', '6677889900', 'matthew.anderson@example.com', '$2y$10$kpaoSFeugXSq8R461rQJ/uH6zM/k841Oi5tz8zjmUboiM7swsI9vC', '/images/avatars/utilisateur7/img_user.jpg'),
(9, 2, '2024-05-30 11:57:23', 'utilisateur8', 'Olivia', 'Taylor', '1819 Rue de la Paix', '7788990011', 'olivia.taylor@example.com', '$2y$10$5qpp5BCM1BcYMt2MdTld9.6MeCUo96yl0T1TqLtxlrojE1GD8H0z.', '/images/avatars/utilisateur8/img_user.jpg'),
(10, 2, '2024-05-30 11:57:23', 'utilisateur9', 'Daniel', 'Thomas', '2021 Boulevard Haussmann', '8899001122', 'daniel.thomas@example.com', '$2y$10$lxeSumVQvBQ2i4u9EH2a1OnmfvKnWtpSzbAQ6H/f8e/nSOvJJZ8NW', '/images/avatars/utilisateur9/img_user.jpg'),
(11, 2, '2024-05-30 11:57:23', 'utilisateur10', 'Emily', 'Jackson', '2223 Avenue Victor Hugo', '9900112233', 'emily.jackson@example.com', '$2y$10$i2.MtLwCRowHpdxbPB//EeGHEOD0jlKH.7T5/5UIFiFy/0WZedspW', '/images/avatars/utilisateur10/img_user.jpg'),
(12, 2, '2024-05-30 11:57:23', 'utilisateur11', 'Sophie', 'Martin', '2325 Rue Saint-Antoine', '1122334455', 'sophie.martin@example.com', '$2y$10$b.rhvW.vknrfCgRNFIIp3Oha/Hq1.jSpn90DUnPxPW3/kJdqtbGCK', '/images/avatars/utilisateur11/img_user.jpg'),
(13, 2, '2024-05-30 11:57:23', 'utilisateur12', 'William', 'Thompson', '2427 Avenue des Ternes', '2244668899', 'william.thompson@example.com', '$2y$10$HUqNXYpyo2uP1E.tgR/z8uU5O4n365JBiUH5p7qB2le5gO0.infHe', '/images/avatars/utilisateur12/img_user.jpg'),
(14, 2, '2024-05-30 11:57:23', 'utilisateur13', 'Charlotte', 'Clark', '2529 Rue de la Pompe', '3366990022', 'charlotte.clark@example.com', '$2y$10$SuYzFoQdjROkK6xOaBm1L.4higlSCJX5Z0QVItBjkx5/qUMsX9tTS', '/images/avatars/utilisateur13/img_user.jpg'),
(15, 2, '2024-05-30 11:57:23', 'utilisateur14', 'James', 'White', '2631 Boulevard Malesherbes', '4488112233', 'james.white@example.com', '$2y$10$21dxDMovRzObUfIO1Ykh9eiOnW0tjbZE7JbgnZMLWlA3kJ/BZEVuy', '/images/avatars/utilisateur14/img_user.jpg'),
(16, 2, '2024-05-30 11:57:23', 'utilisateur15', 'Ava', 'Hall', '2733 Avenue de la République', '5511223344', 'ava.hall@example.com', '$2y$10$E4NL1lLTNfptHjeozX2x9OYji2H5uldcvrEd7QaezvmAWnWc7XGFK', '/images/avatars/utilisateur15/img_user.jpg'),
(17, 2, '2024-05-30 11:57:23', 'utilisateur16', 'Noah', 'Lewis', '2835 Rue de Passy', '6633445566', 'noah.lewis@example.com', '$2y$10$xjrpINALKuGkFLKTNlMcVOk9NoYBfoc6yA4Pvt66mMGHykPPLlKzW', '/images/avatars/utilisateur16/img_user.jpg'),
(18, 2, '2024-05-30 11:57:23', 'utilisateur17', 'Mia', 'Adams', '2937 Boulevard Saint-Germain', '7755668899', 'mia.adams@example.com', '$2y$10$rQuvGd48.B6EmoYAl7d2PeEMvSMQsDduQPvcWzxbtLSGVL/066hpW', '/images/avatars/utilisateur17/img_user.jpg'),
(19, 2, '2024-05-30 11:57:23', 'utilisateur18', 'Benjamin', 'Young', '3039 Rue du Bac', '8877665544', 'benjamin.young@example.com', '$2y$10$wMFNjwJJPkAXYF31Ot3Ko.L8acwtiCOx2waqQKzqQ8z/PJkLuDz1i', '/images/avatars/utilisateur18/img_user.jpg'),
(20, 2, '2024-05-30 11:57:23', 'utilisateur19', 'Ella', 'Harris', '3141 Avenue Marceau', '9900887766', 'ella.harris@example.com', '$2y$10$q4G7cKwWSFvxcTf95L72s./aqtuN0h.3gcc3w4pfFX.EeUgDIZAea', '/images/avatars/utilisateur19/img_user.jpg'),
(21, 2, '2024-05-30 11:57:23', 'utilisateur20', 'Lucas', 'King', '3243 Rue de Sèvres', '0011223344', 'lucas.king@example.com', '$2y$10$U3B8F76RFmcsQdTP.QxApeLQHBkH1HSKzISz5ndXS9jNpF8uc4dQG', '/images/avatars/utilisateur20/img_user.jpg'),
(27, 2, '2024-05-30 15:14:18', 'Ska', 'alonzo', 'alexis', '1 rue chateau deau', '0101010101', 'alexis.alonzo@lusis.fr', '$2y$10$5prZJL5h2T7KPFx/WiIAMOOT0.SgrfQPpeSqqRv1ZhrNA8PoAbsH2', '/images/avatars/Ska/img_user.jpg'),
(39, 2, '2024-06-01 15:40:50', 'bibi', 'Jean-Yves', 'Cunat-Brule', '1A rue des champs 45300 dadonville', '0637009147', 'jeanyves45300@gmail.com', '$2y$10$9xsYV0O18CmMmxOpCXMujOum2BszyeUXa9t5L2NL4aS3C.Dcoky3S', '/images/avatars/bibi/img_user.jpg'),
(40, 2, '2024-06-03 11:01:34', 'Nat', 'Nathalie', 'Cunat-Brulé', '68 rue de la traverse 87110 le vigen', '0675368511', 'thalyemmanuelle@hotmail.com', '$2y$10$k/GltfdBRJo0Ku4fpowYrOP4kyERwlH87sROZBoQaZnO5RYFf0SYa', '/images/avatars/Nat/img_user.jpg'),
(41, 2, '2024-06-04 08:21:36', 'Mbv', 'Mbv', 'Vsl', '11 rue du bel air 93000 Bobigny', '0629517837', 'marie.vesselle@anses.fr', '$2y$10$Ov38NgReEh8.pvQrBKvZw.gx6rp7wwu6CoiTTmRsFn2XwLXuUBJTC', '/images/avatars/Mbv/img_user.jpg'),
(42, 2, '2024-06-04 08:29:46', 'fweil', 'François', 'Weil', '26 avenue de la Frileuse 91940 Gometz le Châtel', '0632558351', 'francoisweil@francoisweil.com', '$2y$10$uOKvgY.bAviquraqqu0Bcet65DIYAFhYARY9Yg3.d9TRrccjJPT2S', '/images/avatars/fweil/img_user.jpg'),
(43, 2, '2024-06-16 14:02:02', 'Tintin', 'Jean pierre', 'Cunat brule', '30 bis rue du potager 91630 marolles en hurepoix', '0632363704', 'francine.mourer@sfr.fr', '$2y$10$yOC3ODH0jbQyFuh3on0jHeojDEYkcxJzmvKvnLowba83Gu5fgzTOO', '/images/avatars/Tintin/img_user.jpg'),
(52, 2, '2024-09-06 14:05:54', 'ccunatbrule', 'Christian', 'Cunat-Brulé', '68 avenue du Général de Gaulle', '0617429028', 'ccunatbrule@gmail.com', '$2y$10$lgpuwEPjbpmA4r1SguItnus.xZlXHohBOT.KcOkMhfrgWZF5i6ZQq', '/images/avatars/ccunatbrule/img_user.jpg');

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

--
-- Structure de la table `Reservations`
--

CREATE TABLE `Reservations` (
  `id` int(11) NOT NULL,
  `id_user` int(11) DEFAULT NULL,
  `id_vehicule` int(11) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `start` timestamp NULL DEFAULT NULL,
  `end` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `Reservations`
--

INSERT INTO `Reservations` (`id`, `id_user`, `id_vehicule`, `title`, `start`, `end`) VALUES
(22, 1, 1, 'Reservation 1', '2024-06-01 06:00:00', '2024-06-01 08:00:00'),
(23, 2, 2, 'Reservation 2', '2024-06-02 07:00:00', '2024-06-02 09:00:00'),
(24, 3, 3, 'Reservation 3', '2024-06-03 08:00:00', '2024-06-03 10:00:00'),
(25, 4, 4, 'Reservation 4', '2024-06-04 09:00:00', '2024-06-04 11:00:00'),
(26, 5, 5, 'Reservation 5', '2024-06-05 10:00:00', '2024-06-05 12:00:00'),
(27, 6, 6, 'Reservation 6', '2024-06-06 11:00:00', '2024-06-06 13:00:00'),
(28, 7, 7, 'Reservation 7', '2024-06-07 12:00:00', '2024-06-07 14:00:00'),
(29, 8, 8, 'Reservation 8', '2024-06-08 13:00:00', '2024-06-08 15:00:00'),
(30, 9, 9, 'Reservation 9', '2024-06-09 14:00:00', '2024-06-09 16:00:00'),
(31, 10, 10, 'Reservation 10', '2024-06-10 15:00:00', '2024-06-10 17:00:00'),
(32, 1, 2, 'Reservation 11', '2024-07-01 06:00:00', '2024-07-01 08:00:00'),
(33, 2, 3, 'Reservation 12', '2024-07-02 07:00:00', '2024-07-02 09:00:00'),
(34, 3, 4, 'Reservation 13', '2024-07-03 08:00:00', '2024-07-03 10:00:00'),
(35, 4, 5, 'Reservation 14', '2024-07-04 09:00:00', '2024-07-04 11:00:00'),
(36, 5, 6, 'Reservation 15', '2024-07-05 10:00:00', '2024-07-05 12:00:00'),
(37, 6, 7, 'Reservation 16', '2024-07-06 11:00:00', '2024-07-06 13:00:00'),
(38, 7, 8, 'Reservation 17', '2024-07-07 12:00:00', '2024-07-07 14:00:00'),
(39, 8, 9, 'Reservation 18', '2024-07-08 13:00:00', '2024-07-08 15:00:00'),
(40, 9, 10, 'Reservation 19', '2024-07-09 14:00:00', '2024-07-09 16:00:00'),
(41, 10, 1, 'Reservation 20', '2024-07-10 15:00:00', '2024-07-10 17:00:00'),
(42, 1, 3, 'Reservation 21', '2024-08-01 06:00:00', '2024-08-01 08:00:00'),
(43, 2, 4, 'Reservation 22', '2024-08-02 07:00:00', '2024-08-02 09:00:00'),
(44, 3, 5, 'Reservation 23', '2024-08-03 08:00:00', '2024-08-03 10:00:00'),
(45, 4, 6, 'Reservation 24', '2024-08-04 09:00:00', '2024-08-04 11:00:00'),
(46, 5, 7, 'Reservation 25', '2024-08-05 10:00:00', '2024-08-05 12:00:00'),
(47, 6, 8, 'Reservation 26', '2024-08-06 11:00:00', '2024-08-06 13:00:00'),
(48, 7, 9, 'Reservation 27', '2024-08-07 12:00:00', '2024-08-07 14:00:00'),
(49, 8, 10, 'Reservation 28', '2024-08-08 13:00:00', '2024-08-08 15:00:00'),
(50, 9, 1, 'Reservation 29', '2024-08-09 14:00:00', '2024-08-09 16:00:00'),
(51, 10, 2, 'Reservation 30', '2024-08-10 15:00:00', '2024-08-10 17:00:00'),
(52, 1, 9, 'Reservation 52', '2024-06-03 12:43:00', '2024-06-05 12:43:00'),
(53, 1, 14, 'Reservation 53', '2024-06-11 12:48:00', '2024-06-12 12:48:00'),
(54, 1, 16, 'Reservation 54', '2024-06-14 12:49:00', '2024-06-16 12:49:00'),
(55, 1, 16, 'Reservation 55', '2024-06-18 12:49:00', '2024-06-19 12:49:00'),
(56, 4, 15, 'Reservation 56', '2024-06-26 12:50:00', '2024-06-27 12:50:00'),
(57, 15, 12, 'Reservation 57', '2024-07-16 12:53:00', '2024-07-17 12:54:00'),
(58, 1, 13, 'Reservation 58', '2024-06-13 12:54:00', '2024-06-13 13:54:00'),
(60, 1, 18, 'Reservation 60', '2024-05-31 17:00:00', '2024-06-01 06:00:00'),
(64, 41, 12, 'Reservation 64', '2024-06-06 08:00:00', '2024-06-14 08:21:00'),
(65, 42, 7, 'Reservation 65', '2024-06-05 06:00:00', '2024-06-05 17:00:00'),
(66, 40, 5, 'Reservation 66', '2024-07-10 13:45:00', '2024-07-14 11:30:00'),
(67, 40, 5, 'Reservation 67', '2024-06-07 09:00:00', '2024-06-07 16:00:00'),
(68, 40, 4, 'Reservation 68', '2024-08-11 09:00:00', '2024-08-13 12:00:00'),
(69, 39, 27, 'Reservation 69', '2024-06-08 07:08:00', '2024-06-09 18:09:00'),
(70, 39, 11, 'Reservation 70', '2024-08-07 05:10:00', '2024-08-16 05:10:00'),
(71, 39, 3, 'Reservation 71', '2024-06-13 15:22:00', '2024-06-14 16:23:00'),
(72, 43, 6, 'Reservation 72', '2024-06-17 08:00:00', '2024-06-20 06:00:00'),
(73, 1, 6, 'Reservation 73', '2024-07-09 12:46:00', '2024-07-12 12:46:00'),
(82, 52, 1, 'Reservation 82', '2024-09-11 14:06:00', '2024-09-13 14:06:00'),
(83, 52, 1, 'Reservation 83', '2024-09-16 14:06:00', '2024-09-18 14:06:00');

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

--
-- Structure de la table `tentatives_connexion`
--

CREATE TABLE `tentatives_connexion` (
  `id` int(11) NOT NULL,
  `pseudo` varchar(25) NOT NULL,
  `timestamp` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `tentatives_connexion`
--

INSERT INTO `tentatives_connexion` (`id`, `pseudo`, `timestamp`) VALUES
(1, 'mgontier', 1717070931),
(2, 'mgontier', 1717072092),
(3, 'sa', 1717073530),
(4, 'sa', 1717073535),
(5, 'ccunatbrulez2', 1717075685),
(6, 'ccunatbrule', 1717081511),
(7, 'Ska', 1717081527),
(8, '', 1717082527),
(9, 'sa', 1717139615),
(10, 'sa', 1717140061),
(11, 'sa', 1717140066),
(12, 'sa', 1717158698),
(13, 'Ska', 1717165913),
(14, 'fweil', 1717489617),
(15, 'SA', 1717577233),
(16, 'tintin', 1718545575),
(17, 'Tintin58', 1718545641),
(18, '', 1720400888),
(19, 'dqsf', 1724196238),
(20, 'ccunatbrule', 1724198044),
(21, 'SA', 1724246004),
(22, '', 1724955843),
(23, 'ccunatbrule', 1725279162),
(24, 'ccunatbrule', 1725279167),
(25, 'christian', 1725279704),
(26, 'christian', 1725279708),
(27, 'ccunatbrule', 1725284588),
(28, 'sa', 1725543460),
(29, 'ccunatbrule', 1725554016),
(30, 'ccunatbrule', 1725625771),
(31, 'sa', 1725625901),
(32, '', 1726074336),
(33, '', 1726650282),
(34, '', 1727027012),
(35, '', 1728894150),
(36, '', 1728894308),
(37, '', 1728894340),
(38, '', 1729265533);

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

--
-- Structure de la table `Vehicules`
--

CREATE TABLE `Vehicules` (
  `id` int(11) NOT NULL,
  `plaque` varchar(9) NOT NULL,
  `marque` varchar(50) DEFAULT NULL,
  `modele` varchar(50) DEFAULT NULL,
  `annee` int(4) DEFAULT NULL,
  `image` varchar(250) NOT NULL DEFAULT '/images/vehicules/img_vehicule.png',
  `disponible` tinyint(1) NOT NULL DEFAULT 0,
  `latitude` decimal(9,6) NOT NULL DEFAULT 48.000000,
  `longitude` decimal(9,6) NOT NULL DEFAULT 2.000000,
  `ip` varchar(40) NOT NULL DEFAULT '127.0.0.1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `Vehicules`
--

INSERT INTO `Vehicules` (`id`, `plaque`, `marque`, `modele`, `annee`, `image`, `disponible`, `latitude`, `longitude`, `ip`) VALUES
(1, 'GH209RH', 'Ford', 'Mustang', 2017, '/images/vehicules/GH209RH/img_vehicule.png', 1, 48.786471, 2.325543, '192.168.253.194'),
(2, 'PH940OP', 'Nissan', 'Leaf', 2022, '/images/vehicules/PH940OP/img_vehicule.png', 1, 48.856600, 6.352200, '127.0.0.1'),
(3, 'XD738UJ', 'BMW', 'i3 S', 2024, '/images/vehicules/XD738UJ/img_vehicule.png', 0, 48.656600, 2.352200, '127.0.0.1'),
(4, 'WSD754YH', 'Toyota', 'Prius', 2023, '/images/vehicules/WSD754YH/img_vehicule.png', 1, 48.056600, 3.352200, '127.0.0.1'),
(5, 'IO334PO', 'Chevrolet', 'Bolt', 2023, '/images/vehicules/IO334PO/img_vehicule.png', 0, 48.756600, 7.352200, '127.0.0.1'),
(6, 'AA123AA', 'Renault', 'Clio', 2018, '/images/vehicules/AA123AA/img_vehicule.png', 1, 48.558844, 2.294351, '127.0.0.1'),
(7, 'BB456BB', 'Peugeot', '208', 2016, '/images/vehicules/BB456BB/img_vehicule.png', 1, 48.256600, 1.352200, '127.0.0.1'),
(8, 'CC789CC', 'Volkswagen', 'Golf', 2019, '/images/vehicules/CC789CC/img_vehicule.png', 1, 48.856600, 9.352200, '127.0.0.1'),
(9, 'DD012DD', 'Ford', 'Fiesta', 2015, '/images/vehicules/DD012DD/img_vehicule.png', 1, 49.856600, 6.352200, '127.0.0.1'),
(10, 'EE345EE', 'Toyota', 'Yaris', 2017, '/images/vehicules/EE345EE/img_vehicule.png', 1, 45.856600, 4.352200, '127.0.0.1'),
(11, 'FF678FF', 'Audi', 'A3', 2014, '/images/vehicules/FF678FF/img_vehicule.png', 1, 42.856600, 2.352200, '127.0.0.1'),
(12, 'GG901GG', 'BMW', 'Series 1', 2020, '/images/vehicules/GG901GG/img_vehicule.png', 1, 46.856600, 3.352200, '127.0.0.1'),
(13, 'HH234HH', 'Mercedes-Benz', 'A-Class', 2019, '/images/vehicules/HH234HH/img_vehicule.png', 1, 48.856600, 2.352200, '127.0.0.1'),
(14, 'II567II', 'Hyundai', 'i30', 2016, '/images/vehicules/II567II/img_vehicule.png', 1, 50.856600, 7.352200, '127.0.0.1'),
(15, 'JJ890JJ', 'Kia', 'Rio', 2017, '/images/vehicules/JJ890JJ/img_vehicule.png', 1, 49.856600, 4.352200, '127.0.0.1'),
(16, 'KK123KK', 'Nissan', 'Micra', 2018, '/images/vehicules/KK123KK/img_vehicule.png', 1, 44.856600, 2.352200, '127.0.0.1'),
(17, 'LL456LL', 'Fiat', '500', 2015, '/images/vehicules/LL456LL/img_vehicule.png', 1, 43.856600, 2.652200, '127.0.0.1'),
(18, 'MM789MM', 'Skoda', 'Fabia', 2019, '/images/vehicules/MM789MM/img_vehicule.png', 1, 47.856600, 2.852200, '127.0.0.1'),
(19, 'NN012NN', 'Volvo', 'V40', 2016, '/images/vehicules/NN012NN/img_vehicule.png', 1, 45.856600, 2.452200, '127.0.0.1'),
(20, 'OO345OO', 'Seat', 'Ibiza', 2017, '/images/vehicules/OO345OO/img_vehicule.png', 1, 48.856600, 2.352200, '127.0.0.1'),
(21, 'PP678PP', 'Mini', 'Cooper', 2020, '/images/vehicules/PP678PP/img_vehicule.png', 1, 43.856600, 2.752200, '127.0.0.1'),
(22, 'QQ901QQ', 'Citroen', 'C3', 2018, '/images/vehicules/QQ901QQ/img_vehicule.png', 1, 44.856600, 2.252200, '127.0.0.1'),
(23, 'RR234RR', 'Dacia', 'Sandero', 2015, '/images/vehicules/RR234RR/img_vehicule.png', 1, 45.856600, 4.352200, '127.0.0.1'),
(24, 'SS567SS', 'Land Rover', 'Evoque', 2021, '/images/vehicules/SS567SS/img_vehicule.png', 1, 46.856600, 8.352200, '127.0.0.1'),
(25, 'TT890TT', 'Jeep', 'Renegade', 2019, '/images/vehicules/TT890TT/img_vehicule.png', 1, 47.856600, 2.952200, '127.0.0.1'),
(27, 'CB333MV', 'Renault', 'Megane', 2014, '/images/vehicules/CB333MV/img_vehicule.png', 0, 48.000000, 2.000000, '127.0.0.1'),
(28, 'GH239RH', 'Tesla', 'Model S', 2022, '/images/vehicules/GH239RH/img_vehicule.png', 1, 48.000000, 1.000000, '127.0.0.1');

--
-- Index pour les tables déchargées
--

--
-- Index pour la table `Clients`
--
ALTER TABLE `Clients`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `Reservations`
--
ALTER TABLE `Reservations`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uc_vehicule_reservation` (`id_vehicule`,`start`,`end`),
  ADD UNIQUE KEY `uc_client_reservation` (`id_user`,`start`,`end`),
  ADD KEY `idx_id_user` (`id_user`),
  ADD KEY `idx_id_vehicule` (`id_vehicule`) USING BTREE;

--
-- Index pour la table `tentatives_connexion`
--
ALTER TABLE `tentatives_connexion`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `Vehicules`
--
ALTER TABLE `Vehicules`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT pour les tables déchargées
--

--
-- AUTO_INCREMENT pour la table `Clients`
--
ALTER TABLE `Clients`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;

--
-- AUTO_INCREMENT pour la table `Reservations`
--
ALTER TABLE `Reservations`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=84;

--
-- AUTO_INCREMENT pour la table `tentatives_connexion`
--
ALTER TABLE `tentatives_connexion`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT pour la table `Vehicules`
--
ALTER TABLE `Vehicules`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- Contraintes pour les tables déchargées
--

--
-- Contraintes pour la table `Reservations`
--
ALTER TABLE `Reservations`
  ADD CONSTRAINT `Reservations_idfk_1` FOREIGN KEY (`id_vehicule`) REFERENCES `Vehicules` (`id`),
  ADD CONSTRAINT `Reservations_idfk_2` FOREIGN KEY (`id_user`) REFERENCES `Clients` (`id`);
COMMIT;