jeudi 19 mai 2016

What design pattern should I use with product model?

I am designing my models/mysql table for a website to display different products. The products will have these attributes in common: 1. SKU, Title, Price, Description, Album, Colors 2. They will all belong to a cateogry: Apparel, Electronics, Bags, Office Supply However, each category might have one or two differences the alter what should be displayed. Any suggestions on how to design my models to account for the slight differences between them? I would like to display the differences on the view.

So far I have a product interface and a am making one product table with columns for SKU, Title, Price, Description, Album, Colors, and category. Any thoughts?

Aucun commentaire:

Enregistrer un commentaire