feat(attachment): implement deletion of cropped attachments alongside original and update README

This commit is contained in:
2026-08-18 12:20:47 -03:00
parent 460ed528cf
commit 58cc35fd61
6 changed files with 37 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ return new class extends Migration
$table->decimal('crop_vertical_start_percent', 7, 4)->nullable()->after('crop_horizontal_start_percent');
$table->foreignId('cropped_attachment_id')
->nullable()
->unique()
->after('crop_vertical_start_percent')
->constrained('attachments')
->nullOnDelete();