3 * Table Definition for related_group
6 class Related_group extends Managed_DataObject
9 /* the code below is auto generated do not remove the above tag */
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
16 /* the code above is auto generated do not remove the tag below */
19 public static function schemaDef()
22 // @fixme description for related_group?
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'),
27 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
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')),