<?php

namespace Hura8\Components\Media\Model;

use Hura8\Interfaces\iSearch;
use Hura8\System\Model\aSearchBaseModel;


class MediaSearchModel extends aSearchBaseModel implements iSearch
{

    private  $filter_fields = [
        'file_type' => "tb_media.file_type",
    ];

    private  $fulltext_fields = [
        "keywords"  => ["tb_media.title",],
    ];


    public function __construct()
    {
        parent::__construct(
            "tb_media",
            $this->fulltext_fields,
            $this->filter_fields
        );

        //$this->createTableSearch();
    }

}
