From dba650c23913799ec674628950bd29b967badc63 Mon Sep 17 00:00:00 2001 From: johannes Date: Tue, 12 Dec 2023 17:36:55 +0100 Subject: [PATCH] fix: add tablename --- in_concert/app/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/in_concert/app/models.py b/in_concert/app/models.py index 971cf2d..9ac42f1 100644 --- a/in_concert/app/models.py +++ b/in_concert/app/models.py @@ -63,6 +63,7 @@ def delete_db_entry(session: Session, id: int, model_class: Base) -> int: class Band(Base): + __tablename__ = "bands" id: Mapped[int] = mapped_column(primary_key=True) name: Mapped[str] = mapped_column(String(120)) city: Mapped[str] = mapped_column(String(30), nullable=True)