12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- defined('GNUSOCIAL') || die();
- 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' => 'bool',
- 'default' => true,
- 'description' => 'No conversation streams'),
- 'conversation_tree' => array('type' => 'bool',
- 'default' => true,
- 'description' => 'Hierarchical tree view for conversations'),
- 'stream_nicknames' => array('type' => 'bool',
- 'default' => true,
- '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')),
- ),
- );
- }
- }
|