import { ApiProperty } from '@nestjs/swagger';
import { IsOptional, IsString, MaxLength } from 'class-validator';

export class CreateBusinessTypeDto {
  @ApiProperty({ example: 'Restaurant / Cafe' })
  @IsString()
  @MaxLength(80)
  label!: string;

  @ApiProperty({ required: false, example: 'https://...' })
  @IsOptional()
  @IsString()
  @MaxLength(2000)
  imageUrl?: string;
}
