<?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('members', function (Blueprint $table) {
    $table->id();
    $table->string('first_name');
    $table->string('last_name');
    $table->string('email')->unique();
    $table->string('phone')->nullable();
    $table->date('date_of_birth')->nullable();
    $table->date('join_date');
    $table->date('membership_expiry')->nullable();
    $table->string('address')->nullable();
    $table->string('emergency_contact')->nullable();
    $table->string('health_notes')->nullable();
    $table->string('profile_image')->nullable();
    $table->enum('status', ['active', 'inactive', 'suspended'])->default('active');
    $table->timestamps();
});
    }

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