<?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
    {
        // Singleton — infos de la section « Contact ».
        Schema::create('contact', function (Blueprint $table) {
            $table->id('ctc_id');
            $table->string('ctc_title_fr');
            $table->string('ctc_title_en');
            $table->text('ctc_intro_fr');
            $table->text('ctc_intro_en');
            $table->string('ctc_email');
            $table->string('ctc_whatsapp');            // "+230 5934 0742"
            $table->string('ctc_whatsapp_url');        // https://wa.me/...
            $table->string('ctc_localisation_fr');
            $table->string('ctc_localisation_en');
            $table->string('ctc_call_label_fr');
            $table->string('ctc_call_label_en');
            $table->text('ctc_call_texte_fr');
            $table->text('ctc_call_texte_en');
            $table->text('ctc_rgpd_fr');
            $table->text('ctc_rgpd_en');
            $table->timestamp('ctc_created_at')->nullable();
            $table->timestamp('ctc_updated_at')->nullable();
        });
    }

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