-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Sep 27, 2023 at 07:34 AM
-- Server version: 5.7.43
-- PHP Version: 8.1.16

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `roryan_schedule`
--

-- --------------------------------------------------------

--
-- Table structure for table `meeting`
--

CREATE TABLE `meeting` (
  `meeting_id` int(11) NOT NULL,
  `date` date NOT NULL,
  `time_start` time NOT NULL,
  `time_end` time NOT NULL,
  `class_id` int(11) NOT NULL,
  `location_id` int(11) NOT NULL,
  `type_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `meeting`
--

INSERT INTO `meeting` (`meeting_id`, `date`, `time_start`, `time_end`, `class_id`, `location_id`, `type_id`) VALUES
(1, '2023-09-04', '09:00:00', '11:50:00', 3, 1, 1),
(2, '2023-09-04', '13:00:00', '13:50:00', 4, 4, 3),
(3, '2023-09-04', '14:00:00', '15:20:00', 4, 3, 1),
(4, '2023-09-05', '10:00:00', '11:50:00', 5, 5, 1),
(5, '2023-09-05', '14:00:00', '16:50:00', 2, 2, 1),
(6, '2023-09-05', '18:00:00', '19:50:00', 1, 1, 1),
(7, '2023-09-06', '09:00:00', '11:50:00', 3, 1, 1),
(8, '2023-09-06', '14:00:00', '15:20:00', 4, 3, 1),
(9, '2023-09-07', '10:00:00', '11:50:00', 5, 5, 2),
(10, '2023-09-07', '14:00:00', '16:50:00', 2, 2, 1),
(11, '2023-09-07', '18:00:00', '19:50:00', 1, 1, 1),
(12, '2023-09-11', '09:00:00', '11:50:00', 3, 1, 1),
(13, '2023-09-11', '13:00:00', '13:50:00', 4, 4, 3),
(14, '2023-09-11', '14:00:00', '15:20:00', 4, 3, 1),
(15, '2023-09-12', '10:00:00', '11:50:00', 5, 5, 1),
(16, '2023-09-12', '14:00:00', '16:50:00', 2, 2, 1),
(17, '2023-09-12', '18:00:00', '19:50:00', 1, 1, 1),
(18, '2023-09-13', '09:00:00', '11:50:00', 3, 1, 1),
(19, '2023-09-13', '14:00:00', '15:20:00', 4, 3, 1),
(20, '2023-09-14', '10:00:00', '11:50:00', 5, 5, 2),
(21, '2023-09-14', '14:00:00', '16:50:00', 2, 2, 1),
(22, '2023-09-14', '18:00:00', '19:50:00', 1, 1, 1),
(23, '2023-09-18', '09:00:00', '11:50:00', 3, 1, 1),
(24, '2023-09-18', '13:00:00', '13:50:00', 4, 4, 3),
(25, '2023-09-18', '14:00:00', '15:20:00', 4, 3, 1),
(26, '2023-09-19', '10:00:00', '11:50:00', 5, 5, 1),
(27, '2023-09-19', '14:00:00', '16:50:00', 2, 2, 1),
(28, '2023-09-19', '18:00:00', '19:50:00', 1, 1, 1),
(29, '2023-09-20', '09:00:00', '11:50:00', 3, 1, 1),
(30, '2023-09-20', '14:00:00', '15:20:00', 4, 3, 1),
(31, '2023-09-21', '10:00:00', '11:50:00', 5, 5, 2),
(32, '2023-09-21', '14:00:00', '16:50:00', 2, 2, 1),
(33, '2023-09-21', '18:00:00', '19:50:00', 1, 1, 1),
(34, '2023-09-25', '09:00:00', '11:50:00', 3, 1, 1),
(35, '2023-09-25', '13:00:00', '13:50:00', 4, 4, 3),
(36, '2023-09-25', '14:00:00', '15:20:00', 4, 3, 1),
(37, '2023-09-26', '10:00:00', '11:50:00', 5, 5, 1),
(38, '2023-09-26', '14:00:00', '16:50:00', 2, 2, 1),
(39, '2023-09-26', '18:00:00', '19:50:00', 1, 1, 1),
(40, '2023-09-27', '09:00:00', '11:50:00', 3, 1, 1),
(41, '2023-09-27', '14:00:00', '15:20:00', 4, 3, 1),
(42, '2023-09-28', '10:00:00', '11:50:00', 5, 5, 2),
(43, '2023-09-28', '14:00:00', '16:50:00', 2, 2, 1),
(44, '2023-09-28', '18:00:00', '19:50:00', 1, 1, 1);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `meeting`
--
ALTER TABLE `meeting`
  ADD PRIMARY KEY (`meeting_id`),
  ADD KEY `schedule_ibfk_1` (`class_id`),
  ADD KEY `schedule_ibfk_2` (`location_id`),
  ADD KEY `schedule_ibfk_3` (`type_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `meeting`
--
ALTER TABLE `meeting`
  MODIFY `meeting_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `meeting`
--
ALTER TABLE `meeting`
  ADD CONSTRAINT `schedule_ibfk_1` FOREIGN KEY (`class_id`) REFERENCES `class` (`class_id`),
  ADD CONSTRAINT `schedule_ibfk_2` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`),
  ADD CONSTRAINT `schedule_ibfk_3` FOREIGN KEY (`type_id`) REFERENCES `type` (`type_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 */;
