<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

/**
 * PRC-1143 — konsolide şema: `cache_locks` tablosunun TAM tanımı (tek dosya).
 */
return new class extends Migration
{
    public function up(): void
    {
        Schema::create('cache_locks', function (Blueprint $t) {
            $t->string('key', 255);
            $t->string('owner', 255);
            $t->integer('expiration');
            $t->primary(['key']);
        });
    }

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