summaryrefslogtreecommitdiff
path: root/db/statusnet.sql
diff options
context:
space:
mode:
Diffstat (limited to 'db/statusnet.sql')
-rw-r--r--db/statusnet.sql10
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;