CREATE TABLE bweb_user
(
- userid serial not null,
- username text not null,
- use_acl boolean default false,
- enabled boolean default true,
+ userid serial not null,
+ username text not null,
+ use_acl boolean default false,
+ enabled boolean default true,
comment text default '',
- passwd text default '',
- primary key (userid)
+ passwd text default '',
+ tpl text default '',
+ primary key (userid)
);
CREATE UNIQUE INDEX bweb_user_idx on bweb_user (username(255));
CREATE TABLE bweb_role
(
- roleid serial not null,
- rolename text not null,
--- comment text default '',
- primary key (roleid)
+ roleid serial not null,
+ rolename text not null,
+-- comment text default '',
+ primary key (roleid)
);
CREATE UNIQUE INDEX bweb_role_idx on bweb_role (rolename(255));
INSERT INTO bweb_role (rolename) VALUES ('r_user_mgnt');
CREATE TABLE bweb_role_member
(
- roleid integer not null,
- userid integer not null,
- primary key (roleid, userid)
+ roleid integer not null,
+ userid integer not null,
+ primary key (roleid, userid)
);
CREATE TABLE bweb_client_group_acl
(
- client_group_id integer not null,
- userid integer not null,
- primary key (client_group_id, userid)
+ client_group_id integer not null,
+ userid integer not null,
+ primary key (client_group_id, userid)
);
CREATE TABLE client_group
(
- client_group_id serial not null,
- client_group_name text not null,
+ client_group_id serial not null,
+ client_group_name text not null,
primary key (client_group_id)
);
CREATE TABLE client_group_member
(
- client_group_id integer not null,
+ client_group_id integer not null,
clientid integer not null,
primary key (client_group_id, clientid)
);
BEGIN;
CREATE TABLE bweb_user
(
- userid serial not null,
- username text not null,
- use_acl boolean default false,
- enabled boolean default true,
+ userid serial not null,
+ username text not null,
+ use_acl boolean default false,
+ enabled boolean default true,
comment text default '',
- passwd text default '',
- primary key (userid)
+ passwd text default '',
+ tpl text default '',
+ primary key (userid)
);
CREATE UNIQUE INDEX bweb_user_idx on bweb_user (username);
CREATE TABLE bweb_role
(
- roleid serial not null,
- rolename text not null,
--- comment text default '',
- primary key (roleid)
+ roleid serial not null,
+ rolename text not null,
+-- comment text default '',
+ primary key (roleid)
);
CREATE UNIQUE INDEX bweb_role_idx on bweb_role (rolename);
CREATE TABLE bweb_role_member
(
- roleid integer not null,
- userid integer not null,
- primary key (roleid, userid)
+ roleid integer not null,
+ userid integer not null,
+ primary key (roleid, userid)
);
CREATE TABLE bweb_client_group_acl
(
- client_group_id integer not null,
- userid integer not null,
- primary key (client_group_id, userid)
+ client_group_id integer not null,
+ userid integer not null,
+ primary key (client_group_id, userid)
);
COMMIT;
-- --------------------------------------------------
CREATE TABLE client_group
(
- client_group_id serial not null,
- client_group_name text not null,
+ client_group_id serial not null,
+ client_group_name text not null,
primary key (client_group_id)
);
CREATE TABLE client_group_member
(
- client_group_id integer not null,
+ client_group_id integer not null,
clientid integer not null,
primary key (client_group_id, clientid)
);
24Nov07
ebl Add a wiki option to integrate a link to jobs documentation
directly in bweb.
+ebl Add a tpl field to bweb_user. (To be able to have a tpl for each
+ user).
23Nov07
ebl Add brestore_xxx tables to sql scripts