<?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('products', function (Blueprint $table) {
            // EFU card display fields
            $table->string('efu_product_name', 150)
                  ->default('EFU Cashless Health Plus')
                  ->after('variant')
                  ->comment('Product/insurance company label shown on card');

            $table->boolean('cashless_hospitalization')
                  ->default(true)
                  ->after('efu_product_name')
                  ->comment('Whether cashless hospitalization is available');
        });
    }

    public function down(): void
    {
        Schema::table('products', function (Blueprint $table) {
            $table->dropColumn(['efu_product_name', 'cashless_hospitalization']);
        });
    }
};
