Create occurrences relationship between timelines and events.
Remove timeline ids from events table.
Define many-to-many relation between timelines and events.