User_openid_trustroot.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Table Definition for user_openid_trustroot
  4. */
  5. if (!defined('STATUSNET')) {
  6. exit(1);
  7. }
  8. class User_openid_trustroot extends Managed_DataObject
  9. {
  10. ###START_AUTOCODE
  11. /* the code below is auto generated do not remove the above tag */
  12. public $__table = 'user_openid_trustroot'; // table name
  13. public $trustroot; // varchar(255) primary_key not_null
  14. public $user_id; // int(4) primary_key not_null
  15. public $created; // datetime() not_null
  16. public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
  17. /* the code above is auto generated do not remove the tag below */
  18. ###END_AUTOCODE
  19. public static function schemaDef()
  20. {
  21. return array(
  22. 'fields' => array(
  23. 'trustroot' => array('type' => 'varchar', 'not null' => true, 'length' => 255, 'description' => 'OpenID trustroot string'),
  24. 'user_id' => array('type' => 'int', 'not null' => true, 'description' => 'User ID for OpenID trustroot owner'),
  25. 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
  26. 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
  27. ),
  28. 'primary key' => array('trustroot', 'user_id'),
  29. );
  30. }
  31. }