Create a conference room scheduler PHP web application.

profilemdimond88
micdim1_db2-3.sql

-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 10.123.0.210:3307 -- Generation Time: Nov 12, 2020 at 09:13 PM -- Server version: 5.7.27 -- PHP Version: 7.0.33-0+deb9u9 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: `micdim1_db2` -- -- -------------------------------------------------------- -- -- Table structure for table `conferenceRoom` -- CREATE TABLE `conferenceRoom` ( `roomID` int(11) NOT NULL, `name` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `capacity` int(11) NOT NULL, `floorNum` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `conferenceRoom` -- INSERT INTO `conferenceRoom` (`roomID`, `name`, `capacity`, `floorNum`) VALUES (101, 'The Office', 15, 1), (102, 'The Park', 20, 1), (105, 'The Brain Room', 30, 1), (126, 'The Imperial', 40, 1), (210, 'The Observer', 20, 2), (216, 'The Shop', 10, 2), (220, 'The Captain', 40, 2), (400, 'The Board Room', 45, 4); -- -------------------------------------------------------- -- -- Table structure for table `reservation` -- CREATE TABLE `reservation` ( `userID` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL, `roomID` int(11) DEFAULT NULL, `resStart` datetime DEFAULT NULL, `resEnd` datetime DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `username` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` datetime DEFAULT CURRENT_TIMESTAMP ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `username`, `password`, `created_at`) VALUES (1, 'mdimond88', '$2y$10$8EGTyurM1TshtLvOvDUtT.QRfO/rF823qY1mzwrSE0u5X5K26QjKa', '2020-11-07 03:08:41'); -- -- Indexes for dumped tables -- -- -- Indexes for table `conferenceRoom` -- ALTER TABLE `conferenceRoom` ADD PRIMARY KEY (`roomID`); -- -- Indexes for table `reservation` -- ALTER TABLE `reservation` ADD KEY `userID` (`userID`), ADD KEY `roomID` (`roomID`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `username` (`username`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; 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 */;