<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class eesl extends Model
{
    use HasFactory;
    protected $table='eesl';
    protected $fillable=['from_jilla_id', 'maker_name', 'led_wattage', 'quantity', 'to_jilla_id',"inward_id", 'status','remarks','date_of_transfer','files','rcv_qty_18w','rcv_qty_35w','rcv_qty_70w','rcv_qty_190w','rcv_qty_110w','bufferstck_received_qty_18w','bufferstck_received_qty_35w','bufferstck_received_qty_70w','bufferstck_received_qty_110w','bufferstck_received_qty_190w','spd_received_qty_35w','spd_received_qty_70w','spd_received_qty_110w','spd_received_qty_190w','spd_received_qty_18w','drivers_received_qty_35w','drivers_received_qty_70w','drivers_received_qty_110w','drivers_received_qty_190w','drivers_received_qty_18w','invoice_number','tiltadap_rcv_qty'];

    public function from_district()
    {
        return $this->hasOne('App\Models\area_master','id','from_jilla_id');
    }
     public function to_district()
    {
        return $this->hasOne('App\Models\area_master','id','to_jilla_id');
    }
     public function maker_details()
    {
        return $this->hasOne('App\Models\Makelist','name','maker_name');
    }
}