Skip to content

Add RecipeDiaryEntry entity and create/list endpoints #1144

Open

Description

@dgee2

Goal

Let users plan to cook a recipe or record that they have cooked it.

Spec reference

docs/specs/recipe-creation-target-architecture.md — §"Related recipe usage capabilities – Recipe diary"

Implementation notes

  • New RecipeDiaryEntry entity:
    • Id (int PK), UserId (int FK), RecipeId (int FK)
    • EntryStatus (nvarchar(20), Planned | Cooked)
    • PlannedForDate (date, nullable), OccurredAtUtc (datetime2, nullable)
    • Notes (nvarchar(max), nullable), CreatedAtUtc (datetime2)
  • EF config and migration
  • POST /api/recipe/{recipeId}/diary — create entry (Planned or Cooked); emits RecipeDiaryEntryPlanned or RecipeDiaryEntryCooked outbox event
  • GET /api/recipe/diary — list caller's diary entries (filterable by status: ?status=Planned|Cooked)

Acceptance criteria

  • Create Planned and Cooked entries
  • List endpoint returns filtered results

Testing

  • Integration tests: create Planned entry, create Cooked entry, list by status

Part of#1105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions