text: const mongoose = require('mongoose');
  
  const UserSchema = new mongoose.Schema({
      name: {
          type: String,
          required: true
      },
      email: {
          type:String,
          required: true,
          unique: true
      },
      password: {
          type: String,
          required:true
      },
      avatar: {
          type: String
      },
      date: {
          type: Date,
          default: Date.now
      }
  });
  
  module.exports = User = mongoose.model('user', UserSchema)
  
  
  
  
  
  
  
  
  
  
  
  // Mongoose is an Object Data Modeling (ODM) library for MongoDB and Node. js. It manages relationships between data, provides schema validation, and is used to translate between objects in code and the representation of those objects in MongoDB.
  
  //for models the standard files always begins with a capitol letter