import { IsInt, IsNotEmpty, IsNumber, IsString, Max, Min } from 'class-validator';

export class CreateTargetDto {
  @IsNotEmpty()
  @IsString()
  userId: string;

  @IsNotEmpty()
  @IsInt()
  @Min(1)
  @Max(12)
  month: number;

  @IsNotEmpty()
  @IsInt()
  year: number;

  @IsNotEmpty()
  @IsNumber()
  monthlyTarget: number;

  @IsNotEmpty()
  @IsNumber()
  minTarget: number;

  @IsNumber()
  avgDealValue?: number;

  @IsNumber()
  requiredDemos?: number;

  @IsNumber()
  requiredPotential?: number;

  @IsNumber()
  requiredLeads?: number;

  @IsNumber()
  requiredClosures?: number;

  @IsNumber()
  dailyLeadTarget?: number;
}

