<?php
namespace App\Models;
use App\Models\Concerns\BelongsToBusiness;
use Illuminate\Database\Eloquent\Model;
class DealDiscountApproval extends Model {
 use BelongsToBusiness; protected $guarded=['id']; protected $casts=['decided_at'=>'datetime'];
 public function deal(){return $this->belongsTo(Deal::class);}
 public function line(){return $this->belongsTo(DealProductLine::class,'deal_product_line_id');}
 public function requester(){return $this->belongsTo(User::class,'requested_by');}
 public function decider(){return $this->belongsTo(User::class,'decided_by');}
}
