I’m developing an web application that will be available in two languages and more languages could be added in the future.
I was designing the tables and I found a problem; Here’s the structure:
Table: Tag;
Columns: TagId (PK) {this column it's referenced by other tables like Posts, Users, etc...}
Table: TagLocale
Columns: TagLocaleId (PK), TagId(FK), LanguageId (FK), Name (the tag string)
It’s wrong having a table with only one column, right?
Anyone could help me here?
Thanks in advance,
Renan
It’s perfectly OK to have a table with only one column.
It means “this tag does exist”.
It will come in very handy when you’ll be building tag statistics (given that
MySQLdoes not support full joins).