-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 21, 2022 at 07:38 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 8.0.13

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

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

--
-- Table structure for table `buses`
--

CREATE TABLE `buses` (
  `id` int(255) NOT NULL,
  `busNum` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `buses`
--

INSERT INTO `buses` (`id`, `busNum`) VALUES
(1, 256),
(2, 356),
(3, 156);

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

--
-- Table structure for table `bussort`
--

CREATE TABLE `bussort` (
  `id` int(255) NOT NULL,
  `busNum` int(5) NOT NULL,
  `arrival` varchar(15) NOT NULL,
  `timestamp` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `bussort`
--

INSERT INTO `bussort` (`id`, `busNum`, `arrival`, `timestamp`) VALUES
(1, 111, 'dna', '0000-00-00 00:00:00.000000'),
(2, 112, 'dna', '0000-00-00 00:00:00.000000'),
(3, 113, 'dna', '0000-00-00 00:00:00.000000'),
(4, 114, 'dna', '0000-00-00 00:00:00.000000');

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

--
-- Table structure for table `datecheck`
--

CREATE TABLE `datecheck` (
  `id` int(255) NOT NULL,
  `date` varchar(16) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `datecheck`
--

INSERT INTO `datecheck` (`id`, `date`) VALUES
(1, '19/Oct/2022');

--
-- Indexes for dumped tables
--

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

--
-- AUTO_INCREMENT for table `bussort`
--
ALTER TABLE `bussort`
  MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

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