<?php

namespace Database\Factories;

use App\Models\Organization;
use Illuminate\Database\Eloquent\Factories\Factory;

class PatientFactory extends Factory
{
    public function definition(): array
    {
        $phone = '+923'.fake()->numerify('#########');

        return [
            'organization_id' => Organization::factory(),
            'name' => fake()->name(),
            'phone' => $phone,
            'normalized_phone' => $phone,
            'has_whatsapp' => true,
            'whatsapp' => $phone,
            'city' => 'Lahore',
            'total_visits' => 0,
        ];
    }
}
