<?php

namespace Database\Factories;

use App\Enums\PlayerLevel;
use App\Enums\ProfileVisibility;
use App\Models\PlayerProfile;
use App\Models\User;
use App\Support\PublicId;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<PlayerProfile>
 */
class PlayerProfileFactory extends Factory
{
    protected $model = PlayerProfile::class;

    public function definition(): array
    {
        return [
            'public_id' => PublicId::generate(),
            'user_id' => User::factory(),
            'display_name' => fake()->name(),
            'bio' => fake()->optional()->sentence(),
            'country_code' => 'EG',
            'timezone' => 'UTC',
            'player_level' => PlayerLevel::Amateur,
            'looking_for_team' => false,
            'profile_visibility' => ProfileVisibility::Public,
            'profile_completion_percentage' => 0,
            'status' => 'active',
        ];
    }
}
