text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Aug 20, 2020 at 04:32 PM
  -- Server version: 10.4.11-MariaDB
  -- PHP Version: 7.4.6
  
  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: `prestasi`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `prestasi`
  --
  
  CREATE TABLE `prestasi` (
    `id_prestasi` int(11) NOT NULL,
    `id_user` varchar(11) NOT NULL,
    `jenis_p` varchar(128) NOT NULL,
    `tingkat_p` varchar(128) NOT NULL,
    `juara` int(11) NOT NULL,
    `tahun_p` varchar(10) NOT NULL,
    `penyelenggara` varchar(128) NOT NULL,
    `bukti_prestasi` varchar(300) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `prestasi`
  --
  
  INSERT INTO `prestasi` (`id_prestasi`, `id_user`, `jenis_p`, `tingkat_p`, `juara`, `tahun_p`, `penyelenggara`, `bukti_prestasi`) VALUES
  (13, '1177050085', 'ka', 'Provinsi', 1, '2019', 'sdasad', ''),
  (16, '1177050010', 'Akademik', 'Nasional', 1, '2017', 'Bank BJB', ''),
  (17, '1177050102', 'Olah Raga', 'Kabupaten', 2, '2016', 'Bupati Garut', '');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE `user` (
    `id` int(11) NOT NULL,
    `name` varchar(128) NOT NULL,
    `username` varchar(11) NOT NULL,
    `jurusan` varchar(50) NOT NULL,
    `image` varchar(128) NOT NULL,
    `password` varchar(256) NOT NULL,
    `role_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `user`
  --
  
  INSERT INTO `user` (`id`, `name`, `username`, `jurusan`, `image`, `password`, `role_id`) VALUES
  (1, 'Admin', 'admin', '', 'DSC_0062.JPG', '$2y$10$xXhI1p6Mi5RXGzrHOvOGnupc6Z5qrz7yCptLnLp3BrbzQ1KxBg90y', 1),
  (5, 'Pebri Alkautsar', '1177050085', '', 'DSC_0062_copy.JPG', '$2y$10$ovYe1ipGscr6okM7.u9n1uRmpG.uwkCwkN9ff1iV7cjauZ54GsjCe', 2),
  (9, 'Aisyah Amini Nur', '1177050010', '', 'default.jpg', '$2y$10$DMeok/GmYvmPgpxP4Z1lAe4AZDeAmBuZ0gZNo7SX2YeZgEi5s80lS', 2),
  (10, 'Riyadi Fauzy', '1177050102', '', 'default.jpg', '$2y$10$/qoh.gbwpAU341wm1GoLF.zry7S4jwvYbEfUvZoJefowL0B7innea', 2);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user_access_menu`
  --
  
  CREATE TABLE `user_access_menu` (
    `id` int(11) NOT NULL,
    `role_id` int(11) NOT NULL,
    `menu_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `user_access_menu`
  --
  
  INSERT INTO `user_access_menu` (`id`, `role_id`, `menu_id`) VALUES
  (1, 1, 1),
  (2, 2, 2);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user_menu`
  --
  
  CREATE TABLE `user_menu` (
    `id` int(11) NOT NULL,
    `menu` varchar(128) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `user_menu`
  --
  
  INSERT INTO `user_menu` (`id`, `menu`) VALUES
  (1, 'Admin'),
  (2, 'User');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user_role`
  --
  
  CREATE TABLE `user_role` (
    `id` int(11) NOT NULL,
    `role` varchar(128) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `user_role`
  --
  
  INSERT INTO `user_role` (`id`, `role`) VALUES
  (1, 'admin'),
  (2, 'member');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `prestasi`
  --
  ALTER TABLE `prestasi`
    ADD PRIMARY KEY (`id_prestasi`);
  
  --
  -- Indexes for table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`id`) USING BTREE;
  
  --
  -- Indexes for table `user_access_menu`
  --
  ALTER TABLE `user_access_menu`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `user_menu`
  --
  ALTER TABLE `user_menu`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `user_role`
  --
  ALTER TABLE `user_role`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `prestasi`
  --
  ALTER TABLE `prestasi`
    MODIFY `id_prestasi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
  
  --
  -- AUTO_INCREMENT for table `user`
  --
  ALTER TABLE `user`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  
  --
  -- AUTO_INCREMENT for table `user_access_menu`
  --
  ALTER TABLE `user_access_menu`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `user_menu`
  --
  ALTER TABLE `user_menu`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `user_role`
  --
  ALTER TABLE `user_role`
    MODIFY `id` int(11) 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 */;
  