text: -- phpMyAdmin SQL Dump
  -- version 4.8.0
  -- https://www.phpmyadmin.net/
  --
  -- Host: localhost
  -- Waktu pembuatan: 31 Bulan Mei 2018 pada 08.22
  -- Versi server: 5.7.21
  -- Versi PHP: 7.2.5
  
  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: `loker`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `daftarlowongans`
  --
  
  CREATE TABLE `daftarlowongans` (
    `id` int(10) UNSIGNED NOT NULL,
    `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `pendidikan` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `keahlian` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `telepon` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `cv` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `low_id` int(10) UNSIGNED 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 `lowongans`
  --
  
  CREATE TABLE `lowongans` (
    `id` int(10) UNSIGNED NOT NULL,
    `nama_low` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `lokasi` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `pers_id` int(10) UNSIGNED 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 `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 untuk tabel `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, '2018_05_31_040135_create_perusahaans_table', 1),
  (4, '2018_05_31_040206_create_lowongans_table', 1),
  (5, '2018_05_31_040239_create_daftarlowongans_table', 1),
  (6, '2018_05_31_040340_create_pivotlowongans_table', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `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;
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `perusahaans`
  --
  
  CREATE TABLE `perusahaans` (
    `id` int(10) UNSIGNED NOT NULL,
    `nama_pers` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `telepon` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `tunjangan` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `lokasi` varchar(255) 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 `pivotlowongans`
  --
  
  CREATE TABLE `pivotlowongans` (
    `id` int(10) UNSIGNED NOT NULL,
    `pers_id` int(10) UNSIGNED NOT NULL,
    `low_id` int(10) UNSIGNED 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 `users`
  --
  
  CREATE TABLE `users` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT 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
  --
  
  --
  -- Indeks untuk tabel `daftarlowongans`
  --
  ALTER TABLE `daftarlowongans`
    ADD PRIMARY KEY (`id`),
    ADD KEY `daftarlowongans_low_id_foreign` (`low_id`);
  
  --
  -- Indeks untuk tabel `lowongans`
  --
  ALTER TABLE `lowongans`
    ADD PRIMARY KEY (`id`),
    ADD KEY `lowongans_pers_id_foreign` (`pers_id`);
  
  --
  -- Indeks untuk tabel `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indeks untuk tabel `password_resets`
  --
  ALTER TABLE `password_resets`
    ADD KEY `password_resets_email_index` (`email`);
  
  --
  -- Indeks untuk tabel `perusahaans`
  --
  ALTER TABLE `perusahaans`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indeks untuk tabel `pivotlowongans`
  --
  ALTER TABLE `pivotlowongans`
    ADD PRIMARY KEY (`id`),
    ADD KEY `pivotlowongans_pers_id_foreign` (`pers_id`),
    ADD KEY `pivotlowongans_low_id_foreign` (`low_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 `daftarlowongans`
  --
  ALTER TABLE `daftarlowongans`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT untuk tabel `lowongans`
  --
  ALTER TABLE `lowongans`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT untuk tabel `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  
  --
  -- AUTO_INCREMENT untuk tabel `perusahaans`
  --
  ALTER TABLE `perusahaans`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT untuk tabel `pivotlowongans`
  --
  ALTER TABLE `pivotlowongans`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT untuk tabel `users`
  --
  ALTER TABLE `users`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
  --
  
  --
  -- Ketidakleluasaan untuk tabel `daftarlowongans`
  --
  ALTER TABLE `daftarlowongans`
    ADD CONSTRAINT `daftarlowongans_low_id_foreign` FOREIGN KEY (`low_id`) REFERENCES `lowongans` (`id`) ON DELETE CASCADE;
  
  --
  -- Ketidakleluasaan untuk tabel `lowongans`
  --
  ALTER TABLE `lowongans`
    ADD CONSTRAINT `lowongans_pers_id_foreign` FOREIGN KEY (`pers_id`) REFERENCES `perusahaans` (`id`) ON DELETE CASCADE;
  
  --
  -- Ketidakleluasaan untuk tabel `pivotlowongans`
  --
  ALTER TABLE `pivotlowongans`
    ADD CONSTRAINT `pivotlowongans_low_id_foreign` FOREIGN KEY (`low_id`) REFERENCES `lowongans` (`id`) ON DELETE CASCADE,
    ADD CONSTRAINT `pivotlowongans_pers_id_foreign` FOREIGN KEY (`pers_id`) REFERENCES `perusahaans` (`id`) ON DELETE 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 */;
  