<?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('membership_plans', function (Blueprint $table) {
            // Her plan için hangi premium özelliklerin aktif olduğunu saklar
            // Örnek: {"ad_free":true,"comment_bg":true,"gif_avatar":false,...}
            $table->json('perks')->nullable()->after('features');
        });
    }

    public function down(): void
    {
        Schema::table('membership_plans', function (Blueprint $table) {
            $table->dropColumn('perks');
        });
    }
};
