简体   繁体   中英

One entity related to multiple entities

I have the 3 following entities.

  • Category
  • Post
  • Sprint

When I am creating an post or sprint I'd really like to place them under a category. But how can I solve this problem by not making 2 separate entities?

I'm confused.

Add a category column to each of the Post and Sprint tables. Thanks Gordon Linoff!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM