import mongoose from "mongoose"; const { Schema, model } = mongoose; const panel1Schema = new Schema( { title: { type: String, default: '' }, content: { type: String, default: '' }, image: { public_id: { type: String, }, url: { type: String, }, }, addedBy: { type: mongoose.Schema.ObjectId, ref: "User", required: true, }, displayPanel: { type: Boolean, default: false } }, { timestamps: true } ); export const Panel1 = model( "Panel1", panel1Schema );