passing off hacker news clone to Nathan and his pair

This commit is contained in:
Michael Q Larson
2015-03-03 01:41:32 -08:00
parent 9a143ef435
commit b7a95ee56f
8 changed files with 157 additions and 38 deletions

View File

@@ -2,19 +2,10 @@ var mongoose = require('mongoose');
var secrets = require('../config/secrets');
var commentSchema = new mongoose.Schema({
rank: Number,
upVotes: [
{
upVotedBy: ObjectId,
upVotedTime: Number
}
],
author: {
username: String,
id: ObjectId,
picture: String
}
rank: { type: Number, default: -Infinity },
upVotes: { type: Array, default: [] },
author: {},
comments: { type: Array, default: [] }
});
module.exports = mongoose.model('BonfireCompletion', bonfireCompletionSchema);
module.exports = mongoose.model('Comment', commentSchema);