<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    public function up(): void {
        Schema::create('academic_records', function (Blueprint $table) {
            $table->id();
            $table->string('first_names');
            $table->string('last_names');
            $table->string('dni')->unique(); // Cédula
            $table->string('cohort');        // Ejemplo: 2024-I
            $table->string('specialty');     // Especialidad
            $table->date('birth_date');      // Fecha Nacimiento
            $table->date('registration_date'); // Fecha Registro
            $table->string('book');          // Libro
            $table->string('folio');         // Folio
            $table->string('location');      // Ubicación
            $table->timestamps();
        });
    }
    public function down(): void { Schema::dropIfExists('academic_records'); }
};
