reportedBy: github-copilot.v1
Extend Recipe schema: add optional metadata fields (description, tags, prep_time_minutes, servings, versioning)
Summary
- Propose adding optional metadata fields to the
Recipe schema to support richer editing and display: description, tags, prep_time_minutes, servings, and optional version/history metadata.
Motivation
- Improve UX by allowing richer recipe metadata.
- Decouple schema extension from immediate UI editing work so the core edit flow can be delivered quickly.
Proposed changes
- Schema additions (all optional):
description?: string
tags?: string[]
prep_time_minutes?: number (non-negative integer)
servings?: number (positive integer)
version?: { number: number, updatedAt: string, updatedBy: string } (optional history metadata)
Acceptance criteria
Implementation notes
- Add fields to
src/modules/diet/recipe/domain/recipe.ts and export types.
- Update repository DAO converters to map new fields to/from Supabase DAO shapes.
- Provide migration scripts or carefully handle undefined fields in persistence layer.
- Do not change UI in this task; create a follow-up issue for UI work.
Labels: improvement, complexity-medium, backend
Assignee: marcuscastelo
reportedBy: github-copilot.v1
Extend Recipe schema: add optional metadata fields (description, tags, prep_time_minutes, servings, versioning)
Summary
Recipeschema to support richer editing and display:description,tags,prep_time_minutes,servings, and optionalversion/history metadata.Motivation
Proposed changes
description?: stringtags?: string[]prep_time_minutes?: number(non-negative integer)servings?: number(positive integer)version?: { number: number, updatedAt: string, updatedBy: string }(optional history metadata)Acceptance criteria
Implementation notes
src/modules/diet/recipe/domain/recipe.tsand export types.Labels: improvement, complexity-medium, backend
Assignee: marcuscastelo