learn-request-queue/db/21-requestMetadata.sql

7 lines
180 B
MySQL
Raw Normal View History

CREATE TABLE requestMetadata (
url varchar NOT NULL UNIQUE,
videoTitle varchar DEFAULT NULL,
PRIMARY KEY (url),
FOREIGN KEY (url) REFERENCES requests(url) ON DELETE CASCADE
);