<?php

namespace Modules\Routing\Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Modules\Routing\Models\EvRoute;
use Modules\Routing\Models\RoutePricing;
use Modules\Shared\Enums\VehicleOption;

/**
 * @extends Factory<RoutePricing>
 */
class RoutePricingFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'ev_route_id' => EvRoute::factory(),
            'vehicle_option' => fake()->randomElement(VehicleOption::cases()),
            'price' => fake()->randomFloat(2, 5000, 50000),
            'is_blocked' => false,
        ];
    }
}
