<?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::table('users', function (Blueprint $table) {
            $table->string('whatsapp', 30)->nullable()->after('tiktok');
            $table->string('google_location', 500)->nullable()->after('whatsapp');
            $table->string('social_phone', 30)->nullable()->after('google_location');
            $table->string('social_email', 100)->nullable()->after('social_phone');
        });
    }

    public function down(): void
    {
        Schema::table('users', function (Blueprint $table) {
            $table->dropColumn(['whatsapp', 'google_location', 'social_phone', 'social_email']);
        });
    }
};
