<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('wisebee_consultations', function (Blueprint $table) {
            $table->unsignedBigInteger('wisebee_rate_id')->index()->nullable()->after('wisebee_created_by_id');
            $table->unsignedBigInteger('wisebee_specialty_id')->index()->nullable()->after('wisebee_rate_id');
            $table->unsignedBigInteger('wisebee_location_id')->index()->nullable()->after('wisebee_specialty_id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('wisebee_consultations', function (Blueprint $table) {
            $table->dropColumn('wisebee_rate_id');
            $table->dropColumn('wisebee_specialty_id');
            $table->dropColumn('wisebee_location_id');
        });
    }
};
