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

START TRANSACTION;



--
-- Database: `sistem_parkir`
--

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

--
-- Table structure for table `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `uuid` varchar(255) COLLATE utf8mb4_unicode_ci 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 `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, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(5, '2022_08_04_025315_create_parkir_table', 1),
(6, '2022_08_04_025436_create_parkir_keluar_table', 1);

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

--
-- Table structure for table `parkir`
--

CREATE TABLE `parkir` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `kode_parkir` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `no_polisi` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Plat Nomor Kendaraan',
  `merk` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tgl_masuk` date NOT NULL,
  `time_masuk` time NOT NULL,
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '0 = sedang parkir, 1 = sudah keluar',
  `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 `parkir`
--

INSERT INTO `parkir` (`id`, `kode_parkir`, `no_polisi`, `merk`, `tgl_masuk`, `time_masuk`, `status`, `created_at`, `updated_at`) VALUES
(1, 'iwIUVj', 'A 5UK 0E', 'Honda', '2022-08-04', '10:08:08', 1, '2022-08-04 03:08:54', '2022-08-04 13:24:21'),
(2, 'OYTvNv', 'A 5UK4 MU', 'Toyota', '2022-08-04', '17:15:08', 1, '2022-08-04 10:15:47', '2022-08-04 12:57:01'),
(3, 'cPfy7h', 'A KUK4 MU', 'Toyota', '2022-08-04', '17:16:08', 1, '2022-08-04 10:16:34', '2022-08-04 13:24:14'),
(5, 'aeAvIB', 'B 12SD FS', 'Honda', '2022-08-04', '17:25:08', 1, '2022-08-04 10:25:15', '2022-08-04 13:24:35'),
(6, '8jwbfI', 'B 12SD FG', 'Honda', '2022-08-04', '17:25:08', 1, '2022-08-04 10:25:58', '2022-08-04 13:24:42'),
(7, 'w1PveK', 'B 12SD FG', 'Honda', '2022-08-05', '10:28:08', 1, '2022-08-05 03:28:40', '2022-08-05 03:28:52');

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

--
-- Table structure for table `parkir_keluar`
--

CREATE TABLE `parkir_keluar` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `parkir_id` bigint(20) NOT NULL,
  `tarif` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tgl_keluar` date NOT NULL,
  `time_keluar` time 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 for table `parkir_keluar`
--

INSERT INTO `parkir_keluar` (`id`, `parkir_id`, `tarif`, `tgl_keluar`, `time_keluar`, `created_at`, `updated_at`) VALUES
(2, 2, '7500', '2022-08-04', '19:57:08', '2022-08-04 12:57:01', '2022-08-04 12:57:01'),
(3, 3, '10500', '2022-08-05', '20:24:08', '2022-08-04 13:24:14', '2022-08-04 13:24:14'),
(4, 1, '31500', '2022-08-17', '20:24:08', '2022-08-04 13:24:21', '2022-08-04 13:24:21'),
(5, 5, '7500', '2022-08-11', '20:24:08', '2022-08-04 13:24:35', '2022-08-04 13:24:35'),
(6, 6, '7500', '2022-08-09', '20:24:08', '2022-08-04 13:24:42', '2022-08-04 13:24:42'),
(7, 7, '1500', '2022-08-05', '10:28:08', '2022-08-05 03:28:52', '2022-08-05 03:28:52');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `parkir`
--
ALTER TABLE `parkir`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `parkir_keluar`
--
ALTER TABLE `parkir_keluar`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `parkir`
--
ALTER TABLE `parkir`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `parkir_keluar`
--
ALTER TABLE `parkir_keluar`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
COMMIT;

