]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - classes/Related_group.php
Don't trust local HTML either
[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     /* the code above is auto generated do not remove the tag below */
17     ###END_AUTOCODE
18
19     public static function schemaDef()
20     {
21         return array(
22             // @fixme description for related_group?
23             'fields' => array(
24                 'group_id' => array('type' => 'int', 'not null' => true, 'description' => 'foreign key to user_group'),
25                 'related_group_id' => array('type' => 'int', 'not null' => true, 'description' => 'foreign key to user_group'),
26
27                 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
28             ),
29             'primary key' => array('group_id', 'related_group_id'),
30             'foreign keys' => array(
31                 'related_group_group_id_fkey' => array('user_group', array('group_id' => 'id')),
32                 'related_group_related_group_id_fkey' => array('user_group', array('related_group_id' => 'id')),
33             ),
34         );
35     }
36 }