widget create and delete

This commit is contained in:
2025-04-01 19:25:10 +05:30
parent b849b67f4d
commit ba878589a9
3 changed files with 124 additions and 82 deletions

View File

@@ -17,6 +17,7 @@ export interface widget extends Document {
measurements: {};
duration: string;
};
zoneId:string
}
const widgetSchema: Schema = new Schema(
{
@@ -35,6 +36,7 @@ const widgetSchema: Schema = new Schema(
fontWeight: { type: String },
isArchive: { type: Boolean, default: false },
panelID: { type: mongoose.Schema.Types.ObjectId, ref: "Panel" },
zoneId:{ type: String }
},
{ timestamps: true }
);