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

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

  constructor(
    public readonly aggregateId: string,
    public readonly propertyId: string,
    public readonly sellerId: string,
    public readonly transactionType: TransactionType,
  ) {}
}
