Skip to content

Instantly share code, notes, and snippets.

@prof3ssorSt3v3
Created May 26, 2019 19:53
Show Gist options
  • Save prof3ssorSt3v3/618f50e8532d80cc191bc9a85eebf46e to your computer and use it in GitHub Desktop.
Save prof3ssorSt3v3/618f50e8532d80cc191bc9a85eebf46e to your computer and use it in GitHub Desktop.
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: May 26, 2019 at 07:52 PM
-- Server version: 5.7.25
-- PHP Version: 7.3.1
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: `movies`
--
-- --------------------------------------------------------
--
-- Table structure for table `genres`
--
DROP TABLE IF EXISTS `genres`;
CREATE TABLE `genres` (
`genre_id` int(11) NOT NULL,
`genre_title` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `genres`
--
INSERT INTO `genres` (`genre_id`, `genre_title`) VALUES
(1, 'Fantasy'),
(2, 'Sci-Fi'),
(3, 'Action'),
(4, 'Comedy'),
(5, 'Drama'),
(6, 'Horror'),
(7, 'Romance'),
(8, 'Family');
-- --------------------------------------------------------
--
-- Table structure for table `movies`
--
DROP TABLE IF EXISTS `movies`;
CREATE TABLE `movies` (
`movie_id` int(11) NOT NULL,
`movie_title` varchar(100) NOT NULL,
`director` varchar(50) NOT NULL,
`year` year(4) NOT NULL,
`genre_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `movies`
--
INSERT INTO `movies` (`movie_id`, `movie_title`, `director`, `year`, `genre_id`) VALUES
(1, 'Labyrinth', 'Jim Henson', 1986, 1),
(2, 'Highlander', 'Russell Mulcahy', 1986, 1),
(3, 'Alien', 'Ridley Scott', 1979, 2),
(4, 'Conan the Barbarian', 'John Milius', 1982, 1),
(5, 'The Hobbit: An Unexpected Journey', 'Peter Jackson', 2012, 1),
(6, 'The Dark Crystal', 'Jim Henson', 1982, 1),
(7, 'Star Wars: A New Hope', 'George Lucas', 1977, 2),
(8, 'Harry Potter and the Order of the Phoenix', 'David Yates', 2007, 1),
(9, 'Fantastic Beasts and Where to Find Them ', 'David Yates', 2016, 1),
(10, 'Excalibur', 'John Boorman', 1981, 1),
(11, 'Time Bandits', 'Terry Gilliam', 1981, 1),
(12, 'Pan\'s Labyrinth', 'Guillermo Del Toro', 2006, 1),
(13, 'Blade Runner', 'Ridley Scott', 1982, 2),
(14, 'Interstellar', 'Christopher Nolan', 2014, 2),
(15, 'A.I. Artificial Intelligence', 'Steven Spielberg', 2001, 2),
(16, 'The Matrix', 'The Wachowskis', 1999, 2),
(17, 'Gattaca', 'Andrew Niccol', 1997, 2),
(18, 'Avatar', 'James Cameron', 2009, 2),
(19, 'Moon', 'Duncan Jones', 2009, 2),
(20, 'Galaxy Quest', 'Dean Parisot', 1999, 2),
(21, 'The Fifth Element', 'Luc Besson', 1997, 2),
(22, 'Inception', 'Christopher Nolan', 2010, 2),
(23, 'District 9', 'Neill Blokamp', 2009, 2),
(24, 'Her', 'Spike Jonez', 2013, 2),
(25, 'Pulp Fiction', 'Quentin Tarantino', 1994, 5),
(26, 'Reservoir Dogs', 'Quentin Tarantino', 1992, 5),
(27, 'Transcendence', 'Wally Pfister', 2014, 2),
(28, 'Contact', 'Robert Zemekis', 1997, 2);
-- --------------------------------------------------------
--
-- Table structure for table `people`
--
DROP TABLE IF EXISTS `people`;
CREATE TABLE `people` (
`email` varchar(100) NOT NULL,
`first_name` varchar(30) NOT NULL,
`last_name` varchar(30) NOT NULL,
`common_name` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `people`
--
INSERT INTO `people` (`email`, `first_name`, `last_name`, `common_name`) VALUES
('[email protected]', 'Arya', 'Stark', ''),
('[email protected]', 'Brandon', 'Stark', 'Bran'),
('[email protected]', 'Bronn', 'Blackwater', ''),
('[email protected]', 'Cersei', 'Lannister', ''),
('[email protected]', 'Daenerys', 'Targaryen', ''),
('[email protected]', 'Davos', 'Seaworth', 'The Onion Knight'),
('[email protected]', 'Gregor', 'Clegane', ''),
('[email protected]', 'Jaime', 'Lannister', ''),
('[email protected]', 'Jon', 'Snow', 'King Jon the First'),
('[email protected]', 'Samwell', 'Tarley', ''),
('[email protected]', 'Sandor', 'Clegane', ''),
('[email protected]', 'Sansa', 'Stark-Bolton', '');
-- --------------------------------------------------------
--
-- Table structure for table `shows`
--
DROP TABLE IF EXISTS `shows`;
CREATE TABLE `shows` (
`show_id` int(10) UNSIGNED NOT NULL,
`show_title` varchar(120) NOT NULL,
`num_seasons` tinyint(4) NOT NULL DEFAULT '1',
`initial_year` year(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `shows`
--
INSERT INTO `shows` (`show_id`, `show_title`, `num_seasons`, `initial_year`) VALUES
(1, 'Supernatural', 15, 2005),
(2, 'Heroes', 4, 2006),
(3, 'Star Trek', 3, 1966),
(4, 'That \'70s Show', 8, 1998),
(5, 'Game of Thrones', 8, 2011),
(6, 'Breaking Bad', 5, 2008),
(7, 'Better Call Saul', 5, 2015),
(8, 'Stranger Things', 2, 2016),
(9, 'Black Mirror', 5, 2011),
(10, 'Westworld', 3, 2016);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `genres`
--
ALTER TABLE `genres`
ADD PRIMARY KEY (`genre_id`);
--
-- Indexes for table `movies`
--
ALTER TABLE `movies`
ADD PRIMARY KEY (`movie_id`);
--
-- Indexes for table `people`
--
ALTER TABLE `people`
ADD PRIMARY KEY (`email`);
--
-- Indexes for table `shows`
--
ALTER TABLE `shows`
ADD PRIMARY KEY (`show_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `genres`
--
ALTER TABLE `genres`
MODIFY `genre_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `movies`
--
ALTER TABLE `movies`
MODIFY `movie_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
--
-- AUTO_INCREMENT for table `shows`
--
ALTER TABLE `shows`
MODIFY `show_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
/*!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 */;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment