]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - classes/Related_group.php
Merge remote-tracking branch 'origin/1.0.x' into 1.0.x
[quix0rs-gnu-social.git] / classes / Related_group.php
1 <?php
2 /**
3  * Table Definition for related_group
4  */
5
6 class Related_group extends Managed_DataObject
7 {
8     ###START_AUTOCODE
9     /* the code below is auto generated do not remove the above tag */
10
11     public $__table = 'related_group';                   // table name
12     public $group_id;                        // int(4)  primary_key not_null
13     public $related_group_id;                // int(4)  primary_key not_null
14     public $created;                         // datetime()   not_null
15
16     /* Static get */
17     function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Related_group',$k,$v); }
18
19     /* the code above is auto generated do not remove the tag below */
20     ###END_AUTOCODE
21
22     public static function schemaDef()
23     {
24         return array(
25             // @fixme description for related_group?
26             'fields' => array(
27                 'group_id' => array('type' => 'int', 'not null' => true, 'description' => 'foreign key to user_group'),
28                 'related_group_id' => array('type' => 'int', 'not null' => true, 'description' => 'foreign key to user_group'),
29
30                 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
31             ),
32             'primary key' => array('group_id', 'related_group_id'),
33             'foreign keys' => array(
34                 'related_group_group_id_fkey' => array('user_group', array('group_id' => 'id')),
35                 'related_group_related_group_id_fkey' => array('user_group', array('related_group_id' => 'id')),
36             ),
37         );
38     }
39 }