<?php

namespace Database\Factories;

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

class QuestionFactory extends Factory
{
    protected $model = Question::class;

    public function definition(): array
    {
        return [
            'question_code' => 'Q-' . $this->faker->unique()->numerify('######'),
            'question_type' => 'answer',
            'stem' => $this->faker->sentence(),
            'answer' => $this->faker->sentence(),
            'solution' => $this->faker->paragraph(),
            'difficulty' => 1,
        ];
    }
}
