<?php

namespace App\Models;

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

class StatusAudit extends Model
{
    use HasFactory;
    protected $primaryKey = 'id';
    protected $table = 'status_audit';
    protected $fillable = [
        'status_id',
        'action',
        'old_data',
        'new_data',
    ];

    public function status()
    {
        return $this->belongsTo(Status::class, 'status_id', 'status_id');
    }
}
