Remember_me.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Table Definition for remember_me
  4. */
  5. require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
  6. class Remember_me extends Managed_DataObject
  7. {
  8. ###START_AUTOCODE
  9. /* the code below is auto generated do not remove the above tag */
  10. public $__table = 'remember_me'; // table name
  11. public $code; // varchar(32) primary_key not_null
  12. public $user_id; // int(4) not_null
  13. public $modified; // datetime() not_null default_CURRENT_TIMESTAMP
  14. /* the code above is auto generated do not remove the tag below */
  15. ###END_AUTOCODE
  16. public static function schemaDef()
  17. {
  18. return array(
  19. 'fields' => array(
  20. 'code' => array('type' => 'varchar', 'length' => 32, 'not null' => true, 'description' => 'good random code'),
  21. 'user_id' => array('type' => 'int', 'not null' => true, 'description' => 'user who is logged in'),
  22. 'modified' => array('type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'),
  23. ),
  24. 'primary key' => array('code'),
  25. 'foreign keys' => array(
  26. 'remember_me_user_id_fkey' => array('user', array('user_id' => 'id')),
  27. ),
  28. );
  29. }
  30. }