1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- defined('GNUSOCIAL') || die();
- class Related_group extends Managed_DataObject
- {
-
-
- public $__table = 'related_group';
- public $group_id;
- public $related_group_id;
- public $created;
-
-
- public static function schemaDef()
- {
- return array(
-
- 'fields' => array(
- 'group_id' => array('type' => 'int', 'not null' => true, 'description' => 'foreign key to user_group'),
- 'related_group_id' => array('type' => 'int', 'not null' => true, 'description' => 'foreign key to user_group'),
- 'created' => array('type' => 'datetime', 'description' => 'date this record was created'),
- ),
- 'primary key' => array('group_id', 'related_group_id'),
- 'foreign keys' => array(
- 'related_group_group_id_fkey' => array('user_group', array('group_id' => 'id')),
- 'related_group_related_group_id_fkey' => array('user_group', array('related_group_id' => 'id')),
- ),
- 'indexes' => array(
- 'related_group_related_group_id_idx' => array('related_group_id'),
- ),
- );
- }
- }
|