123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- defined('GNUSOCIAL') || die();
- require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
- class User_im_prefs extends Managed_DataObject
- {
-
-
- public $__table = 'user_im_prefs';
- public $user_id;
- public $screenname;
- public $transport;
- public $notify;
- public $replies;
- public $updatefrompresence;
- public $created;
- public $modified;
-
-
- public static function schemaDef()
- {
- return array(
- 'fields' => array(
- 'user_id' => array('type' => 'int', 'not null' => true, 'description' => 'user'),
- 'screenname' => array('type' => 'varchar', 'length' => 191, 'not null' => true, 'description' => 'screenname on this service'),
- 'transport' => array('type' => 'varchar', 'length' => 191, 'not null' => true, 'description' => 'transport (ex xmpp, aim)'),
- 'notify' => array('type' => 'bool', 'not null' => true, 'default' => false, 'description' => 'Notify when a new notice is sent'),
- 'replies' => array('type' => 'bool', 'not null' => true, 'default' => false, 'description' => 'Send replies from people not subscribed to'),
- 'updatefrompresence' => array('type' => 'bool', 'not null' => true, 'default' => false, 'description' => 'Update from presence.'),
- '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', 'transport'),
- 'unique keys' => array(
- 'transport_screenname_key' => array('transport', 'screenname'),
- ),
- 'foreign keys' => array(
- 'user_im_prefs_user_id_fkey' => array('user', array('user_id' => 'id')),
- ),
- );
- }
- }
|