Skip to content

Commit

Permalink
fix: add tablename
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes1803 committed Dec 12, 2023
1 parent 065fb6c commit dba650c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions in_concert/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dba650c

Please sign in to comment.