import { IsEnum } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { PlanType } from '../entities/client.entity';

export class PlanDataDto {
  @ApiProperty({
    enum: PlanType,
    description: 'The subscription plan type for the client',
    example: PlanType.BASIC,
  })
  @IsEnum(PlanType, { message: 'Plan must be one of: free, basic, premium, enterprise' })
  plan: PlanType;

  @ApiProperty({
    description: 'Maximum number of users allowed under this plan',
    example: 10,
  })
  maxUsers: number;
}
