text: const mongoose = require('mongoose');
  
  let messageSchema = new mongoose.Schema({
  
      message: {
          type: String,
          required: true
      },
      type: String,
      timestamp: Date,
  
      conversation: {
          type: String,
          required: true
      },
      sender: {
          type: String,
          required: true
      }, // login username
        
  });
  
  module.exports = mongoose.model('Message', messageSchema);
  
  
  