Hi, I'm trying to understand if it's right to use one table for votes for more than one argument:
table_votes
id | vote (±1) | id_user | timestamp | argument_type | argument_id
table_photos // could be argument_type = 1
id | photo_file | photo_name | etc.
table_house // could be argument_type = 2
id | house_name | etc.
My problem starts if I'd like to use it to rename e table value, for example house names
, I could create a table to change suggestions based on users agreement, for example 3 votes on 5 total.
table_house_name_suggestion // could be argument_type = 3
id | new_house_name | old_house_name | id_user | timestamp | locked // when votes are enough
So, could this be a right way or I'm losing something important which guide me to use a vote table for every argument or should I think to create a vote table for every argument?