diff --git a/src/models/GovernanceRule.model.js b/src/models/GovernanceRule.model.js index bc5e6835..37c31ab5 100644 --- a/src/models/GovernanceRule.model.js +++ b/src/models/GovernanceRule.model.js @@ -74,7 +74,7 @@ const governanceRuleSchema = new mongoose.Schema({ type: String, enum: ['content', 'security', 'privacy', 'technical', 'process', 'values', 'other'], default: 'other', - index: true, + // Note: Indexed via compound index { category: 1, active: 1 } below description: 'Category for filtering and organization' }, diff --git a/src/models/VariableValue.model.js b/src/models/VariableValue.model.js index 37c9d693..aad1dd13 100644 --- a/src/models/VariableValue.model.js +++ b/src/models/VariableValue.model.js @@ -58,7 +58,7 @@ const variableValueSchema = new mongoose.Schema({ type: String, enum: ['database', 'security', 'config', 'path', 'url', 'port', 'credential', 'feature_flag', 'other'], default: 'other', - index: true, + // Note: Indexed via standalone index { category: 1 } below description: 'Category for organizing variables' }, diff --git a/src/models/VerificationLog.model.js b/src/models/VerificationLog.model.js index ec644179..f2d897b1 100644 --- a/src/models/VerificationLog.model.js +++ b/src/models/VerificationLog.model.js @@ -201,7 +201,7 @@ const verificationLogSchema = new mongoose.Schema({ verifiedAt: { type: Date, default: Date.now, - index: true, + // Note: Indexed via compound indexes and TTL index below description: 'When verification was performed' }