node - mongodb database design mongoose schema
扔个三星炸死你
扔个三星炸死你 2017-06-16 09:19:06

Order table design in trading scenario:

Assume there are four products. The order data of each product must have the same parts, such as: order number, order owner, order type, order status, order tracking timeline. At the same time, orders for different products also have their own special The data.

Do you define different schemas for different product designs, or do you only define the schema for one order, but specify a special
subdocument to store data unique to different products?

Should orders be stored in different collections according to different product types, or directly stored in the same order table?

扔个三星炸死你
扔个三星炸死你

reply all(3)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!