Add unique contraint to URL
This commit is contained in:
1 parent
75ca6f3239
commit
5817698105
1 file changed
+1
@@ -9,6 +9,7 @@ const StatusPageSchema = mongoose.Schema(
|
|||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
type: String,
|
type: String,
|
||||||
|
unique: true,
|
||||||
required: true,
|
required: true,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user