freed/internal/database/migrations/2_article.sql
2024-08-31 01:41:44 +02:00

13 lines
257 B
SQL

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