13 lines
649 B
Plaintext
13 lines
649 B
Plaintext
CREATE TABLE feeds (
|
|
id serial primary key, url varchar, active boolean,
|
|
last_update int, title varchar, type varchar, allow_img boolean,
|
|
expire int, lang varchar,
|
|
decode_title boolean
|
|
);
|
|
CREATE TABLE items (id serial primary key, title varchar, link varchar, content varchar, issued int, seen int, feed_id integer, old int);
|
|
CREATE TABLE read(item_id integer, username varchar, foreign key (item_id) references items(id));
|
|
CREATE INDEX on items(link);
|
|
CREATE INDEX read_item_id_idx on read(item_id);
|
|
CREATE TABLE later (item_id integer, username varchar, foreign key (item_id) references items(id));
|
|
CREATE INDEX on later(item_id);
|