text: const { Schema } = require('./config');
  const userSchema = new Schema({
    username: String,
    password: String,
    role: {
      type: String,
      default: 1
    },
    avatar: {
      type: String,
      default: '/avatar/default.jpg'
    },
    articleNum: Number,
    commentNum: Number
  },{
    versionKey: false
  });
  
  module.exports = userSchema;