<?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('membership_prices', function (Blueprint $table) {
            $table->id();

            // Membership category
            $table->string('membership_type');
            // Example: Male, Female, Couple, Family

            // Package duration/type
            $table->string('package');
            // Example: 1 Month, 3 Months, 6 Months

            // Actual membership payment
            $table->decimal('membership_fee', 10, 2)->default(0);

            // Separate admission fee
            $table->decimal('admission_fee', 10, 2)->default(0);

            // Optional notes
            $table->text('description')->nullable();

            // Status
            $table->boolean('is_active')->default(true);

            $table->timestamps();
        });
    }

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