import { IsOptional, IsString, MaxLength } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class CreateConversationDto {
  @ApiProperty({ required: false })
  @IsOptional()
  @IsString()
  @MaxLength(200)
  title?: string;
}

export class UpdateConversationDto {
  @ApiProperty()
  @IsString()
  @MaxLength(200)
  title: string;
}
