<?php namespace Romanah\Gokbakja\Models;

use Model;

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

    use \October\Rain\Database\Traits\SoftDelete;

    protected $dates = ['deleted_at'];

    public $belongsTo = [
        'order_item' => [
            'Romanah\Gokbakja\Models\OrderItem',
            'key' => 'order_item_id'
        ],
        'shipping_transport' => [
            'Romanah\Gokbakja\Models\ShippingTransport',
            'key' => 'transport_id'
        ],
        'product' => [
            'Romanah\Gokbakja\Models\ProductionMachine',
            'key' => 'product_id'
        ],
    ];

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

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