<?php namespace TPS\Birzha\Models;

use Model;

/**
 * Model
 */
class FilterGroups extends Model
{
    use \October\Rain\Database\Traits\Validation;
    
    use \October\Rain\Database\Traits\SoftDelete;

    protected $dates = ['deleted_at'];
    
    public $implement = ['@RainLab.Translate.Behaviors.TranslatableModel'];
    
    public $translatable = ['name'];
    
    public $belongsTo = [
        'category'       => ['TPS\Birzha\Models\Category','key' => 'category_id'],
    ];
    
     public $hasMany = [
        'filters' => ['TPS\Birzha\Models\Filters', 'key' => 'filter_group_id'],
    ];


    /**
     * @var string The database table used by the model.
     */
    public $table = 'tps_birzha_category_filter_groups';

    /**
     * @var array Validation rules
     */
    public $rules = [
    ];
}
