Skip to content

Instantly share code, notes, and snippets.

@lrlineroa
Created July 9, 2019 20:43
Show Gist options
  • Save lrlineroa/f745f859f011920f6cf2280ff5cdb788 to your computer and use it in GitHub Desktop.
Save lrlineroa/f745f859f011920f6cf2280ff5cdb788 to your computer and use it in GitHub Desktop.
const mongoose = require('mongoose')
const Schema = mongoose.Schema;
const categorySchema=new Schema({
name: String,
icon: {
name: String,
type: String
}
})
module.exports = mongoose.model('categories',categorySchema)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment