diff --git a/infra/container_apps/user-ms/mongo_db.tf b/infra/container_apps/user-ms/mongo_db.tf index 11f41004..5675cce0 100644 --- a/infra/container_apps/user-ms/mongo_db.tf +++ b/infra/container_apps/user-ms/mongo_db.tf @@ -21,8 +21,12 @@ module "mongodb_collection_user_institutions" { cosmosdb_mongo_database_name = azurerm_cosmosdb_mongo_database.selc_user.name indexes = [{ - keys = ["_id"] - unique = true + keys = ["_id"] + unique = true + }, + { + keys = ["userId","institutionId"] + unique = false } ]