initial commit

This commit is contained in:
Alex Holliday committed 2026-01-21 14:22:53 -08:00
1 parent e0cabdb4fc
commit 117c22fae4
7 files changed
+55 -103

No files matched your search

+45
View File
@@ -0,0 +1,45 @@
export interface MaintenanceWindow {
monitorId: String;
teamId: string;
active: boolean;
}
const MaintenanceWindow = mongoose.Schema(
{
monitorId: {
type: mongoose.Schema.Types.ObjectId,
ref: "Monitor",
immutable: true,
},
teamId: {
type: mongoose.Schema.Types.ObjectId,
ref: "Team",
immutable: true,
},
active: {
type: Boolean,
default: true,
},
name: {
type: String,
},
repeat: {
type: Number,
},
start: {
type: Date,
},
end: {
type: Dat,
},
expiry: {
type: Date,
index: { expires: "0s" },
},
},
{
timestamps: true,
}
);
export default mongoose.model("MaintenanceWindow", MaintenanceWindow);