Commit 29727127 authored by Thumuladhanujaka's avatar Thumuladhanujaka

db

parent 77a56b59
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 14, 2021 at 09:16 PM
-- Server version: 10.1.26-MariaDB
-- PHP Version: 8.0.9
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: `trainsystem`
--
-- --------------------------------------------------------
--
-- Table structure for table `details`
--
CREATE TABLE `details` (
`id` int(11) NOT NULL,
`name` varchar(250) NOT NULL,
`value` varchar(250) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `details`
--
INSERT INTO `details` (`id`, `name`, `value`) VALUES
(1, 'Wind Speed', '3.16'),
(2, 'Average Speed', '0'),
(3, 'Distance', '90.20'),
(4, 'Weather', 'Partially Cloudy'),
(5, 'Delay Time', '5');
-- --------------------------------------------------------
--
-- Table structure for table `stations`
--
CREATE TABLE `stations` (
`id` int(11) NOT NULL,
`name` varchar(250) NOT NULL,
`Latitude` double NOT NULL,
`Longitude` double NOT NULL,
`f1` double NOT NULL,
`f2` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `stations`
--
INSERT INTO `stations` (`id`, `name`, `Latitude`, `Longitude`, `f1`, `f2`) VALUES
(1, 'waskaduwa', 6.628330297471689, 79.94337231171029, 25, 65),
(2, 'waskaduwa', 6.679860387484086, 79.9796325227334, 25, 65),
(3, 'Alothiyawa', 6.744739913112401, 79.97410457597128, 17.687212, 8900.509034),
(4, 'Kesbewa', 6.8005249625021, 79.93724996599644, 10.637071, 8896.570015),
(5, 'Papiliyana', 6.857599476190894, 79.89077776607394, 5.318122, 8891.574552);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`fname` varchar(250) NOT NULL,
`lname` varchar(250) NOT NULL,
`email` varchar(250) NOT NULL,
`password` varchar(250) NOT NULL,
`userType` int(11) NOT NULL,
`access` int(11) NOT NULL DEFAULT '0',
`image` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
--
-- Indexes for dumped tables
--
--
-- Indexes for table `details`
--
ALTER TABLE `details`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `stations`
--
ALTER TABLE `stations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `details`
--
ALTER TABLE `details`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `stations`
--
ALTER TABLE `stations`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
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 */;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment