I want to come up with a generic schema (if possible) to use for a number of different events that I am managing. These events can be weddings, birthday parties, etc.
So far I have 3 main tables:
- Contact Table - the usual info like address, phone, etc.
- Events Table - a list of events with some info like date, location, etc.
- EventInfo Table - contains the following fields (not complete but you should get the point):
EventID
ContactID
NumberofAdultsInvited
NumberofChildrenInvited
Responded (yes, no)
NumberofAdultsAttending
NumberofChildrenAttending
This is the table that I'm trying to improve. I am trying to figure out the best way to capture the event data where we want to keep track of data across adults and children.
It seems strange that I need these repetitive fields for adults and children, but I can't think of any other way. I don't want to put NumberAdults
and NumberofChildren
in the contact table because number of children doesn't necessarily equal numberofChildreninvited
(sometimes adults are just invited)
Do you have any ideas how I can clean up this schema or is the above the best that I can get?
NOTE: In the contact table, there is one entry for the family (as it has one address) so there are not fields stored per person within a family.