hayat / Database /models /postNews.js
Mohamed Abu Basith
addded all files
97f53b4
raw
history blame contribute delete
300 Bytes
const mongoose = require('mongoose');
const postSchema = new mongoose.Schema({
postId: {
type: mongoose.Schema.Types.ObjectId, ref: 'User'
},
postedBy: String,
caption: String,
imageUrl: String,
liked: String,
});
module.exports = mongoose.model('Post', postSchema);