text: -- phpMyAdmin SQL Dump
  -- version 4.8.4
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Aug 05, 2021 at 11:11 AM
  -- Server version: 10.1.37-MariaDB
  -- PHP Version: 5.6.39
  
  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: `uasmpl`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `kategori_menu`
  --
  
  CREATE TABLE `kategori_menu` (
    `id_kategori` int(10) NOT NULL,
    `nama_kategori` varchar(50) NOT NULL,
    `keterangan` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `kategori_menu`
  --
  
  INSERT INTO `kategori_menu` (`id_kategori`, `nama_kategori`, `keterangan`) VALUES
  (1, 'Makanan', 'Berisi segala jenis makanan tersedia di restaurant'),
  (2, 'Minuman', 'Berisi segala jenis minuman tersedia di restaurant'),
  (3, 'Snack', 'Berisi segala jenis makanan ringan tersedia di restaurant');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `menu`
  --
  
  CREATE TABLE `menu` (
    `id` int(11) NOT NULL,
    `nama` text NOT NULL,
    `harga` varchar(10) NOT NULL,
    `deskripsi` varchar(100) NOT NULL,
    `id_kategori` int(10) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `menu`
  --
  
  INSERT INTO `menu` (`id`, `nama`, `harga`, `deskripsi`, `id_kategori`) VALUES
  (1, 'Nasi Goreng', '15000', 'Nasi Goreng dengan telur', 1),
  (2, 'Es Jeruk', '10000', 'Minuman jeruk asli dengan es', 2),
  (3, 'Es Teh Manis', '7000', 'Teh manis asli dengan menggunakan es', 2),
  (4, 'Kwetiauw Goreng', '15000', 'Kwetiauw dengan campuran sayur dan telur', 1),
  (5, 'Kwetiauw Kuah', '12000', 'Kwetiauw kuah dengan sayur', 1),
  (6, 'Roti Panggang Cokelat', '10000', 'Roti Panggang dengan selai coklat', 3);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `pelanggan`
  --
  
  CREATE TABLE `pelanggan` (
    `id_pelanggan` int(11) NOT NULL,
    `nama_pelanggan` varchar(50) NOT NULL,
    `jenis_kelamin` varchar(10) NOT NULL,
    `alamat_pelanggan` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `pelanggan`
  --
  
  INSERT INTO `pelanggan` (`id_pelanggan`, `nama_pelanggan`, `jenis_kelamin`, `alamat_pelanggan`) VALUES
  (1, 'Andini', 'Perempuan', 'Sungailiat'),
  (2, 'Rian', 'Laki-laki', 'Pangkalpinang');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `pengiriman`
  --
  
  CREATE TABLE `pengiriman` (
    `id_pengiriman` int(11) NOT NULL,
    `id` int(10) NOT NULL,
    `id_pelanggan` int(10) NOT NULL,
    `status` varchar(20) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `pengiriman`
  --
  
  INSERT INTO `pengiriman` (`id_pengiriman`, `id`, `id_pelanggan`, `status`) VALUES
  (1, 1, 1, 'Sedang diantar'),
  (2, 2, 2, 'Sudah diantar'),
  (3, 6, 2, 'Dalam Proses');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `kategori_menu`
  --
  ALTER TABLE `kategori_menu`
    ADD PRIMARY KEY (`id_kategori`);
  
  --
  -- Indexes for table `menu`
  --
  ALTER TABLE `menu`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `pelanggan`
  --
  ALTER TABLE `pelanggan`
    ADD PRIMARY KEY (`id_pelanggan`);
  
  --
  -- Indexes for table `pengiriman`
  --
  ALTER TABLE `pengiriman`
    ADD PRIMARY KEY (`id_pengiriman`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `menu`
  --
  ALTER TABLE `menu`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  
  --
  -- AUTO_INCREMENT for table `pelanggan`
  --
  ALTER TABLE `pelanggan`
    MODIFY `id_pelanggan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `pengiriman`
  --
  ALTER TABLE `pengiriman`
    MODIFY `id_pengiriman` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  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 */;
  