<?php

namespace App\Models\Evaluacion;

use App\Models\PivotePreguntaDocente;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Pregunta extends Model
{
    use HasFactory;
    protected $table = 'preguntas';
    protected $fillable = ['pregunta', 'puntuacion'];

    public function pivote_preguntas_docentes()
    {
        return $this->hasMany(PivotePreguntaDocente::class, 'id_pregunta');
    }
}
