<?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('grape_varieties', function (Blueprint $table) {
            $table->id();
            $table->string('variety_name')->comment('Name of the grape variety');
            $table->text('description')->nullable()->comment('Detailed description of the grape variety');
            $table->string('origin')->nullable()->comment('Origin/region of the variety');
            $table->enum('wine_type', ['red', 'white', 'rose'])->nullable()->comment('Wine type classification');
            $table->text('characteristics')->nullable()->comment('General characteristics and properties');
            $table->string('image_url')->nullable()->comment('Image URL for catalog display');
            $table->timestamps();
        });
    }

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