add db utils

This commit is contained in:
Alex Holliday committed 2025-01-22 08:29:38 -08:00
1 parent 9a8ce41c95
commit 9ffe17e9eb
6 files changed
+61 -11

No files matched your search

+1
View File
@@ -76,6 +76,7 @@ const CheckSchema = mongoose.Schema({ ...BaseCheckSchema.obj }, { timestamps: tr
CheckSchema.index({ createdAt: 1 });
CheckSchema.index({ monitorId: 1, createdAt: 1 });
CheckSchema.index({ monitorId: 1, createdAt: -1 });
CheckSchema.index({ teamId: 1, createdAt: -1 });
export default mongoose.model("Check", CheckSchema);
export { BaseCheckSchema };