Skip to content

Commit

Permalink
fix: removed the bug of relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
calenzo committed Nov 20, 2022
1 parent 67717c0 commit 65008b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/balance_domain/models/user_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class User(Base):
hashed_password = Column(String(255))
is_active = Column(Boolean, default=True)

bank = relationship("TB_BANK", back_populates="user")
bank = relationship("TB_BANK", back_populates="User")

def to_json(self):
return vars(self)
Expand All @@ -27,7 +27,7 @@ class Bank(Base):
user_id = Column(Integer, ForeignKey("TB_USER.id"))
is_active = Column(Boolean, default=True)

user = relationship("TB_USER", back_populates="bank")
user = relationship("TB_USER", back_populates="Bank")

def to_json(self):
return vars(self)

0 comments on commit 65008b4

Please sign in to comment.