feat(attachments): add 'key' field to Attachment model and migration, generate UUID on creation

This commit is contained in:
2026-06-25 14:31:03 -03:00
parent 049484dee5
commit 9c5a29d933
3 changed files with 11 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ return new class extends Migration
$table->id();
$table->string('attachable_type');
$table->unsignedBigInteger('attachable_id');
$table->uuid('key')->unique();
$table->string('path');
$table->string('filename');
$table->string('type')->nullable();