<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class DocumentException extends Model
{
    protected $table = 'document_exceptions';
    protected $fillable = ['document_id', 'reported_by', 'reason', 'notes', 'status'];

    public function document(): BelongsTo { return $this->belongsTo(Document::class); }
    public function reporter(): BelongsTo { return $this->belongsTo(User::class, 'reported_by'); }
}
