add uniqueness and some indices for some models