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

return new class extends Migration {
    public function up(): void {
        Schema::create('evaluacion_tipos', function (Blueprint $table) {
            $table->id();
            $table->string('nombre');
            $table->string('slug')->unique();
        });
        DB::table('evaluacion_tipos')->insert([
            ['nombre' => 'Docente',                 'slug' => 'docente'],
            ['nombre' => 'Alumno',                  'slug' => 'alumno'],
            ['nombre' => 'Personal administrativo', 'slug' => 'administrativo'],
        ]);
    }
    public function down(): void { Schema::dropIfExists('evaluacion_tipos'); }
};
