mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-13 09:48:27 +03:00
Job framework for ugs-snapshots
This commit is contained in:
Vendored
+2
@@ -14,6 +14,7 @@ import {
|
||||
PrivateUserDocument,
|
||||
ScoreDocument,
|
||||
KaiAuthDocument,
|
||||
UserGameStatsSnapshot,
|
||||
SessionDocument,
|
||||
AnySongDocument,
|
||||
AnyChartDocument,
|
||||
@@ -143,6 +144,7 @@ const db = {
|
||||
"import-locks": monkDB.get<ImportLockDocument>("import-locks"),
|
||||
tables: monkDB.get<TableDocument>("tables"),
|
||||
"game-settings": monkDB.get<UGPTSettings>("game-settings"),
|
||||
"game-stats-snapshots": monkDB.get<UserGameStatsSnapshot>("game-stats-snapshots"),
|
||||
};
|
||||
|
||||
export default db;
|
||||
|
||||
Vendored
+1
@@ -79,6 +79,7 @@ const staticIndexes: Partial<Record<ValidDatabases, Index[]>> = {
|
||||
"bms-course-lookup": [index({ md5sums: 1 }, UNIQUE)],
|
||||
"api-tokens": [index({ token: 1 }, UNIQUE), index({ userID: 1 })],
|
||||
tables: [index({ tableID: 1 }, UNIQUE), index({ game: 1, playtype: 1 })],
|
||||
"game-stats-snapshots": [index({ timestamp: 1, userID: 1, game: 1, playtype: 1 }, UNIQUE)],
|
||||
};
|
||||
|
||||
const indexes: Partial<Record<ValidDatabases, Index[]>> = staticIndexes;
|
||||
|
||||
Reference in New Issue
Block a user