<?php namespace TPS\Birzha\Models;

use Model;

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

    protected $dates = ['deleted_at'];


    /**
     * @var string The database table used by the model.
     */
    public $table = 'tps_birzha_comments';
    
    public $belongsTo = [
        'user' => ['RainLab\User\Models\User', 'table' => 'users'],
        'product' => ['TPS\Birzha\Models\Product', 'table' => 'tps_birzha_products'],
    ];

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