var mongoose = require('mongoose');

var schema = mongoose.Schema;

var productSchema = schema({
  category_id: mongoose.Schema.ObjectId,
  name: String,
  price: Number,
  description: String,
  image: {data: Buffer, contentType: String},
  roundsCount: {type: Number, default: 0}
});

module.exports = mongoose.model('Product', productSchema);
