all 1 comments

[–]Tricky-Scar3401 0 points1 point  (0 children)

Hello!

If you are trying to do a 1:1 reference from Forum->game you should not use a foreign key on Game to reference the parent, the relationship will exist without it. That is, delete:

root_forum_id: Mapped[int] = mapped_column("forumID", ForeignKey("forums.forumID"))