[UPD] Added BookTag

This commit is contained in:
2026-02-13 14:29:39 +01:00
parent dc819b1674
commit 75c295ce4b
6 changed files with 112 additions and 21 deletions

View File

@@ -25,5 +25,9 @@ class Library(Base):
back_populates="library", cascade="all, delete-orphan"
)
tags: Mapped[List["Tag"]] = relationship(
back_populates="library", cascade="all, delete-orphan"
)
def __repr__(self) -> str:
return f"Library(id={self.id!r}, name={self.name!r}, notes={self.notes!r}"