Skip to content

Instantly share code, notes, and snippets.

@iammoen
Created August 12, 2016 19:07
Show Gist options
  • Save iammoen/40a125ebd668d17582b970969d8aa748 to your computer and use it in GitHub Desktop.
Save iammoen/40a125ebd668d17582b970969d8aa748 to your computer and use it in GitHub Desktop.
platform: {type: String, required: true},
platformid: {type: String, required: true},
posttime: {type: Date, required: true},
feedid: {type: String, required: true},
clientid: {type: String, required: true},
meta: {
tags: [{type: String}],
rating: {type: Number, min: 1, max: 10, default: 0, required: true},
approval: {
isapproved: {type: Boolean, required: true, default: false},
approvedby: [{type: Schema.Types.ObjectId, ref: 'User'}],
approveddate: {type: Date}
},
custom: [{type: Schema.Types.Mixed}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment