feat(categories): implement category management with hierarchical structure and update product association
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IsNotEmpty, IsOptional, IsString, MaxLength } from 'class-validator';
|
||||
import { IsNotEmpty, IsNumber, IsOptional, IsString, MaxLength } from 'class-validator';
|
||||
|
||||
export class UpdateProductDto {
|
||||
@IsOptional()
|
||||
@@ -26,4 +26,8 @@ export class UpdateProductDto {
|
||||
@IsString()
|
||||
@MaxLength(191)
|
||||
brand?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
categoryId?: number | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user