]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - classes/Remember_me.php
Our URLs are permanent redirects, mind you!
[quix0rs-gnu-social.git] / classes / Remember_me.php
1 <?php
2 /**
3  * Table Definition for remember_me
4  */
5 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
6
7 class Remember_me extends Managed_DataObject
8 {
9     ###START_AUTOCODE
10     /* the code below is auto generated do not remove the above tag */
11
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
16
17     /* the code above is auto generated do not remove the tag below */
18     ###END_AUTOCODE
19
20     public static function schemaDef()
21     {
22         return array(
23             'fields' => array(
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'),
27             ),
28             'primary key' => array('code'),
29             'foreign keys' => array(
30                 'remember_me_user_id_fkey' => array('user', array('user_id' => 'id')),
31             ),
32         );
33     }    
34 }