text: import mongoose from 'mongoose';
  
  // schema
  const userSchema = new mongoose.Schema({
    name: String,
    email: String,
    password: String,
    avatar: String,
    whatsapp: String,
    bio: String,
  });
  
  userSchema.set('toJSON', {
    transform: (document, returnedObject) => {
      returnedObject.id = returnedObject._id.toString();
      delete returnedObject._id;
      delete returnedObject.__v;
    },
  });
  
  // model
  const User = mongoose.model('User', userSchema);
  
  module.exports = User;
  