<?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('users', function (Blueprint $t) {
            $t->string('specialization')->nullable()->after('locale');
            $t->string('color', 16)->nullable()->after('specialization');
            $t->decimal('hourly_rate', 8, 2)->nullable()->after('color');
        });
    }

    public function down(): void
    {
        Schema::table('users', function (Blueprint $t) {
            $t->dropColumn(['specialization', 'color', 'hourly_rate']);
        });
    }
};
