text: const mongoose = require('mongoose');
  
  const NoteSchema = new mongoose.Schema({
      title: {
          type: String,
          required: true,
          minlength: 1,
          trim: true
      },
      body: {
          type: String,
          minlength: 1,
          trim: true
      },
      _userId: {
          type: mongoose.Types.ObjectId,
          required: true
      }
  })
  
  const Note = mongoose.model('Note', NoteSchema);
  
  module.exports = Note;
  