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'
),
),
'ATTACHED_OBJECT' => array(
'data_type' => AttachedObjectTable::class,
'reference' => array(
'=this.OBJECT_ID' => 'ref.OBJECT_ID',
'=this.ID' => 'ref.VERSION_ID'
),
),
'SIZE' => array(
'data_type' => 'integer',
'required' => true,
),
'FILE_ID' => array(
'data_type' => 'integer',
'required' => true,
),
'NAME' => array(
'data_type' => 'string',
'validation' => array(__CLASS__, 'validateName'),
),
'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'
)
),
'PATH_PARENT' => array(
'data_type' => 'BitrixDiskInternalsObjectPathTable',
'reference' => array(
'=this.OBJECT_ID' => 'ref.PARENT_ID'
),
'join_type' => 'INNER',
),
'PATH_CHILD' => array(
'data_type' => 'BitrixDiskInternalsObjectPathTable',
'reference' => array(
'=this.OBJECT_ID' => 'ref.OBJECT_ID'
),
'join_type' => 'INNER',
),
'OBJECT_CREATE_TIME' => array(
'data_type' => 'datetime',
),
'OBJECT_CREATED_BY' => array(
'data_type' => 'integer',
),
'OBJECT_UPDATE_TIME' => array(
'data_type' => 'datetime',
),
'OBJECT_UPDATED_BY' => array(
'data_type' => 'integer',
),
'GLOBAL_CONTENT_VERSION' => array(
'data_type' => 'integer',
),
'MISC_DATA' => array(
'data_type' => 'text',
),
'VIEW_ID' => array(
'data_type' => 'integer',
),
);
}