Skip to content
Discussion options

You must be logged in to vote

For me extending the catalog will be more reasonable in this case, because the suggested features are closely related to the products. The catalog has two entities right now: Products and Categories. We could add Ratings and Comments as well.

A rating field should be added to every product and when a new rating is added to the database, the individual rating of the product will be updated, so we are not forced to calculate the rating on every request. The user should be able to fetch his own rating and only be able to create one per product.

For the comments, they will be linked to the product in a one to many relationship and will support upvote functionality. Based on the upvote count w…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bdbelchev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants