12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?php
- if (!defined('STATUSNET')) {
- exit(1);
- }
- class User_openid_prefs extends Managed_DataObject
- {
- public $__table = 'user_openid_prefs';
- public $user_id;
- public $hide_profile_link;
- public $created;
- public $modified;
-
- public static function schemaDef()
- {
- return [
- 'description' => 'Per-user preferences for OpenID display',
- 'fields' => [
- 'user_id' => [
- 'type' => 'integer',
- 'not null' => true,
- 'description' => 'User whose prefs we are saving'
- ],
- 'hide_profile_link' => [
- 'type' => 'integer',
- 'not null' => true,
- 'default' => 0,
- 'description' => 'Whether to hide profile links from profile block'
- ],
- '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' => ['user_id'],
- 'foreign keys' => ['user_openid_prefs_user_id_fkey' => ['user', ['user_id' => 'id']],
- ],
- 'indexes' => [],
- ];
- }
- }
|