add stock avaiable
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-18 18:49:05 +03:30
parent ec1f7c407a
commit e1823d2722
2 changed files with 36 additions and 10 deletions
+7
View File
@@ -106,6 +106,13 @@ export class CreateFoodDto {
@ApiProperty({ example: 50 })
dailyStock: number;
@IsOptional()
@IsInt()
@Min(0)
@Type(() => Number)
@ApiPropertyOptional({ example: 50 })
availableStock?: number;
@IsOptional()
@IsBoolean()
@ApiPropertyOptional({ example: false })