<?php

namespace App\Models;

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

class CatatanPertumbuhan extends Model
{
    use HasFactory;

    protected $table = 'catatan_pertumbuhan';
    protected $fillable = ['anak_id', 'tanggal_pengukuran', 'berat_badan', 'tinggi_badan', 'lingkar_kepala'];

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