-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 27, 2024 at 09:07 AM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 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: `jembatantimbang`
--

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

--
-- Table structure for table `keluar`
--

CREATE TABLE `keluar` (
  `id` int(11) NOT NULL,
  `timbangan` bigint(20) DEFAULT NULL,
  `notiket` varchar(100) DEFAULT NULL,
  `nopolisi` varchar(100) DEFAULT NULL,
  `namasupir` varchar(100) DEFAULT NULL,
  `namamuatan` varchar(100) DEFAULT NULL,
  `berattotal` bigint(20) DEFAULT NULL,
  `beratkosong` bigint(20) DEFAULT NULL,
  `beratmuatan` bigint(20) DEFAULT NULL,
  `image` varchar(100) DEFAULT NULL,
  `createdate` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `kendaraan`
--

CREATE TABLE `kendaraan` (
  `id` int(11) NOT NULL,
  `no_kendaraan` varchar(50) DEFAULT NULL,
  `nama_supir` varchar(255) DEFAULT NULL,
  `alamat` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `kendaraan`
--

INSERT INTO `kendaraan` (`id`, `no_kendaraan`, `nama_supir`, `alamat`) VALUES
(1, 'KB 3301 LA', 'MARKUS', 'JALAN KESENANGAN'),
(2, 'KB 4562 LA', 'MARWAN', 'jalan JALAN'),
(3, 'dsfds', 'fdsf', 'sdfdsf'),
(4, 'dsfds', 'fdsf', 'sdfdsf'),
(6, 'dsfds', 'fdsf', 'sdfdsf'),
(7, 'dsfds', 'fdsf', 'sdfdsf'),
(8, 'dsfds', 'fdsf', 'sdfdsf'),
(9, 'dsfds', 'fdsf', 'sdfdsf'),
(10, 'dsfds', 'fdsf', 'sdfdsf'),
(11, 'KB 3320 LA', 'OM BREWOK', 'JALN KERINDUAN'),
(12, 'KB 5201 KN', 'OM BOTAK', 'JALAN KELAKAR');

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

--
-- Table structure for table `masuk`
--

CREATE TABLE `masuk` (
  `id` int(11) NOT NULL,
  `timbangan` bigint(20) DEFAULT NULL,
  `notiket` varchar(100) DEFAULT NULL,
  `nopolisi` varchar(100) DEFAULT NULL,
  `namasupir` varchar(100) DEFAULT NULL,
  `namamuatan` varchar(100) DEFAULT NULL,
  `berattotal` bigint(20) DEFAULT NULL,
  `beratkosong` bigint(20) DEFAULT NULL,
  `beratmuatan` bigint(20) DEFAULT NULL,
  `image` varchar(100) DEFAULT NULL,
  `createdate` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `masuk`
--

INSERT INTO `masuk` (`id`, `timbangan`, `notiket`, `nopolisi`, `namasupir`, `namamuatan`, `berattotal`, `beratkosong`, `beratmuatan`, `image`, `createdate`) VALUES
(8, 6000, '0001', 'KB 4142 KE', 'WIWIN', 'Buah Sawit', 6000, 0, 0, NULL, '2024-01-27 03:08:20');

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

--
-- Table structure for table `user`
--

CREATE TABLE `user` (
  `id` int(11) NOT NULL,
  `username` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user`
--

INSERT INTO `user` (`id`, `username`, `password`) VALUES
(2, 'admin', 'admin');

--
-- Indexes for dumped tables
--

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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