first commit

This commit is contained in:
2025-11-06 16:40:32 +03:00
commit f0948a5b05
51 changed files with 13047 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { MenuItemDto } from "src/item/dto/menu-item.dto";
export class CategoryDto {
id: string;
name: string;
restaurantId: string;
items?: MenuItemDto[];
static fromEntity(entity: any): CategoryDto {
return {
id: entity.id,
name: entity.name,
restaurantId: entity.restaurantId,
items: entity.items?.map(MenuItemDto.fromEntity) ?? [],
};
}
}