<?php

namespace Database\Seeders;

use App\Models\TuitionPayment;
use Illuminate\Database\Seeder;

class TuitionPaymentSeeder extends Seeder
{
    public function run(): void
    {
        TuitionPayment::insert([
            [
                'invoice_id' => 1,
                'amount_paid' => 3000000,
                'paid_at' => '2026-08-03 10:00:00',
                'payment_method' => 'transfer',
                'status' => 'paid',
                'recorded_by' => 6,
                'notes' => 'Lunas sekaligus',
                'created_at' => '2026-08-03 10:00:00',
                'updated_at' => '2026-08-03 10:00:00',
            ],
            [
                'invoice_id' => 2,
                'amount_paid' => 1500000,
                'paid_at' => '2026-08-04 11:00:00',
                'payment_method' => 'transfer',
                'status' => 'partial',
                'recorded_by' => 6,
                'notes' => 'Cicilan tahap 1',
                'created_at' => '2026-08-04 11:00:00',
                'updated_at' => '2026-08-04 11:00:00',
            ],
        ]);
    }
}
