-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 28, 2022 at 12:35 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.4.7

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

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

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

CREATE TABLE `admin` (
  `id` int(11) NOT NULL,
  `username` varchar(10) NOT NULL,
  `password` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

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

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

--
-- Table structure for table `arrivals`
--

CREATE TABLE `arrivals` (
  `id` int(11) NOT NULL,
  `number` varchar(10) NOT NULL,
  `card number` varchar(20) NOT NULL,
  `source` varchar(50) NOT NULL,
  `destination` varchar(50) NOT NULL,
  `amount` text NOT NULL,
  `cvv` varchar(3) NOT NULL,
  `button` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `arrivals`
--

INSERT INTO `arrivals` (`id`, `number`, `card number`, `source`, `destination`, `amount`, `cvv`, `button`) VALUES
(4, 'tn83z4604', '1234567890', 'bangalore', 'krishnagiri', '200', '123', 2),
(5, 'tn83z4604', '0987654321', 'bangalore', 'chennai', '500', '321', 1),
(8, 'tn23bx9127', '1232435456', 'bangalore', 'chennai', '500', '432', 2),
(9, 'tn23bx9127', '473281689', 'hosur', 'chennai', '300', '098', 1),
(11, 'tn30bk9799', '1232435456', 'chennai', 'bangalore', '500', '000', 2),
(12, 'tn83z4604', '0987654321', 'bangalore', 'vaniyambadi', '300', '321', 2),
(13, 'tn83z4604', '1234567890', 'chennai', 'bangalore', '500', '321', 2);

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

--
-- Table structure for table `gatelist`
--

CREATE TABLE `gatelist` (
  `id` int(11) NOT NULL,
  `gateid` int(11) NOT NULL,
  `source` varchar(20) NOT NULL,
  `destination` varchar(20) NOT NULL,
  `amount` varchar(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `gatelist`
--

INSERT INTO `gatelist` (`id`, `gateid`, `source`, `destination`, `amount`) VALUES
(1, 5, 'bangalore', 'chennai', '500'),
(2, 5, 'chennai', 'bangalore', '500'),
(3, 5, 'hosur', 'chennai', '500'),
(6, 5, 'chennai', 'hosur', '500'),
(7, 4, 'krishnagiri', 'chennai', '400'),
(8, 4, 'chennai', 'krishnagiri', '400'),
(9, 3, 'vaniyambadi', 'chennai', '300'),
(10, 3, 'chennai', 'vaniyambadi', '300'),
(11, 2, 'pallikonda', 'chennai', '200'),
(12, 2, 'chennai', 'pallikonda', '200'),
(13, 1, 'wallaja', 'chennai', '100'),
(14, 1, 'chennai', 'wallaja', '100'),
(15, 1, 'bangalore', 'hosur', '100'),
(16, 1, 'hosur', 'bangalore', '100'),
(17, 2, 'bangalore', 'krishnagiri', '200'),
(18, 2, 'krishnagiri', 'bangalore', '200'),
(19, 3, 'bangalore', 'vaniyambadi', '300'),
(20, 3, 'vaniyambadi', 'bangalore', '300'),
(21, 5, 'bangalore', 'wallaja', '500'),
(22, 5, 'wallaja', 'bangalore', '500'),
(23, 4, 'bangalore', 'pallikonda', '400'),
(24, 4, 'pallikonda', 'bangalore', '400');

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

--
-- Table structure for table `register`
--

CREATE TABLE `register` (
  `id` int(11) NOT NULL,
  `name` varchar(20) NOT NULL,
  `phone` varchar(10) NOT NULL,
  `number` varchar(10) NOT NULL,
  `password` varchar(8) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `register`
--

INSERT INTO `register` (`id`, `name`, `phone`, `number`, `password`) VALUES
(3, 'Sakthi', '1234567890', 'tn83z4604', '1144');

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

--
-- Table structure for table `test`
--

CREATE TABLE `test` (
  `id` int(11) NOT NULL,
  `email` varchar(30) NOT NULL,
  `password` varchar(20) NOT NULL,
  `image` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `toll`
--

CREATE TABLE `toll` (
  `id` int(11) NOT NULL,
  `username` varchar(10) NOT NULL,
  `password` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `toll`
--

INSERT INTO `toll` (`id`, `username`, `password`) VALUES
(1, 'toll', 'toll');

--
-- Indexes for dumped tables
--

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

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

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

--
-- AUTO_INCREMENT for table `test`
--
ALTER TABLE `test`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `toll`
--
ALTER TABLE `toll`
  MODIFY `id` int(11) 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 */;
