<?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('pdf_image_metrics', function (Blueprint $table) {
            $table->id();
            $table->string('src', 512)->unique();
            $table->unsignedInteger('width');
            $table->unsignedInteger('height');
            $table->decimal('ratio', 8, 4);
            $table->timestamps();
        });
    }

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

