• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/model/fieldtable.php
  • Класс: BitrixRpaModelFieldTable
  • Вызов: FieldTable::getMap
static function getMap(): array
{
	return [
		(new ORMFieldsIntegerField('ID'))
			->configurePrimary()
			->configureAutocomplete(),
		(new ORMFieldsIntegerField('TYPE_ID'))
			->configureRequired(),
		(new ORMFieldsIntegerField('STAGE_ID'))
			->configureRequired(),
		(new ORMFieldsRelationsReference(
			'STAGE',
			StageTable::class,
			['=this.STAGE_ID' => 'ref.ID']
		)),
		(new ORMFieldsStringField('FIELD'))
			->configureRequired(),
		(new ORMFieldsEnumField('VISIBILITY'))
			->configureRequired()
			->configureValues(static::getVisibilityTypes()),
	];
}