<?php

namespace App\Models;

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

class RoleQuestions extends Model
{
    use HasFactory;

    protected $fillable = [
        'role_id',
        'question_type',
        'question',
        'option1',
        'option2',
        'option3',
        'option4',
];


    public function getRole()
    {
        return $this->belongsTo(Role::Class, 'role_id');
    }
}
