add table for remember me codes
darcs-hash:20080624020205-34904-be536546e7058ed77a6d45be4f91ffe201b3448e.gz
This commit is contained in:
parent
e330eb50d2
commit
5df185a5ed
22
classes/Remember_me.php
Normal file
22
classes/Remember_me.php
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Table Definition for remember_me
|
||||||
|
*/
|
||||||
|
require_once 'DB/DataObject.php';
|
||||||
|
|
||||||
|
class Remember_me extends DB_DataObject
|
||||||
|
{
|
||||||
|
###START_AUTOCODE
|
||||||
|
/* the code below is auto generated do not remove the above tag */
|
||||||
|
|
||||||
|
public $__table = 'remember_me'; // table name
|
||||||
|
public $code; // varchar(32) primary_key not_null
|
||||||
|
public $user_id; // int(4) not_null
|
||||||
|
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
|
||||||
|
|
||||||
|
/* Static get */
|
||||||
|
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Remember_me',$k,$v); }
|
||||||
|
|
||||||
|
/* the code above is auto generated do not remove the tag below */
|
||||||
|
###END_AUTOCODE
|
||||||
|
}
|
|
@ -75,6 +75,14 @@ modified = 384
|
||||||
[profile__keys]
|
[profile__keys]
|
||||||
id = N
|
id = N
|
||||||
|
|
||||||
|
[remember_me]
|
||||||
|
code = 130
|
||||||
|
user_id = 129
|
||||||
|
modified = 384
|
||||||
|
|
||||||
|
[remember_me__keys]
|
||||||
|
code = K
|
||||||
|
|
||||||
[remote_profile]
|
[remote_profile]
|
||||||
id = 129
|
id = 129
|
||||||
uri = 2
|
uri = 2
|
||||||
|
|
|
@ -167,3 +167,9 @@ create table confirm_address (
|
||||||
address_type varchar(8) not null comment 'address type ("email", "jabber", "sms")',
|
address_type varchar(8) not null comment 'address type ("email", "jabber", "sms")',
|
||||||
modified timestamp comment 'date this record was modified'
|
modified timestamp comment 'date this record was modified'
|
||||||
) ENGINE=InnoDB;
|
) ENGINE=InnoDB;
|
||||||
|
|
||||||
|
create table remember_me (
|
||||||
|
code varchar(32) not null primary key comment 'good random code',
|
||||||
|
user_id integer not null comment 'user who is logged in' references user (id),
|
||||||
|
modified timestamp comment 'date this record was modified'
|
||||||
|
) ENGINE=InnoDB;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user