• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/statustable.php
  • Класс: Bitrix\Crm\StatusTable
  • Вызов: StatusTable::getMap
static function getMap(): array
{
	return [
		(new ORM\Fields\IntegerField('ID'))
			->configurePrimary()
			->configureAutocomplete(),
		(new ORM\Fields\StringField('ENTITY_ID'))
			->configureRequired()
			->configureSize(50),
		(new ORM\Fields\StringField('STATUS_ID'))
			->configureRequired()
			->configureSize(50),
		(new ORM\Fields\StringField('NAME'))
			->configureRequired()
			->configureSize(100),
		(new ORM\Fields\StringField('NAME_INIT'))
			->configureSize(100),
		(new ORM\Fields\IntegerField('SORT'))
			->configureRequired(),
		(new ORM\Fields\BooleanField('SYSTEM'))
			->configureRequired()
			->configureValues('N', 'Y')
			->configureDefaultValue('N'),
		(new ORM\Fields\StringField('COLOR'))
			->configureSize(10),
		(new ORM\Fields\EnumField('SEMANTICS'))
			->configureValues([
				PhaseSemantics::PROCESS,
				PhaseSemantics::FAILURE,
				PhaseSemantics::SUCCESS,
			]),
		(new ORM\Fields\IntegerField('CATEGORY_ID')),
	];
}