Add some more useful indexes

This commit is contained in:
zkldi
2022-04-05 18:32:22 +01:00
parent 07e49f4f4b
commit b1d15feee5
+3
View File
@@ -106,6 +106,9 @@ const staticIndexes: Partial<Record<Databases, Index[]>> = {
index({ "data.hashSHA256": 1, playtype: 1 }, UNIQUE),
index({ "data.hashMD5": 1, playtype: 1 }, UNIQUE),
],
"import-locks": [index({ userID: 1 }, UNIQUE)],
"arc-saved-profiles": [index({ userID: 1, forImportType: 1 }, UNIQUE)],
"score-blacklist": [index({ scoreID: 1 }, UNIQUE)],
};
const indexes: Partial<Record<Databases, Index[]>> = staticIndexes;