<?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('handover_versions',function(Blueprint $t){$t->id();$t->foreignId('handover_id');$t->unsignedInteger('version');$t->foreignId('reviewer_id');$t->string('decision');$t->text('comment')->nullable();$t->json('details_snapshot');$t->foreignId('decided_by')->nullable();$t->timestamp('decided_at')->nullable();$t->timestamps();$t->unique(['handover_id','version','decision']);});}public function down():void{Schema::dropIfExists('handover_versions');}};
