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

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

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