feat(event): audit suspended event dates

This commit is contained in:
2026-09-14 14:19:29 -03:00
parent 54827fbc58
commit 0d54887602
7 changed files with 174 additions and 15 deletions

View File

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