i am currently planning out my next project which is a text based mmorpg game. I am currently trying to design certain parts of the database and have hit a bit of a problem that i have never had before. One part of the game allows the player to buy a car and add addons to it. I was going to have a different table altogether to manage the addons for the car, but a user could have up to 100 addons for a single car, which would require over 100 fields, of course i am not happy with this many fields in one table as it could become difficult to manage, is there any other way to split them up into multiple table?
Thanks
Why does each addon have to be a separate column? Couldn’t you have a many-to-many join table that would link car to addon?
This indicates that Jacob’s car has a flame decal and a cd changer, while Mary’s car only has a cd changer.
Advantages of this approach:
car_addontable can have a column for when the addon was added to that car, how it was paid for, whether it was part of a discount package, etc.