From f22ed5dc807392889a910d491b614c5d33efa8af Mon Sep 17 00:00:00 2001
From: Brenda Wallace <shiny@cpan.org>
Date: Fri, 26 Jun 2009 21:55:43 +1200
Subject: added group_block and group_alias tables

---
 db/laconica_pg.sql | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

(limited to 'db/laconica_pg.sql')

diff --git a/db/laconica_pg.sql b/db/laconica_pg.sql
index dae8b8faf..92331181d 100644
--- a/db/laconica_pg.sql
+++ b/db/laconica_pg.sql
@@ -499,6 +499,26 @@ create table design (
     primary key (id)
 );
 
+create table group_block (
+   group_id integer not null /* comment 'group profile is blocked from' */ references user_group (id),
+   blocked integer not null /* comment 'profile that is blocked' */references profile (id),
+   blocker integer not null /* comment 'user making the block'*/ references "user" (id),
+   modified timestamp /* comment 'date of blocking'*/ ,
+
+   primary key (group_id, blocked)
+);
+
+create table group_alias (
+
+   alias varchar(64) /* comment 'additional nickname for the group'*/ ,
+   group_id integer not null /* comment 'group profile is blocked from'*/ references user_group (id),
+   modified timestamp /* comment 'date alias was created'*/,
+   primary key (alias)
+
+);
+create index group_alias_group_id_idx on group_alias (group_id);
+
+
 /* Textsearch stuff */
 
 create index textsearch_idx on profile using gist(textsearch);
-- 
cgit v1.2.3-54-g00ecf

