Updated the Alert model, ReadMe file

This commit is contained in:
veyselboybay committed 2024-05-28 14:42:51 -04:00
1 parent 98ac394594
commit 424bec1366
2 files changed
+13 -1

No files matched your search

+10
View File
@@ -7,6 +7,16 @@ const AlertSchema = mongoose.Schema(
ref: 'Check',
immutable: true,
},
monitorId: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Monitor',
immutable: true,
},
userId: {
type: mongoose.Schema.Types.ObjectId,
ref: 'User',
immutable: true,
},
status: {
type: Boolean,
},