feat: Add summary to recipe instructions (#4410)

Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
boc-the-git
2024-10-23 20:27:47 +11:00
committed by GitHub
parent 99fec90288
commit 3dd61f7742
5 changed files with 59 additions and 10 deletions

View File

@@ -23,8 +23,9 @@ class RecipeInstruction(SqlAlchemyBase):
recipe_id: Mapped[GUID | None] = mapped_column(GUID, ForeignKey("recipes.id"), index=True)
position: Mapped[int | None] = mapped_column(Integer, index=True)
type: Mapped[str | None] = mapped_column(String, default="")
title: Mapped[str | None] = mapped_column(String)
title: Mapped[str | None] = mapped_column(String) # This is the section title!!!
text: Mapped[str | None] = mapped_column(String, index=True)
summary: Mapped[str | None] = mapped_column(String)
ingredient_references: Mapped[list[RecipeIngredientRefLink]] = orm.relationship(
RecipeIngredientRefLink, cascade="all, delete-orphan"