forked from jonesn5/Moviefy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmovies.sql
200 lines (166 loc) · 8.64 KB
/
movies.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 07, 2021 at 12:42 AM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 8.0.3
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: `database1`
--
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE `comments` (
`comment_user` varchar(40) NOT NULL,
`pageID` varchar(40) NOT NULL,
`comment` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `comments`
--
INSERT INTO `comments` (`comment_user`, `pageID`, `comment`) VALUES
('sa', 'us-2019', 'Looks scary!'),
('sa', 'blackwidow-2020', 'Excited for this');
-- --------------------------------------------------------
--
-- Table structure for table `movies`
--
CREATE TABLE `movies` (
`movie` varchar(100) NOT NULL,
`director` varchar(100) NOT NULL,
`genre` varchar(100) NOT NULL,
`pageID` varchar(100) NOT NULL,
`Runtime` int(11) NOT NULL,
`description` text NOT NULL,
`image` varchar(100) NOT NULL,
`year` int(11) NOT NULL,
`rating` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `movies`
--
INSERT INTO `movies` (`movie`, `director`, `genre`, `pageID`, `Runtime`, `description`, `image`, `year`, `rating`) VALUES
('Black Widow', 'Cate Shortland', 'Action', 'blackwidow-2020', 133, 'At birth the Black Widow \"aka Natasha Romanova\" is given to the KGB, which grooms her to become its ultimate operative. When the U.S.S.R. breaks up, the government tries to kill her as the action moves to present-day New York, where she is a freelance operative. (\"Black Widow\")', 'BlackWidow_Poster.png', 2021, 0),
('Us', 'Jordan Peele', 'Horror', 'us-2019', 121, 'A familys serene beach vacation turns to chaos when their doppelgängers appear and begin to terrorize them.(\"Us\")', 'Us_Poster.png', 2019, 4),
('A Quiet Place', 'John Krasinski', 'Horror', 'aquietplace-2018', 90, 'A Quiet Place is a 2018 American horror film directed by John Krasinski and written by Bryan Woods, Scott Beck and Krasinski. The plot revolves around a father (Krasinski) and a mother (Emily Blunt) who struggle to survive and raise their children (Millicent Simmonds and Noah Jupe) in a post-apocalyptic world inhabited by blind monsters with an acute sense of hearing.', 'AQuietPlace_Poster.png', 2018, 4),
('Stowaway', 'Joe Penna', 'Drama', 'stowaway-2021', 116, 'A three-person crew on a mission to Mars faces an impossible choice when an unplanned passenger jeopardizes the lives of everyone on board.(\"Stowaway\")', 'Stowaway_Poster.png', 2021, 3),
('Things Heard & Seen', 'Shari Springer Berman, Robert Pulcini', 'Drama', 'thingsheardandseen-2021', 121, 'An artist relocates to the Hudson Valley and begins to suspect that her marriage has a sinister darkness, one that rivals her new homes history.(\"Things Heard and Seen\")', 'ThingsHeardandSeen_Poster.png', 2021, 3),
('Wrong Turn', 'Mike P. Nelson', 'Horror', 'wrongturn-2021', 109, 'Friends hiking the Appalachian Trail are confronted by The Foundation, a community of people who have lived in the mountains for hundreds of years.(\"Wrong Turn\")', 'WrongTurn_Poster.png', 2021, 3),
('Mortal Kombat', 'Simon McQuoid', 'Action', 'mortalkombat-2021', 110, 'MMA fighter Cole Young seeks out Earths greatest champions in order to stand against the enemies of Outworld in a high stakes battle for the universe.(\"Mortal Kombat\")', 'MortalKombat_Poster.png', 2021, 3),
('Dolittle', 'Stephen Gaghan', 'Comedy', 'dolittle-2020', 101, 'A physician who can talk to animals embarks on an adventure to find a legendary island with a young apprentice and a crew of strange pets.(\"Dolittle\")', 'Dolittle_Poster.png', 2020, 3),
('Cherry', 'Anthony Russo, Joe Russo', 'Drama', 'cherry-2021', 142, 'Cherry drifts from college dropout to army medic in Iraq - anchored only by his true love, Emily. But after returning from the war with PTSD, his life spirals into drugs and crime as he struggles to find his place in the world.(\"Cherry\")', 'Cherry_Poster.png', 2021, 3),
('Tenet', 'Christopher Nolan', 'Action', 'tenet-2020', 150, 'Armed with only one word, Tenet, and fighting for the survival of the entire world, a Protagonist journeys through a twilight world of international espionage on a mission that will unfold in something beyond real time.(\"Tenet\")', 'Tenet_Poster.png', 2020, 4),
('Soul', 'Pete Docter, Kemp Powers', 'Children', 'soul-2020', 100, 'After landing the gig of a lifetime, a New York jazz pianist suddenly finds himself trapped in a strange land between Earth and the afterlife.(\"Soul\")', 'Soul-Poster.png', 2020, 4),
('Without Remorse', 'Stefano Sollima', 'Action', 'withoutremorse-2021', 109, 'John Clark, a Navy SEAL, goes on a path to avenge his wifes murder only to find himself inside of a larger conspiracy.(\"Without Remorse\")', 'WithoutRemorse_Poster.png', 2021, 3),
('Greyhound', 'Aaron Schneider', 'Action', 'greyhound-2020', 91, 'Several months after the U.S. entry into World War II, an inexperienced U.S. Navy commander must lead an Allied convoy being stalked by a German submarine wolf pack.(\"Greyhound\")', 'Greyhound_Poster.png', 2020, 4),
('Scoob', 'Tony Cervone', 'Children', 'scoob-2020', 93, 'Scooby and the gang face their most challenging mystery ever: a plot to unleash the ghost dog Cerberus upon the world. As they race to stop this dogpocalypse, the gang discovers that Scooby has an epic destiny greater than anyone imagined.(\"Scoob\")', 'Scoob_Poster.png', 2020, 3),
('Palm Springs', 'Max Barbakow', 'Comedy', 'palmsprings-2020', 90, 'Stuck in a time loop, two wedding guests develop a budding romance while living the same day over and over again.(\"Palm Springs\")', 'PalmSprings_Poster.png', 2020, 4),
('Willys Wonderland', 'Kevin Lewis', 'Action', 'willswonderland', 88, 'A quiet drifter is tricked into a janitorial job at the now condemned Willys Wonderland. The mundane tasks suddenly become an all-out fight for survival against wave after wave of demonic animatronics. Fists fly, kicks land, titans clash -- and only one side will make it out alive.(\"Willys Wonderland\")', 'WillysWonderland_Poster.png', 2021, 3);
-- --------------------------------------------------------
--
-- Table structure for table `ratings`
--
CREATE TABLE `ratings` (
`rating` int(10) DEFAULT NULL,
`pageID` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `ratings`
--
INSERT INTO `ratings` (`rating`, `pageID`) VALUES
(5, 'us-2019'),
(4, 'us-2019'),
(4, 'us-2019'),
(4, 'us-2019'),
(4, 'us-2019'),
(3, 'us-2019'),
(4, 'us-2019'),
(3, 'us-2019'),
(4, 'us-2019'),
(5, 'us-2019'),
(4, 'us-2019'),
(4, 'us-2019'),
(2, 'us-2019'),
(5, 'us-2019'),
(5, 'dolittle-2020'),
(4, 'dolittle-2020'),
(3, 'dolittle-2020'),
(5, 'us-2019'),
(5, 'us-2019'),
(5, 'us-2019'),
(4, 'blackwidow-2020'),
(5, 'blackwidow-2020'),
(4, 'dolittle-2020'),
(4, 'dolittle-2020'),
(5, 'dolittle-2020'),
(5, 'blackwidow-2020');
-- --------------------------------------------------------
--
-- Table structure for table `suggestions`
--
CREATE TABLE `suggestions` (
`suggest` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `suggestions`
--
INSERT INTO `suggestions` (`suggest`) VALUES
(''),
(''),
('Happy Gilmore'),
('Nemo'),
('Up'),
('Up'),
('Up'),
(''),
(''),
('Godzilla'),
('Godzilla'),
('Spy Kids');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`Admin` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `username`, `email`, `password`, `Admin`) VALUES
(1, 'sa', 'sa@gmail.com', '202cb962ac59075b964b07152d234b70', 1),
(5, 'test', 't@gmail.com', '202cb962ac59075b964b07152d234b70', 0);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
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 */;