<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class AcademicRecord extends Model {
    protected $fillable = [
        'first_names', 'last_names', 'dni', 'cohort',
        'specialty', 'birth_date', 'registration_date',
        'book', 'folio', 'location', 'custom_values'
    ];
    protected $casts = [
        'birth_date' => 'date',
        'registration_date' => 'date',
        'custom_values' => 'array' // Automáticamente convierte JSON a Array de PHP
    ];
}
