<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class VendorQuote extends Model
{
    use HasFactory;

    protected $fillable = [
        'lead_id',
        'vendor_name',
        'vendor_raw_cost',
        'our_markup_percent',
        'selection_toggle',
    ];

    protected $casts = [
        'selection_toggle' => 'boolean',
    ];

    public function lead()
    {
        return $this->belongsTo(Lead::class);
    }
}
