Associate events through foreign keys