<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Carbon\Carbon;

class RiwayatPemeriksaanSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        DB::table('riwayat_pemeriksaans')->insert([
            [
                'nama' => 'Ahmad Fauzan',
                'umur' => 4,
                'berat' => 15.5,
                'tinggi' => 98,
                'hasil_analisis' => 'sehat',
                'tanggal_pemeriksaan' => '2024-04-20',
                'created_at' => Carbon::now(),
                'updated_at' => Carbon::now(),
            ],
            [
                'nama' => 'Siti Nurhaliza',
                'umur' => 5,
                'berat' => 14.2,
                'tinggi' => 95,
                'hasil_analisis' => 'stunting',
                'tanggal_pemeriksaan' => '2024-04-18',
                'created_at' => Carbon::now(),
                'updated_at' => Carbon::now(),
            ]
        ]);
    }
}
