package app.mealsmadeeasy.api.recipe.spec;

import app.mealsmadeeasy.api.image.Image;
import lombok.Builder;
import org.jetbrains.annotations.Nullable;

import java.util.List;

@Builder
public record RecipeDraftUpdateSpec(
        @Nullable String slug,
        @Nullable String title,
        @Nullable Integer preparationTime,
        @Nullable Integer cookingTime,
        @Nullable Integer totalTime,
        @Nullable String rawText,
        @Nullable List<IngredientDraftUpdateSpec> ingredients,
        @Nullable Image mainImage
) {

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

}
