title: How can I set enum in my userSchema to have an empty default
body: <p>I am currently working on a registration form for a project using MongoDB as the database, ExpressJS, and PassportJS, however, I am trying to make the user to be able to choose the rol and then being registered in the database like that to redirect to the proper page once the user is logged in.</p>
  
  <pre><code>const mongoose = require("mongoose");
  const Schema = mongoose.Schema;
  
  const userSchema = new Schema({
      name: String,
      username: String,
      password: String,
      role: {
          type: String,
          enum: ['COMPANY', 'IRONHACKER', 'ADMIN'],
          default: 'IRONHACKER',
      },
      session: String,
      last_login: {
          type: Date,
          default: ""
      }
  }, {
      timestamps: {
          createdAt: "created_at",
          updatedAt: "updated_at"
      },
  });
  
  const User = mongoose.model("User", userSchema);
  module.exports = User;
  </code></pre>
  
  <p>By default it has 3 values, and users will only be able to pick 2: IRONHACKER and COMPANY.</p>
  
  <p>Currently, its behavior is different, since I set "IRONHACKER" as the default one, it is always the one users get once the registered.</p>