text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  --
  -- Hôte : 127.0.0.1
  -- Généré le : mer. 12 mai 2021 à 14:06
  -- Version du serveur :  10.4.14-MariaDB
  -- Version de PHP : 7.3.22
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  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 */;
  
  --
  -- Base de données : `codeigniter-blog-channel`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Structure de la table `migrations`
  --
  
  CREATE TABLE `migrations` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `version` varchar(255) NOT NULL,
    `class` varchar(255) NOT NULL,
    `group` varchar(255) NOT NULL,
    `namespace` varchar(255) NOT NULL,
    `time` int(11) NOT NULL,
    `batch` int(11) UNSIGNED NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Déchargement des données de la table `migrations`
  --
  
  INSERT INTO `migrations` (`id`, `version`, `class`, `group`, `namespace`, `time`, `batch`) VALUES
  (1, '2021-02-15-123832', 'App\\Database\\Migrations\\CreatePost', 'default', 'App', 1620821046, 1),
  (2, '2021-02-18-104025', 'App\\Database\\Migrations\\CreateUser', 'default', 'App', 1620821046, 1),
  (3, '2021-02-20-121342', 'App\\Database\\Migrations\\AddUserIdToPostTable', 'default', 'App', 1620821047, 1),
  (4, '2021-02-22-115724', 'App\\Database\\Migrations\\AddAdminColumnToUsers', 'default', 'App', 1620821048, 1),
  (5, '2021-02-25-112209', 'App\\Database\\Migrations\\AddImageColumnToPostTable', 'default', 'App', 1620821048, 1);
  
  -- --------------------------------------------------------
  
  --
  -- Structure de la table `post`
  --
  
  CREATE TABLE `post` (
    `id` int(5) UNSIGNED NOT NULL,
    `title` varchar(100) NOT NULL,
    `description` text NOT NULL,
    `created_at` datetime DEFAULT NULL,
    `updated_at` datetime DEFAULT NULL,
    `user_id` int(5) UNSIGNED DEFAULT NULL,
    `post_image` varchar(128) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Déchargement des données de la table `post`
  --
  
  INSERT INTO `post` (`id`, `title`, `description`, `created_at`, `updated_at`, `user_id`, `post_image`) VALUES
  (1, 'Laravel ecommerce website project with free source code', 'Laravel ecommerce website project with free source codeLaravel ecommerce website project with free source codeLaravel ecommerce website project with free source codeLaravel ecommerce website project with free source code.', '2021-05-12 07:05:27', '2021-05-12 07:05:27', 1, 'Untitled design (6).png');
  
  -- --------------------------------------------------------
  
  --
  -- Structure de la table `user`
  --
  
  CREATE TABLE `user` (
    `id` int(5) UNSIGNED NOT NULL,
    `name` varchar(100) NOT NULL,
    `email` varchar(100) NOT NULL,
    `password` varchar(255) NOT NULL,
    `created_at` datetime DEFAULT NULL,
    `updated_at` datetime DEFAULT NULL,
    `is_admin` tinyint(1) DEFAULT 0
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Déchargement des données de la table `user`
  --
  
  INSERT INTO `user` (`id`, `name`, `email`, `password`, `created_at`, `updated_at`, `is_admin`) VALUES
  (1, 'samadi samir', 'sandra@email.com', '$2y$10$PVgYWOo6LT1r7Z6WTGURb.VfbMtr2WNvDihGxW02SoHAF0RQp./d6', '2021-05-12 07:04:39', '2021-05-12 07:04:39', 0);
  
  --
  -- Index pour les tables déchargées
  --
  
  --
  -- Index pour la table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Index pour la table `post`
  --
  ALTER TABLE `post`
    ADD PRIMARY KEY (`id`),
    ADD KEY `post_user_id_fk` (`user_id`);
  
  --
  -- Index pour la table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT pour les tables déchargées
  --
  
  --
  -- AUTO_INCREMENT pour la table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  
  --
  -- AUTO_INCREMENT pour la table `post`
  --
  ALTER TABLE `post`
    MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT pour la table `user`
  --
  ALTER TABLE `user`
    MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- Contraintes pour les tables déchargées
  --
  
  --
  -- Contraintes pour la table `post`
  --
  ALTER TABLE `post`
    ADD CONSTRAINT `post_user_id_fk` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE 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 */;
  