Commit 5df185a5 authored by Evan Prodromou's avatar Evan Prodromou

add table for remember me codes

darcs-hash:20080624020205-34904-be536546e7058ed77a6d45be4f91ffe201b3448e.gz
parent e330eb50
<?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]
id = N
[remember_me]
code = 130
user_id = 129
modified = 384
[remember_me__keys]
code = K
[remote_profile]
id = 129
uri = 2
......
......@@ -167,3 +167,9 @@ create table confirm_address (
address_type varchar(8) not null comment 'address type ("email", "jabber", "sms")',
modified timestamp comment 'date this record was modified'
) 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;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment