<?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('housekeeping_tasks', function (Blueprint $table) {
            $table->timestamp('started_at')->nullable();
            $table->unsignedBigInteger('clocked_in_by')->nullable();
            $table->integer('duration_minutes')->nullable();
        });
    }

    public function down(): void
    {
        Schema::table('housekeeping_tasks', function (Blueprint $table) {
            $table->dropColumn(['started_at', 'clocked_in_by', 'duration_minutes']);
        });
    }
};
