text: -- phpMyAdmin SQL Dump
  -- version 4.7.0
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Sep 30, 2018 at 11:55 AM
  -- Server version: 10.1.22-MariaDB
  -- PHP Version: 7.1.4
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  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: `railwaydb`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `railway`
  --
  
  CREATE TABLE `railway` (
    `user_id` int(11) NOT NULL,
    `ticket_id` int(11) NOT NULL,
    `frm` varchar(20) NOT NULL,
    `too` varchar(20) NOT NULL,
    `type` varchar(15) NOT NULL,
    `time` time(6) NOT NULL,
    `ticket_no` int(1) NOT NULL,
    `dates` date NOT NULL,
    `carriage` varchar(2) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE `user` (
    `user_id` int(11) NOT NULL,
    `fname` varchar(100) NOT NULL,
    `lname` varchar(100) NOT NULL,
    `mobile` varchar(15) NOT NULL,
    `email` text NOT NULL,
    `address` text NOT NULL,
    `gender` varchar(6) NOT NULL,
    `dor` date NOT NULL,
    `password` text NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `user`
  --
  
  INSERT INTO `user` (`user_id`, `fname`, `lname`, `mobile`, `email`, `address`, `gender`, `dor`, `password`) VALUES
  (1, 'abc', 'def', '123', 'a@a.a', 'fgfyrtyy', 'm', '2018-09-09', '123');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `railway`
  --
  ALTER TABLE `railway`
    ADD PRIMARY KEY (`ticket_id`),
    ADD KEY `user_id` (`user_id`);
  
  --
  -- Indexes for table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`user_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `railway`
  --
  ALTER TABLE `railway`
    MODIFY `ticket_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
  --
  -- AUTO_INCREMENT for table `user`
  --
  ALTER TABLE `user`
    MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `railway`
  --
  ALTER TABLE `railway`
    ADD CONSTRAINT `user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`);
  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 */;
  