text: -- phpMyAdmin SQL Dump
  -- version 4.5.1
  -- http://www.phpmyadmin.net
  --
  -- Host: 127.0.0.1
  -- Generation Time: Aug 08, 2018 at 12:38 AM
  -- Server version: 10.1.16-MariaDB
  -- PHP Version: 5.6.24
  
  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: `adms`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `pendaftar`
  --
  
  CREATE TABLE `pendaftar` (
    `id_pendaftar` int(5) NOT NULL,
    `nik` varchar(16) NOT NULL,
    `nama` varchar(50) NOT NULL,
    `tgl_lahir` date NOT NULL,
    `no_hp` varchar(13) NOT NULL,
    `email` varchar(50) NOT NULL,
    `organisasi` varchar(50) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `pendaftar`
  --
  
  INSERT INTO `pendaftar` (`id_pendaftar`, `nik`, `nama`, `tgl_lahir`, `no_hp`, `email`, `organisasi`) VALUES
  (1, '92181900000', 'Doni', '1994-08-09', '82482800000', 'doni@gmail.com', 'PKI'),
  (2, '28288800000', 'Eko', '1994-07-04', '28191900000', 'eko@gmail.com', 'Nasdem');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `sertifikasi`
  --
  
  CREATE TABLE `sertifikasi` (
    `id_sert` int(5) NOT NULL,
    `id_pendaftar` int(5) NOT NULL,
    `skema` varchar(50) NOT NULL,
    `tempat_uji` varchar(50) NOT NULL,
    `rekomendasi` varchar(50) NOT NULL,
    `tgl_terbit` date NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `sertifikasi`
  --
  
  INSERT INTO `sertifikasi` (`id_sert`, `id_pendaftar`, `skema`, `tempat_uji`, `rekomendasi`, `tgl_terbit`) VALUES
  (1, 1, 'Madya', 'Jambi', 'Kampus', '2018-08-09'),
  (2, 2, 'Madya', 'Jambi', 'Perusahaan', '2018-08-25');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `pendaftar`
  --
  ALTER TABLE `pendaftar`
    ADD PRIMARY KEY (`id_pendaftar`);
  
  --
  -- Indexes for table `sertifikasi`
  --
  ALTER TABLE `sertifikasi`
    ADD PRIMARY KEY (`id_sert`),
    ADD KEY `id_pendaftar` (`id_pendaftar`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `pendaftar`
  --
  ALTER TABLE `pendaftar`
    MODIFY `id_pendaftar` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  --
  -- AUTO_INCREMENT for table `sertifikasi`
  --
  ALTER TABLE `sertifikasi`
    MODIFY `id_sert` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `sertifikasi`
  --
  ALTER TABLE `sertifikasi`
    ADD CONSTRAINT `sertifikasi_ibfk_1` FOREIGN KEY (`id_pendaftar`) REFERENCES `pendaftar` (`id_pendaftar`) ON DELETE CASCADE ON UPDATE CASCADE;
  
  /*!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 */;
  