text: // usersettings-model.js - A mongoose model
  //
  // See http://mongoosejs.com/docs/models.html
  // for more of what you can do here.
  
  module.exports = function (app) {
    const mongooseClient = app.get('mongooseClient');
    const usersettings = new mongooseClient.Schema({
      userId: {type: String, required: true, unique: true},
      blacklist: {type: Array, default: []},
      uiLanguage: {type: String, required: true},
      contentLanguages: {type: Array, default: []},
      filter: {
        categoryIds: { type: Array, index: true },
        emotions: { type: Array, index: true }
      },
      hideUsersWithoutTermsOfUseSigniture: {type: Boolean},
      updatedAt: { type: Date, default: Date.now }
    });
  
    return mongooseClient.model('usersettings', usersettings);
  };
  