<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class DemoExam extends Model
{
    protected $fillable = [
        'title',
        'description',
        'duration_minutes',
        'questions_per_course',
        'is_active',
    ];

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

    public function questions()
    {
        return $this->hasMany(DemoExamQuestion::class);
    }
}