id(); $table->foreignId('tenant_id')->constrained()->restrictOnDelete(); $table->foreignId('created_by')->constrained('users')->restrictOnDelete(); $table->foreignId('warehouse_id')->constrained()->restrictOnDelete(); $table->foreignId('cost_center_id')->constrained()->restrictOnDelete(); $table->string('work_context_key')->default('procurement.internal'); $table->uuid('operation_key'); $table->string('input_hash', 64); $table->string('status')->default('draft'); $table->json('snapshot'); $table->timestampTz('created_at'); $table->unique(['tenant_id', 'created_by', 'operation_key']); }); } public function down(): void { Schema::dropIfExists('warehouse_requests'); } };