// {app_root}/app/model/user.js module.exports = (app) => { const mongoose = app.mongoose; const Schema = mongoose.Schema; const UsersSchema = new Schema({ userName: { type: String }, password: { type: String }, userEmail: { type: String }, id: { type: String }, }); return mongoose.model('Users', UsersSchema); };