3 * Table Definition for remember_me
5 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
7 class Remember_me extends Managed_DataObject
10 /* the code below is auto generated do not remove the above tag */
12 public $__table = 'remember_me'; // table name
13 public $code; // varchar(32) primary_key not_null
14 public $user_id; // int(4) not_null
15 public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
17 /* the code above is auto generated do not remove the tag below */
20 public static function schemaDef()
24 'code' => array('type' => 'varchar', 'length' => 32, 'not null' => true, 'description' => 'good random code'),
25 'user_id' => array('type' => 'int', 'not null' => true, 'description' => 'user who is logged in'),
26 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
28 'primary key' => array('code'),
29 'foreign keys' => array(
30 'remember_me_user_id_fkey' => array('user', array('user_id' => 'id')),