Add foreign key constraints also for the event table.