text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jun 29, 2020 at 12:58 PM
  -- Server version: 10.4.13-MariaDB
  -- PHP Version: 7.4.7
  
  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: `mhs`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `dosen`
  --
  
  CREATE TABLE `dosen` (
    `id` int(11) NOT NULL,
    `nama` varchar(100) NOT NULL,
    `telpon` varchar(15) NOT NULL,
    `alamat` text NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
    `updated_at` datetime NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `dosen`
  --
  
  INSERT INTO `dosen` (`id`, `nama`, `telpon`, `alamat`, `created_at`, `updated_at`) VALUES
  (1, 'Niken', '8163552346', 'Tanjungpinang', '2020-06-29 09:56:07', '0000-00-00 00:00:00'),
  (2, 'Dwi Cahya', '81257452346', 'Tanjungpinang', '2020-06-29 09:56:07', '0000-00-00 00:00:00'),
  (3, 'Tedi', '8125745352', 'Tanjungpinang', '2020-06-29 10:08:39', '0000-00-00 00:00:00'),
  (4, 'Suci', '8143463346', 'Tanjungpinang', '2020-06-29 10:08:39', '0000-00-00 00:00:00');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `failed_jobs`
  --
  
  CREATE TABLE `failed_jobs` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `matkul`
  --
  
  CREATE TABLE `matkul` (
    `id` int(11) NOT NULL,
    `kode` varchar(191) NOT NULL,
    `nama` varchar(195) NOT NULL,
    `semester` varchar(45) NOT NULL,
    `dosen_id` int(11) NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
    `updated_at` datetime NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `matkul`
  --
  
  INSERT INTO `matkul` (`id`, `kode`, `nama`, `semester`, `dosen_id`, `created_at`, `updated_at`) VALUES
  (1, 'IF1101', 'Agama', 'ganjil', 2, '2020-06-29 09:14:04', '0000-00-00 00:00:00'),
  (2, 'IF1102', 'Bahasa Indonesia', 'ganjil', 1, '2020-06-29 09:14:04', '0000-00-00 00:00:00'),
  (3, 'IF1103', 'Pendidikan Pancasila', 'ganjil', 1, '2020-06-29 09:57:07', '0000-00-00 00:00:00'),
  (4, 'IT1101', 'Algoritma Pemograman', 'ganjil', 3, '2020-06-29 10:04:53', '0000-00-00 00:00:00'),
  (5, 'IT1102', 'Pemograman Web', 'ganjil', 3, '2020-06-29 10:04:53', '0000-00-00 00:00:00');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `matkul_mhs`
  --
  
  CREATE TABLE `matkul_mhs` (
    `id` int(11) NOT NULL,
    `mhs_id` int(11) NOT NULL,
    `matkul_id` int(11) NOT NULL,
    `nilai` int(11) NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
    `updated_at` datetime NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `matkul_mhs`
  --
  
  INSERT INTO `matkul_mhs` (`id`, `mhs_id`, `matkul_id`, `nilai`, `created_at`, `updated_at`) VALUES
  (1, 2, 1, 85, '2020-06-29 09:15:51', '0000-00-00 00:00:00'),
  (2, 2, 2, 80, '2020-06-29 09:15:51', '0000-00-00 00:00:00'),
  (3, 1, 1, 80, '2020-06-29 09:45:37', '0000-00-00 00:00:00'),
  (4, 3, 1, 70, '2020-06-29 09:46:38', '0000-00-00 00:00:00'),
  (5, 3, 2, 85, '2020-06-29 09:46:38', '0000-00-00 00:00:00'),
  (6, 4, 3, 80, '2020-06-29 10:07:30', '0000-00-00 00:00:00'),
  (7, 4, 5, 85, '2020-06-29 10:07:30', '0000-00-00 00:00:00');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `mhs`
  --
  
  CREATE TABLE `mhs` (
    `id` int(10) UNSIGNED NOT NULL,
    `nama_depan` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `nama_belakang` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `jenis_kelamin` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `agama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `alamat` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `avatar` varchar(255) 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 `mhs`
  --
  
  INSERT INTO `mhs` (`id`, `nama_depan`, `nama_belakang`, `jenis_kelamin`, `agama`, `alamat`, `avatar`, `created_at`, `updated_at`) VALUES
  (1, 'Ahmad', 'Saipul', 'Laki-laki', 'Islam', 'Tanjung Balai Karimun', NULL, NULL, NULL),
  (2, 'Ardi', 'Saputra', 'Laki-laki', 'Islam', 'Tanjungpinang', NULL, NULL, NULL),
  (3, 'Arief', 'Syahputra', 'Laki-laki', 'Islam', 'Tanjungpinang, Kepri', NULL, NULL, '2020-06-28 23:37:20'),
  (4, 'Charly', 'Limbongan', 'Perempuan', 'Kristen', 'Tanjungpinang', NULL, NULL, NULL),
  (5, 'Doni', 'Mustasar', 'Laki-laki', 'Islam', 'Daik Lingga', NULL, NULL, NULL),
  (6, 'Harry Awanda', 'Putra', 'Laki-Laki', 'Islam', 'Tanjungpinang', NULL, NULL, NULL),
  (7, 'Haryadi', 'Saputra', 'Laki-laki', 'Islam', 'Tanjung Balai Karimun', NULL, '2020-06-28 22:47:36', '2020-06-28 22:47:36');
  
  -- --------------------------------------------------------
  
  --
  -- 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),
  (3, '2019_08_19_000000_create_failed_jobs_table', 1),
  (4, '2020_06_29_044815_mhs_table', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `password_resets`
  --
  
  CREATE TABLE `password_resets` (
    `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `token` varchar(255) 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 `users`
  --
  
  CREATE TABLE `users` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email_verified_at` timestamp NULL DEFAULT NULL,
    `password` varchar(255) 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;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `dosen`
  --
  ALTER TABLE `dosen`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `matkul`
  --
  ALTER TABLE `matkul`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `matkul_mhs`
  --
  ALTER TABLE `matkul_mhs`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `mhs`
  --
  ALTER TABLE `mhs`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `password_resets`
  --
  ALTER TABLE `password_resets`
    ADD KEY `password_resets_email_index` (`email`);
  
  --
  -- 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 `dosen`
  --
  ALTER TABLE `dosen`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `matkul`
  --
  ALTER TABLE `matkul`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  
  --
  -- AUTO_INCREMENT for table `matkul_mhs`
  --
  ALTER TABLE `matkul_mhs`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  
  --
  -- AUTO_INCREMENT for table `mhs`
  --
  ALTER TABLE `mhs`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
  
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  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 */;
  