123456789101112131415161718192021
  1. /* Model for an Tool in the DB */
  2. var mongoose = require('mongoose');
  3. var Schema = mongoose.Schema;
  4. var ToolSchema = new Schema(
  5. {
  6. _id: Number,
  7. id: Number,
  8. name: String,
  9. about: Array,
  10. training: Array,
  11. links: Array
  12. },
  13. {
  14. collection: 'tools'
  15. }
  16. );
  17. module.exports = mongoose.model('Tool', ToolSchema);