old_contents: const mongoose = require('mongoose');
  const Schema = mongoose.Schema;
  
  const schema = new Schema ({
      name: {
          type: String,
          required: true,
      },
      userId: {
          type: Schema.Types.ObjectId,
          ref: 'User',
      },
      settings: {
          type: String
      },
      votes: {
          type: Number
      },
      favorites: {
          type: Number
      }
  });
  
  module.exports = mongoose.model('Patch', schema);
new_contents: const mongoose = require('mongoose');
  const Schema = mongoose.Schema;
  
  const schema = new Schema ({
      name: {
          type: String,
          required: true,
      },
      userId: {
          type: Schema.Types.ObjectId,
          ref: 'User',
      },
      settings: {
          envelope: {
              attack: Number,
              decay: Number,
              sustain: Number,
              release: Number
          },
          wave: String,
          portamento: Number
      },
      votes: {
          type: Number
      },
      favorites: {
          type: Number
      }
  });
  
  module.exports = mongoose.model('Patch', schema);
subject: patch schema updated to match the front end