<?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('stat', function (Blueprint $table) {
            $table->id('stat_id');
            $table->string('stat_valeur');          // ex: "20+", "1,4 Md"
            $table->string('stat_label_fr');
            $table->string('stat_label_en');
            $table->unsignedInteger('stat_ordre')->default(0);
            $table->timestamp('stat_created_at')->nullable();
            $table->timestamp('stat_updated_at')->nullable();
        });
    }

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