text: const mongoose = require('mongoose');
  
  const userSchema = new mongoose.Schema({
      email: String,
      password: String
  },{
      timestamps: true,
      toObject:{
          transform: function(doc, ret, options){
              ret.id = ret._id;
              delete ret._id;
              delete ret.__v;
              delete ret.password;
              return ret;
          }
      }
  })
  
  module.exports = mongoose.model('User', userSchema)