Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const mongoose = require('mongoose');
- const Schema = mongoose.Schema;
- const PrdocutSchema = new Schema({
- category: String,
- name: String,
- price: Number,
- cover: String
- });
- module.exports = mongoose.model('Product', PrdocutSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement