At my work, we have judges who perform many tasks, for example, evaluate films or compare two pieces of text.
We are developing a new database to store all of our data (we already have data, but the database in it is pretty hacked), and I'm starting to create a Rails analysis application that will serve as a dashboard for these judgments. Tables will include things like judges, films, text, videos, text comparisons.
As part of the application, we want to be able to add comments or flag elements from these tables. For example, someone might want to add a comment to Judge 1 that says, โThis judge is very incompatible,โ and add a comment to rating 2 saying โThis rating is unexpected,โ or mark different types of films or texts to watch.
What is the best way to handle adding comments or flags to a database? For example, do we want to create a new comment table for each object (add JudgesComments, MoviesComments, TextComments, etc.)? Or do we want to have one comment table with columns (id, comment), [which, I think, will require that the identifiers of the entire database are globally unique in the database, and not unique only within their table]?
source
share