hayat / Database /models /BabyItems.js
Mohamed Abu Basith
addded all files
97f53b4
raw
history blame contribute delete
416 Bytes
var mongoose = require('mongoose');
const babyItems = mongoose.Schema({
_id: mongoose.Schema.Types.ObjectId,
name: {
type: String,
},
price: {
type: Number,
},
description: {
type: String,
},
image: {
type: String,
},
isLiked: {
type: Boolean,
default: false,
}
});
module.exports = mongoose.model('BabyItems', babyItems);