<?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::table('care_appointments', function (Blueprint $table) {
            $table->uuid('meet_room_uuid')->nullable()->after('notes');
            $table->string('meet_join_url', 2048)->nullable()->after('meet_room_uuid');
        });
    }

    public function down(): void
    {
        Schema::table('care_appointments', function (Blueprint $table) {
            $table->dropColumn(['meet_room_uuid', 'meet_join_url']);
        });
    }
};
