text: var mongoose = require('mongoose');
  
  var Schema = mongoose.Schema;
  
  var GenreSchema = Schema({
      name: { type: String, required: true, max: 100, min: 3 },
  });
  
  GenreSchema
      .virtual('url')
      .get(function() {
          return '/catalog/genre/' + this._id;
      });
  
  
  module.exports = mongoose.model('Genre', GenreSchema);