123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?php
- defined('GNUSOCIAL') || die();
- 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' => 'int',
- 'not null' => true,
- 'description' => 'User whose prefs we are saving'
- ],
- 'hide_profile_link' => [
- 'type' => 'int',
- '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']],
- ],
- ];
- }
- }
|