passing off hacker news clone to Nathan and his pair
This commit is contained in:
@@ -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);
|
Reference in New Issue
Block a user