text: var mongoose = require("mongoose");
  
  // Save a reference to the Schema constructor
  var Schema = mongoose.Schema;
  
  // Using the Schema constructor, create a new UserSchema object
  // This is similar to a Sequelize model
  var ArticleSchema = new Schema({
    // `title` is required and of type String
    headline: {
      type: String,
      required: true
    },
    // `link` is required and of type String
    link: {
      type: String,
      required: true
    },
    // `summary`
    summary: {
      type: String,
      required: true
    },
    //`read time`
    imageURL: {
      type: String
    },
    // `date added`
    articleDate: {
      type: String,
      required: true
    }
    // `note` is an object that stores a Note id
    // The ref property links the ObjectId to the Note model
    // This allows us to populate the Article with an associated Note
    // note: {
    //   type: Schema.Types.ObjectId,
    //   ref: "Note"
    // }
  });
  
  // This creates our model from the above schema, using mongoose's model method
  var Article = mongoose.model("Article", ArticleSchema);
  
  var SaveArticle = mongoose.model("SaveArticle", ArticleSchema)
  
  
  // Export the Article model
  module.exports = {Article, SaveArticle};
  