Code refactoring. Add support genres and actors to routes

This commit is contained in:
2024-06-26 23:13:47 +04:00
parent fc3bcc343d
commit b9e22fcc4c
28 changed files with 545 additions and 250 deletions

View File

@@ -11,7 +11,7 @@ class AudiobookGenre(Base):
genre = Column(String, nullable=False, unique=True)
audiobooks = relationship("Audiobook", secondary="audiobook_to_genre",
lazy="selectin")
lazy="selectin", viewonly=True)
class AudiobookToGenre(Base):