// create-note.dto.ts
import { IsEnum, IsString, IsUUID, MinLength } from 'class-validator';
import { NoteType } from 'generated/prisma/client';

export class CreateNoteDto {
  @IsUUID()
  entityId: string;

  @IsEnum(NoteType)
  type: NoteType;

  @IsString()
  @MinLength(5, { message: 'Note content must be at least 5 characters' })
  content: string;
}