text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Waktu pembuatan: 07 Sep 2021 pada 15.06
  -- Versi server: 10.1.35-MariaDB
  -- Versi PHP: 7.4.10
  
  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_register`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `data_kelompoks`
  --
  
  CREATE TABLE `data_kelompoks` (
    `id` int(10) UNSIGNED NOT NULL,
    `kelompok_id` int(10) UNSIGNED NOT NULL,
    `nama` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `nim` int(11) NOT NULL,
    `no_hp` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `sosmed` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `jenis_kelamin` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email_anggota` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `alamat` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `bidang_minat` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `keahlian` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `status` int(11) 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 untuk tabel `data_kelompoks`
  --
  
  INSERT INTO `data_kelompoks` (`id`, `kelompok_id`, `nama`, `nim`, `no_hp`, `sosmed`, `jenis_kelamin`, `email_anggota`, `alamat`, `bidang_minat`, `keahlian`, `status`, `created_at`, `updated_at`) VALUES
  (1, 1, 'ketua kelompok', 1, '09218', '@ketua', 'Perempuan', 'ayurisqi73@gmail.com', 'Madiun', 'UI / UX,Web Programing', 'Web Programing', 1, '2020-08-13 20:06:32', '2020-08-14 01:25:20'),
  (3, 1, 'Mochamad Irfani Ardhyansah', 1234, '5123', '@safbl', 'Laki-laki', 'mohamadfani99@gmail.com', 'madoun', 'Frontend,Database,UI / UX', 'UI / UX', 1, '2020-08-13 21:53:00', '2020-08-30 23:54:51');
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `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;
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `kelompoks`
  --
  
  CREATE TABLE `kelompoks` (
    `id` int(10) UNSIGNED NOT NULL,
    `user_id` int(10) UNSIGNED NOT NULL,
    `universitas` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `fakultas` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `prodi` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `alamat_univ` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `kelompok` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `jumlah_anggota` int(11) NOT NULL,
    `periode_mulai` date NOT NULL,
    `periode_akhir` date NOT NULL,
    `nama_ketua` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data untuk tabel `kelompoks`
  --
  
  INSERT INTO `kelompoks` (`id`, `user_id`, `universitas`, `fakultas`, `prodi`, `alamat_univ`, `kelompok`, `jumlah_anggota`, `periode_mulai`, `periode_akhir`, `nama_ketua`, `created_at`, `updated_at`) VALUES
  (1, 24, 'UNS', 'Teknik', 'Informasi Nuklir', 'Jl Sriwijaya, condongcatur, sleman, DIY.', 'Kelompok 1', 4, '2020-08-01', '2020-08-30', 'Noven', '2020-08-13 20:06:32', '2020-09-17 23:29:01');
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `migrations`
  --
  
  CREATE TABLE `migrations` (
    `id` int(10) UNSIGNED NOT NULL,
    `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `batch` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data untuk tabel `migrations`
  --
  
  INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
  (19, '2014_10_12_000000_create_users_table', 1),
  (20, '2014_10_12_100000_create_password_resets_table', 1),
  (21, '2019_08_19_000000_create_failed_jobs_table', 1),
  (22, '2020_06_06_171224_create_kelompoks_table', 1),
  (23, '2020_06_06_171347_create_data_kelompoks_table', 1),
  (24, '2020_06_06_171358_create_soals_table', 1),
  (25, '2020_06_17_035750_create_permission_tables', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `model_has_permissions`
  --
  
  CREATE TABLE `model_has_permissions` (
    `permission_id` bigint(20) UNSIGNED NOT NULL,
    `model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `model_id` bigint(20) UNSIGNED NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `model_has_roles`
  --
  
  CREATE TABLE `model_has_roles` (
    `role_id` bigint(20) UNSIGNED NOT NULL,
    `model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `model_id` bigint(20) UNSIGNED NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data untuk tabel `model_has_roles`
  --
  
  INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
  (1, 'App\\User', 1),
  (2, 'App\\User', 8),
  (2, 'App\\User', 15),
  (2, 'App\\User', 17),
  (2, 'App\\User', 22),
  (2, 'App\\User', 23),
  (2, 'App\\User', 24),
  (2, 'App\\User', 25),
  (2, 'App\\User', 26),
  (2, 'App\\User', 27),
  (2, 'App\\User', 28),
  (2, 'App\\User', 30),
  (2, 'App\\User', 34);
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `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;
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `permissions`
  --
  
  CREATE TABLE `permissions` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `roles`
  --
  
  CREATE TABLE `roles` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data untuk tabel `roles`
  --
  
  INSERT INTO `roles` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
  (1, 'admin', 'web', '2020-06-16 22:19:30', '2020-06-16 22:19:30'),
  (2, 'user', 'web', '2020-06-16 22:19:34', '2020-06-16 22:19:34');
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `role_has_permissions`
  --
  
  CREATE TABLE `role_has_permissions` (
    `permission_id` bigint(20) UNSIGNED NOT NULL,
    `role_id` bigint(20) UNSIGNED NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `soals`
  --
  
  CREATE TABLE `soals` (
    `id` int(10) UNSIGNED NOT NULL,
    `user_id` int(10) UNSIGNED NOT NULL,
    `item` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `keterangan` int(5) 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 untuk tabel `soals`
  --
  
  INSERT INTO `soals` (`id`, `user_id`, `item`, `keterangan`, `created_at`, `updated_at`) VALUES
  (1, 1, 'Android.pdf', 0, '2020-10-06 22:50:22', '2020-10-06 22:50:22');
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `users`
  --
  
  CREATE TABLE `users` (
    `id` int(10) UNSIGNED NOT NULL,
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email_verified_at` timestamp NULL DEFAULT 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 untuk tabel `users`
  --
  
  INSERT INTO `users` (`id`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'admin@kreasikode.com', NULL, '$2y$10$CTE5D5oAZGgKCT9JIJMf5uBTCap2w3GjR4MIexHLGge.COcps2Jly', NULL, '2020-06-16 22:23:52', '2020-06-16 22:23:52'),
  (24, 'ketua@kreasikode.com', NULL, '$2y$10$jtzoAPB6qyMqMwruRI16uOFpSKGfCuGCbKo41HPq4F42Kcr8QDCz2', NULL, '2020-08-13 20:06:32', '2020-08-13 20:06:32');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indeks untuk tabel `data_kelompoks`
  --
  ALTER TABLE `data_kelompoks`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `data_kelompoks_nim_unique` (`nim`),
    ADD UNIQUE KEY `data_kelompoks_email_unique` (`email_anggota`),
    ADD KEY `data_kelompoks_kelompok_id_foreign` (`kelompok_id`);
  
  --
  -- Indeks untuk tabel `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indeks untuk tabel `kelompoks`
  --
  ALTER TABLE `kelompoks`
    ADD PRIMARY KEY (`id`),
    ADD KEY `kelompoks_user_id_foreign` (`user_id`);
  
  --
  -- Indeks untuk tabel `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indeks untuk tabel `model_has_permissions`
  --
  ALTER TABLE `model_has_permissions`
    ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
    ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`);
  
  --
  -- Indeks untuk tabel `model_has_roles`
  --
  ALTER TABLE `model_has_roles`
    ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
    ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`);
  
  --
  -- Indeks untuk tabel `password_resets`
  --
  ALTER TABLE `password_resets`
    ADD KEY `password_resets_email_index` (`email`);
  
  --
  -- Indeks untuk tabel `permissions`
  --
  ALTER TABLE `permissions`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indeks untuk tabel `roles`
  --
  ALTER TABLE `roles`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indeks untuk tabel `role_has_permissions`
  --
  ALTER TABLE `role_has_permissions`
    ADD PRIMARY KEY (`permission_id`,`role_id`),
    ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);
  
  --
  -- Indeks untuk tabel `soals`
  --
  ALTER TABLE `soals`
    ADD PRIMARY KEY (`id`),
    ADD KEY `soals_user_id_foreign` (`user_id`);
  
  --
  -- Indeks untuk tabel `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `users_email_unique` (`email`);
  
  --
  -- AUTO_INCREMENT untuk tabel yang dibuang
  --
  
  --
  -- AUTO_INCREMENT untuk tabel `data_kelompoks`
  --
  ALTER TABLE `data_kelompoks`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT untuk tabel `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT untuk tabel `kelompoks`
  --
  ALTER TABLE `kelompoks`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT untuk tabel `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
  
  --
  -- AUTO_INCREMENT untuk tabel `permissions`
  --
  ALTER TABLE `permissions`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT untuk tabel `roles`
  --
  ALTER TABLE `roles`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT untuk tabel `soals`
  --
  ALTER TABLE `soals`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT untuk tabel `users`
  --
  ALTER TABLE `users`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
  
  --
  -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
  --
  
  --
  -- Ketidakleluasaan untuk tabel `data_kelompoks`
  --
  ALTER TABLE `data_kelompoks`
    ADD CONSTRAINT `data_kelompoks_kelompok_id_foreign` FOREIGN KEY (`kelompok_id`) REFERENCES `kelompoks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
  
  --
  -- Ketidakleluasaan untuk tabel `kelompoks`
  --
  ALTER TABLE `kelompoks`
    ADD CONSTRAINT `kelompoks_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
  
  --
  -- Ketidakleluasaan untuk tabel `model_has_permissions`
  --
  ALTER TABLE `model_has_permissions`
    ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;
  
  --
  -- Ketidakleluasaan untuk tabel `model_has_roles`
  --
  ALTER TABLE `model_has_roles`
    ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
  
  --
  -- Ketidakleluasaan untuk tabel `role_has_permissions`
  --
  ALTER TABLE `role_has_permissions`
    ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
    ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
  
  --
  -- Ketidakleluasaan untuk tabel `soals`
  --
  ALTER TABLE `soals`
    ADD CONSTRAINT `soals_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
  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 */;
  