<?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('services', function (Blueprint $table) {
            $table->id();
            $table->string('title_en');
            $table->string('title_fr');
            $table->text('desc_en')->nullable();
            $table->text('desc_fr')->nullable();
            $table->json('features_en')->nullable();
            $table->json('features_fr')->nullable();
            $table->unsignedTinyInteger('icon_index')->default(0);
            $table->unsignedTinyInteger('color_index')->default(0);
            $table->boolean('is_active')->default(true);
            $table->integer('sort_order')->default(0);
            $table->timestamps();
        });
    }

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