fix: add code in categories and subcategories

This commit is contained in:
ilham
2021-12-16 19:04:38 +07:00
parent e82ab2c3e1
commit 0f801483a3
6 changed files with 63 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ export class CreateSubCategoriesProductDto extends CreateCategoriesProductDto {
@IsNotEmpty()
name: string;
@IsNotEmpty()
code: string;
@IsUUID()
categoryId: string;
}