-- phpMyAdmin SQL Dump
-- version 4.6.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jul 25, 2018 at 07:32 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 */;
CREATE TABLE `bookings` (
`book_id` int(11) NOT NULL,
`date` date NOT NULL,
`name` varchar(110) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`type_book` int(11) NOT NULL,
`address` int(11) NOT NULL,
`time_id` int(11) NOT NULL,
`room_id` int(11) NOT NULL,
`member` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `room_meet` (
`id` int(11) NOT NULL,
`name_room` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`time_id` int(11) NOT NULL,
`booking_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `time_book` (
`time_id` int(5) NOT NULL,
`morning` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`afternoon` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`night` varchar(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `bookings`
--
ALTER TABLE `bookings`
ADD PRIMARY KEY (`book_id`);
--
-- Indexes for table `room_meet`
--
ALTER TABLE `room_meet`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `time_book`
--
ALTER TABLE `time_book`
ADD PRIMARY KEY (`time_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `bookings`
--
ALTER TABLE `bookings`
MODIFY `book_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `room_meet`
--
ALTER TABLE `room_meet`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `time_book`
--
ALTER TABLE `time_book`
MODIFY `time_id` int(5) NOT NULL AUTO_INCREMENT;
/*!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 */;