Recipe-app main
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { IsNumber, IsOptional, IsString, Min } from 'class-validator';
|
||||
|
||||
export class ConsumeInventoryDto {
|
||||
@IsNumber()
|
||||
@Min(0.01)
|
||||
amountUsed!: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
comment?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user