<?php namespace TPS\Birzha\Models;

use Model;

/**
 * Model
 */
class OrderItems 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_order_items';
    
    public $belongsTo = [
        'order' => ['TPS\Birzha\Models\Orders', 'table' => 'tps_birzha_orders', 'key' => 'order_id'],
        'product' => ['TPS\Birzha\Models\Product', 'table' => 'tps_birzha_products'],
    ];
    
    public $jsonable = ['items'];
    /**
     * @var array Validation rules
     */
    public $rules = [
    ];
}
