{"size": 349, "ext": "js", "max_stars_repo_path": "backend/models/product.js", "max_stars_repo_name": "aquu/value4life", "max_stars_repo_stars_event_min_datetime": "2019-11-16T10:05:11.000Z", "max_stars_repo_stars_event_max_datetime": "2019-11-16T10:05:11.000Z", "max_issues_repo_path": "backend/models/product.js", "max_issues_repo_name": "aquu/value4life", "max_issues_repo_issues_event_min_datetime": "2021-03-09T23:31:42.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T20:14:38.000Z", "max_forks_repo_path": "backend/models/product.js", "max_forks_repo_name": "aquu/value4life", "max_forks_repo_forks_event_min_datetime": "2019-11-16T08:31:03.000Z", "max_forks_repo_forks_event_max_datetime": "2019-11-16T08:31:03.000Z"}
{"max_stars_count": 1, "max_issues_count": 6, "max_forks_count": 1, "avg_line_length": 15.8636363636, "max_line_length": 56, "alphanum_fraction": 0.6676217765}
/*!
 * Module dependencies
 */

const mongoose = require('mongoose');
const Schema = mongoose.Schema;


const schema = new Schema({
  name: { type: String, default: '' },
  type: String,
  price: String,
  used: Boolean,
});


schema.index({name: 'text'})

const ProductSchema = mongoose.model('Product', schema);

module.exports = { ProductSchema}
