-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmetacritic.sql
29 lines (24 loc) · 884 Bytes
/
metacritic.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
DROP TABLE IF EXISTS `movies`;
CREATE TABLE `movies` (
title varchar(200) default null,
movie_url varchar(200) not null,
uScore int default null,
cScore int default null,
release_date DATE default null,
movie_id int not null auto_increment primary key
) ENGINE=InnoDB;
DROP TABLE IF EXISTS `critics`;
CREATE TABLE `critics` (
name varchar(100) default null,
publication varchar(100) default null,
critic_id int not null auto_increment primary key
) ENGINE=InnoDB;
DROP TABLE IF EXISTS `reviews`;
CREATE TABLE `reviews` (
movie_url varchar(200) default null,
critic_id int default null,
movie_id int default null,
score int default null,
description varchar(1000) default null,
review_id int not null auto_increment primary key
) Engine=InnoDB;