<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('about_us', function (Blueprint $table) {
            $table->id();

            // Background images as array
            $table->string('background_image')->nullable();

            // Content sections
            $table->text('short_description')->nullable();
            $table->string('main_title')->nullable();
            $table->text('about_description')->nullable();

            // Additional sections as JSON array
            $table->json('additional_sections')->nullable();

            // History section
            $table->string('history_title')->nullable();
            $table->longText('history_description')->nullable();
            $table->json('history_photos')->nullable(); // multiple images

            // Message section (multiple people/messages)


            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('about_us');
    }
};
