import { IsNotEmpty, IsString, IsOptional, IsObject } from 'class-validator';

export class CreateFeatureAnalyticsDto {
  @IsNotEmpty()
  @IsString()
  featureName: string;

  @IsNotEmpty()
  @IsString()
  userIp: string;

  @IsNotEmpty()
  @IsString()
  userAgent: string;

  @IsNotEmpty()
  @IsObject()
  geoDetails: Record<string, any>;

  @IsOptional()
  @IsObject()
  metadata?: Record<string, any>;
}
