I am designing a database and have run into a snag. Ok, not so much of a snag as just something that I do not like. I will have up to 1000 different scenarios, and in each scenario I will need to store the state of each one of 64 different toggles. I've worked this around as best I can and have come up with the following:
Table Scenario
Scenario_ID
Scenario_Name
Table Toggles
Scenario_ID
Toggle_1
Toggle_2
...
...
Toggle_64
This leaves me that with a 65 row Toggles table. I keep thinking that there has to be a better way than having 64 columns of "on" or "off", but I am at a loss as to what it might be. I don't want to store the toggle state in a CSV in one column because it will be constantly changing, and needs to be parsed quite often. It would be much easier for me to update the table by simply updating Toggle_14 to "off" rather than parsing a CSV, changing it, and reloading it. Any thoughts?