Skip to content

Commit

Permalink
indexes userId-institutionId
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf committed Apr 22, 2024
1 parent f936746 commit c70e028
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions infra/container_apps/user-ms/mongo_db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]

Expand Down

0 comments on commit c70e028

Please sign in to comment.