From 9f097913a65751c3c19a62d3754eaf2ec67d10a9 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 27 Aug 2009 11:18:10 -0700 Subject: [PATCH] add table for user roles --- db/statusnet.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/db/statusnet.sql b/db/statusnet.sql index 1662ef7a8b..deebe72c68 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; -- 2.39.5