-- added unique key to make sure it is not possilbe to insert same version events for one aggregates.