How to design the relations between USER and FAVORITE(or LIKE) models in DB

前端 未结 1 1810
悲哀的现实
悲哀的现实 2021-01-26 01:27

I have these models(tables): USER, PHOTO, BOOK, QUESTION etc. And now I wanna add the favorite or like

相关标签:
1条回答
  • 2021-01-26 01:45

    This uses supertype/subtype relationship. For a few more similar examples and explanations see here and how to create tables.

    0 讨论(0)
提交回复
热议问题