<?php

namespace Database\Factories;

use App\Enums\Gender;
use App\Models\User;
use App\Models\UserProfile;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<UserProfile>
 */
class UserProfileFactory extends Factory
{
    public function definition(): array
    {
        return [
            'user_id' => User::factory(),
            'full_name' => fake()->name(),
            'phone_number' => fake()->numerify('08##########'),
            'gender' => fake()->randomElement(Gender::cases())->value,
            'birth_date' => fake()->dateTimeBetween('-50 years', '-18 years'),
            'address' => fake()->address(),
        ];
    }
}
