text: -- phpMyAdmin SQL Dump
  -- version 4.5.1
  -- http://www.phpmyadmin.net
  --
  -- Host: 127.0.0.1
  -- Generation Time: 26 Apr 2017 pada 13.37
  -- Versi Server: 10.1.13-MariaDB
  -- PHP Version: 5.5.37
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  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: `crud`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `mahasiswa`
  --
  
  CREATE TABLE `mahasiswa` (
    `ID` int(11) NOT NULL,
    `nama` varchar(20) DEFAULT NULL,
    `kelas` varchar(20) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `persons`
  --
  
  CREATE TABLE `persons` (
    `id` int(11) UNSIGNED NOT NULL,
    `firstName` varchar(100) DEFAULT NULL,
    `lastName` varchar(100) DEFAULT NULL,
    `gender` enum('male','female') DEFAULT NULL,
    `address` varchar(200) DEFAULT NULL,
    `dob` date DEFAULT NULL,
    `id_type` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data untuk tabel `persons`
  --
  
  INSERT INTO `persons` (`id`, `firstName`, `lastName`, `gender`, `address`, `dob`, `id_type`) VALUES
  (1, 'Airi', 'Satou', 'female', 'Tokyo', '1964-03-04', 1),
  (2, 'Garrett', 'Winters', 'male', 'Tokyo', '1988-09-02', 1),
  (3, 'John', 'Doe', 'male', 'Kansas', '1972-11-02', 1),
  (4, 'Tatyana', 'Fitzpatrick', 'male', 'London', '1989-01-01', 1),
  (5, 'Quinn', 'Flynn', 'male', 'Edinburgh', '1977-03-24', 2),
  (7, 'x', 'x', '', 'z', '2017-02-03', 2);
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `type_person`
  --
  
  CREATE TABLE `type_person` (
    `id_type` int(11) NOT NULL,
    `detail` varchar(50) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data untuk tabel `type_person`
  --
  
  INSERT INTO `type_person` (`id_type`, `detail`) VALUES
  (1, 'Good'),
  (2, 'Bad');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `mahasiswa`
  --
  ALTER TABLE `mahasiswa`
    ADD PRIMARY KEY (`ID`);
  
  --
  -- Indexes for table `persons`
  --
  ALTER TABLE `persons`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `type_person`
  --
  ALTER TABLE `type_person`
    ADD PRIMARY KEY (`id_type`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `mahasiswa`
  --
  ALTER TABLE `mahasiswa`
    MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `persons`
  --
  ALTER TABLE `persons`
    MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  --
  -- AUTO_INCREMENT for table `type_person`
  --
  ALTER TABLE `type_person`
    MODIFY `id_type` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  /*!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 */;
  