15 lines
367 B
MySQL
15 lines
367 B
MySQL
|
create table sources(name text) strict;
|
||
|
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;
|