<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    /**
     * Run the migrations.
     *
     * Creates the numerology_letters table with:
     * - letter: The letter character (A-Z, Ñ)
     * - value: Numerological value (1-9)
     * - is_vowel: Boolean indicating if the letter is a vowel
     */
    public function up(): void
    {
        Schema::create('numerology_letters', function (Blueprint $table) {
            $table->id();
            $table->char('letter', 1)->unique()->comment('Letter character (A-Z, Ñ)');
            $table->unsignedTinyInteger('value')->comment('Numerological value (1-9)');
            $table->boolean('is_vowel')->default(false)->comment('Is this letter a vowel?');
            $table->timestamps();
        });
    }

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