shell bypass 403
const mongoose = require('mongoose');
// Define the admin schema
const adminSchema = new mongoose.Schema({
title: {
type: String,
required: true
},
heading:{
type: String,
required: true
},
picture: {
type: String,
required: false
},
url: {
type: String,
required: true,
unique: true
},
disc:{
type: String,
required: true,
},
});
// Create a model based on the schema
const Project = mongoose.model('projectdoc', adminSchema);
// Export the model to use it in other parts of the application
module.exports = Project;