-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `pedulidiri`
--

-- --------------------------------------------------------

--
-- 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, '2022_03_27_073542_create_perjalanans_table', 2);

-- --------------------------------------------------------

--
-- 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 `perjalanan`
--

CREATE TABLE `perjalanan` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) NOT NULL,
  `tanggal` date NOT NULL,
  `jam` time NOT NULL,
  `tujuan` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `suhu_tubuh` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `provinsi_id` bigint(20) DEFAULT NULL,
  `kota_id` bigint(20) DEFAULT NULL,
  `kecamatan_id` bigint(20) DEFAULT NULL,
  `kelurahan_id` bigint(20) 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 `perjalanan`
--

INSERT INTO `perjalanan` (`id`, `user_id`, `tanggal`, `jam`, `tujuan`, `suhu_tubuh`, `provinsi_id`, `kota_id`, `kecamatan_id`, `kelurahan_id`, `created_at`, `updated_at`) VALUES
(1, 1, '2022-03-07', '03:01:00', 'Jl. Rajawali', '35.6', NULL, NULL, NULL, NULL, '2022-03-27 02:00:11', '2022-03-27 02:00:11'),
(2, 3, '2022-03-21', '22:02:00', 'Jl. Garuda', '35', NULL, NULL, NULL, NULL, '2022-03-27 06:02:26', '2022-03-27 06:02:26'),
(3, 3, '2022-03-08', '20:04:00', 'Jl. Rajawali', '35', NULL, NULL, NULL, NULL, '2022-03-27 06:02:43', '2022-03-27 06:02:43'),
(4, 5, '2022-03-14', '20:10:00', 'Jl. Kebenaran', '37', NULL, NULL, NULL, NULL, '2022-03-27 06:07:24', '2022-03-27 06:07:24');

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `nik` bigint(20) NOT NULL,
  `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `telp` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `foto` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `username` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `role` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `alamat` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `provinsi_id` bigint(20) DEFAULT NULL,
  `kota_id` bigint(20) DEFAULT NULL,
  `kecamatan_id` bigint(20) DEFAULT NULL,
  `kelurahan_id` bigint(20) DEFAULT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `password_confirmation` 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 `users`
--

INSERT INTO `users` (`id`, `nik`, `nama`, `telp`, `email`, `foto`, `username`, `role`, `alamat`, `provinsi_id`, `kota_id`, `kecamatan_id`, `kelurahan_id`, `password`, `password_confirmation`, `created_at`, `updated_at`) VALUES
(1, 1234567890123456, 'Muhammad Hoshi', '081316912431', 'hoshi@gmail.com', '🍚.jpg', 'hoshii_', 'admin', 'Depok', NULL, NULL, NULL, NULL, '$2y$10$3mBy5xEjUZeiE7Ic.mgqk./I4Dk5a4kxeMhPSmSks537q7RJwUgKO', '$2y$10$vkyhi1HTFohgxEvHKAbe4eIOKQpB2vyGqvGmVNCBgHgjAYILFAq/S', '2022-03-25 23:14:06', '2022-03-29 06:50:15'),
(3, 987654321098765, 'Jeonghan Nasution', '0135798642123', 'jeonghan@gmail.com', 'profil.png', 'Jeongie', 'user', 'Bumi', NULL, NULL, NULL, NULL, '$2y$10$7DMemH1Gti42JNRLUuiDa.BXxaNbNfLPLFnZX0iFU0rU.fKQJOL9G', '$2y$10$3jl4cOd2626qivzFU3WsXO2qzQ0RwBnjdpq.9IfAyhdz1PrFQ1uZe', '2022-03-27 05:59:08', '2022-03-27 06:05:30'),
(4, 2345678901234567, 'Joshua Widodo', '0864213579123', 'Joshua@gmail.com', 'profil.png', 'joshushu', 'user', 'Matahari', NULL, NULL, NULL, NULL, '$2y$10$KL9/xzvjs3dNawkc.3uYSun4OI6R.sG1iMTTjeXE2OfYKum66YgNS', '$2y$10$Mlh2/0AvqdpUoZimZz/u5uG.V2tbrNEc1Sxilb3a0fjL5Ibgoi/by', '2022-03-27 06:04:04', '2022-03-27 06:04:32'),
(5, 3456789012345678, 'Seungcheol Subardo', '0345678912345', 'scoups@gmail.com', 'img-thumbnail', 'ddeungcheolie', 'user', 'Mars', NULL, NULL, NULL, NULL, '$2y$10$G3YlIWWCSbzdinnfPXnZrugoNC8CPxvrsa5b.aiqIcn4FIle1LEGS', '$2y$10$xH2qroKzYJ4FCOHmpiuTFe3EYZxaT2jSbEBOgRTdSQq3R3CUCPmbm', '2022-03-27 06:06:43', '2022-03-27 06:07:02'),
(6, 4567890123456789, 'Ahmad Jihoon', '081204678310', 'woozi@gmail.com', '8971f085-dcef-460a-a0f6-2188055d2b3a.jpg', 'uwahae', 'user', 'Jl. Emas', NULL, NULL, NULL, NULL, '$2y$10$M4rFanNLqNWKEvxChsoEfuGK9/ZH4x6jV.kT8BaYN.8REAFt17c.S', '$2y$10$27gE3oYQkfNrr4QL1Q4MJe3N3JzfI5F/Brj08GujUKHbPpaXlhCpa', '2022-03-28 08:13:56', '2022-03-28 08:39:45'),
(7, 5678901234567890, 'Sana Salsabila', NULL, 'sana@gmail.com', 'profil.png', 'sana', 'user', NULL, NULL, NULL, NULL, NULL, '$2y$10$3elqvhtfKHuI9rMyf57U8OFgYEsJOQ3LKgpL3XvUwCPxfnDljsr7m', '$2y$10$2/qrGDLv/2IiS2Xzd4uXIONHmQw4OIOAzxaBXqfJ8ATP8mI59rJuu', '2022-03-28 08:47:20', '2022-03-28 08:47:20');

--
-- Indexes for dumped tables
--

--
-- 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 `perjalanan`
--
ALTER TABLE `perjalanan`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_nik_unique` (`nik`),
  ADD UNIQUE KEY `users_email_unique` (`email`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `perjalanan`
--
ALTER TABLE `perjalanan`
  MODIFY `id` bigint(20) 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, AUTO_INCREMENT=8;
COMMIT;

