text: -- phpMyAdmin SQL Dump
  -- version 4.8.1
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jun 11, 2019 at 04:48 PM
  -- Server version: 10.1.33-MariaDB
  -- PHP Version: 7.2.6
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  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 */;
  
  --
  -- Database: `db_inventory`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tbl_barangkeluar`
  --
  
  CREATE TABLE `tbl_barangkeluar` (
    `id_barang` varchar(255) NOT NULL,
    `nama_barang` varchar(255) NOT NULL,
    `produsen` varchar(255) NOT NULL,
    `penjual` varchar(255) NOT NULL,
    `unit_jual` int(11) NOT NULL,
    `jual` int(11) NOT NULL,
    `bulan` int(2) NOT NULL,
    `tahun` int(2) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tbl_bulan`
  --
  
  CREATE TABLE `tbl_bulan` (
    `id` int(11) NOT NULL,
    `nama_bulan` varchar(255) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tbl_bulan`
  --
  
  INSERT INTO `tbl_bulan` (`id`, `nama_bulan`) VALUES
  (1, 'Januari'),
  (2, 'Februari'),
  (3, 'Maret'),
  (4, 'April'),
  (5, 'Mei'),
  (6, 'Juni'),
  (7, 'Juli'),
  (8, 'Agustus'),
  (9, 'September'),
  (10, 'Oktober'),
  (11, 'November'),
  (12, 'Desember');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tbl_gudang`
  --
  
  CREATE TABLE `tbl_gudang` (
    `id_barang` varchar(255) NOT NULL,
    `nama_barang` varchar(255) NOT NULL,
    `foto_barang` varchar(255) NOT NULL,
    `produsen` varchar(255) NOT NULL,
    `penerima` varchar(255) NOT NULL,
    `unit` int(11) NOT NULL,
    `modal` int(11) NOT NULL,
    `bulan` int(2) NOT NULL,
    `tahun` int(2) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tbl_tahun`
  --
  
  CREATE TABLE `tbl_tahun` (
    `id` int(11) NOT NULL,
    `nama_tahun` int(4) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tbl_tahun`
  --
  
  INSERT INTO `tbl_tahun` (`id`, `nama_tahun`) VALUES
  (1, 2019),
  (3, 2020);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tbl_user`
  --
  
  CREATE TABLE `tbl_user` (
    `id` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `email` varchar(255) NOT NULL,
    `password` varchar(255) NOT NULL,
    `level` enum('1','2') NOT NULL,
    `is_active` enum('0','1') NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tbl_user`
  --
  
  INSERT INTO `tbl_user` (`id`, `name`, `email`, `password`, `level`, `is_active`) VALUES
  (3, 'Ryan Kurniawan', 'abc123@gmail.com', '$2y$10$qpN1hbPEA9HTjUjDGiAA8.a6oKsFbQX2H/iDSe0/Ebl.2VuoQjXB.', '1', '1'),
  (4, 'Ryan', 'ryansg@gmail.com', '$2y$10$bquyC0jQkoNnPRBRzkb1nOqJo0W9uNTH2tRDAEv00Hui31p3QSf5O', '2', '1'),
  (5, 'Ihsan Ferdiant', 'ihsan@gmail.com', '$2y$10$vKaABXnHkeIDsKomIENpFO1A1BlZxjAkn214x.VYwE8yof/aS9nd.', '1', '1'),
  (6, 'abc', 'abcabc123@gmail.com', '$2y$10$7ULZbzFn/7gePaCxJ8Rs.uIFdaGMJMGKOSJgK6rUkAEJ.WJ.RCYG6', '1', '1'),
  (7, 'udin', 'udin@gmail.com', '$2y$10$uWyBK/HOUNt7.JvWIH3cI.ybzHg6AAeHoZQPRxvCfcl9LkN1PQdpe', '1', '1');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `tbl_barangkeluar`
  --
  ALTER TABLE `tbl_barangkeluar`
    ADD PRIMARY KEY (`id_barang`);
  
  --
  -- Indexes for table `tbl_bulan`
  --
  ALTER TABLE `tbl_bulan`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `tbl_gudang`
  --
  ALTER TABLE `tbl_gudang`
    ADD PRIMARY KEY (`id_barang`);
  
  --
  -- Indexes for table `tbl_tahun`
  --
  ALTER TABLE `tbl_tahun`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `tbl_user`
  --
  ALTER TABLE `tbl_user`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `tbl_bulan`
  --
  ALTER TABLE `tbl_bulan`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
  
  --
  -- AUTO_INCREMENT for table `tbl_tahun`
  --
  ALTER TABLE `tbl_tahun`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `tbl_user`
  --
  ALTER TABLE `tbl_user`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  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 */;
  