<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class DifficultyLevel extends Model
{
    use HasFactory;
    protected $table = 'difficulty_levels';
    protected $fillable = ['level'];
    public function questions()
    {
        return $this->hasMany(TopicQuestion::class, 'topic_id');
    }
}
