Add teamID to monitor model

This commit is contained in:
Alex Holliday
2024-08-26 19:15:01 -07:00
parent ce542879e7
commit a02f547b2c
+7
View File
@@ -6,6 +6,13 @@ const MonitorSchema = mongoose.Schema(
type: mongoose.Schema.Types.ObjectId,
ref: "User",
immutable: true,
required: true,
},
teamId: {
type: mongoose.Schema.Types.ObjectId,
ref: "Team",
immutable: true,
required: true,
},
name: {
type: String,