text: 'use strict';
  
  const mongoose = require('mongoose');
  
  const MessageSchema = new mongoose.Schema({
      message: String,
      sender: {type: mongoose.Schema.Types.ObjectId, required: false, ref: "user"},
      solved: {
          type: mongoose.Schema.Types.Boolean,
          default: false
      }
  }, {
      timestamps: true
  });
  
  const Message = mongoose.model('message', MessageSchema);
  
  module.exports = {Message};
  
  
  
  
  