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

8 lines
191 B
SQL

CREATE TABLE scores (
url varchar,
score int NOT NULL DEFAULT 0,
scoreModifier int NOT NULL DEFAULT 0,
PRIMARY KEY (url),
FOREIGN KEY (url) REFERENCES requests(url) ON DELETE CASCADE
);