<?php namespace TPS\Birzha\Models;

use Model;

/**
 * Model
 */
class VendorSales 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_vendor_sales';
    
     public $belongsTo = [
        'product' => ['TPS\Birzha\Models\Product','key' => 'product_id'],
        'vendor' => ['RainLab\User\Models\User','key' => 'vendor_id'],
        'order' => ['TPS\Birzha\Models\Orders','key' => 'order_id'],
    ];

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