text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jul 15, 2020 at 09:28 AM
  -- Server version: 10.4.13-MariaDB
  -- PHP Version: 7.2.31
  
  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: `perpus`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tb_ebook`
  --
  
  CREATE TABLE `tb_ebook` (
    `id_ebook` int(11) NOT NULL,
    `nama_ebook` varchar(255) NOT NULL,
    `id_kelas` int(11) NOT NULL,
    `id_mapel` int(11) NOT NULL,
    `file` varchar(255) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `tb_ebook`
  --
  
  INSERT INTO `tb_ebook` (`id_ebook`, `nama_ebook`, `id_kelas`, `id_mapel`, `file`) VALUES
  (1, 'Soal dan Pembahasan Fisika', 4, 1, ''),
  (2, 'Pantun', 6, 2, '');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tb_mapel`
  --
  
  CREATE TABLE `tb_mapel` (
    `id_mapel` int(11) NOT NULL,
    `mapel` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `tb_mapel`
  --
  
  INSERT INTO `tb_mapel` (`id_mapel`, `mapel`) VALUES
  (1, 'Bahasa Indonesia'),
  (2, 'Matematika'),
  (6, 'Agama Islam');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `tb_ebook`
  --
  ALTER TABLE `tb_ebook`
    ADD PRIMARY KEY (`id_ebook`);
  
  --
  -- Indexes for table `tb_mapel`
  --
  ALTER TABLE `tb_mapel`
    ADD PRIMARY KEY (`id_mapel`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `tb_ebook`
  --
  ALTER TABLE `tb_ebook`
    MODIFY `id_ebook` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `tb_mapel`
  --
  ALTER TABLE `tb_mapel`
    MODIFY `id_mapel` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  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 */;
  