1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
- }
- require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
- class Session extends Managed_DataObject
- {
-
-
- public $__table = 'session';
- public $id;
- public $session_data;
- public $created;
- public $modified;
-
-
-
- public static function schemaDef()
- {
- return [
- 'fields' => [
- 'id' => ['type' => 'varchar', 'length' => 32, 'not null' => true, 'description' => 'session ID'],
- 'session_data' => ['type' => 'text', 'description' => 'session data'],
- 'created' => ['type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'],
- 'modified' => ['type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'],
- ],
- 'primary key' => ['id'],
- 'indexes' => [
- 'session_modified_idx' => ['modified'],
- ],
- ];
- }
- }
|