<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('bukets', function (Blueprint $table) {
            $table->id('id_buket');
            $table->string('nama');
            $table->text('deskripsi')->nullable();
            $table->text('request_khusus')->nullable();
            $table->decimal('harga', 10, 2); // Format uang
            $table->string('foto')->nullable();
            // Enum sesuai diskusi Wireframe & ERD
            $table->enum('kategori', ['single', 'fresh', 'premium_fresh', 'artificial']);
            $table->enum('ukuran', ['S', 'M', 'L']);
            $table->timestamps();
        });
    }

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