Add unique_together and index_together constraints for different models [MJ-531]