diff options
author | Evan Prodromou <evan@status.net> | 2009-08-27 11:18:10 -0700 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-08-27 11:18:10 -0700 |
commit | 9f097913a65751c3c19a62d3754eaf2ec67d10a9 (patch) | |
tree | 5906f32fcb29e88d2391b4e9a5af53050a892c74 | |
parent | 5d09b6b3f0595540c66b703ae085f0af904fe30f (diff) |
add table for user roles
-rw-r--r-- | db/statusnet.sql | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/statusnet.sql b/db/statusnet.sql index 1662ef7a8..deebe72c6 100644 --- a/db/statusnet.sql +++ b/db/statusnet.sql @@ -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; |