import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

import { IsNotEmpty, IsOptional, IsString } from 'class-validator';

export class CreatePagerDto {
  @IsString()
  @IsNotEmpty()
  @ApiProperty({ description: 'Table number' })
  tableNumber!: string;

  @IsString()
  @IsOptional()
  @ApiPropertyOptional({ description: 'Message' })
  message?: string;
}
