I am making database on Disaster Management. There are four tables.
DisasterEvent (eventid, name, glideID, status, description, date_occurred, date_ended, disaster_type)
People(eventid, num_deaths, num_injuries, num_affected)
Homes (eventid, num_homes_destroyed, num_homes_damaged, total_insured_loss, total_uninsured_loss)
Place (place_id, city, state, country, postal_code)
In my design, I have one to one relationship between People
and DisasterEvent
, and one to one relationship between Home
and DisasterEvent
because for a particular disaster there is only one People
table that we are concerned and same for Home
table.
Now, Place
has many to many relationship with DisasterEvent
because at particular place there can be many disasters over time and same disaster could occur many place at once.
What am I trying to achieve is able to map number of affected people by the particular disaster event at certain place. For this I think there needs to be three way relationship among DisasterEvent
, Place
and People
. How do I achieve this?