<?php

namespace Database\Factories;

use App\Models\Sprint;
use App\Models\Requirement;
use App\Models\NonFunctionalRequirement;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\SprintBacklog>
 */
class SprintBacklogFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'r_id' => Requirement::factory(),
            'nfu_id' => NonFunctionalRequirement::factory(),
            'sprint_id' => Sprint::factory(),
            'status' => $this->faker->randomElement(['pending', 'voting', 'done']), // Updated status options
        ];
    }
}
