<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
/**
 * @OA\Schema(
 *     schema="Estudiante",
 *     type="object",
 *     required={"nombre","apellido","dni","correo"},
 *     @OA\Property(property="id", type="integer", example=1),
 *     @OA\Property(property="nombre", type="string", example="Juan"),
 *     @OA\Property(property="apellido", type="string", example="Pérez"),
 *     @OA\Property(property="dni", type="string", example="12345678"),
 *     @OA\Property(property="correo", type="string", example="juan@example.com"),
 *     @OA\Property(property="created_at", type="string", format="date-time"),
 *     @OA\Property(property="updated_at", type="string", format="date-time")
 * )
 */

class Estudiante extends Model
{
    protected $fillable = ['nombre', 'apellido', 'dni', 'correo'];

    public function notas()
    {
        return $this->hasMany(Nota::class);
    }
}
