//require mongoose module
var mongoose = require('mongoose');
//require mongoose Schema creator
var Schema = mongoose.Schema;

//create subscription Schema
var subscriptionSchema = new Schema({
  post: {
    title: {type: String, required: true, unique: true},
    comments: {type: Boolean, required: true, default: true},
    edits: {type: Boolean, required: true, default: false}
  },
  tag: {
    title: {type: String, required: true, unique: true},
    posts: {type: Boolean, required: true, default: true},
    comments: {type: Boolean, required: true, default: false}
  }
});

//export the subscription schema for use
module.exports = mongoose.model('Subscription', subscriptionSchema);
@@ -46,17 +46,17 @@
 ire(
-'
+%22
 mongoose
 ');%0A
@@ -51,17 +51,17 @@
 mongoose
-'
+%22
 );%0A//req
@@ -234,37 +234,58 @@
 uired: true,
- unique: true
+default: %22Not a Post Subscription%22
 %7D,%0A    comme
@@ -322,35 +322,36 @@
  true, default: 
-tru
+fals
 e%7D,%0A    edits: %7B
@@ -457,20 +457,41 @@
 ue, 
-unique: true
+default: %22Not a Tag Subscription%22
 %7D,%0A 
@@ -541,19 +541,20 @@
 efault: 
-tru
+fals
 e%7D,%0A    

fix model schema