import { ApiProperty } from '@nestjs/swagger';
import { PlanTier } from '@prisma/client';
import { IsEnum, IsIn } from 'class-validator';

export class CreateSubscriptionDto {
  @ApiProperty({ enum: PlanTier, description: 'Subscription plan tier' })
  @IsEnum(PlanTier)
  planTier!: PlanTier;

  @ApiProperty({ enum: ['monthly', 'yearly'], description: 'Billing cycle frequency' })
  @IsIn(['monthly', 'yearly'])
  billingCycle!: 'monthly' | 'yearly';
}
