Skip to content

Commit

Permalink
feat: Added new field
Browse files Browse the repository at this point in the history
  • Loading branch information
hossainchisty committed Aug 31, 2023
1 parent fdce91d commit bc7a8ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/postModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const mongoose = require("mongoose");

/*
Post Schema Definition
Posts Schema Definition
*/

Expand All @@ -25,6 +25,7 @@ const postSchema = mongoose.Schema(
required: true,
},
views: { type: Number },
readtime: { type: String },
isDraft: { type: Boolean, default: false, index: true },
notifications: { type: Boolean, default: true },
},
Expand Down

0 comments on commit bc7a8ae

Please sign in to comment.