• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/internals/fuser.php
  • Класс: BitrixSaleInternalsFuserTable
  • Вызов: FuserTable::getMap
static function getMap()
{
	global $DB;

	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'DATE_INSERT' => array(
			'data_type' => 'datetime'
		),
		'DATE_INS' => array(
			'data_type' => 'datetime',
			'expression' => array(
				$DB->DatetimeToDateFunction('%s'), 'DATE_INSERT'
			)
		),
		'DATE_UPDATE' => array(
			'data_type' => 'datetime'
		),
		'DATE_UPD' => array(
			'data_type' => 'datetime',
			'expression' => array(
				$DB->DatetimeToDateFunction('%s'), 'DATE_UPDATE'
			)
		),
		new MainEntityIntegerField(
			"USER_ID"
		),

		'USER' => array(
			'data_type' => 'BitrixMainUser',
			'reference' => array('=this.USER_ID' => 'ref.ID')
		),

		new MainEntityStringField(
			'CODE', 
			array(
				'size' => 32
			)),
	);
}