<?php

namespace Database\Factories;

use App\Models\LeasingRecord;
use App\Models\LeasingProfile;
use App\Models\Branch;
use Illuminate\Database\Eloquent\Factories\Factory;

class LeasingRecordFactory extends Factory
{
    public function definition(): array
    {
        return [
            'leasing_profile_id' => LeasingProfile::factory(),
            'branch_id' => Branch::factory(),
            'tgl_data' => now()->toDateString(),
            'nopol' => strtoupper(fake()->bothify('? #### ??')),
            'rangka' => strtoupper(fake()->bothify('MH1################')),
            'mesin' => strtoupper(fake()->bothify('JFK#######')),
            'model' => fake()->word(),
            'kendaraan' => fake()->randomElement(['R4', 'R2']),
            'overdue_days' => fake()->numberBetween(1, 1000),
            'sisa_saldo' => fake()->numberBetween(1000000, 50000000),
            'record_status' => 'active',
            'internal_note' => 'RAHASIA: ' . fake()->sentence(),
        ];
    }
}
