I have a rating system on a forum I'm building. Users can rate a topic either good or bad. For each Good rating, one point is added to the topic's score. For every Bad rating, one point is subtracted to the topic's score.
Each time a rating is made, several things are inputted into a MySQL table called ratings
rating_id
rating_date
rating_username
rating_topic
rating_value
...