-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdb.sql
36 lines (32 loc) · 904 Bytes
/
db.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
CREATE TABLE links (
id int(10) NOT NULL auto_increment,
titleid int(10) NOT NULL,
url varchar(500),
siteid int(10) NOT NULL,
regionid int(10) NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE region (
id int(10) NOT NULL auto_increment,
regionname text(65535) NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE sites (
id int(10) NOT NULL auto_increment,
sitename text(65535) NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE staging (
id int(10) NOT NULL auto_increment,
title varchar(500),
streamsitetitle varchar(100),
streamsiteurl varchar(500),
region varchar(3),
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE titles (
titleid int(10) NOT NULL auto_increment,
title varchar(500),
mal_id int(10),
PRIMARY KEY (titleid)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;