From a15034bea561c778207c899d5893dbf6bfc3b637 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 22 Oct 2008 16:36:00 -0400 Subject: notice inbox darcs-hash:20081022203600-5ed1f-344e77e348655806a27db2de043b55ba67afc73a.gz --- db/laconica.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'db/laconica.sql') 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; -- cgit v1.2.3-54-g00ecf