feat: cli command to clean up outdated or stale booking draft records

This commit is contained in:
Björn Fromme
2026-01-09 09:22:51 +01:00
parent 0992c05539
commit da517b37b6
6 changed files with 142 additions and 3 deletions
+2 -1
View File
@@ -75,6 +75,7 @@ class DraftInspectCommand extends Command
$draft->getId(),
$draft->getBookingId(),
$draft->getUser()->getEmail(),
$draft->getTravelDate()->format('Y-m-d'),
$draft->getCreatedAt()->format('Y-m-d H:i:s'),
$draft->getUpdatedAt()->format('Y-m-d H:i:s'),
$this->getAgeDays($draft->getUpdatedAt()),
@@ -83,7 +84,7 @@ class DraftInspectCommand extends Command
}
$io->table(
['ID', 'Booking ID', 'User Email', 'Created At', 'Updated At', 'Days Old', 'Participants'],
['ID', 'Booking ID', 'User Email', 'Travel Date', 'Created At', 'Updated At', 'Days Old', 'Participants'],
$rows
);