blob: 6e8a0bfea89fd883856d9b326d38de2804934116 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const blogPostSchema = new Schema({
postID: String,
postTitle: String,
postText: String,
postAuthor: String,
postCreationDate: Date,
postLatestEditDate: Date,
postTags: Array
});
const BlogPost = mongoose.model("BlogPost", blogPostSchema);
module.exports = BlogPost;
|