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

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

  constructor(
    public readonly aggregateId: string,
    public readonly fromAgentId: string | null,
    public readonly toAgentId: string | null,
    public readonly byUserId: string,
    public readonly byRole: string,
  ) {}
}
