fieles neues

This commit is contained in:
KNSONWS
2026-03-19 21:13:55 +01:00
parent 9a39120919
commit ad02198671
19 changed files with 2234 additions and 125 deletions

View File

@@ -223,6 +223,14 @@ async function createAuditLogsCollection() {
else throw err;
}
try {
await databases.createIndex(DATABASE_ID, COLLECTION_ID, 'idx_userId', 'key', ['userId'], ['ASC']);
console.log(' Index erstellt: idx_userId');
} catch (err) {
if (err.code === 409) console.log(' Index existiert bereits: idx_userId');
else throw err;
}
console.log(' Attribute fuer audit_logs erstellt (assetId, action, details, userId, userName)');
}