Add VSTP index

This commit is contained in:
Fred Boniface
2024-04-23 15:13:16 +01:00
parent 8e325339bf
commit 728e8f89e2

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
}