• Модуль: forum
  • Путь к файлу: ~/bitrix/modules/forum/lib/subscribe.php
  • Класс: BitrixForumSubscribeTable
  • Вызов: SubscribeTable::getMap
static function getMap()
{
	return [
		new EntityIntegerField('ID', ['primary' => true, 'autocomplete' => true]),
		new EntityIntegerField('USER_ID'),
		new EntityIntegerField('FORUM_ID'),
		new EntityIntegerField('TOPIC_ID'),
		new EntityDatetimeField('START_DATE'),
		new EntityIntegerField('LAST_SEND'),
		new EntityEnumField('NEW_TOPIC_ONLY', ['values' => ['Y', 'N'], 'default_value' => 'N']),
		new EntityStringField('SITE_ID', ['size' => 2, 'default_value' => 'ru']),
		new EntityIntegerField('SOCNET_GROUP_ID'),
		new Reference("USER", BitrixMainUserTable::class, Join::on("this.USER_ID", "ref.ID")),
		new Reference("FORUM_USER", BitrixForumUserTable::class, Join::on("this.USER_ID", "ref.USER_ID")),
	];
}