Add files via upload

This commit is contained in:
Mohammad Khalilzadeh authored and GitHub committed 2024-05-18 10:00:08 +03:30
1 parent 3a94abb649
commit 12c31865f7
15 files changed
+2731

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
const mongoose = require("mongoose");
const MonitorSchema = mongoose.Schema({
userId: {
type: String,
},
name: {
type: String,
required: true,
},
description: {
type: String,
},
url: {
type: String,
required: true,
},
isActive: {
type: Boolean,
default: true,
},
interval: {
// in milliseconds
type: Number,
default: 60000,
},
updated_at: {
type: Date,
default: Date.now,
},
created_at: {
type: Date,
default: Date.now,
},
});
module.exports = mongoose.model("Monitor", MonitorSchema);