import { IsInt, IsNotEmpty, IsOptional, IsString, MaxLength } from 'class-validator'
import { Trim } from 'src/common/decorators/trim.decorator'

export class TextMessageDto {
    @IsString()
    @Trim()
    @IsNotEmpty()
    @MaxLength(5000)
    text: string

    @IsOptional()
    @IsInt()
    kanbanBoardId?: number

    @IsOptional()
    @IsInt()
    kanbanTaskId?: number
}
