<?php namespace Romanah\Gokbakja\Models;

use Model;

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

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

    protected $dates = ['deleted_at'];

    public $belongsTo = [
        'sewer_production' => [
            'Romanah\Gokbakja\Models\SewerProduction',
            'key' => 'sewer_production_id'
        ],
        'machin_production' => [
            'Romanah\Gokbakja\Models\ProductionMachine',
            'key' => 'machine_production_id'
        ],
    ];

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

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