// load the things we need
var mongoose = require('mongoose');

// define the schema for our user model
var mangaSchema = mongoose.Schema({
  Title: String,
  Synopsis: {
    type: String,
    Default: "No description yet"
  },
  updated: {
    type: Date,
    Default: Date.now
  },
  added: {
    type: Date,
    Default: Date.now
  },
  Mangafox: {
    url: String,
    chaplist: [Number],
    regex: String,
  },
  Mangahere: {
    url: String,

    chaplist: [Number]
  },
  Mangapanda: {
    url: String,
    chaplist: [Number]
  }
});

// create the model for users and expose it to our app
module.exports = mongoose.model('Manga', mangaSchema);
