<?php

namespace App\Models;

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

class AuditTrail extends Model
{
    use SoftDeletes;

    protected $table = 'audit_trail';
    protected $fillable = [
        'user_id',
        'ip_address',
        'activity',
        'action',
        'user_agent',
        'browser',
    ];

    public function user()
    {
        return $this->belongsTo(Admin::class, 'user_id');
    }
}
