<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

/**
 * Class CreateHodnoteniaTable
 */
return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('hodnotenia', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('hodnotil_id');
            $table->string('hodnotenie');
            $table->unsignedBigInteger('hodnotitelne_id');
            $table->string('hodnotitelne_type');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('hodnotenia');
    }
};
