<?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::table('users', function (Blueprint $table) {
            $table->string('gif_avatar', 500)->nullable()->after('avatar');
            $table->string('comment_bg', 32)->nullable()->after('gif_avatar');       // fire|aurora|stars|sakura|neon|galaxy|ice
            $table->string('username_color', 32)->nullable()->after('comment_bg');   // preset key
            $table->string('profile_frame', 32)->nullable()->after('username_color'); // neon|fire|sakura|galaxy|gold|ice
            $table->string('profile_badge', 64)->nullable()->after('profile_frame');  // özel unvan metni
            $table->string('profile_bg', 32)->nullable()->after('profile_badge');     // animasyon stili
            $table->string('profile_theme', 32)->nullable()->after('profile_bg');     // tema anahtarı
        });
    }

    public function down(): void
    {
        Schema::table('users', function (Blueprint $table) {
            $table->dropColumn([
                'gif_avatar', 'comment_bg', 'username_color',
                'profile_frame', 'profile_badge', 'profile_bg', 'profile_theme',
            ]);
        });
    }
};
