-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmywot.sql
71 lines (61 loc) · 1.39 KB
/
mywot.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
-- Load this file
-- source checkWot.sql
-- Drop all of the tables
DROP TABLE chains, urls, comments;
CREATE TABLE IF NOT EXISTS chains
(
chain_id INT AUTO_INCREMENT PRIMARY KEY,
original_url VARCHAR(1024)
);
INSERT INTO chains(original_url) VALUES ('Not a Chain');
CREATE TABLE IF NOT EXISTS urls
(
url_id INT AUTO_INCREMENT PRIMARY KEY,
url VARCHAR(1024),
chain_id INT,
Trustworthiness INT,
Trust_confidence INT,
Vendor_Reliability INT,
Vendor_confidence INT,
Privacy INT,
Privacy_confidence INT,
Child_safety INT,
Child_confidence INT,
spam_nonspam INT,
occurances INT,
time_1 INT,
time_2 INT,
popularity INT,
good_site INT,
useful_informative INT,
entertaining INT,
good_cus_exper INT,
child_friendly INT,
spam INT,
annoying_ads INT,
bad_exper INT,
phishing INT,
malicious_viruses INT,
bro_exploit INT,
spyware INT,
adult_content INT,
hateful INT,
eth_issues INT,
useless INT,
other INT,
FOREIGN KEY (chain_id) REFERENCES chains(chain_id)
);
CREATE TABLE IF NOT EXISTS comments
(
comment_id INT AUTO_INCREMENT PRIMARY KEY,
url_id int,
comment_date date,
author VARCHAR(100),
text VARCHAR(64000),
description VARCHAR(100),
karma VARCHAR(100),
votesEnabled INT,
upvotes INT,
downvotes INT,
FOREIGN KEY (url_id) REFERENCES urls(url_id)
);