-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 16, 2022 at 10:19 AM
-- Server version: 10.4.24-MariaDB
-- PHP Version: 8.1.6

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

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

--
-- Table structure for table `admin`
--

CREATE TABLE `admin` (
  `adminname` varchar(255) CHARACTER SET utf8 NOT NULL,
  `username` varchar(20) NOT NULL,
  `adminIc` varchar(12) CHARACTER SET utf8 NOT NULL,
  `phoneNo` varchar(12) CHARACTER SET utf8 NOT NULL,
  `department` varchar(5) CHARACTER SET utf8 NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `admin`
--

INSERT INTO `admin` (`adminname`, `username`, `adminIc`, `phoneNo`, `department`) VALUES
('MOHD FAIZLY BIN MUSA', 'faizly', '820125086009', '0123361231', 'ADMIN');

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

--
-- Table structure for table `bukulog`
--

CREATE TABLE `bukulog` (
  `NOIC` varchar(12) NOT NULL,
  `nopendaftaran` varchar(10) NOT NULL,
  `BahaUnit` varchar(30) NOT NULL,
  `destinasi` varchar(30) NOT NULL,
  `tarikh` varchar(15) NOT NULL,
  `mulai` time NOT NULL,
  `hingga` time NOT NULL,
  `kenderaan` varchar(30) NOT NULL,
  `namapemandu` varchar(50) NOT NULL,
  `odometer` varchar(20) NOT NULL,
  `jarakjalan` varchar(20) NOT NULL,
  `noresit` varchar(30) NOT NULL,
  `liter` varchar(30) NOT NULL,
  `jumjarakKM` varchar(50) NOT NULL,
  `penggunaanbahanapiliter` varchar(30) NOT NULL,
  `pembelianbahanapiRM` varchar(30) NOT NULL,
  `kadarpenggunaanbahanapiKMLITER` varchar(30) NOT NULL,
  `Bulan` varchar(10) NOT NULL,
  `No` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `bukulog`
--

INSERT INTO `bukulog` (`NOIC`, `nopendaftaran`, `BahaUnit`, `destinasi`, `tarikh`, `mulai`, `hingga`, `kenderaan`, `namapemandu`, `odometer`, `jarakjalan`, `noresit`, `liter`, `jumjarakKM`, `penggunaanbahanapiliter`, `pembelianbahanapiRM`, `kadarpenggunaanbahanapiKMLITER`, `Bulan`, `No`) VALUES
('811026085727', 'abcd', 'JMSK', 'kl', '2022-07-19', '22:56:00', '14:53:00', 'kereta', 'EN MUHAMAD ALI ADZHAR BIN MOHAMAD ZAHIDI', '889', 'jauh', 'rm70', '7.0', 'vvv', 'vv', 'vv', 'vv', 'bbb', 1),
('710122086145', 'abcd', 'JMSK', 'kl', '2022-08-02', '13:56:00', '12:56:00', 'pajero', 'EN.JAMAL OSMAN BIN ISA', '889', 'jauh', 'rm70', '7.0', 'vvv', 'vv', 'vv', 'vv', 'bbb', 2),
('801015145641', 'dasas', 'JKA', 'dasds', '2022-08-23', '19:10:00', '19:10:00', 'pajero', 'EN MOHD DZULKAFLI BIN ALI ', 'fsdfdsf', 'fdsdf', 'fdsff', 'dsfsdf', 'dfssdf', 'sdff', 'dfsdf', 'fdsdf', 'fdsdf', 3);

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

--
-- Table structure for table `driver`
--

CREATE TABLE `driver` (
  `DriverNum` int(11) NOT NULL,
  `drivername` varchar(255) CHARACTER SET utf8 NOT NULL,
  `driverphonenum` varchar(12) CHARACTER SET utf8 NOT NULL,
  `driverIc` varchar(12) CHARACTER SET utf8 NOT NULL,
  `status` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Assignto` varchar(255) CHARACTER SET utf8 DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `driver`
--

INSERT INTO `driver` (`DriverNum`, `drivername`, `driverphonenum`, `driverIc`, `status`, `Assignto`) VALUES
(1, 'EN.JAMAL OSMAN BIN ISA', '0125309149', '710122086145', 'available', NULL),
(2, 'EN MUHAMMAD ASRUL ASFANDI BIN MUJAR ', '0176072603', '780510086597', 'available', NULL),
(3, 'EN MOHD DZULKAFLI BIN ALI ', '0125953703', '801015145641', 'available', NULL),
(4, 'MOHD HASRIL BIN YUSUF AL-BAKRI', '0175191763', '810330085495', 'available', NULL),
(5, 'EN MUHAMAD ALI ADZHAR BIN MOHAMAD ZAHIDI', '0125892743', '811026085727', 'available', NULL),
(6, 'EN MOHD KAMARUL ARIFFIN BIN ABDUL ', '0195683261', '820527086167', 'available', NULL),
(7, 'EN MUHAMAD MUAS AS BIN MUSTAFFA', '0122518762', '870208095029', 'available', NULL);

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

--
-- Table structure for table `pemohonan_kenderaan`
--

CREATE TABLE `pemohonan_kenderaan` (
  `No_Pemohonan` int(11) NOT NULL,
  `ICno` varchar(12) NOT NULL,
  `Jabatan` varchar(80) NOT NULL,
  `tarikh_mohon` date NOT NULL,
  `Tujuan` varchar(80) NOT NULL,
  `Alamat` varchar(80) NOT NULL,
  `Penumpang` varchar(5) NOT NULL,
  `Pengiring` varchar(100) NOT NULL,
  `TarikhPB` varchar(50) NOT NULL,
  `DepartTime` time NOT NULL,
  `Maklumat` varchar(255) NOT NULL,
  `vehicletype` varchar(10) NOT NULL,
  `Status_Pemohonan` varchar(20) NOT NULL,
  `Tarikh_Sah` varchar(20) NOT NULL,
  `drivername` varchar(100) NOT NULL,
  `Catatan` varchar(100) NOT NULL,
  `Status_Trip` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `pemohonan_kenderaan`
--

INSERT INTO `pemohonan_kenderaan` (`No_Pemohonan`, `ICno`, `Jabatan`, `tarikh_mohon`, `Tujuan`, `Alamat`, `Penumpang`, `Pengiring`, `TarikhPB`, `DepartTime`, `Maklumat`, `vehicletype`, `Status_Pemohonan`, `Tarikh_Sah`, `drivername`, `Catatan`, `Status_Trip`) VALUES
(1, '850417075464', 'UICT', '2022-07-21', 'makan', 'majlis agama', '100', 'abu', '21 Jul 2022 - 21 Jul 2022', '13:54:00', 'dasdad', 'Bas', 'Diluluskan', ' 2022-07-21', 'EN MUHAMAD ALI ADZHAR BIN MOHAMAD ZAHIDI', 'raya', 'Belum Selesai'),
(2, '710122086145', 'PENT', '2022-08-15', 'kenduri', 'AXaxa', 'csaca', 'xasxasx', '18 Aug 2022 - 30 Sep 2022', '11:38:00', 'sxasxasx', 'Bas', 'Diluluskan', ' 2022-08-16', 'EN MOHD DZULKAFLI BIN ALI ', 'pihak multimedia akan menyedia kamera dan perkakas', 'Belum Selesai'),
(3, '841228086127', 'UMS', '2022-08-16', 'kasdmkdqwmd', 'mfwqofmowqmioq', 'fwqfw', 'ffewfef', '17 Aug 2022 - 07 Sep 2022', '18:55:00', 'geewgee', 'Bas', 'Diluluskan', ' 2022-08-16', 'MOHD HASRIL BIN YUSUF AL-BAKRI', 'raya', 'Belum Selesai');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
  ADD PRIMARY KEY (`adminIc`);

--
-- Indexes for table `bukulog`
--
ALTER TABLE `bukulog`
  ADD PRIMARY KEY (`No`);

--
-- Indexes for table `driver`
--
ALTER TABLE `driver`
  ADD PRIMARY KEY (`DriverNum`);

--
-- Indexes for table `pemohonan_kenderaan`
--
ALTER TABLE `pemohonan_kenderaan`
  ADD PRIMARY KEY (`No_Pemohonan`);

--
-- AUTO_INCREMENT for dumped tables
--

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

--
-- AUTO_INCREMENT for table `driver`
--
ALTER TABLE `driver`
  MODIFY `DriverNum` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `pemohonan_kenderaan`
--
ALTER TABLE `pemohonan_kenderaan`
  MODIFY `No_Pemohonan` 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 */;
