Format all files on BE with perttier config

This commit is contained in:
Alex Holliday committed 2024-10-17 12:07:30 +08:00
1 parent d8e2b06eca
commit fd2d16cf78
60 files changed
+8357 -8367

No files matched your search

+20 -20
View File
@@ -1,24 +1,24 @@
import mongoose from "mongoose";
const NotificationSchema = mongoose.Schema(
{
monitorId: {
type: mongoose.Schema.Types.ObjectId,
ref: "Monitor",
immutable: true,
},
type: {
type: String,
enum: ["email", "sms"],
},
address: {
type: String,
},
phone: {
type: String,
},
},
{
timestamps: true,
}
{
monitorId: {
type: mongoose.Schema.Types.ObjectId,
ref: "Monitor",
immutable: true,
},
type: {
type: String,
enum: ["email", "sms"],
},
address: {
type: String,
},
phone: {
type: String,
},
},
{
timestamps: true,
}
);
export default mongoose.model("Notification", NotificationSchema);