<?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('profile_audits',function(Blueprint$t){$t->id();$t->foreignId('actor_user_id')->nullable()->constrained('users')->nullOnDelete();$t->string('action',50)->index();$t->uuid('correlation_id')->index();$t->json('before')->nullable();$t->json('after')->nullable();$t->string('result',20)->default('success');$t->timestamps();});}public function down():void{Schema::dropIfExists('profile_audits');}};
