mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-20 08:39:43 -06:00
37 lines
638 B
JavaScript
37 lines
638 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const MetricsSchema = mongoose.Schema(
|
|
{
|
|
monitorId: {
|
|
type: mongoose.Schema.Types.ObjectId,
|
|
ref: "Monitor",
|
|
immutable: true,
|
|
},
|
|
accessibility: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
bestPractices: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
seo: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
performance: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
timestamp: {
|
|
type: Date,
|
|
default: Date.now,
|
|
},
|
|
},
|
|
{
|
|
timestamps: true,
|
|
}
|
|
);
|
|
|
|
module.exports = mongoose.model("LighthouseMetrics", MetricsSchema);
|