From 64820fe12b3a0a37da2f2a5f3b3219a2cdda889b Mon Sep 17 00:00:00 2001 From: ncoronel Date: Thu, 24 Sep 2026 11:09:30 -0300 Subject: [PATCH] feat(desfile): soft delete entry reservations --- .../Desfile/Models/EntryReservation.php | 3 +++ ...es_to_desfile_entry_reservations_table.php | 22 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 database/migrations/2026_09_24_010000_add_soft_deletes_to_desfile_entry_reservations_table.php diff --git a/app/Domains/Ticketing/Desfile/Models/EntryReservation.php b/app/Domains/Ticketing/Desfile/Models/EntryReservation.php index 40c7dea..a9c2049 100644 --- a/app/Domains/Ticketing/Desfile/Models/EntryReservation.php +++ b/app/Domains/Ticketing/Desfile/Models/EntryReservation.php @@ -9,6 +9,7 @@ use App\Domains\Ticketing\Ticket\Models\Ticket; use Illuminate\Database\Eloquent\Attributes\Fillable; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; +use Illuminate\Database\Eloquent\SoftDeletes; #[Fillable([ 'variant_id', @@ -21,6 +22,8 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo; ])] class EntryReservation extends Model { + use SoftDeletes; + protected $table = 'desfile_entry_reservations'; protected function casts(): array diff --git a/database/migrations/2026_09_24_010000_add_soft_deletes_to_desfile_entry_reservations_table.php b/database/migrations/2026_09_24_010000_add_soft_deletes_to_desfile_entry_reservations_table.php new file mode 100644 index 0000000..e3360fa --- /dev/null +++ b/database/migrations/2026_09_24_010000_add_soft_deletes_to_desfile_entry_reservations_table.php @@ -0,0 +1,22 @@ +softDeletes(); + }); + } + + public function down(): void + { + Schema::table('desfile_entry_reservations', function (Blueprint $table): void { + $table->dropSoftDeletes(); + }); + } +};