table number

This commit is contained in:
2025-12-07 12:13:09 +03:30
parent 71a9cc5ef8
commit 6659a085f9
6 changed files with 68 additions and 0 deletions
@@ -0,0 +1,10 @@
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsNotEmpty, IsString, ValidateIf } from 'class-validator';
export class SetTableNumberDto {
@ApiPropertyOptional({ description: 'Table number', example: '5' })
@ValidateIf((o, value) => value !== null && value !== undefined)
@IsString()
tableNumber?: string;
}