fix: rw fetching + addon orm refreshing

This commit is contained in:
2026-08-20 11:22:39 +07:00
parent b759a997d9
commit e212492b30
3 changed files with 6 additions and 10 deletions

View File

@@ -37,7 +37,4 @@ class User(Base):
"Subscription", back_populates="user", lazy="selectin"
)
sessions: Mapped[list["Session"]] = relationship(back_populates="user", lazy="selectin")
referal: Mapped["User | None"] = relationship(
"User",
remote_side=[id],
)
referal: Mapped["User | None"] = relationship("User", remote_side=[id], lazy="selectin")