forked from GNUsocial/gnu-social
notice inbox
darcs-hash:20081022203600-5ed1f-344e77e348655806a27db2de043b55ba67afc73a.gz
This commit is contained in:
parent
34528df6d9
commit
a15034bea5
22
classes/Notice_inbox.php
Normal file
22
classes/Notice_inbox.php
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Table Definition for notice_inbox
|
||||||
|
*/
|
||||||
|
require_once 'classes/Memcached_DataObject';
|
||||||
|
|
||||||
|
class Notice_inbox extends Memcached_DataObject
|
||||||
|
{
|
||||||
|
###START_AUTOCODE
|
||||||
|
/* the code below is auto generated do not remove the above tag */
|
||||||
|
|
||||||
|
public $__table = 'notice_inbox'; // table name
|
||||||
|
public $user_id; // int(4) primary_key not_null
|
||||||
|
public $notice_id; // int(4) primary_key not_null
|
||||||
|
public $source; // tinyint(1) default_1
|
||||||
|
|
||||||
|
/* Static get */
|
||||||
|
function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Notice_inbox',$k,$v); }
|
||||||
|
|
||||||
|
/* the code above is auto generated do not remove the tag below */
|
||||||
|
###END_AUTOCODE
|
||||||
|
}
|
@ -152,6 +152,15 @@ source = 2
|
|||||||
[notice__keys]
|
[notice__keys]
|
||||||
id = N
|
id = N
|
||||||
|
|
||||||
|
[notice_inbox]
|
||||||
|
user_id = 129
|
||||||
|
notice_id = 129
|
||||||
|
source = 17
|
||||||
|
|
||||||
|
[notice_inbox__keys]
|
||||||
|
user_id = K
|
||||||
|
notice_id = K
|
||||||
|
|
||||||
[notice_source]
|
[notice_source]
|
||||||
code = 130
|
code = 130
|
||||||
name = 130
|
name = 130
|
||||||
|
@ -331,3 +331,13 @@ create table message (
|
|||||||
index message_to_idx (to_profile),
|
index message_to_idx (to_profile),
|
||||||
index message_created_idx (created)
|
index message_created_idx (created)
|
||||||
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
|
) 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user