{"size": 522, "ext": "js", "max_stars_repo_path": "models/page.js", "max_stars_repo_name": "jesusrmoreno/BHLREWRITE", "max_stars_repo_stars_event_min_datetime": "2022-02-13T11:12:09.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-13T11:12:09.000Z", "max_issues_repo_path": "models/page.js", "max_issues_repo_name": "gaybro8777/SmorballBeanstalk-Backend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "models/page.js", "max_forks_repo_name": "gaybro8777/SmorballBeanstalk-Backend", "max_forks_repo_forks_event_min_datetime": "2022-02-13T11:10:58.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-13T11:10:58.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 20.0769230769, "max_line_length": 46, "alphanum_fraction": 0.6570881226}
var Promise  = require('bluebird');
var mongoose = require('mongoose');
var Schema   = mongoose.Schema;

var PageSchema = new Schema({
  id: {
    type: String,
    required: true
  },
  url: {
    type: String,
    required: true
  },
  shouldShow: Boolean,
  differences: [{
    type: Schema.Types.ObjectId,
    ref: 'Difference'
  }],
  state: {type: String, default: "in_use"}
});

var Page = mongoose.model('Page', PageSchema);
Promise.promisifyAll(Page);
Promise.promisifyAll(Page.prototype);
module.exports = Page;
