Related_group.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Table Definition for related_group
  4. */
  5. class Related_group extends Managed_DataObject
  6. {
  7. ###START_AUTOCODE
  8. /* the code below is auto generated do not remove the above tag */
  9. public $__table = 'related_group'; // table name
  10. public $group_id; // int(4) primary_key not_null
  11. public $related_group_id; // int(4) primary_key not_null
  12. public $created; // datetime() not_null
  13. /* the code above is auto generated do not remove the tag below */
  14. ###END_AUTOCODE
  15. public static function schemaDef()
  16. {
  17. return array(
  18. // @fixme description for related_group?
  19. 'fields' => array(
  20. 'group_id' => array('type' => 'int', 'not null' => true, 'description' => 'foreign key to user_group'),
  21. 'related_group_id' => array('type' => 'int', 'not null' => true, 'description' => 'foreign key to user_group'),
  22. 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
  23. ),
  24. 'primary key' => array('group_id', 'related_group_id'),
  25. 'foreign keys' => array(
  26. 'related_group_group_id_fkey' => array('user_group', array('group_id' => 'id')),
  27. 'related_group_related_group_id_fkey' => array('user_group', array('related_group_id' => 'id')),
  28. ),
  29. );
  30. }
  31. }