- Модуль: rpa
- Путь к файлу: ~/bitrix/modules/rpa/lib/model/itemhistorytable.php
- Класс: BitrixRpaModelItemHistoryTable
- Вызов: ItemHistoryTable::getMap
static function getMap(): array
{
return [
(new ORMFieldsIntegerField('ID'))
->configurePrimary()
->configureAutocomplete(),
(new ORMFieldsIntegerField('ITEM_ID'))
->configureRequired(),
(new ORMFieldsIntegerField('TYPE_ID'))
->configureRequired(),
(new ORMFieldsDatetimeField('CREATED_TIME'))
->configureRequired()
->configureDefaultValue(static function()
{
return new DateTime();
}),
(new ORMFieldsIntegerField('STAGE_ID'))
->configureRequired(),
(new ORMFieldsIntegerField('NEW_STAGE_ID')),
(new ORMFieldsIntegerField('USER_ID')),
(new ORMFieldsStringField('ACTION')),
(new ORMFieldsEnumField('SCOPE'))
->configureRequired()
->configureDefaultValue(static::SCOPE_MANUAL)
->configureValues(static::getScopePossibleValues()),
(new ORMFieldsIntegerField('TASK_ID')),
(new ORMFieldsRelationsOneToMany(
'FIELDS',
ItemHistoryFieldTable::class,
'ITEM_HISTORY')),
];
}