<?php

namespace App\Model;

use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
use Jenssegers\Mongodb\Eloquent\SoftDeletes;

class Docket extends Eloquent {
    //

    use SoftDeletes;
    
	protected $connection = 'mongodb';
    protected $collection = 'docket';
	
	// protected $fillable = ['_id','docket_id','work_order_id','nature_work','contractor_id','installer_id','customer_id','end_job','router_serial_number','mac_router','cable_read','condition','Note','Rating1','Rating2','Rating3','customer_signature','status','created_at'];

	protected $guarded = ['_id'];

	public function workorder() {
        return $this->belongsTo('App\Model\WorkOrder','work_order_id','wo');
    }
}
