Last active
May 4, 2018 22:54
-
-
Save jaouadballat/8818f6631076b01772b604d0ab2b78c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongoose = require('mongoose'); | |
const Schema = mongoose.Schema; | |
const ProductSchema = new Schema({ | |
name: String, | |
price: Number, | |
category: String, | |
image: String, | |
description: String | |
}); | |
module.exports = mongoose.model('Product', ProductSchema); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment