OneToOne Relationship with a foreign key on both sides

后端 未结 0 1105
既然无缘
既然无缘 2021-01-24 17:26

How can I define a OneToOne-relationship between two tables and have a foreign key on both sides? I know that it is redundant.

class A(Base):
  __tablename__ = \'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题