text: -- phpMyAdmin SQL Dump
  -- version 4.9.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jan 18, 2020 at 05:16 AM
  -- Server version: 10.4.11-MariaDB
  -- PHP Version: 7.4.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: `smk`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `artikel`
  --
  
  CREATE TABLE `artikel` (
    `id` bigint(20) NOT NULL,
    `judul` varchar(200) NOT NULL,
    `judul_url` text DEFAULT NULL,
    `artikel` longtext DEFAULT NULL,
    `tanggal` varchar(100) NOT NULL,
    `id_admin` varchar(100) NOT NULL,
    `show` enum('Y','N') NOT NULL,
    `gambar` text NOT NULL,
    `idkategori` varchar(191) NOT NULL,
    `dilihat` int(11) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `kategori`
  --
  
  CREATE TABLE `kategori` (
    `id` bigint(20) NOT NULL,
    `kategori` varchar(191) DEFAULT NULL,
    `edit` enum('Y','N') NOT NULL,
    `show` enum('Y','N') NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- 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;
  
  --
  -- Dumping data for table `migrations`
  --
  
  INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
  (1, '2014_10_12_000000_create_users_table', 1),
  (2, '2014_10_12_100000_create_password_resets_table', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `orang_tua`
  --
  
  CREATE TABLE `orang_tua` (
    `id` bigint(20) NOT NULL,
    `nama_ayah` varchar(50) DEFAULT NULL,
    `tahun_lahir_ayah` varchar(50) DEFAULT NULL,
    `jenjang_pendidikan_ayah` varchar(50) DEFAULT NULL,
    `pekerjaan_ayah` varchar(50) DEFAULT NULL,
    `penghasilan_ayah` varchar(50) DEFAULT NULL,
    `kebutuhan_khusus_ayah` varchar(50) DEFAULT NULL,
    `nama_ibu` varchar(50) DEFAULT NULL,
    `tahun_lahir_ibu` varchar(50) DEFAULT NULL,
    `jenjang_pendidikan_ibu` varchar(50) DEFAULT NULL,
    `pekerjaan_ibu` varchar(50) DEFAULT NULL,
    `penghasilan_ibu` varchar(50) DEFAULT NULL,
    `kebutuhan_khusus_ibu` varchar(50) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `password_resets`
  --
  
  CREATE TABLE `password_resets` (
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `roles`
  --
  
  CREATE TABLE `roles` (
    `id` int(11) NOT NULL,
    `role` varchar(50) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `setting`
  --
  
  CREATE TABLE `setting` (
    `id` int(11) NOT NULL,
    `webname` varchar(50) NOT NULL,
    `email` varchar(50) NOT NULL,
    `kontak1` varchar(50) NOT NULL,
    `kontak2` varchar(50) NOT NULL,
    `facebook` varchar(50) NOT NULL,
    `instagram` varchar(50) NOT NULL,
    `twitter` varchar(50) NOT NULL,
    `youtube` text DEFAULT NULL,
    `alamat` varchar(50) NOT NULL,
    `kota` varchar(50) NOT NULL,
    `provinsi` varchar(50) NOT NULL,
    `logo` text DEFAULT NULL,
    `icon` text DEFAULT NULL,
    `banner` text DEFAULT NULL,
    `psb` enum('Y','N') NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `siswa`
  --
  
  CREATE TABLE `siswa` (
    `id` bigint(20) NOT NULL,
    `No_pendaftaran` int(11) DEFAULT NULL,
    `nama_lengkap` varchar(191) DEFAULT NULL,
    `gender` enum('Laki-Laki','Perempuan') DEFAULT NULL,
    `nisn` int(11) DEFAULT NULL,
    `ttl` varchar(191) DEFAULT NULL,
    `nik` varchar(191) DEFAULT NULL,
    `agama` varchar(191) DEFAULT NULL,
    `kebutuhan_khusus` varchar(191) DEFAULT NULL,
    `alamat` varchar(191) DEFAULT NULL,
    `rt` int(11) DEFAULT NULL,
    `rw` int(11) DEFAULT NULL,
    `dusun` varchar(191) DEFAULT NULL,
    `kelurahan` varchar(191) DEFAULT NULL,
    `kecamatan` varchar(191) DEFAULT NULL,
    `kode_pos` int(11) DEFAULT NULL,
    `jenis_tinggal` varchar(191) DEFAULT NULL,
    `alat_transportasi` varchar(191) DEFAULT NULL,
    `telp` int(12) DEFAULT NULL,
    `email` varchar(191) DEFAULT NULL,
    `no_peserta_un` varchar(50) DEFAULT NULL,
    `penerima_kip` enum('Y','N') DEFAULT NULL,
    `no_kip` varchar(191) DEFAULT NULL,
    `berat_badan` varchar(191) DEFAULT NULL,
    `tinggi_badan` varchar(191) DEFAULT NULL,
    `jarak_rumah_sekolah` varchar(191) DEFAULT NULL,
    `waktu_tempuh` varchar(191) DEFAULT NULL,
    `jumlah_saudara` varchar(191) DEFAULT NULL,
    `idortu` int(11) DEFAULT NULL,
    `idtahun` int(11) DEFAULT NULL,
    `psb` enum('terima','belum','tolak') DEFAULT NULL,
    `status` enum('lulus','belum') DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email_verified_at` timestamp NULL DEFAULT NULL,
    `level` enum('Superadmin','Admin','User') COLLATE utf8mb4_unicode_ci NOT NULL,
    `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `level`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'admin', 'admin@gmail.com', NULL, 'Superadmin', '$2y$10$dZL3.RaUj3HZ01rpqBoOBuIODEjWjDLsa6J3kMPZ7UeZrx8Ukjnnu', NULL, '2020-01-08 08:35:16', '2020-01-08 08:35:16');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `artikel`
  --
  ALTER TABLE `artikel`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `kategori`
  --
  ALTER TABLE `kategori`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `orang_tua`
  --
  ALTER TABLE `orang_tua`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `password_resets`
  --
  ALTER TABLE `password_resets`
    ADD KEY `password_resets_email_index` (`email`);
  
  --
  -- Indexes for table `roles`
  --
  ALTER TABLE `roles`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `setting`
  --
  ALTER TABLE `setting`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `siswa`
  --
  ALTER TABLE `siswa`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `users_email_unique` (`email`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `artikel`
  --
  ALTER TABLE `artikel`
    MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `kategori`
  --
  ALTER TABLE `kategori`
    MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `orang_tua`
  --
  ALTER TABLE `orang_tua`
    MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `roles`
  --
  ALTER TABLE `roles`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `setting`
  --
  ALTER TABLE `setting`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `siswa`
  --
  ALTER TABLE `siswa`
    MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  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 */;
  