<?php

namespace App\Models;

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

class WorkerDocument extends Model
{
    use HasFactory;

    protected $fillable = [
        'worker_id',
        'type',
        'number',
        'issue_date',
        'expiry_date',
        'ocr_accuracy',
        'file_path',
    ];

    public function worker()
    {
        return $this->belongsTo(Worker::class);
    }
}
