mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-20 08:39:43 -06:00
43 lines
675 B
JavaScript
43 lines
675 B
JavaScript
import mongoose from "mongoose";
|
|
|
|
const StatusPageSchema = mongoose.Schema(
|
|
{
|
|
companyName: {
|
|
type: String,
|
|
required: true,
|
|
default: "",
|
|
},
|
|
url: {
|
|
type: String,
|
|
unique: true,
|
|
required: true,
|
|
default: "",
|
|
},
|
|
timezone: {
|
|
type: String,
|
|
required: true,
|
|
default: "America/Toronto",
|
|
},
|
|
color: {
|
|
type: String,
|
|
required: true,
|
|
default: "#4169E1",
|
|
},
|
|
theme: {
|
|
type: String,
|
|
required: true,
|
|
default: "light",
|
|
},
|
|
monitors: [
|
|
{
|
|
type: mongoose.Schema.Types.ObjectId,
|
|
ref: "Monitor",
|
|
required: true,
|
|
},
|
|
],
|
|
},
|
|
{ timestamps: true }
|
|
);
|
|
|
|
export default mongoose.model("StatusPage", StatusPageSchema);
|