X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FGroup_inbox.php;h=0e01c20b4680413c70479ee8fe13ca06d910051c;hb=9ca3c3d1c31ff2b30ecd7bbc2ec9ec3722173f7f;hp=b80ba42729d8b84cfb0a9186584721406d6355d7;hpb=6b884d9f86fd6f155a168f928c47cc9d49f2a8ed;p=quix0rs-gnu-social.git diff --git a/classes/Group_inbox.php b/classes/Group_inbox.php old mode 100755 new mode 100644 index b80ba42729..0e01c20b46 --- a/classes/Group_inbox.php +++ b/classes/Group_inbox.php @@ -1,9 +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); + } }