<?php

declare(strict_types=1);

namespace Database\Factories;

use App\Models\Screening;
use App\Models\ScreeningAnswer;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * Factory for generating ScreeningAnswer test data.
 *
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\ScreeningAnswer>
 */
final class ScreeningAnswerFactory extends Factory
{
    protected $model = ScreeningAnswer::class;

    /**
     * Define the model's default state.
     */
    public function definition(): array
    {
        return [
            'screening_id' => Screening::factory(),
            'question_number' => fake()->numberBetween(1, 10),
            'value' => fake()->randomElement(['yes', 'no']),
        ];
    }
}
