text: -- phpMyAdmin SQL Dump
  -- version 4.6.6
  -- https://www.phpmyadmin.net/
  --
  -- Host: localhost
  -- Generation Time: Nov 05, 2020 at 04:12 AM
  -- Server version: 5.7.17-log
  -- PHP Version: 5.6.30
  
  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: `station`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `break`
  --
  
  CREATE TABLE `break` (
    `id` int(11) NOT NULL,
    `b_to` time DEFAULT NULL,
    `b_out` time DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `break`
  --
  
  INSERT INTO `break` (`id`, `b_to`, `b_out`) VALUES
  (1, '05:53:00', '05:54:00'),
  (2, '09:38:00', '09:39:00'),
  (3, '08:22:00', '08:23:00'),
  (4, '07:39:00', '07:40:00');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `departure`
  --
  
  CREATE TABLE `departure` (
    `id` int(11) NOT NULL,
    `d_station` varchar(50) DEFAULT NULL,
    `d_time` time DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `departure`
  --
  
  INSERT INTO `departure` (`id`, `d_station`, `d_time`) VALUES
  (1, 'สุรินทร์', '05:20:00'),
  (2, 'อุบลราชธานี', '06:20:00'),
  (3, 'อุบลราชธานี', '05:40:00'),
  (4, 'สำโรงทาบ', '05:50:00');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `destination`
  --
  
  CREATE TABLE `destination` (
    `id` int(11) NOT NULL,
    `a_station` varchar(50) DEFAULT NULL,
    `a_time` time DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `destination`
  --
  
  INSERT INTO `destination` (`id`, `a_station`, `a_time`) VALUES
  (1, 'กรุงเทพฯ', '14:15:00'),
  (2, 'นครราชสีมา', '11:45:00'),
  (3, 'กรุงเทพฯ', '14:55:00'),
  (4, 'นครราชสีมา', '09:50:00');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `station`
  --
  
  CREATE TABLE `station` (
    `id` int(11) NOT NULL,
    `procession` int(50) NOT NULL,
    `note` varchar(50) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `station`
  --
  
  INSERT INTO `station` (`id`, `procession`, `note`) VALUES
  (1, 234, 'รถธรรมดา'),
  (2, 428, 'รถดีเซลราง'),
  (3, 72, 'รถด่วนดีเซลราง'),
  (4, 424, 'รถดีเซลราง');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `break`
  --
  ALTER TABLE `break`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `departure`
  --
  ALTER TABLE `departure`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `destination`
  --
  ALTER TABLE `destination`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `station`
  --
  ALTER TABLE `station`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `break`
  --
  ALTER TABLE `break`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  --
  -- AUTO_INCREMENT for table `departure`
  --
  ALTER TABLE `departure`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  --
  -- AUTO_INCREMENT for table `destination`
  --
  ALTER TABLE `destination`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  --
  -- AUTO_INCREMENT for table `station`
  --
  ALTER TABLE `station`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `break`
  --
  ALTER TABLE `break`
    ADD CONSTRAINT `break_ibfk_1` FOREIGN KEY (`id`) REFERENCES `station` (`id`);
  
  --
  -- Constraints for table `departure`
  --
  ALTER TABLE `departure`
    ADD CONSTRAINT `departure_ibfk_1` FOREIGN KEY (`id`) REFERENCES `station` (`id`);
  
  --
  -- Constraints for table `destination`
  --
  ALTER TABLE `destination`
    ADD CONSTRAINT `destination_ibfk_1` FOREIGN KEY (`id`) REFERENCES `station` (`id`);
  
  /*!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 */;
  