import { ApiProperty } from '@nestjs/swagger';
import { IsNumber, Min } from 'class-validator';
import { Type } from 'class-transformer';

export class SetStockDto {
  @ApiProperty({ example: 100, description: 'Total stock quantity' })
  @IsNumber()
  @Min(0)
  @Type(() => Number)
  totalStock!: number;

  @ApiProperty({ example: 80, description: 'Available stock quantity' })
  @IsNumber()
  @Min(0)
  @Type(() => Number)
  availableStock!: number;
}
