text: -- phpMyAdmin SQL Dump
  -- version 4.9.1
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jan 17, 2020 at 03:43 PM
  -- Server version: 10.4.8-MariaDB
  -- PHP Version: 7.1.33
  
  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: `admincrud`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `absensi`
  --
  
  CREATE TABLE `absensi` (
    `id` int(11) NOT NULL,
    `date` date NOT NULL,
    `nim` varchar(50) NOT NULL,
    `nama` varchar(50) NOT NULL,
    `status` varchar(5) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `absensi`
  --
  
  INSERT INTO `absensi` (`id`, `date`, `nim`, `nama`, `status`) VALUES
  (10, '2019-12-24', 'G.211.19.0021', 'Fendy Noval Pradipta', 'Masuk');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `data_mahasiswa`
  --
  
  CREATE TABLE `data_mahasiswa` (
    `nim` varchar(50) NOT NULL,
    `nama` varchar(50) NOT NULL,
    `alamat` varchar(50) NOT NULL,
    `jurusan` varchar(50) NOT NULL,
    `semester` int(11) UNSIGNED ZEROFILL DEFAULT NULL,
    `jenis_kel` varchar(50) NOT NULL,
    `agama` varchar(50) NOT NULL,
    `kelas` varchar(50) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `data_mahasiswa`
  --
  
  INSERT INTO `data_mahasiswa` (`nim`, `nama`, `alamat`, `jurusan`, `semester`, `jenis_kel`, `agama`, `kelas`) VALUES
  ('G.211.19.0001', 'Bagus Pranowo', 'Semarang', 'Teknologi Informatika', 00000000005, 'Laki - laki', 'Islam', 'Sore'),
  ('G.211.19.0021', 'Fendy Noval Pradipta', 'Blora, Jawa Tengah', 'Teknik Informatika', 00000000001, 'Laki - laki', 'Islam', 'Pagi');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `kas`
  --
  
  CREATE TABLE `kas` (
    `id` varchar(11) NOT NULL,
    `nim` varchar(50) NOT NULL,
    `setor` float DEFAULT NULL,
    `tglsetor` datetime NOT NULL DEFAULT current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `kas`
  --
  
  INSERT INTO `kas` (`id`, `nim`, `setor`, `tglsetor`) VALUES
  ('', 'G.211.19.0021', 2000, '2020-01-12 00:00:00');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE `user` (
    `id_user` int(10) NOT NULL,
    `username` varchar(50) CHARACTER SET latin1 DEFAULT NULL,
    `password` varchar(50) CHARACTER SET latin1 DEFAULT NULL,
    `auth_key` varchar(50) CHARACTER SET latin1 DEFAULT NULL,
    `accessToken` varchar(50) CHARACTER SET latin1 DEFAULT NULL,
    `role` varchar(50) CHARACTER SET latin1 DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `user`
  --
  
  INSERT INTO `user` (`id_user`, `username`, `password`, `auth_key`, `accessToken`, `role`) VALUES
  (1, 'admin', 'admin123', 'test100key', '100-token', 'admin'),
  (2, 'user', 'user123', 'test101key', '101-token', 'user');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `absensi`
  --
  ALTER TABLE `absensi`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `data_mahasiswa`
  --
  ALTER TABLE `data_mahasiswa`
    ADD PRIMARY KEY (`nim`);
  
  --
  -- Indexes for table `kas`
  --
  ALTER TABLE `kas`
    ADD PRIMARY KEY (`id`,`nim`) USING BTREE;
  
  --
  -- Indexes for table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`id_user`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `absensi`
  --
  ALTER TABLE `absensi`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
  
  --
  -- AUTO_INCREMENT for table `user`
  --
  ALTER TABLE `user`
    MODIFY `id_user` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  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 */;
  