<?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('what_we_do_images', function (Blueprint $table) {
            $table->id();
            $table->tinyInteger('slot')->unsigned()->unique();
            $table->string('card_title', 191);
            $table->string('image_path', 500)->nullable();
            $table->timestamps();

            $table->index('slot');
        });
    }

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