123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- defined('GNUSOCIAL') || die();
- class User_poll_prefs extends Managed_DataObject
- {
- public $__table = 'user_poll_prefs';
- public $user_id;
- public $hide_responses;
- public $created;
- public $modified;
-
- public static function schemaDef()
- {
- return array(
- 'description' => 'Record of user preferences for polls',
- 'fields' => array(
- 'user_id' => array('type' => 'int', 'not null' => true, 'description' => 'user id'),
- 'hide_responses' => array('type' => 'bool', 'default' => false, 'description' => 'Hide all poll responses'),
- 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
- 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
- ),
- 'primary key' => array('user_id')
- );
- }
- }
|