<?php namespace Romanah\Gokbakja\Models;

use Model;

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

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

    protected $dates = ['deleted_at'];

    public $belongsTo = [
        'bag_type' => [
            'Romanah\Gokbakja\Models\BagType',
            'key' => 'type_id'
        ],
        'bag_size' => [
            'Romanah\Gokbakja\Models\BagSize',
            'key' => 'size_id'
        ],
        'machine' => [
            'Romanah\Gokbakja\Models\Machine',
            'key' => 'machine_id'
        ],
        'employee' => [
            'Romanah\Gokbakja\Models\Employee',
            'key' => 'employee_id'
        ],
        'mechanic' => [
            'Romanah\Gokbakja\Models\Employee',
            'key' => 'mechanic_id'
        ],
    ];

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

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