summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-10-22 16:36:00 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-10-22 16:36:00 -0400
commita15034bea561c778207c899d5893dbf6bfc3b637 (patch)
tree37cf2b50ffdad3f7bb4db67bad27bb79982b6f81 /db
parent34528df6d9de96a4447e851704af739d9ea21950 (diff)
notice inbox
darcs-hash:20081022203600-5ed1f-344e77e348655806a27db2de043b55ba67afc73a.gz
Diffstat (limited to 'db')
-rw-r--r--db/laconica.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/laconica.sql b/db/laconica.sql
index ad4ae6983..f1d3a484f 100644
--- a/db/laconica.sql
+++ b/db/laconica.sql
@@ -331,3 +331,13 @@ create table message (
index message_to_idx (to_profile),
index message_created_idx (created)
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
+
+create table notice_inbox (
+
+ user_id integer not null comment 'user receiving the message' references user (id),
+ notice_id integer not null comment 'notice received' references notice (id),
+ source tinyint default 1 comment 'reason it is in the inbox; 1=subscription',
+
+ constraint primary key (user_id, notice_id),
+ index notice_inbox_notice_id_idx (notice_id)
+) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;