X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=classes%2FGroup_inbox.php;h=0e01c20b4680413c70479ee8fe13ca06d910051c;hb=feb9030fb97fb08bb4ba0f8bdd7f2910d7a4b84a;hp=826889636c59f8845156af437710a7bcafd0f643;hpb=0824bb2e1df68fd6634ca915e4c87664ee2ef872;p=quix0rs-gnu-social.git diff --git a/classes/Group_inbox.php b/classes/Group_inbox.php old mode 100755 new mode 100644 index 826889636c..0e01c20b46 --- a/classes/Group_inbox.php +++ b/classes/Group_inbox.php @@ -1,10 +1,9 @@ 'Many-many table listing notices posted to a given group, or which groups a given notice was posted to.', + 'fields' => array( + 'group_id' => array('type' => 'int', 'not null' => true, 'description' => 'group receiving the message'), + 'notice_id' => array('type' => 'int', 'not null' => true, 'description' => 'notice received'), + 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date the notice was created'), + ), + 'primary key' => array('group_id', 'notice_id'), + 'foreign keys' => array( + 'group_inbox_group_id_fkey' => array('user_group', array('group_id' => 'id')), + 'group_inbox_notice_id_fkey' => array('notice', array('notice_id' => 'id')), + ), + 'indexes' => array( + 'group_inbox_created_idx' => array('created'), + 'group_inbox_notice_id_idx' => array('notice_id'), + ), + ); + } + + function pkeyGet($kv) + { + return Memcached_DataObject::pkeyGet('Group_inbox', $kv); + } }