How can we design a model structure to store the ratings from different users and show the overall rating in course model

My course model should have following fields:

  • title
  • description
  • rating (overall rating from all users)
  • price

The fields of rating should be

  • value
  • user_id
  • timestamp
  • description