Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在两个模型之间有一个多对多的关系:客户和产品。许多客户共享同一个产品数据库。
我的问题是,如果我想存储每个产品的客户特定数据怎么办。比如有多少存货?我的第一直觉是创建某种包装模型(例如库存),它指的是产品,但将是特定于客户的。有一个更好的方法吗?
很高兴我能帮上忙。
原答案:你有没有考虑过使用有很多通过关联