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

11 lines
216 B
SQL

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