import { PartialType } from '@nestjs/mapped-types';
import { IsOptional, IsInt, Min } from 'class-validator';
import { CreateIdeaDto } from './create-idea.dto';

export class UpdateIdeaDto extends PartialType(CreateIdeaDto) {
  @IsOptional()
  @IsInt()
  @Min(0)
  order?: number;
}
