-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 24, 2023 at 02:36 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 8.1.1

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: `test_azlogistik`
--

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

--
-- Table structure for table `jenis_truk`
--

CREATE TABLE `jenis_truk` (
  `id` int(11) NOT NULL,
  `jenis` varchar(255) NOT NULL,
  `jarak` varchar(50) NOT NULL,
  `harga` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `jenis_truk`
--

INSERT INTO `jenis_truk` (`id`, `jenis`, `jarak`, `harga`) VALUES
(1, 'Colt Diesel Los', '100 Km', 75000),
(2, 'Colt Diesel Box', '50 Km', 20000),
(3, 'Colt Diesel Tronton', '1000 Km', 1000000);

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

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

CREATE TABLE `parkir` (
  `id` int(11) NOT NULL,
  `plat_nomor` varchar(20) DEFAULT NULL,
  `waktu_masuk` datetime NOT NULL,
  `waktu_keluar` datetime DEFAULT NULL,
  `durasi_parkir` int(11) DEFAULT NULL,
  `tarif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `parkir`
--

INSERT INTO `parkir` (`id`, `plat_nomor`, `waktu_masuk`, `waktu_keluar`, `durasi_parkir`, `tarif`) VALUES
(1, '321', '2023-05-24 05:08:45', '2023-05-24 05:32:04', NULL, NULL),
(2, '2', '2023-05-23 19:00:00', '2023-05-24 01:34:03', 6, 155000),
(3, NULL, '2023-05-24 05:13:40', NULL, NULL, NULL);

--
-- Indexes for dumped tables
--

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `jenis_truk`
--
ALTER TABLE `jenis_truk`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `parkir`
--
ALTER TABLE `parkir`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
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 */;
