<?php

namespace App\Models;

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

class CategoriesAudit extends Model
{
    use HasFactory;
    protected $primaryKey = 'id';
    protected $table = 'categories_audit';
    protected $fillable = [
        'categories_id',
        'action',
        'old_data',
        'new_data',
    ];

    public function categories()
    {
        return $this->belongsTo(Categories::class, 'categories_id', 'categories_id');
    }
}
