<?php

namespace App\Models;

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

class RiwayatPenyakit extends Model
{
    use HasFactory;

    protected $table = 'riwayat_penyakit';
    protected $fillable = ['anak_id', 'nama_penyakit', 'tanggal_sakit', 'deskripsi', 'obat'];

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