intake/core/sql/0001_initial_schema.sql

18 lines
406 B
MySQL
Raw Normal View History

create table sources(
name text not null,
primary key (name)
) strict;
2025-01-17 05:11:07 +00:00
create table items(
source text not null,
id text not null,
created int not null default (unixepoch()),
active int not null,
title text,
author text,
body text,
link text,
time int,
primary key (source, id),
foreign key (source) references sources (name) on delete cascade
) strict;