more multiuser schema fixes
This commit is contained in:
parent
06da450f4c
commit
6318df0e5c
1 changed files with 4 additions and 2 deletions
|
@ -13,11 +13,13 @@ create table ttrss_users (id serial primary key,
|
|||
access_level integer not null default 0);
|
||||
|
||||
insert into ttrss_users (login,pwd_hash,access_level) values ('admin', 'password', 10);
|
||||
insert into ttrss_users (login,pwd_hash,access_level) values ('user-1', 'password1', 0);
|
||||
insert into ttrss_users (login,pwd_hash,access_level) values ('user-2', 'password2', 0);
|
||||
|
||||
create table ttrss_feeds (id serial not null primary key,
|
||||
owner_uid integer not null references ttrss_users(id) on delete cascade,
|
||||
title varchar(200) not null unique,
|
||||
feed_url varchar(250) unique not null,
|
||||
title varchar(200) not null,
|
||||
feed_url varchar(250) not null,
|
||||
icon_url varchar(250) not null default '',
|
||||
update_interval integer not null default 0,
|
||||
purge_interval integer not null default 0,
|
||||
|
|
Loading…
Reference in a new issue