commit compras2 2811
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-28 15:45:52 +02:00
parent eb32c74c56
commit 060c119ba1
92 changed files with 4936 additions and 43 deletions
@@ -0,0 +1,28 @@
<?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('conflict_releases', function (Blueprint $table) {
$table->id();
$table->foreignId('tenant_id')->constrained()->restrictOnDelete();
$table->foreignId('root_id')->unique()->constrained('conflict_declarations')->restrictOnDelete();
$table->foreignId('declaration_id')->constrained('conflict_declarations')->restrictOnDelete();
$table->foreignId('authorised_by')->constrained('users')->restrictOnDelete();
$table->uuid('operation_key')->unique();
$table->text('reason');
$table->json('snapshot');
$table->timestamp('authorised_at');
});
}
public function down(): void
{
Schema::dropIfExists('conflict_releases');
}
};