this design looks good,
but i will suggest you one thing
add one more column in orderline (orderid, it is referred from order table)
remove orderlineid from order table
urtrivedi
Nearly a Posting Virtuoso
1,306 posts since Dec 2008
Reputation Points: 257
Solved Threads: 270
Hi johndoe111,
I agree with urtrivedi but there you are only limited to 1 image for the product. Maybe edit the tables item and image to look like this.
Item (ItemID, CategoryID, Name, Price, ShortDescription, LongDescription)
Image (ImageID, ItemID, Name, ImageType)
Thant way you can loop through the image table where the ItemID is equal to the current item. This will allow for unlimited images for the product.
You could also maybe have another column in the item table for the default product image.
But other than thank, your database design looks good. :)
Thanks,
Marais
marases
Junior Poster in Training
87 posts since Sep 2010
Reputation Points: 21
Solved Threads: 7