<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
/**
 * @OA\Schema(
 *     schema="Nota",
 *     type="object",
 *     required={"estudiante_id","materia","nota"},
 *     @OA\Property(property="id", type="integer", example=1),
 *     @OA\Property(property="estudiante_id", type="integer", example=1),
 *     @OA\Property(property="materia", type="string", example="Matemáticas"),
 *     @OA\Property(property="nota", type="number", format="float", example=85.5),
 *     @OA\Property(property="created_at", type="string", format="date-time"),
 *     @OA\Property(property="updated_at", type="string", format="date-time")
 * )
 */

class Nota extends Model
{
    protected $fillable = ['estudiante_id', 'materia', 'nota'];

    // Relación inversa
    public function estudiante()
    {
        return $this->belongsTo(Estudiante::class);
    }
}
