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

export class CreateMessageDto {
  @ApiProperty({ example: 'system' })
  @IsString()
  type: string;

  @ApiProperty({ example: 'Welcome to Genex' })
  @IsString()
  title: string;

  @ApiProperty({ example: 'Thank you for joining our platform.' })
  @IsString()
  content: string;

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