TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A Case for a OneToMany Relationship in Django

12 点作者 Nurdok将近 12 年前

1 comment

wrsmith将近 12 年前
&quot;Musicians&quot; and &quot;Bands&quot; are a bad example for this. A band obviously has more than one musician. But a musician may belong to more than one band. And also a musician may be a different kind of musician in each of his or her band...lead singer in one band, guitarist in the other, etc.<p>Also if this is a many-to-many relationship, it gives you the flexibility (in the joining table) to define when a musician was part of the band and when he&#x2F;she left and other such metadata that might be useful in a band app
评论 #5886107 未加载