<?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 $table) {
            $table->dropColumn(['can_sell', 'can_lease', 'can_rent']);
        });
    }

    public function down(): void
    {
        Schema::table('users', function (Blueprint $table) {
            $table->boolean('can_sell')->default(false);
            $table->boolean('can_lease')->default(false);
            $table->boolean('can_rent')->default(false);
        });
    }
};

