Untitled
unknown
plain_text
a year ago
492 B
5
Indexable
const mongoose = require("mongoose");
const blogSchema = mongoose.Schema(
{
title: {
type: String,
required: false,
},
description: {
type: String,
required: true,
},
author: {
type: String,
required: false,
},
images: {
type: [String],
required: false,
},
},
{
timestamps: true,
}
);
const blogModel = mongoose.model("blogs", blogSchema);
module.exports = blogModel;
Editor is loading...
Leave a Comment