module salon

This commit is contained in:
2026-06-28 19:57:51 +03:30
parent 4fbb86663a
commit 043e80a139
7 changed files with 214 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import {
IsNotEmpty,
IsOptional,
IsString,
IsUUID,
Length,
Matches,
} from 'class-validator';
export class CreateSalonDto {
@IsString()
@Length(1, 200)
@IsNotEmpty()
name: string;
@IsOptional()
@IsString()
description?: string;
@IsString()
@Length(1, 500)
@IsNotEmpty()
address: string;
@Matches(/^09\d{9}$/)
phone: string;
@IsUUID()
ownerId: string;
}