<?php

namespace App\Models;

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

class JadwalImunisasi extends Model
{
    use HasFactory;

    protected $table = 'jadwal_imunisasi';
    protected $fillable = ['nama_imunisasi', 'tanggal_imunisasi', 'anak_id', 'is_done', 'bukti_file'];


    public function anak()
    {
        return $this->belongsTo(Anak::class);
    }
}