Hello guys!
My E-Commerce System will have 5 bases type of products:
- Cell Phones
- Computers
- Shoes
- Shirts
- Default (No specific attribute)
Each one have specific attributes associated...
What I done (Class Table Inheritance):
Product
Id
Name
Sku
Price
...
Shoe
ProductId
Size
Color
...
Computer
ProductId
Memory
Processor
...
What you think about that design? I think Its not a good idea, because it will make the code I bit complicated, example :
-The system shows all Products in a page
-Now a customer select a Shoe
-I got the ProductID and have to check if it is a Cell Phone or Computer Or Shoe ...
I don´t know, maybe I´m thinking wrong...
And I think EAV is not a good option at all...
What you guys think?
Thanks