text: -- phpMyAdmin SQL Dump
  -- version 4.7.7
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Apr 23, 2018 at 01:38 PM
  -- Server version: 10.1.30-MariaDB
  -- PHP Version: 7.2.2
  
  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: `gotravel`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `customer`
  --
  
  CREATE TABLE `customer` (
    `id` int(25) NOT NULL,
    `name` varchar(50) NOT NULL,
    `address` varchar(100) NOT NULL,
    `phone` int(20) NOT NULL,
    `gender` varchar(15) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `reservation`
  --
  
  CREATE TABLE `reservation` (
    `id` int(15) NOT NULL,
    `reservation_code` varchar(30) NOT NULL,
    `reservation_at` varchar(50) NOT NULL,
    `reservation_date` varchar(50) NOT NULL,
    `customerid` varchar(30) NOT NULL,
    `seat_code` varchar(50) NOT NULL,
    `ruteid` varchar(50) NOT NULL,
    `depart_at` varchar(50) NOT NULL,
    `price` int(11) NOT NULL,
    `useid` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `rute`
  --
  
  CREATE TABLE `rute` (
    `id` int(15) NOT NULL,
    `depart_at` varchar(20) NOT NULL,
    `rute_form` varchar(20) NOT NULL,
    `rute_to` varchar(20) NOT NULL,
    `price` int(100) NOT NULL,
    `transportationid` varchar(30) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `transportation`
  --
  
  CREATE TABLE `transportation` (
    `id` int(15) NOT NULL,
    `code` varchar(20) NOT NULL,
    `description` varchar(100) NOT NULL,
    `seat_qty` int(100) NOT NULL,
    `transportation_typeid` varchar(30) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `transportation_type`
  --
  
  CREATE TABLE `transportation_type` (
    `id` int(15) NOT NULL,
    `description` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE `user` (
    `id` int(25) NOT NULL,
    `username` varchar(50) NOT NULL,
    `password` varchar(30) NOT NULL,
    `fullname` varchar(50) NOT NULL,
    `level` int(20) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `customer`
  --
  ALTER TABLE `customer`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `reservation`
  --
  ALTER TABLE `reservation`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `rute`
  --
  ALTER TABLE `rute`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `transportation`
  --
  ALTER TABLE `transportation`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `transportation_type`
  --
  ALTER TABLE `transportation_type`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`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 */;
  