const mongoose = require('mongoose')

const schema = mongoose.Schema({
  title: { type: String },
  category: { type: mongoose.SchemaTypes.ObjectId, ref: 'Category' },
  body: { type: String }
})

module.exports = mongoose.model('Article', schema)