<?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::create('class_registrations', function (Blueprint $table) {
    $table->id();
    $table->string('class_name'); // Store class name directly
    $table->string('class_schedule')->nullable(); // Optional: store schedule info
    $table->string('full_name');
    $table->string('email');
    $table->string('phone');
    $table->enum('membership_status', ['member', 'non-member', 'guest']);
    $table->timestamps();
});
    }

    public function down(): void
    {
        Schema::dropIfExists('class_registrations');
    }
};