how to give 2 backref to the same table while using the same column for the foreign key?

后端 未结 0 1941
温柔的废话
温柔的废话 2021-02-19 13:06

like I have a user table and a post table and the post table have to column posted_by and edited_by which are the foreign key referencing the same user_id column in the user tab

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