text: -- phpMyAdmin SQL Dump
  -- version 4.4.14
  -- http://www.phpmyadmin.net
  --
  -- Host: 127.0.0.1
  -- Generation Time: Nov 17, 2015 at 03:42 PM
  -- Server version: 5.6.26
  -- PHP Version: 5.5.28
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  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: `airlines`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `airplane`
  --
  
  CREATE TABLE IF NOT EXISTS `airplane` (
    `airplane_id` int(11) NOT NULL,
    `airplane_no` varchar(30) NOT NULL,
    `airplane_name` varchar(50) NOT NULL,
    `no_seat` int(11) NOT NULL,
    `status` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `booking`
  --
  
  CREATE TABLE IF NOT EXISTS `booking` (
    `booking_id` int(11) NOT NULL,
    `airplane_id` int(11) NOT NULL,
    `flight_id` int(11) NOT NULL,
    `user_id` int(11) NOT NULL,
    `created_on` date NOT NULL,
    `status_id` int(11) NOT NULL,
    `Fare` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `destination`
  --
  
  CREATE TABLE IF NOT EXISTS `destination` (
    `destination_id` int(11) NOT NULL,
    `destination_name` varchar(50) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `fare`
  --
  
  CREATE TABLE IF NOT EXISTS `fare` (
    `Source_id` int(11) NOT NULL,
    `destination_id` int(11) NOT NULL,
    `Fare` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `flight`
  --
  
  CREATE TABLE IF NOT EXISTS `flight` (
    `flight_id` int(11) NOT NULL,
    `current_dest` int(11) NOT NULL,
    `final_dest` int(11) NOT NULL,
    `departure` date NOT NULL,
    `arrival` date NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `status`
  --
  
  CREATE TABLE IF NOT EXISTS `status` (
    `status_id` int(11) NOT NULL,
    `status` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE IF NOT EXISTS `user` (
    `user_id` int(11) NOT NULL,
    `first_name` varchar(25) NOT NULL,
    `last_name` varchar(25) NOT NULL,
    `gender` varchar(10) NOT NULL,
    `email` varchar(50) NOT NULL,
    `password` varchar(25) NOT NULL,
    `type` int(11) NOT NULL,
    `created_on` date NOT NULL,
    `last_loggedin` date NOT NULL
  ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `user`
  --
  
  INSERT INTO `user` (`user_id`, `first_name`, `last_name`, `gender`, `email`, `password`, `type`, `created_on`, `last_loggedin`) VALUES
  (1, 'Asif', 'Sazed', 'Male', 'asif@chittagong.com', 'chittagong', 0, '0000-00-00', '0000-00-00'),
  (2, 'aa', 'ed', 'Male', 'asif@c.com', 'gong', 0, '0000-00-00', '0000-00-00'),
  (3, 'aaqq', 'erd', 'Male', 'asfif@c.com', 'ghong', 0, '0000-00-00', '0000-00-00'),
  (4, 'Fahim', 'Jawad', 'Male', 'fahim@gmail.com', '123', 0, '2015-10-21', '2015-10-21'),
  (5, 'Yo', 'Yo', 'Male', 'TO@ads.com', '123', 0, '2015-10-21', '0000-00-00');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `airplane`
  --
  ALTER TABLE `airplane`
    ADD PRIMARY KEY (`airplane_id`);
  
  --
  -- Indexes for table `booking`
  --
  ALTER TABLE `booking`
    ADD PRIMARY KEY (`booking_id`);
  
  --
  -- Indexes for table `destination`
  --
  ALTER TABLE `destination`
    ADD PRIMARY KEY (`destination_id`);
  
  --
  -- Indexes for table `status`
  --
  ALTER TABLE `status`
    ADD PRIMARY KEY (`status_id`);
  
  --
  -- Indexes for table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`user_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `airplane`
  --
  ALTER TABLE `airplane`
    MODIFY `airplane_id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `booking`
  --
  ALTER TABLE `booking`
    MODIFY `booking_id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `destination`
  --
  ALTER TABLE `destination`
    MODIFY `destination_id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `status`
  --
  ALTER TABLE `status`
    MODIFY `status_id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `user`
  --
  ALTER TABLE `user`
    MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
  /*!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 */;
  