package app.mealsmadeeasy.api.recipe.body;

import app.mealsmadeeasy.api.util.SetImageBody;
import lombok.Builder;
import org.jetbrains.annotations.Nullable;

import java.util.List;

@Builder
public record RecipeDraftUpdateBody(
        @Nullable String slug,
        @Nullable String title,
        @Nullable Integer preparationTime,
        @Nullable Integer cookingTime,
        @Nullable Integer totalTime,
        @Nullable String rawText,
        @Nullable List<IngredientDraftUpdateBody> ingredients,
        @Nullable SetImageBody mainImage
) {

    @Builder
    public record IngredientDraftUpdateBody(
            @Nullable String amount,
            String name,
            @Nullable String notes
    ) {}

}
