learn-request-queue/db/40-scores.sql

8 lines
169 B
MySQL
Raw Normal View History

2020-08-08 04:32:06 +00:00
CREATE TABLE scores (
url varchar,
baseScore int NOT NULL DEFAULT 0,
score int NOT NULL DEFAULT 0,
PRIMARY KEY (url),
FOREIGN KEY (url) REFERENCES requests(url)
);