- Модуль: messageservice
- Путь к файлу: ~/bitrix/modules/messageservice/lib/internal/entity/restapp.php
- Класс: BitrixMessageServiceInternalEntityRestAppTable
- Вызов: RestAppTable::getMap
static function getMap(): array
{
return [
'ID' => [
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true
],
'APP_ID' => [
'data_type' => 'string',
'required' => true,
'validation' => [__CLASS__, 'validateVarchar128'],
],
'CODE' => [
'data_type' => 'string',
'required' => true,
'validation' => [__CLASS__, 'validateVarchar128'],
],
'TYPE' => [
'data_type' => 'string',
'required' => true,
'validation' => [__CLASS__, 'validateType'],
],
'HANDLER' => [
'data_type' => 'string',
'required' => true,
'validation' => [__CLASS__, 'validateHandler'],
],
'DATE_ADD' => [
'data_type' => 'datetime',
'default_value' => new MainTypeDateTime(),
],
'AUTHOR_ID' => [
'data_type' => 'integer',
'default_value' => 0,
],
'AUTHOR' => [
'data_type' => 'BitrixMainUserTable',
'reference' => [
'=this.AUTHOR_ID' => 'ref.ID'
],
'join_type' => 'LEFT',
],
];
}