Hi,
I have a question about how to save metadata for table rows.
For example, I have a table which contains data about images items_images
.
id, INT(20)
title, VARCHAR(255)
date_added, DATETIME
...
Now I want to add a voting system where users can vote "like" or "dislike" for the image items. Should I just add two new fields to the items_images
:
votes_like, INT(20)
votes_dislike, INT(20)
or should I create a separate table to store this meta data votes
:
item_id, INT(20)
votes_like, INT(20)
votes_dislike, INT(20)
Thanks for your help!