<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;

class RequestQuotation extends Model
{
     use SoftDeletes;

    protected $fillable = [
        'rfq_number',
        'rfq_date_time',
        'pickup_address',
        'delivery_address',
        'weight',
        'volumetrice_size_inch',
        'type_of_vehicle',
        'special_type',
        'no_of_vehicle',
        'product_name',
        'loading_by',
        'unloading_by',
        'pick_and_delivery',
        'payment_term',
        'paid_topay',
        'require_date_time',
        'transporter_name',
        'total_freight_charge',
        'transit_day',
        'spot_rate_transport_master_id',

        'created_at',
        'updated_at',
        'created_by',
        'updated_by',
    ];

    public function spotRateTransportMaster(): BelongsTo
    {
        return $this->belongsTo(SpotRateTransportMaster::class);
    }

}
