fix: Fixes issue #59 could not delete a user

This commit is contained in:
Jeremy Munsch 2026-09-18 16:11:03 +02:00
parent 342d2adced
commit 956ae8693f
No known key found for this signature in database
GPG key ID: 7A502D8B9839C78C

View file

@ -16,6 +16,8 @@ return new class extends Migration
Schema::create('activity_logs', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->nullable()->constrained('users')
->cascadeOnUpdate()
->nullOnDelete()
->comment('Id of the user associated, or nullable for a deleted user.');
$table->boolean('is_anonymous')->comment('If there is no user connected when action was realised.');
$table->boolean('is_console')->comment('If the action was realised in console.');