简体   繁体   中英

How to add variable variations for products in Database

I am designing a database where the user can add variations of the product. For example a shirt can have variations like color. But a battery may have variation about Voltage, Power etc. Different products can have different variations based on their different features, attributes . How can I deal with this issue. Because I don't want to specify the possible variations beforehand.

If you can use ProductGroup like food-tech-health some etc,

you can create a table like Groupsvariations

variations can define one Time and it relationship more than one product groups

guıd,topId(int),ProductGroupId(int),Variatoins(nvarchar)

example tableDesign

example rowValue

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