Skip to main content

Nutrition

Recipes, inventory, meal logs, shopping, and meal plans.
2 min read

Recipes#

nutrition_recipes#

ColumnNotes
profile_id / created_by
assigneesTable recipe_assignees (N); API assignedTo: string[]
name / description / servings
prep_minutes / cook_minutes / notes
macroscalories_per_serving, protein_g, carbs_g, fat_g
visibilitymembers | followers | public. Default members
image / blob fields
soft delete

nutrition_recipe_ingredients#

recipe_id, name, quantity, unit, position (no soft delete).

nutrition_recipe_steps#

recipe_id, body, position (no soft delete). Ordered instructions.

nutrition_recipe_tools#

recipe_id, name, position (no soft delete). Utensils / equipment.

Inventory#

nutrition_inventory_items#

ColumnNotes
profile_id / created_by
assigneesTable inventory_item_assignees (N); API assignedTo: string[]
name / name_normalized
quantity / unit / min_quantity
location
expires_at / expires_at_key
soft delete

Meal logs#

nutrition_meal_logs#

ColumnNotes
profile_id / created_by
assigneesTable meal_log_assignees (N); API assignedTo: string[] — replaces member_user_ids (migration 000016)
date / date_key
meal_type / title
recipe_idOptional
servings / notes
macro overridescalories/protein/carbs/fat
is_template
visibilitymembers | followers | public. Default members. Public day page: /@handle/meals/:dateKey. Allowlist DTO only (no macros, notes, or assignees).
image/blob fields
soft delete

Shopping#

nutrition_shopping_collections#

Lists: name, description, target_date_key, color, archived/soft delete.

nutrition_shopping_items#

ColumnNotes
profile_id / created_by
assigneesTable shopping_item_assignees (N); API assignedTo: string[]
collection_idOptional
name / qty / unit
statusDefault pending
sourceDefault manual
recipe_id / inventory_item_idLinks
checked_at
soft delete

Meal plans#

nutrition_meal_plans#

ColumnNotes
profile_id / created_by
assigneesTable meal_plan_assignees (N); API assignedTo: string[]
week_start_date_keyWeek
name / notes
statusDefault draft
visibilitymembers | followers | public. Default members
activated_at / completed_at
soft delete

nutrition_meal_plan_slots#

ColumnNotes
plan_id / date_key / meal_type
recipe_id / custom_title
assigneesTable meal_plan_slot_assignees (N); API assignedTo: string[] — replaces member_user_ids
servings / notes
materialized_meal_log_id→ meal_logs when materialized (copies slot assignees)