add table for user roles

This commit is contained in:
Evan Prodromou 2009-08-27 11:18:10 -07:00
parent 5d09b6b3f0
commit 9f097913a6

View File

@ -557,3 +557,13 @@ create table config (
constraint primary key (section, setting)
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
create table user_role (
user_id integer not null comment 'user having the role' references user (id),
role varchar(32) not null comment 'string representing the role',
created datetime not null comment 'date the role was granted',
constraint primary key (user_id, role)
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;