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

export class SubscriptionUpgradedEvent implements DomainEvent {
  readonly eventName = 'subscription.upgraded';
  readonly occurredAt = new Date();

  constructor(
    public readonly aggregateId: string,
    public readonly userId: string,
    public readonly fromTier: PlanTier,
    public readonly toTier: PlanTier,
  ) {}
}
