2024-11-10 13:23:00 -07:00
|
|
|
PRAGMA journal_mode=WAL;
|
|
|
|
|
|
|
|
create table if not exists feeds (
|
|
|
|
feed_id blob primary key,
|
|
|
|
uri text,
|
2024-11-11 19:13:34 -07:00
|
|
|
nick text,
|
2024-11-10 13:23:00 -07:00
|
|
|
last_scan_on timestamp,
|
2024-11-11 19:13:34 -07:00
|
|
|
refresh_rate int default 600,
|
|
|
|
last_modified_on timestamp,
|
|
|
|
last_etag text,
|
|
|
|
last_error text
|
2024-11-10 13:23:00 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
create table if not exists twts (
|
|
|
|
feed_id blob,
|
|
|
|
hash text,
|
|
|
|
conv text,
|
|
|
|
dt text, -- timestamp with timezone
|
|
|
|
text text,
|
|
|
|
mentions text, -- json
|
|
|
|
tags text, -- json
|
|
|
|
primary key (feed_id, hash)
|
|
|
|
);
|
|
|
|
|