text: -- phpMyAdmin SQL Dump
  -- version 5.1.0
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Dec 02, 2021 at 02:58 PM
  -- Server version: 10.4.18-MariaDB
  -- PHP Version: 8.0.3
  
  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 */;
  
  --
  -- Database: `rental_mobil`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `admin`
  --
  
  CREATE TABLE `admin` (
    `id_admin` int(11) NOT NULL,
    `nama_admin` varchar(120) NOT NULL,
    `username` varchar(120) NOT NULL,
    `password` varchar(120) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `customer`
  --
  
  CREATE TABLE `customer` (
    `id_customer` int(11) NOT NULL,
    `nama` varchar(120) NOT NULL,
    `username` varchar(120) NOT NULL,
    `alamat` varchar(120) NOT NULL,
    `gender` varchar(20) NOT NULL,
    `no_telefon` varchar(20) NOT NULL,
    `no_ktp` varchar(50) NOT NULL,
    `password` varchar(120) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `customer`
  --
  
  INSERT INTO `customer` (`id_customer`, `nama`, `username`, `alamat`, `gender`, `no_telefon`, `no_ktp`, `password`) VALUES
  (6, 'diaz aryanta', 'diazat', 'Jln. Garuda III Ap3 No10 Kranggan Permai', 'Laki-Laki', '0846132566564', '5125235254363', '6ba721b1d62cfb9fa3d78211e8647599');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `mobil`
  --
  
  CREATE TABLE `mobil` (
    `id_mobil` int(11) NOT NULL,
    `kode_type` varchar(120) NOT NULL,
    `merk` varchar(120) NOT NULL,
    `no_plat` varchar(20) NOT NULL,
    `warna` varchar(20) NOT NULL,
    `tahun` varchar(4) NOT NULL,
    `status` varchar(50) NOT NULL,
    `gambar` varchar(255) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `mobil`
  --
  
  INSERT INTO `mobil` (`id_mobil`, `kode_type`, `merk`, `no_plat`, `warna`, `tahun`, `status`, `gambar`) VALUES
  (23, 'SDN', 'Honda Brio', 'B 1023 PPQ', 'Hitam', '2021', '1', 'honda_brio.jpg'),
  (24, 'SDN', 'Honda Jazz', 'B 151 MIR', 'Hitam', '2021', '1', 'jazz-crystal-black-pearl1.png'),
  (25, 'HTCB', 'Toyota Camry', 'B 0945 ROP', 'Hitam Metalic', '2020', '0', 'toyota_camry.jpeg'),
  (26, 'apa', 'Toyota Avanza', 'B 0495 RKO', 'Hitam Metalic', '2021', '0', 'toyota_avanza.jpg');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `rental`
  --
  
  CREATE TABLE `rental` (
    `id_rental` int(11) NOT NULL,
    `id_customer` int(11) NOT NULL,
    `tanggal_rental` date NOT NULL,
    `tanggal_kembali` date NOT NULL,
    `tanggal_pengembalian` date NOT NULL,
    `status_rental` varchar(50) NOT NULL,
    `status_pengembalian` varchar(50) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `transaksi`
  --
  
  CREATE TABLE `transaksi` (
    `id_rental` int(11) NOT NULL,
    `id_customer` int(11) NOT NULL,
    `id_mobil` int(11) NOT NULL,
    `tanggal_rental` date NOT NULL,
    `tanggal_kembali` date NOT NULL,
    `tanggal_pengembalian` date NOT NULL,
    `status_pengembalian` varchar(50) NOT NULL,
    `status_rental` varchar(50) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `type`
  --
  
  CREATE TABLE `type` (
    `id_type` int(11) NOT NULL,
    `kode_type` varchar(10) NOT NULL,
    `nama_type` varchar(50) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `type`
  --
  
  INSERT INTO `type` (`id_type`, `kode_type`, `nama_type`) VALUES
  (5, 'MNV', 'Minivan'),
  (6, 'SDN', 'Sedan'),
  (7, 'MVP', 'Multi Purpose Vechile'),
  (8, 'TCB', 'Hatchback'),
  (12, 'cth', 'contoh'),
  (13, 'apa', 'apaanaja');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `admin`
  --
  ALTER TABLE `admin`
    ADD PRIMARY KEY (`id_admin`);
  
  --
  -- Indexes for table `customer`
  --
  ALTER TABLE `customer`
    ADD PRIMARY KEY (`id_customer`);
  
  --
  -- Indexes for table `mobil`
  --
  ALTER TABLE `mobil`
    ADD PRIMARY KEY (`id_mobil`);
  
  --
  -- Indexes for table `rental`
  --
  ALTER TABLE `rental`
    ADD PRIMARY KEY (`id_rental`);
  
  --
  -- Indexes for table `transaksi`
  --
  ALTER TABLE `transaksi`
    ADD PRIMARY KEY (`id_rental`);
  
  --
  -- Indexes for table `type`
  --
  ALTER TABLE `type`
    ADD PRIMARY KEY (`id_type`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `admin`
  --
  ALTER TABLE `admin`
    MODIFY `id_admin` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `customer`
  --
  ALTER TABLE `customer`
    MODIFY `id_customer` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  
  --
  -- AUTO_INCREMENT for table `mobil`
  --
  ALTER TABLE `mobil`
    MODIFY `id_mobil` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;
  
  --
  -- AUTO_INCREMENT for table `rental`
  --
  ALTER TABLE `rental`
    MODIFY `id_rental` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `transaksi`
  --
  ALTER TABLE `transaksi`
    MODIFY `id_rental` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `type`
  --
  ALTER TABLE `type`
    MODIFY `id_type` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
  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 */;
  