<?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('training_feedbacks', function (Blueprint $table) {
            $table->id();
            $table->string('name')->nullable();
            $table->string('email')->nullable();
            $table->unsignedTinyInteger('content_satisfaction');
            $table->unsignedTinyInteger('trainer_expertise');
            $table->unsignedTinyInteger('scheduling_rating');
            $table->text('scheduling_comment')->nullable();
            $table->unsignedTinyInteger('trainer_personalization');
            $table->text('trainer_advice')->nullable();
            $table->unsignedTinyInteger('overall_experience');
            $table->text('financial_mindset_impact')->nullable();
            $table->text('recommend_training')->nullable();
            $table->json('greatest_impact_topics')->nullable();
            $table->json('more_time_topics')->nullable();
            $table->text('recommended_improvements')->nullable();
            $table->text('trainer_additional_feedback')->nullable();
            $table->timestamps();
        });
    }

    public function down(): void
    {
        Schema::dropIfExists('training_feedbacks');
    }
};
