I have a few SQL tables, one for users, one for configurations, one for a key/value for users' configurations.
What I want to do is, when adding a new entry to the users table, I want to populate the key/value table with one row for all the available configurations rows in the configuration table.
So if the config table has these rows:
Setting1
Setting2
Setting3
I would want to end up with something like this for the key/value table:
NewUser | Seeting1 | OFF
NewUser | Seeting2 | OFF
NewUser | Seeting3 | OFF
Not sure how to actually add that to the key/value table (what the syntax is). I suppose it can be done as a trigger based on additions to the users table also.