static function getMap()
{
return [
'ID' => [
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
],
'DATETIME' => [
'data_type' => 'datetime',
'required' => true,
],
'DATETIME_REPAIR' => [
'data_type' => 'datetime',
'required' => false,
],
'USER_ID' => [
'data_type' => 'integer',
'required' => true,
],
'USER_TYPE' => [
'data_type' => 'string',
'required' => false,
],
'GROUP_ID' => [
'data_type' => 'integer',
'required' => false,
],
'EFFECTIVE' => [
'data_type' => 'integer',
],
'TASK_ID' => [
'data_type' => 'integer',
'required' => false,
],
'TASK_TITLE' => [
'data_type' => 'string',
'required' => false,
'default' => 'N',
'save_data_modification' => ['BitrixMainTextEmoji', 'getSaveModificator'],
'fetch_data_modification' => ['BitrixMainTextEmoji', 'getFetchModificator'],
],
'TASK_DEADLINE' => [
'data_type' => 'datetime',
'required' => false,
'default' => 'N',
],
'IS_VIOLATION' => [
'data_type' => 'string',
'required' => false,
'default'=> 'N',
],
// references
'USER' => [
'data_type' => 'BitrixMainUserTable',
'reference' => ['=this.USER_ID' => 'ref.ID'],
],
'GROUP' => [
'data_type' => 'BitrixSocialnetworkWorkgroupTable',
'reference' => ['=this.GROUP_ID' => 'ref.ID'],
],
'TASK' => [
'data_type' => 'BitrixTasksTaskTable',
'reference' => ['=this.TASK_ID' => 'ref.ID'],
],
'RECYCLE' => [
'data_type' => 'BitrixRecyclebinInternalsModelsRecyclebinTable',
'reference' => [
'=ref.ENTITY_TYPE' => ['?', Manager::TASKS_RECYCLEBIN_ENTITY],
'=this.TASK_ID' => 'ref.ENTITY_ID',
],
],
];
}