<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class EmployeeDocument extends Model
{
    protected $fillable = ['user_id', 'title', 'document_type', 'file_path', 'expiry_date', 'status', 'notes'];
    protected function casts(): array { return ['expiry_date' => 'date']; }
    public function user(){ return $this->belongsTo(User::class); }
}
