static function getMap()
{
return array(
'ID' => array(
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
),
'USER_ID' => array(
'data_type' => 'integer',
'required' => true
),
'USER' => array(
'data_type' => 'BitrixMainUserTable',
'reference' => array(
'=this.USER_ID' => 'ref.ID'
)
),
'DESCRIPTION' => array(
'data_type' => 'string',
),
'AVATAR' => array(
'data_type' => 'integer'
),
'POINTS' => array(
'data_type' => 'integer'
),
'RANK_ID' => array(
'data_type' => 'integer'
),
'NUM_POSTS' => array(
'data_type' => 'integer'
),
'INTERESTS' => array(
'data_type' => 'text'
),
'LAST_POST' => array(
'data_type' => 'integer'
),
'SIGNATURE' => array(
'data_type' => 'string'
),
'IP_ADDRESS' => array(
'data_type' => 'string',
'size' => 255
),
'REAL_IP_ADDRESS' => array(
'data_type' => 'string',
'size' => 255
),
'DATE_REG' => array(
'data_type' => 'datetime',
'required' => true,
'default_value' => function(){return new DateTime();}
),
'LAST_VISIT' => array(
'data_type' => 'datetime',
'required' => true,
'default_value' => function(){return new DateTime();}
),
'ALLOW_POST' => array(
'data_type' => "boolean",
'values' => array("N", "Y"),
'default_value' => "Y"
),
'SHOW_NAME' => array(
'data_type' => "boolean",
'values' => array("N", "Y"),
'default_value' => "Y"
),
'HIDE_FROM_ONLINE' => array(
'data_type' => "boolean",
'values' => array("N", "Y"),
'default_value' => "N"
),
'SUBSC_GROUP_MESSAGE' => array(
'data_type' => "boolean",
'values' => array("N", "Y"),
'default_value' => "N"
),
'SUBSC_GET_MY_MESSAGE' => array(
'data_type' => "boolean",
'values' => array("N", "Y"),
'default_value' => "Y"
)
);
}