import { IsOptional, IsString, IsUUID } from 'class-validator'

export class CreateCustomerDto {
  @IsString()
  fullName: string

  @IsString()
  phoneNumber: string

  @IsOptional()
  @IsString()
  ktpNumber?: string

  @IsOptional()
  @IsUUID('4')
  ktpPhotoTempId?: string; // ✅ single photo, not array

  @IsString()
  address: string
}