Extending the User Model

The default User model that comes with lox only contains the email and password fields with corresponding validation and hashing features.
You can extend it by passing a second parameter to the lox function, which receives the UserSchema as an argument. For more info check out
Mongoose's plugin functionality