import { IsString, IsOptional, IsEnum, MaxLength } from 'class-validator';
import { IdeaStatus, IdeaPriority } from '../entities/idea.entity';

export class CreateIdeaDto {
  @IsString()
  @MaxLength(255)
  title: string;

  @IsOptional()
  @IsString()
  description?: string;

  @IsOptional()
  @IsEnum(IdeaStatus)
  status?: IdeaStatus;

  @IsOptional()
  @IsEnum(IdeaPriority)
  priority?: IdeaPriority;

  @IsOptional()
  @IsString()
  @MaxLength(100)
  module?: string;

  @IsOptional()
  @IsString()
  @MaxLength(255)
  targetAudience?: string;

  @IsOptional()
  @IsString()
  pain?: string;

  @IsOptional()
  @IsString()
  aiRole?: string;

  @IsOptional()
  @IsString()
  verificationMethod?: string;

  @IsOptional()
  @IsString()
  @MaxLength(20)
  color?: string;
}
