text: -- phpMyAdmin SQL Dump
  -- version 4.8.5
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Oct 22, 2020 at 02:19 PM
  -- Server version: 10.1.39-MariaDB
  -- PHP Version: 7.3.5
  
  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_eat_fish`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `barang`
  --
  
  CREATE TABLE `barang` (
    `id_barang` int(10) NOT NULL,
    `nama_barang` varchar(30) NOT NULL,
    `jenis_barang` varchar(15) NOT NULL,
    `jumlah` int(10) NOT NULL,
    `harga` int(10) NOT NULL,
    `deskripsi` text NOT NULL,
    `foto` varchar(35) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `barang`
  --
  
  INSERT INTO `barang` (`id_barang`, `nama_barang`, `jenis_barang`, `jumlah`, `harga`, `deskripsi`, `foto`) VALUES
  (1, 'Bandeng', 'Ikan', 100, 35000, 'Bandeng sangat bergizi', 'Ikan1602372996.jpg'),
  (2, 'Nugget', 'Produk Olahan', 80, 55000, 'Kandungan dalam nugget :\r\n- Protein\r\n- Kalsium\r\n- Apapun', 'Produk_Olahan1602377474.jpeg'),
  (3, 'Lele', 'Ikan', 75, 28000, 'Lele sangat bergizi', 'Ikan1602380691.jpg'),
  (4, 'Bawal', 'Ikan', 110, 40000, 'Bawal mengandung protein yang tinggi.', 'Ikan1602660374.png'),
  (5, 'Cumi-cumi', 'Ikan', 80, 55000, 'Cumi-cumi sangat enak dan bergizi.', 'Ikan1602660545.jpg');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `keranjang`
  --
  
  CREATE TABLE `keranjang` (
    `id_keranjang` int(10) NOT NULL,
    `nama_barang` varchar(30) NOT NULL,
    `jumlah` int(10) NOT NULL,
    `total_harga` int(10) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `transaksi`
  --
  
  CREATE TABLE `transaksi` (
    `id_transaksi` int(10) NOT NULL,
    `nama_pembeli` varchar(30) NOT NULL,
    `total_harga` int(15) NOT NULL,
    `jam` varchar(15) NOT NULL,
    `tanggal` varchar(15) NOT NULL,
    `status` varchar(15) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `transaksi`
  --
  
  INSERT INTO `transaksi` (`id_transaksi`, `nama_pembeli`, `total_harga`, `jam`, `tanggal`, `status`) VALUES
  (1, 'Yupie', 249000, '02:56:25', '2020-10-14', 'Selesai'),
  (2, 'Zaaa', 249000, '02:57:44', '2020-10-14', 'Selesai'),
  (3, 'Saya', 275000, '04:09:08', '2020-10-14', 'Proses');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE `user` (
    `id_user` int(10) NOT NULL,
    `username` varchar(15) NOT NULL,
    `password` varchar(15) NOT NULL,
    `level` varchar(15) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `user`
  --
  
  INSERT INTO `user` (`id_user`, `username`, `password`, `level`) VALUES
  (1, 'manager', 'manager', 'manager'),
  (4, 'admin1', 'admin1', 'admin');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `barang`
  --
  ALTER TABLE `barang`
    ADD PRIMARY KEY (`id_barang`);
  
  --
  -- Indexes for table `keranjang`
  --
  ALTER TABLE `keranjang`
    ADD PRIMARY KEY (`id_keranjang`);
  
  --
  -- Indexes for table `transaksi`
  --
  ALTER TABLE `transaksi`
    ADD PRIMARY KEY (`id_transaksi`);
  
  --
  -- Indexes for table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`id_user`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `barang`
  --
  ALTER TABLE `barang`
    MODIFY `id_barang` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  
  --
  -- AUTO_INCREMENT for table `keranjang`
  --
  ALTER TABLE `keranjang`
    MODIFY `id_keranjang` int(10) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `transaksi`
  --
  ALTER TABLE `transaksi`
    MODIFY `id_transaksi` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `user`
  --
  ALTER TABLE `user`
    MODIFY `id_user` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  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 */;
  