Files
mealprep/backend/src/main/java/com/recipeapp/recipe/dto/RecipeDetailResponse.java
Marcel Raddatz 30ba53099c refactor(recipes): drop is_child_friendly column and remove from all layers
V025 migration drops the column. Removed from Recipe entity, RecipeDetailResponse,
RecipeSummaryResponse, RecipeRepository JPQL, RecipeService, and RecipeController.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 08:56:57 +02:00

33 lines
803 B
Java

package com.recipeapp.recipe.dto;
import java.math.BigDecimal;
import java.util.List;
import java.util.UUID;
public record RecipeDetailResponse(
UUID id,
String name,
short serves,
short cookTimeMin,
String effort,
String heroImageUrl,
List<IngredientItem> ingredients,
List<StepItem> steps,
List<TagItem> tags
) {
public record IngredientItem(
UUID ingredientId,
String name,
CategoryRef category,
BigDecimal quantity,
String unit,
short sortOrder
) {}
public record CategoryRef(UUID id, String name) {}
public record StepItem(short stepNumber, String instruction) {}
public record TagItem(UUID id, String name, String tagType) {}
}