feat(event): add date reschedule history

This commit is contained in:
2026-09-14 14:13:39 -03:00
parent b4a7b80430
commit 18a0d14fa8
3 changed files with 104 additions and 0 deletions

View File

@@ -86,6 +86,18 @@ class EventDate extends Model
return $this->hasMany(self::class, 'rescheduled_to_event_date_id');
}
/** @return HasMany<EventDateReschedule, $this> */
public function rescheduleHistory(): HasMany
{
return $this->hasMany(EventDateReschedule::class, 'source_event_date_id');
}
/** @return HasMany<EventDateReschedule, $this> */
public function destinationRescheduleHistory(): HasMany
{
return $this->hasMany(EventDateReschedule::class, 'destination_event_date_id');
}
/** @return HasMany<Variant, $this> */
public function variants(): HasMany
{