- Модуль: im
- Путь к файлу: ~/bitrix/modules/im/lib/model/reaction.php
- Класс: BitrixImModelReactionTable
- Вызов: ReactionTable::getMap
static function getMap()
{
return [
'ID' => new IntegerField(
'ID',
[
'primary' => true,
'autocomplete' => true,
]
),
'CHAT_ID' => new IntegerField(
'CHAT_ID',
[
'required' => true,
]
),
'MESSAGE_ID' => new IntegerField(
'MESSAGE_ID',
[
'required' => true,
]
),
'USER_ID' => new IntegerField(
'USER_ID',
[
'required' => true,
]
),
'REACTION' => new StringField(
'REACTION',
[
'required' => true,
'validation' => [__CLASS__, 'validateReaction'],
]
),
'DATE_CREATE' => new DatetimeField(
'DATE_CREATE',
[
'required' => true,
]
),
'COUNT' => new ExpressionField(
'COUNT',
'COUNT(*)'
),
'USERS_GROUP' => new ExpressionField(
'USERS',
'GROUP_CONCAT(%s)',
['USER_ID']
),
];
}