<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class VendorStatusHistory extends Model
{
    protected $fillable = [
        'vendor_id', 'old_status', 'new_status', 'reason', 'changed_by'
    ];

    public function vendor()
    {
        return $this->belongsTo(Vendor::class);
    }

    public function changedBy()
    {
        return $this->belongsTo(User::class, 'changed_by');
    }
}
