<?php

namespace Database\Factories;

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

/** @extends Factory<WeeklyForecast> */
class WeeklyForecastFactory extends Factory
{
    public function definition(): array
    {
        return [
            'forecast_for' => now()->startOfWeek()->toDateString(),
            'model_version' => 'ridge-'.fake()->unique()->bothify('????????'),
            'direction' => fake()->randomElement(['rising', 'falling', 'flat']),
            'magnitude_pence' => fake()->numberBetween(-300, 300),
            'ridge_confidence' => fake()->numberBetween(20, 90),
            'flagged_duty_change' => false,
            'reasoning' => fake()->paragraph(),
            'generated_at' => now(),
        ];
    }
}
