I am designing a database for a web application and would like to have a table for configurable global settings. Is there any established best practice for the design of this table? I can conceive of two possible solutions, and I'm sure there must be others.
The simplest would be just storing key/value pairs in there as strings. This would only take two columns, but would not give me any ability to add type constraints to individual items.
The other approach would be to add a column for every setting, but then the entire table would only have one row, and that feels kinda funky.
How is this handled in most cases any of you have dealt with?