<?php namespace Romanah\Gokbakja\Models;

use Model;

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

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

    protected $dates = ['deleted_at'];


    public $belongsTo = [
        'order' => [
            'Romanah\Gokbakja\Models\Order',
            'key' => 'order_id'
        ],
        'employee' => [
            'Romanah\Gokbakja\Models\Employee',
            'key' => 'employee_id'
        ],
    ];


    public $hasMany = [
        'shipping_transport' => [
            'Romanah\Gokbakja\Models\ShippingTransport',
            'key' => 'shipping_id',
            'softDelete' => true
        ]
    ];
    /**
     * @var string The database table used by the model.
     */
    public $table = 'romanah_gokbakja_shipping';

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