diff --git a/rss2html.postgresql b/rss2html.postgresql new file mode 100644 index 0000000..3a5be2a --- /dev/null +++ b/rss2html.postgresql @@ -0,0 +1,7 @@ +CREATE TABLE feeds (id integer primary key autoincrement, url varchar, update_frequency int, last_update int, title varchar, type varchar, allow_img boolean, expire int, lang varchar); +CREATE TABLE items (id integer primary key autoincrement, title varchar, link varchar, content varchar, issued int, seen int, feed_id integer, old int); +CREATE TABLE read(item_id integer, user varchar, foreign key (item_id) references items(id)); +CREATE INDEX items_link_idx on items(link); +CREATE INDEX read_item_id_idx on read(item_id); +CREATE TABLE later (item_id integer, user varchar, foreign key (item_id) references items(id)); +CREATE INDEX later_item_id_idx on later(item_id);