<?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::create('home_valuations', function (Blueprint $table) {
            $table->id();
            $table->string('owner_name');
            $table->string('owner_email');
            $table->string('owner_phone');
            $table->string('property_address');
            $table->string('city');
            $table->string('property_type');
            $table->integer('bedrooms')->default(1);
            $table->string('condition')->default('Good');
            $table->decimal('estimated_value', 15, 2);
            $table->string('status')->default('Pending Review');
            $table->timestamps();
        });
    }

    public function down(): void
    {
        Schema::dropIfExists('home_valuations');
    }
};
