I'm thinking maybe I'm going about this wrong, so here it goes.
I have a table, lets call it actions, defined with only a couple fields (id, summary).
Data would be like:
1 Update
2 Follow Up
3 Close
....
I have a table with a number or fields that would reference actions. Ultimately this is for a review of sorts. I need to have about 10-15 fields reference the available 'actions' as defined in the actions table. Would I have to define each foreign key separately, or is there a better way to accomplish what I want.
Table 2 has a number for foreign keys.
field 1 => action
field 2 => action
field 3 => action
So the constraints look like
foreign key (field1) references actions(id)
foreign key (field2) references actions(id)
foreign key (field3) references actions(id)
I thought this could be written as:
foreign key(field1, field2, field2) references actions(id), but apparently I was sadly mistaken.
I've been away from any type of dev for a while, so any thoughts would be appreciated.