text: -- phpMyAdmin SQL Dump
  -- version 4.7.7
  -- https://www.phpmyadmin.net/
  --
  -- Host: localhost:3306
  -- Generation Time: Sep 22, 2018 at 10:26 AM
  -- Server version: 5.6.38
  -- PHP Version: 7.2.1
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET time_zone = "+00:00";
  
  --
  -- Database: `supbnb`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `event_models`
  --
  
  CREATE TABLE `event_models` (
    `id` int(11) NOT NULL,
    `title` varchar(255) NOT NULL,
    `all_day` tinyint(1) NOT NULL DEFAULT '1',
    `start` datetime NOT NULL,
    `end` datetime NOT NULL,
    `slug_home` varchar(255) NOT NULL,
    `accepted` int(11) NOT NULL DEFAULT '0',
    `id_booker` int(11) NOT NULL,
    `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
    `id_owner` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `homes`
  --
  
  CREATE TABLE `homes` (
    `id` int(10) UNSIGNED NOT NULL,
    `title` varchar(55) COLLATE utf8mb4_unicode_ci NOT NULL,
    `owner` int(11) NOT NULL,
    `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `content` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `type_bed` varchar(55) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    `country` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
    `city` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
    `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `imgs`
  --
  
  CREATE TABLE `imgs` (
    `identifiant` int(11) NOT NULL,
    `slug_home` text NOT NULL,
    `title` varchar(255) NOT NULL,
    `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `migrations`
  --
  
  CREATE TABLE `migrations` (
    `id` int(10) UNSIGNED NOT NULL,
    `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `batch` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `migrations`
  --
  
  INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
  (1, '2018_06_14_161847_create_home', 1),
  (2, '2018_06_15_081559_create_booking_table', 2),
  (3, '2018_06_15_084142_create_events_table', 3);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `password_resets`
  --
  
  CREATE TABLE `password_resets` (
    `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `password_resets`
  --
  
  INSERT INTO `password_resets` (`email`, `token`, `created_at`) VALUES
  ('kartori@yahoo.fr', '$2y$10$5jLYJQv5/JN1RQW41y2B7umnGmmvHot.kbqtYLqILeYjfANuSgK4u', '2018-08-29 07:05:02');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`id`, `name`, `email`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'Julien', 'kartori@yahoo.fr', '$2y$10$5YOgXVF6ONBXd96AVnBDMu/tohqpI3yb5HtpKwTpnCqZFq/NNUWca', 'wXZ6Icma03HdGuFJWAbGVQKGcbdlCbtokZssNuJxrYMqjDhP4ItLIVnNxOoV', '2018-06-14 08:03:47', '2018-06-14 08:03:47'),
  (2, 'Sami', 'sami.menouar@gmail.com', '$2y$10$QDWi4XjmQZUesHwEKaqKnOEZtlhwdA5N6FVj01dbijIn1bYMtxK8q', NULL, '2018-06-20 22:42:50', '2018-06-20 22:42:50'),
  (3, 'trez', 'kartori@yahoo.frgg', '$2y$10$iN8Rq4ggAgy6WzBigDbz2.3UGF0x6vAe8sUhWXd0WPTLw3c6n/woy', NULL, '2018-09-21 18:25:45', '2018-09-21 18:25:45');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `event_models`
  --
  ALTER TABLE `event_models`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `homes`
  --
  ALTER TABLE `homes`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `imgs`
  --
  ALTER TABLE `imgs`
    ADD PRIMARY KEY (`identifiant`);
  
  --
  -- Indexes for table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `event_models`
  --
  ALTER TABLE `event_models`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `homes`
  --
  ALTER TABLE `homes`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `imgs`
  --
  ALTER TABLE `imgs`
    MODIFY `identifiant` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  