123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?php
- if (!defined('STATUSNET')) {
- exit(1);
- }
- 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;
- static function schemaDef()
- {
- return array(
-
- 'description'
- => 'Additional profile details for the ExtendedProfile plugin',
- 'fields' => array(
- 'id' => array('type' => 'serial', 'not null' => true),
- 'profile_id' => array('type' => 'int', 'not null' => true),
- 'field_name' => array(
- 'type' => 'varchar',
- 'length' => 16,
- 'not null' => true
- ),
- 'value_index' => array('type' => 'int'),
- 'field_value' => array('type' => 'text'),
- 'date' => array('type' => 'datetime'),
- 'rel' => array('type' => 'varchar', 'length' => 16),
- 'rel_profile' => array('type' => 'int'),
- 'created' => array(
- 'type' => 'datetime',
- 'not null' => true
- ),
- 'modified' => array(
- 'type' => 'timestamp',
- 'not null' => true
- ),
- ),
- 'primary key' => array('id'),
- 'unique keys' => array(
- 'profile_detail_profile_id_field_name_value_index'
- => array('profile_id', 'field_name', 'value_index'),
- )
- );
- }
- }
|