I am new to database design and having a trouble on the database design for shopping cart for an online shopping system.
The system will have 3 catagories, Book, Videos, Games.The shopping cart are able to store these items and check out.
For the ERD, my idea was: 1 Cart can have 1 or many Products 1 or many products are in 1 Catagory.
My question is,for example, the book has an ISBN attribute while Video does not, thus I cannot put them into the single "Product" entity, but if I seperate them into three..
1 Cart can have 0 or many Books. 1 Cart can have 0 or many Videos. 1 Cart can have 0 or many Games.
So there is a situation that there may have all "0" situation, but it does not make senses as the cart must have at least one product inside.
Sorry for my pool english~Thanks.