import { type ListingStatus } from '@prisma/client';
import { type DomainEvent } from '@modules/shared';

export class ListingStatusChangedEvent implements DomainEvent {
  readonly eventName = 'listing.status_changed';
  readonly occurredAt = new Date();

  constructor(
    public readonly aggregateId: string,
    public readonly propertyId: string,
    public readonly previousStatus: ListingStatus,
    public readonly newStatus: ListingStatus,
  ) {}
}
