12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- if (!defined('STATUSNET')) {
-
-
- exit(1);
- }
- class Old_school_prefs extends Managed_DataObject
- {
- public $__table = 'old_school_prefs';
- public $user_id;
- public $stream_mode_only;
- public $conversation_tree;
- public $stream_nicknames;
- public $created;
- public $modified;
- public static function schemaDef()
- {
- return array(
- 'fields' => array(
- 'user_id' => array('type' => 'int', 'not null' => true, 'description' => 'user who has the preference'),
- 'stream_mode_only' => array('type' => 'int',
- 'size' => 'tiny',
- 'default' => 1,
- 'description' => 'No conversation streams'),
- 'conversation_tree' => array('type' => 'int',
- 'size' => 'tiny',
- 'default' => 1,
- 'description' => 'Hierarchical tree view for conversations'),
- 'stream_nicknames' => array('type' => 'int',
- 'size' => 'tiny',
- 'default' => 1,
- 'description' => 'Show nicknames for authors and addressees in streams'),
- 'created' => array('type' => 'datetime', 'not null' => true, 'default' => '0000-00-00 00:00:00', 'description' => 'date this record was created'),
- 'modified' => array('type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'),
- ),
- 'primary key' => array('user_id'),
- 'foreign keys' => array(
- 'old_school_prefs_user_id_fkey' => array('user', array('user_id' => 'id')),
- ),
- );
- }
- }
|