Preparing search index...
    RecipeDraft: Omit<Draft<recipeTableElement>, "ingredients" | "tags"> & {
        id?: number;
        ingredients: IngredientDraft[];
        tags: TagDraft[];
    }

    A recipe payload that may not yet be persisted.

    id is present when editing an existing recipe and absent for a brand-new one. Its embedded ingredients and tags are drafts too: a recipe built from a form, OCR, scraper, or seed data may reference ingredients/tags not yet resolved to master rows. Snapshot/insert/update pipelines accept this shape; persisted reads return the id-required recipeTableElement.