ekster/cmd/eksterd/db/migrations/000002_create_feeds_table.up.sql

8 lines
291 B
SQL

CREATE TABLE "feeds" (
"id" int primary key generated always as identity,
"channel_id" int references "channels" on update cascade on delete cascade,
"url" varchar(512) not null unique,
"created_at" timestamptz DEFAULT current_timestamp,
"updated_at" timestamptz
);