REPORT
1.User Class
• Purpose: Represents a user that's planning to shop. Users can browse products,
add items to their cart, and place orders.
• Relationships: One User has one Cart (1-to-1 relationship), A User can place
multiple Orders (1-to-many relationship).
2. Product Class
• Purpose: Represents a product available for purchase.
• Relationships: Multiple products can be added to one cart (many-to one)
3. Cart Class
• Purpose: Represents a shopping cart where users can add or remove products
before checkout.
• Relationships: A Cart belongs to one User (1-to-1 relationship), A Cart contains
multiple Product instances (one-to-many relationship).
4. Order Class
• Purpose: Represents an order placed by a user.
• Relationships: An Order belongs to one User (many-to-1 relationship),
5. Payment Class
• Purpose: Represents the payment made for an order.
• Relationships: A Payment is associated with one Order (1-to-1 relationship).