<?php

namespace App\Models;

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

class HealthCheckupRecord extends Model
{
    protected $table = 'health_checkup_records';
    protected $fillable = [
        'worker_id',
        'health_date',
        'nama_klinik_hospital',
        'justifikasi_pemeriksaan',
        'rawatan_diperolehi',
    ];

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