<?php

namespace App\Models\Finanza;

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

class Pago extends Model
{
    use HasFactory;
    protected $table = 'pagos';
    protected $fillable = ['recibo', 'total', 'tipo', 'id_pivote_horario_carrera_estudiante'];

    public function pivote_horarios_carreras_estudiantes()
    {
        return $this->belongsTo(PivoteHorarioCarreraEstudiante::class, 'id_pivote_horario_carrera_estudiante');
    }
}
