freed/internal/database/migrations/2_article.sql

12 lines
231 B
SQL

-- +migrate Up
CREATE table article (
id INTEGER PRIMARY KEY,
name text NOT NULL,
url text NOT NULL UNIQUE,
readAt text,
feedId INTEGER,
FOREIGN KEY (feedId) REFERENCES feed(id)
);
-- +migrate Down
DROP TABLE article;