Hello everyone, Greetings…
I am designing database for a ecommerce website. Below is the tables structure
Master Table Attributes contains:
ID
AttributeName
eg. Size, Color, Material, etc
Master Table AttributeValues contains:
ID
AttributeName
AttributeValue
eg. Size-M, Size-L, Color-Red, Color-White, etc
Product Table contains:
ID
Category
Title
ShortDesc
LongDesc
Brand
Vendor
Image1
Image2
Image3
Image4
Image5
Product Attributes Table contains:
ID
ProductID (from Product Table)
AttributeName
AttributeValue
Quantity
PurchasePrice
SellingPrice
AgeGroup
Product SKUs Table contains:
ID
ProductID (from Product Table)
ProductAttributeID (from Product Attributes Table)
SKU
SaleStatus
Is my tables structure are defined fine or not?
if not , please suggest.
Secondly, for every attribute there must not be any problem,
like for size attribute it IS M,L,S,XL
like for material attribute it is Silk,Cotton, etc
But in the case of color attribute how could i store color name with Hex Code so that actual color be displayed for selection
example, color attribute selected and then attribute value to be written it could be red, white, blue i.e., text value only
Thanks
Himanshoo