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

export class QuotaExceededEvent implements DomainEvent {
  readonly eventName = 'quota.exceeded';
  readonly occurredAt = new Date();

  constructor(
    public readonly aggregateId: string, // userId
    public readonly metric: string,
    public readonly limit: number,
    public readonly used: number,
  ) {}
}
