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

START TRANSACTION;



--
-- 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');

--
-- 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`);

--
-- 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;
COMMIT;

