Add unique contraint to URL

This commit is contained in:
Alex Holliday committed 2024-11-11 14:38:59 +08:00
1 parent 75ca6f3239
commit 5817698105
1 file changed
+1
+1
View File
@@ -9,6 +9,7 @@ const StatusPageSchema = mongoose.Schema(
},
url: {
type: String,
unique: true,
required: true,
default: "",
},