<?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('feedback_reports', function (Blueprint $table) {
            $table->id();
            $table->string('nama')->nullable();
            $table->string('emel')->nullable();
            $table->text('mesej');
            $table->string('halaman_url')->nullable();
            $table->string('status', 20)->default('baru'); // baru, dibaca, selesai
            $table->timestamps();
        });
    }

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