feat(attachments): add 'key' field to Attachment model and migration, generate UUID on creation
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user