Add VSTP index
Go Test / test (push) Successful in 41s Details

This commit is contained in:
Fred Boniface 2024-04-23 15:13:16 +01:00
parent 8e325339bf
commit 728e8f89e2
1 changed files with 6 additions and 0 deletions

View File

@ -182,6 +182,12 @@ func CreateTimetableIndexes() error {
},
Options: options.Index().SetName("find_by_headcode"),
},
{
Keys: bson.M{
"serviceDetail.vstp": 1,
},
Options: options.Index().SetName("vstp"),
},
// Add index for VSTP to allow deletion of non-VSTP only entries
}