2025-01-20 05:33:49 +00:00
|
|
|
create table sources(
|
|
|
|
name text not null,
|
2025-01-30 23:22:57 +00:00
|
|
|
state blob,
|
2025-01-20 05:33:49 +00:00
|
|
|
primary key (name)
|
|
|
|
) strict;
|
2025-01-21 03:53:22 +00:00
|
|
|
create table actions(
|
|
|
|
source text not null,
|
|
|
|
name text not null,
|
|
|
|
argv blob not null,
|
|
|
|
primary key (source, name),
|
|
|
|
foreign key (source) references sources (name) on delete cascade
|
|
|
|
) strict;
|
2025-01-31 15:50:56 +00:00
|
|
|
create table envs(
|
|
|
|
source text not null,
|
|
|
|
name text not null,
|
|
|
|
value text not null,
|
|
|
|
unique (source, name) on conflict replace,
|
|
|
|
foreign key (source) references sources (name) on delete cascade
|
|
|
|
) 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,
|
2025-01-29 16:48:12 +00:00
|
|
|
action blob,
|
2025-01-17 05:11:07 +00:00
|
|
|
primary key (source, id),
|
|
|
|
foreign key (source) references sources (name) on delete cascade
|
|
|
|
) strict;
|
2025-02-01 01:23:41 +00:00
|
|
|
create table channels(
|
|
|
|
name text not null,
|
|
|
|
source text not null,
|
|
|
|
unique (name, source) on conflict replace
|
|
|
|
foreign key (source) references sources (name) on delete cascade
|
|
|
|
)
|