<?php namespace Romanah\Gokbakja\Models;

use Model;

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


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

    public $hasMany = [
        'action' => [
            'Romanah\Gokbakja\Models\Action',
            'key' => 'user_id'
        ]
    ];

    public function scopeGetReport($query)
    {
        return $query->where('report', 'simple');
    }

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