static function getMap()
{
return array(
'ID' => array(
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
),
'OBJECT_ID' => array(
'data_type' => 'integer',
'required' => true,
),
'OBJECT' => array(
'data_type' => 'BitrixDiskInternalsFileTable',
'reference' => array(
'=this.OBJECT_ID' => 'ref.ID'
),
'join_type' => 'INNER',
),
'VERSION_ID' => array(
'data_type' => 'integer',
),
'VERSION' => array(
'data_type' => 'BitrixDiskInternalsVersionTable',
'reference' => array(
'=this.VERSION_ID' => 'ref.ID'
),
),
'IS_EDITABLE' => array(
'data_type' => 'enum',
'values' => array(0, 1, 2),
'default_value' => 0,
),
'ALLOW_EDIT' => array(
'data_type' => 'enum',
'values' => array(0, 1),
'default_value' => 0,
),
'ALLOW_AUTO_COMMENT' => array(
'data_type' => 'enum',
'values' => array(0, 1),
'default_value' => 1,
),
'MODULE_ID' => array(
'data_type' => 'string',
'required' => true,
'validation' => array(__CLASS__, 'validateModule'),
),
'ENTITY_TYPE' => array(
'data_type' => 'string',
'required' => true,
'validation' => array(__CLASS__, 'validateEntityType'),
),
'ENTITY_ID' => array(
'data_type' => 'integer',
'required' => true,
),
'CREATE_TIME' => array(
'data_type' => 'datetime',
'required' => true,
'default_value' => function() {
return new DateTime();
},
),
'CREATED_BY' => array(
'data_type' => 'integer',
),
'CREATE_USER' => array(
'data_type' => 'BitrixMainUserTable',
'reference' => array(
'=this.CREATED_BY' => 'ref.ID'
),
),
);
}