text: -- phpMyAdmin SQL Dump
  -- version 4.8.4
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jul 25, 2020 at 05:39 AM
  -- Server version: 10.1.37-MariaDB
  -- PHP Version: 7.3.1
  
  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: `cuti`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tb_cuti`
  --
  
  CREATE TABLE `tb_cuti` (
    `id_cuti` int(11) NOT NULL,
    `id_karyawan` int(11) NOT NULL,
    `id_jenis` int(11) NOT NULL,
    `dari_tanggal` date NOT NULL,
    `ke_tanggal` date NOT NULL,
    `deskripsi` text NOT NULL,
    `status` int(11) NOT NULL,
    `berkas_1` varchar(100) NOT NULL,
    `berkas_2` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tb_cuti`
  --
  
  INSERT INTO `tb_cuti` (`id_cuti`, `id_karyawan`, `id_jenis`, `dari_tanggal`, `ke_tanggal`, `deskripsi`, `status`, `berkas_1`, `berkas_2`) VALUES
  (2, 4, 1, '2020-07-13', '2020-07-24', 'Cuti', 1, '', ''),
  (4, 3, 2, '2020-07-09', '2020-07-21', '', 2, 'PetirJanuari2017_Adi_Supriyatna_ok1.pdf', 'Data_Pelanggan1.pdf');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tb_departemen`
  --
  
  CREATE TABLE `tb_departemen` (
    `id_departemen` int(11) NOT NULL,
    `nama_departemen` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tb_departemen`
  --
  
  INSERT INTO `tb_departemen` (`id_departemen`, `nama_departemen`) VALUES
  (1, 'Departement Perbadokan'),
  (2, 'Departemen Keagamaan');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tb_jenis_cuti`
  --
  
  CREATE TABLE `tb_jenis_cuti` (
    `id_jenis` int(11) NOT NULL,
    `jenis_cuti` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tb_jenis_cuti`
  --
  
  INSERT INTO `tb_jenis_cuti` (`id_jenis`, `jenis_cuti`) VALUES
  (1, 'Cuti Hari Raya'),
  (2, 'Cuti Sakit 1');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tb_karyawan`
  --
  
  CREATE TABLE `tb_karyawan` (
    `id_karyawan` int(11) NOT NULL,
    `nama_lengkap` varchar(100) NOT NULL,
    `alamat` varchar(100) NOT NULL,
    `kota` varchar(100) NOT NULL,
    `jk` int(11) NOT NULL,
    `email` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tb_karyawan`
  --
  
  INSERT INTO `tb_karyawan` (`id_karyawan`, `nama_lengkap`, `alamat`, `kota`, `jk`, `email`) VALUES
  (3, 'Khoironi', 'Sedan Rembang', 'Rembang', 1, 'khoironi14@gmail.com'),
  (4, 'Prety', 'Sedan Rembang', 'Rembang', 1, 'pretyanggraini@gmail.com');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tb_mutasi`
  --
  
  CREATE TABLE `tb_mutasi` (
    `id_mutasi` int(11) NOT NULL,
    `id_karyawan` int(11) NOT NULL,
    `username` varchar(100) NOT NULL,
    `password` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tb_user`
  --
  
  CREATE TABLE `tb_user` (
    `id_user` int(11) NOT NULL,
    `username` varchar(100) NOT NULL,
    `password` varchar(100) NOT NULL,
    `level` int(11) NOT NULL,
    `id_karyawan` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tb_user`
  --
  
  INSERT INTO `tb_user` (`id_user`, `username`, `password`, `level`, `id_karyawan`) VALUES
  (3, 'roni', '202cb962ac59075b964b07152d234b70', 1, 3),
  (4, 'prety', '202cb962ac59075b964b07152d234b70', 2, 4);
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `tb_cuti`
  --
  ALTER TABLE `tb_cuti`
    ADD PRIMARY KEY (`id_cuti`);
  
  --
  -- Indexes for table `tb_departemen`
  --
  ALTER TABLE `tb_departemen`
    ADD PRIMARY KEY (`id_departemen`);
  
  --
  -- Indexes for table `tb_jenis_cuti`
  --
  ALTER TABLE `tb_jenis_cuti`
    ADD PRIMARY KEY (`id_jenis`);
  
  --
  -- Indexes for table `tb_karyawan`
  --
  ALTER TABLE `tb_karyawan`
    ADD PRIMARY KEY (`id_karyawan`);
  
  --
  -- Indexes for table `tb_mutasi`
  --
  ALTER TABLE `tb_mutasi`
    ADD PRIMARY KEY (`id_mutasi`);
  
  --
  -- Indexes for table `tb_user`
  --
  ALTER TABLE `tb_user`
    ADD PRIMARY KEY (`id_user`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `tb_cuti`
  --
  ALTER TABLE `tb_cuti`
    MODIFY `id_cuti` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `tb_departemen`
  --
  ALTER TABLE `tb_departemen`
    MODIFY `id_departemen` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `tb_jenis_cuti`
  --
  ALTER TABLE `tb_jenis_cuti`
    MODIFY `id_jenis` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `tb_karyawan`
  --
  ALTER TABLE `tb_karyawan`
    MODIFY `id_karyawan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `tb_mutasi`
  --
  ALTER TABLE `tb_mutasi`
    MODIFY `id_mutasi` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `tb_user`
  --
  ALTER TABLE `tb_user`
    MODIFY `id_user` int(11) 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 */;
  