add dnsServer and dnsRecordType to monitor model

This commit is contained in:
Alex committed 2026-05-08 12:44:18 -07:00
1 parent 06ef850577
commit cb9cc101c0
1 file changed
+8 -1
+8 -1
View File
@@ -1,6 +1,6 @@
import { Schema, model, Types } from "mongoose"; import { Schema, model, Types } from "mongoose";
import type { Monitor, MonitorMatchMethod, CheckSnapshot } from "@/types/monitor.js"; import type { Monitor, MonitorMatchMethod, CheckSnapshot } from "@/types/monitor.js";
import { MonitorTypes, MonitorStatuses } from "@/types/monitor.js"; import { DnsRecordTypes, MonitorTypes, MonitorStatuses } from "@/types/monitor.js";
import type { import type {
CheckAudits, CheckAudits,
CheckCaptureInfo, CheckCaptureInfo,
@@ -351,6 +351,13 @@ const MonitorSchema = new Schema<MonitorDocument>(
type: Number, type: Number,
default: 300000, default: 300000,
}, },
dnsServer: {
type: String,
},
dnsRecordType: {
type: String,
enum: DnsRecordTypes,
},
recentChecks: { recentChecks: {
type: [checkSnapshotSchema], type: [checkSnapshotSchema],
default: [], default: [],