text: -- phpMyAdmin SQL Dump
  -- version 4.6.6deb5
  -- https://www.phpmyadmin.net/
  --
  -- Host: localhost:3306
  -- Generation Time: Dec 11, 2019 at 12:36 AM
  -- Server version: 5.7.28-0ubuntu0.18.04.4
  -- PHP Version: 7.2.24-0ubuntu0.18.04.1
  
  
  
  
  /*!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: `tokobuah`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `products`
  --
  
  CREATE TABLE products (
    product_id varchar(64) NOT NULL,
    name varchar(255) NOT NULL,
    price int(11) NOT NULL,
    image varchar(255) NOT NULL DEFAULT 'default.jpg',
    description text NOT NULL,
    expired_date date not null
  ) ;
  --
  -- Dumping data for table `products`
  --
  
  INSERT INTO products (product_id, name, price, image, description) VALUES
  ('5cb90329d0f13', 'Anggrek', 134000, 'default.jpg', 'Angrek adalah bunga dengan'),
  ('5cb90737356f4', 'Melati', 412221, '5cb90737356f4.png', 'melati adalah bla bla bla'),
  ('5ddd677b524b5', 'asdadas', 14141242, '5ddd677b524b5.png', 'adasdasdasd');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE users (
    user_id int(11) NOT NULL,
    username varchar(64) NOT NULL,
    password varchar(255) NOT NULL,
    email varchar(255) NOT NULL,
    full_name varchar(255) NOT NULL,
    phone varchar(20) NOT NULL,
    role enum NOT NULL DEFAULT 'customer',
    last_login timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    photo varchar(64) NOT NULL DEFAULT 'user_no_image.jpg',
    created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    is_active tinyint(1) NOT NULL DEFAULT '0'
  ) ;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO users (user_id, username, password, email, full_name, phone, role, last_login, photo, created_at, is_active) VALUES
  (1, 'dian', '$2y$10$TpipIS3PDfeHTJWggvnFO.eT/dVBMyVKI5OcYV1avGMnt8wTqOt5O', 'dian@petanikode.com', 'Ahmad Muhardian', '08123456789', 'admin', '2019-12-10 16:17:02', 'user_no_image.jpg', '2019-12-10 15:46:40', 1);
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `products`
  --
  ALTER TABLE products
    ADD PRIMARY KEY (product_id);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE users
    ADD PRIMARY KEY (user_id);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  
  /*!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 */;
  