feat: init after lab 1

This commit is contained in:
2026-10-01 19:29:22 +03:00
parent 65003b6119
commit f743ee10a2
44 changed files with 8111 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import {
ArrayMaxSize,
ArrayMinSize,
ArrayUnique,
IsArray,
IsString,
IsUUID,
Length,
Matches,
} from 'class-validator';
export class CreateChatDto {
@IsString()
@Length(1, 100)
@Matches(/\S/, {
message: 'title must contain a non-whitespace character',
})
title: string;
@IsArray()
@ArrayMinSize(1)
@ArrayMaxSize(100)
@ArrayUnique()
@IsUUID('4', { each: true })
member_ids: string[];
}