import { IsEnum, IsOptional, IsString, IsNumber } from "class-validator";

export class CreateDeviceDto {
  @IsString()
  asset_tag: string;

  @IsOptional()
  @IsString()
  serial_number?: string;

  @IsEnum(["laptop", "monitor", "phone", "tablet", "printer", "other"])
  device_type: string;

  @IsOptional()
  @IsString()
  brand?: string;

  @IsOptional()
  @IsString()
  model?: string;

  @IsOptional()
  specifications?: Record<string, any>;

  @IsOptional()
  vendor_id?: number;

  @IsOptional()
  @IsNumber()
  purchase_value?: number;
}
