<?php

namespace App\Models;

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

class ExportError extends Model
{
    protected $table = 'export_errors';
    protected $fillable = [
        'business_id', 'document_id', 'software', 'external_error', 'internal_error', 'status',
    ];

    public function business(): BelongsTo { return $this->belongsTo(Business::class); }
    public function document(): BelongsTo { return $this->belongsTo(Document::class); }
}
