123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?php
- defined('GNUSOCIAL') || die();
- class Profile_detail extends Managed_DataObject
- {
- public $__table = 'profile_detail';
- public $id;
- public $profile_id;
- public $rel;
- public $field_name;
- public $field_value;
- public $value_index;
- public $date;
- public $ref_profile;
- public $created;
- public $modified;
- public static function schemaDef()
- {
- return [
-
- 'description' => 'Additional profile details for the ExtendedProfile plugin',
- 'fields' => [
- 'id' => ['type' => 'serial', 'not null' => true],
- 'profile_id' => ['type' => 'int', 'not null' => true],
- 'field_name' => [
- 'type' => 'varchar',
- 'length' => 16,
- 'not null' => true,
- ],
- 'value_index' => ['type' => 'int'],
- 'field_value' => ['type' => 'text'],
- 'date' => ['type' => 'datetime'],
- 'rel' => ['type' => 'varchar', 'length' => 16],
- 'rel_profile' => ['type' => 'int'],
- 'created' => [
- 'type' => 'datetime',
- 'not null' => true,
- ],
- 'modified' => [
- 'type' => 'timestamp',
- 'not null' => true,
- ],
- ],
- 'primary key' => ['id'],
- 'unique keys' => [
- 'profile_detail_profile_id_field_name_value_index_key' => ['profile_id', 'field_name', 'value_index']
- ],
- ];
- }
- }
|