Each customer has a unique id and is linked to exactly one account. Account owns shopping cart and orders. The customer could register as a web user to be able to buy items online. The customer is not required to be a web user because purchases could also be made by phone or by ordering from catalogs. The web user has a login name which also serves as a unique id. Web users could be in several states - new, active, temporarily blocked, or banned, and be linked to a shopping cart. The shopping cart belongs to the account. Account owns customer orders. The customer may have no orders. Customer orders are sorted and unique. Each order could refer to several payments, possibly none. Every payment has a unique id and is related to exactly one account. Each order has current order status. Both order and the shopping carts have line items linked to a specific product. Each line item is related to exactly one product. A product could be associated with many line items or no item at all. Provide a class diagram for online shopping. Identify the classes, their relationships, and multiplicity.
Each customer has a unique id and is linked to exactly one account. Account owns shopping cart and orders. The customer could register as a web user to be able to buy items online. The customer is not required to be a web user because purchases could also be made by phone or by ordering from catalogs. The web user has a login name which also serves as a unique id. Web users could be in several states - new, active, temporarily blocked, or banned, and be linked to a shopping cart. The shopping cart belongs to the account.
Account owns customer orders. The customer may have no orders. Customer orders are sorted and unique. Each order could refer to several payments, possibly none. Every payment has a unique id and is related to exactly one account.
Each order has current order status. Both order and the shopping carts have line items linked to a specific product. Each line item is related to exactly one product. A product could be associated with many line items or no item at all.
Provide a class diagram for online shopping. Identify the classes, their relationships, and multiplicity.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images