]> git.wh0rd.org - tt-rss.git/blame - ttrss_schema.sql
some searchbox focus workarouns, content hash checking is optional now
[tt-rss.git] / ttrss_schema.sql
CommitLineData
28a80fbf
AD
1drop table ttrss_entries;
2drop table ttrss_feeds;
3
4create table ttrss_feeds (id serial not null primary key,
5 title varchar(200) not null unique,
6 feed_url varchar(250) unique not null,
7 last_updated timestamp default null);
8
a2015351
AD
9insert into ttrss_feeds (title,feed_url) values ('Footnotes', 'http://gnomedesktop.org/node/feed');
10insert into ttrss_feeds (title,feed_url) values ('Freedesktop.org', 'http://planet.freedesktop.org/rss20.xml');
11insert into ttrss_feeds (title,feed_url) values ('Planet Debian', 'http://planet.debian.org/rss20.xml');
12insert into ttrss_feeds (title,feed_url) values ('Planet GNOME', 'http://planet.gnome.org/rss20.xml');
466001c4
AD
13insert into ttrss_feeds (title,feed_url) values ('Planet Ubuntu', 'http://planet.ubuntulinux.org/rss20.xml');
14
a2015351 15insert into ttrss_feeds (title,feed_url) values ('Monologue', 'http://www.go-mono.com/monologue/index.rss');
857d6a80 16
a2015351 17insert into ttrss_feeds (title,feed_url) values ('Latest Linux Kernel Versions',
857d6a80
AD
18 'http://kernel.org/kdist/rss.xml');
19
a2015351 20insert into ttrss_feeds (title,feed_url) values ('RPGDot Newsfeed',
857d6a80
AD
21 'http://www.rpgdot.com/team/rss/rss0.xml');
22
a2015351 23insert into ttrss_feeds (title,feed_url) values ('Digg.com News',
857d6a80
AD
24 'http://digg.com/rss/index.xml');
25
a2015351 26insert into ttrss_feeds (id,title,feed_url) values ('Technocrat.net',
857d6a80 27 'http://syndication.technocrat.net/rss');
28a80fbf 28
28a80fbf 29create table ttrss_entries (id serial not null primary key,
d76a3b03
AD
30 feed_id int references ttrss_feeds(id) not null,
31 updated timestamp not null,
32 title varchar(250) not null,
28a80fbf 33 guid varchar(300) not null unique,
d76a3b03 34 link varchar(300) not null unique,
d76a3b03 35 content text not null,
466001c4 36 content_hash varchar(250) not null,
b197f117 37 last_read timestamp,
c3a8d71a 38 date_entered timestamp not null default NOW(),
b82af8c3
AD
39 no_orig_date boolean not null default false,
40 unread boolean not null default true);
6f428bc5 41