<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PastQuestionQuestion extends Model
{
    protected $fillable = [
        'past_question_id',
        'question',
        'answer_options',
        'correct_answer',
        'explanation',
        'sort_order',
        'is_active',
    ];

    protected $casts = [
        'answer_options' => 'array',
        'is_active' => 'boolean',
    ];

    public function pastQuestion()
    {
        return $this->belongsTo(PastQuestion::class);
    }
}