text: const mongoose = require('mongoose');
  
  const messageSchema = mongoose.Schema({
      creator: {
          type: mongoose.SchemaTypes.ObjectId,
          ref: 'User',
          required: true
      },
      recepient: {
          type: mongoose.SchemaTypes.ObjectId,
          ref: 'User',
          required: true
      },
      title: {
          type: String,
          required: true
      },
      content: {
          type: String,
          required: true
      },
      isRead: {
          type: Boolean,
          default: false
      }   
  });
  
  const Message = mongoose.model('Message', messageSchema);
  
  module.exports = Message;