let order = await Order.findOne({orderId: ctx.params.id}, {createdAt: 1, _id: 0}).toArray();
var User = mongoose.model('Users', UserSchema);
User.register({username:'username', active: false}, 'password', function(err, user) {
if (err) { ... }
var authenticate = User.authenticate();
authenticate('username', 'password', function(err, result) {
if (err) { ... }
});
});