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

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

  constructor(
    public readonly aggregateId: string,
    public readonly userId: string,
    public readonly targetType: string,
    public readonly targetId: string,
    public readonly rating: number,
  ) {}
}
