text: -- phpMyAdmin SQL Dump
  -- version 5.0.4
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Feb 14, 2021 at 11:34 AM
  -- Server version: 10.4.17-MariaDB
  -- PHP Version: 7.4.15
  
  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: `db_kingster`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `events`
  --
  
  CREATE TABLE `events` (
    `id_events` int(10) NOT NULL,
    `judul` varchar(100) NOT NULL,
    `tanggal` date NOT NULL,
    `jam` varchar(50) NOT NULL,
    `tempat` varchar(100) NOT NULL,
    `author` varchar(100) NOT NULL,
    `kontak` varchar(20) NOT NULL,
    `deskripsi` text NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `events`
  --
  
  INSERT INTO `events` (`id_events`, `judul`, `tanggal`, `jam`, `tempat`, `author`, `kontak`, `deskripsi`) VALUES
  (1, 'Lomba LKS', '2021-02-23', '08:00', 'SMKN 4 Malang', 'Sekolah', '089687058734', 'Semangaaaaaatttttt !!!!'),
  (2, 'embo wes', '2021-02-16', '09:05', 'SMKN 4 Malang', 'Sekolah', '089687058734', 'embo wes'),
  (3, 'About Our University', '2021-02-16', '01:29', 'SMKN 4 Malang', 'Sekolah', '089687058734', 'ASDaosjdoajsdoaijdals'),
  (4, 'embo', '2021-02-13', '01:29', 'SMKN 4 Malang', 'Sekolah', '089687058734', 'embo');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `kategori`
  --
  
  CREATE TABLE `kategori` (
    `id_kategori` int(10) NOT NULL,
    `nama` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `kategori`
  --
  
  INSERT INTO `kategori` (`id_kategori`, `nama`) VALUES
  (1, 'Admission'),
  (2, 'Student'),
  (3, 'Teacher');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `konten`
  --
  
  CREATE TABLE `konten` (
    `id_konten` int(10) NOT NULL,
    `judul` varchar(100) NOT NULL,
    `foto` varchar(100) DEFAULT NULL,
    `sub_judul` varchar(100) NOT NULL,
    `deskripsi` text DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `konten`
  --
  
  INSERT INTO `konten` (`id_konten`, `judul`, `foto`, `sub_judul`, `deskripsi`) VALUES
  (1, 'Kingster Headmaster', '1613296303_about-bg-1.jpg', 'Fall 2021 applications are now open', 'We don’t just give students an education and experiences that set them up for success in a career. We help them succeed in their career—to discover a field they’re passionate about and dare to lead it.'),
  (2, 'About Our University', NULL, 'See all about university', NULL);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `migrations`
  --
  
  CREATE TABLE `migrations` (
    `id` int(10) UNSIGNED NOT NULL,
    `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `batch` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `news`
  --
  
  CREATE TABLE `news` (
    `id_news` int(10) NOT NULL,
    `judul` varchar(100) NOT NULL,
    `foto` varchar(100) NOT NULL,
    `kategori` varchar(100) NOT NULL,
    `tanggal` date NOT NULL,
    `deskripsi` text NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `news`
  --
  
  INSERT INTO `news` (`id_news`, `judul`, `foto`, `kategori`, `tanggal`, `deskripsi`) VALUES
  (1, 'Upacara Hari Senin Besok Ditiadakan', '1613293499_slider-2.jpg', 'Admission', '2021-02-12', 'Upacara Hari Senin Besok Ditiadakan karena tidak memungkinkan'),
  (2, 'Upacara Hari Senin Besok Ditiadakan', '1613293509_slider-1.jpg', 'Teacher', '2021-02-10', 'Upacara Hari Senin Besok Ditiadakan karena suatu hal yang aneh'),
  (3, 'Upacara Hari Senin Besok Ditiadakan', '1613293517_slider-3.jpg', 'Admission', '2021-02-07', 'Upacara Hari Senin Besok Ditiadakan karena tidak apa apa'),
  (5, 'About Our University', '1613293526_about-bg-1.jpg', 'Teacher', '2021-02-08', 'Deskripsi singkat About');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `sub_konten`
  --
  
  CREATE TABLE `sub_konten` (
    `id_subkonten` int(10) NOT NULL,
    `id_konten` int(10) NOT NULL,
    `deskripsi` text NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `sub_konten`
  --
  
  INSERT INTO `sub_konten` (`id_subkonten`, `id_konten`, `deskripsi`) VALUES
  (1, 2, 'We are one of the largest, most diverse universities in the USA with over 90,000 students in USA, and a further 30,000 studying across 180 countries for Kingster University.'),
  (3, 2, 'Kingster University was established by John Smith in 1920 for the public benefit and it is recognized globally. Throughout our great history, Kingster has offered access to a wide range of academic opportunities. As a world leader in higher education, the University has pioneered change in the sector.');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id_user` int(10) NOT NULL,
    `username` varchar(100) NOT NULL,
    `password` varchar(100) NOT NULL,
    `akses` int(5) NOT NULL DEFAULT 2
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`id_user`, `username`, `password`, `akses`) VALUES
  (1, 'superadmin', 'superadmin', 1),
  (2, 'writter', 'writter', 2);
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `events`
  --
  ALTER TABLE `events`
    ADD PRIMARY KEY (`id_events`);
  
  --
  -- Indexes for table `kategori`
  --
  ALTER TABLE `kategori`
    ADD PRIMARY KEY (`id_kategori`);
  
  --
  -- Indexes for table `konten`
  --
  ALTER TABLE `konten`
    ADD PRIMARY KEY (`id_konten`);
  
  --
  -- Indexes for table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `news`
  --
  ALTER TABLE `news`
    ADD PRIMARY KEY (`id_news`);
  
  --
  -- Indexes for table `sub_konten`
  --
  ALTER TABLE `sub_konten`
    ADD PRIMARY KEY (`id_subkonten`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id_user`),
    ADD UNIQUE KEY `username` (`username`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `events`
  --
  ALTER TABLE `events`
    MODIFY `id_events` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `kategori`
  --
  ALTER TABLE `kategori`
    MODIFY `id_kategori` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `konten`
  --
  ALTER TABLE `konten`
    MODIFY `id_konten` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `news`
  --
  ALTER TABLE `news`
    MODIFY `id_news` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  
  --
  -- AUTO_INCREMENT for table `sub_konten`
  --
  ALTER TABLE `sub_konten`
    MODIFY `id_subkonten` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id_user` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  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 */;
  