{"size": 261, "ext": "js", "max_stars_repo_path": "api/models/orden.js", "max_stars_repo_name": "osabogal10/factura-electronica", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "api/models/orden.js", "max_issues_repo_name": "osabogal10/factura-electronica", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "api/models/orden.js", "max_forks_repo_name": "osabogal10/factura-electronica", "max_forks_repo_forks_event_min_datetime": "2018-09-18T00:54:06.000Z", "max_forks_repo_forks_event_max_datetime": "2018-09-18T05:11:24.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 29.0, "max_line_length": 78, "alphanum_fraction": 0.7164750958}
const mongoose = require('mongoose');

const ordenSchema = mongoose.Schema({
  producto: {type: mongoose.Schema.ObjectId, ref: 'Producto', required: true},
  cantidad: {type: Number, required: true}
  
});

module.exports = mongoose.model('Orden', ordenSchema);