text: var mongoose = require("mongoose");
  
  var Schema = mongoose.Schema;
  
  var ArticleSchema = new Schema({
      title: {
          type: String, 
          required: true
      }, 
  
      link: {
          type: String, 
          required: true
      }, 
  
      note: {
          type: Schema.Types.ObjectId, 
          ref: "Note"
      }
  }); 
  
  const Article = mongoose.model("Article", ArticleSchema);
  
  module.exports = Article; 