Skip to content

Commit

Permalink
Fix: Remove extra mappings
Browse files Browse the repository at this point in the history
Actually we don't need thess mappings, because that's only an internal
information. If it's needed in the future please revert this commit with
correct mappings.

Resolves: #1
  • Loading branch information
koldakov committed Jan 1, 2024
1 parent 26287bf commit a1c2c41
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions app/repositories/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,6 @@ class EpisodeCharacterAssociation(Base):
primary_key=True,
)

character: Mapped["Character"] = relationship(
back_populates="episode_associations",
)

episode: Mapped["Episode"] = relationship(
back_populates="character_associations",
)


class Episode(Base):
__tablename__ = "episodes"
Expand Down Expand Up @@ -247,10 +239,6 @@ class Episode(Base):
back_populates="episodes",
)

character_associations: Mapped[List["EpisodeCharacterAssociation"]] = relationship(
back_populates="episode",
)


class EpisodeDoesNotExist(Exception):
"""Episode does not exist."""
Expand Down Expand Up @@ -328,9 +316,6 @@ class Character(Base):
secondary="episode_character_association",
back_populates="characters",
)
episode_associations: Mapped[List["EpisodeCharacterAssociation"]] = relationship(
back_populates="character",
)


class CharacterDoesNotExist(Exception):
Expand Down

0 comments on commit a1c2c41

Please sign in to comment.