<?php

namespace Database\Factories;

use App\Models\Athlete;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

class AthleteAssessmentFactory extends Factory
{
    public function definition(): array
    {
        $athlete = Athlete::factory()->create();

        return [
            'athlete_id' => $athlete->id,
            'assessment_date' => now()->toDateString(),
            'weight_kg' => fake()->randomFloat(1, 50, 100),
            'height_cm' => fake()->numberBetween(150, 195),
            'bmi' => fake()->randomFloat(1, 18, 30),
            'is_initial' => true,
            'created_by' => $athlete->user_id,
        ];
    }
}
