• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/tracking/internals/source.php
  • Класс: Bitrix\Crm\Tracking\Internals\SourceTable
  • Вызов: SourceTable::getMap
static function getMap()
{
	return [
		'ID' => [
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		],
		'DATE_CREATE' => [
			'data_type' => 'datetime',
			'default_value' => new DateTime(),
		],
		'ACTIVE' => [
			'data_type' => 'boolean',
			'default_value' => 'Y',
			'values' => ['N', 'Y']
		],
		'CODE' => [
			'data_type' => 'string',
		],
		'NAME' => [
			'data_type' => 'string',
			'required' => true,
			'title' => Loc::getMessage('CRM_TRACKING_INTERNALS_SOURCE_TITLE_NAME'),
		],
		'ICON_COLOR' => [
			'data_type' => 'string',
		],
		'PHONE' => [
			'data_type' => 'string',
		],
		'EMAIL' => [
			'data_type' => 'string',
		],
		'UTM_SOURCE' => [
			'data_type' => 'string',
		],
		'TAGS' => [
			'data_type' => 'text',
			'serialized' => true,
		],
		'AD_CLIENT_ID' => [
			'data_type' => 'string',
		],
		'AD_ACCOUNT_ID' => [
			'data_type' => 'string',
		],
	];
}