summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/Remember_me.php22
-rw-r--r--classes/stoica.ini8
-rw-r--r--db/laconica.sql6
3 files changed, 36 insertions, 0 deletions
diff --git a/classes/Remember_me.php b/classes/Remember_me.php
new file mode 100644
index 000000000..fd21c2fce
--- /dev/null
+++ b/classes/Remember_me.php
@@ -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
+}
diff --git a/classes/stoica.ini b/classes/stoica.ini
index 4fe395f59..97f1a8bb6 100644
--- a/classes/stoica.ini
+++ b/classes/stoica.ini
@@ -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
diff --git a/db/laconica.sql b/db/laconica.sql
index 5e612cbd8..f61d5de15 100644
--- a/db/laconica.sql
+++ b/db/laconica.sql
@@ -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;