feat(event): add date reschedule history
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user