<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class AuditLog extends Model {
    public $timestamps=false;
    protected $fillable=['organization_id','user_id','action','module','description','subject_type','subject_id','ip_address','user_agent','meta','created_at'];
    protected $casts=['meta'=>'array','created_at'=>'datetime'];
    public function organization(){ return $this->belongsTo(Organization::class); }
    public function user(){ return $this->belongsTo(User::class); }
}
