<?php

namespace Database\Factories\Pilkades;

use App\Modules\Pilkades\Models\Desa;
use App\Modules\Pilkades\Models\Tps;
use App\Modules\Pilkades\Models\Voter;
use Illuminate\Database\Eloquent\Factories\Factory;

class VoterFactory extends Factory
{
    protected $model = Voter::class;

    public function definition(): array
    {
        return [
            'desa_id' => Desa::factory(),
            'nama' => fake()->name(),
            'nik' => fake()->unique()->numerify('################'),
            'tps_id' => Tps::factory(),
            'rt' => (string) fake()->numberBetween(1, 20),
            'rw' => (string) fake()->numberBetween(1, 20),
            'status_terdaftar' => 'terdaftar',
        ];
    }
}
