<?php

namespace App\Models;

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

class AccountAudit extends Model
{
    use HasFactory;
    protected $primaryKey = 'id';
    protected $fillable = [
        'account_id',
        'action',
        'old_data',
        'new_data',
        'user_id',
    ];

    public function account()
    {
        return $this->belongsTo(Accounts::class, 'account_id', 'accounts_id');
    }
}
