3 * Table Definition for request_queue
5 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
7 class Request_queue extends Managed_DataObject
10 /* the code below is auto generated do not remove the above tag */
12 public $__table = 'request_queue'; // table name
19 function staticGet($k,$v=null)
20 { return Memcached_DataObject::staticGet('Confirm_address',$k,$v); }
22 /* the code above is auto generated do not remove the tag below */
25 public static function schemaDef()
28 'description' => 'Holder for subscription & group join requests awaiting moderation.',
30 'subscriber' => array('type' => 'int', 'not null' => true, 'description' => 'remote or local profile making the request'),
31 'subscribed' => array('type' => 'int', 'description' => 'remote or local profile to subscribe to, if any'),
32 'group_id' => array('type' => 'int', 'description' => 'remote or local group to join, if any'),
33 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
35 'unique key' => array(
36 'request_queue_subscriber_subscribed_group_id' => array('subscriber', 'subscribed', 'group_id'),
39 'request_queue_subscriber_created_idx' => array('subscriber', 'created'),
40 'request_queue_subscribed_created_idx' => array('subscriber', 'created'),
41 'request_queue_group_id_created_idx' => array('group_id', 'created'),
43 'foreign keys' => array(
44 'request_queue_subscriber_fkey' => array('profile', array('subscriber' => 'id')),
45 'request_queue_subscribed_fkey' => array('profile', array('subscribed' => 'id')),
46 'request_queue_group_id_fkey' => array('user_group', array('group_id' => 'id')),