Skip to content

Commit 09ec9a0

Browse files
committed
updated schema to include repoUrl and snippitRatings
1 parent 86b5041 commit 09ec9a0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/models/file.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ var mongoose = require('mongoose'),
44
Schema = mongoose.Schema,
55
textSearch = require('mongoose-text-search');
66

7+
78
/**
89
* File Schema
910
*/
1011
var FileSchema = new Schema({
11-
fileUrl: String,
12+
repoUrl: String,
13+
filePath: String,
1214
contents: String,
13-
// repoUrl: String,
14-
dependencies: []
15+
dependencies: [],
16+
snippitRatings: {} // key will be name of method, value will be array of snippits
1517
});
1618

1719
FileSchema.plugin(textSearch);

0 commit comments

Comments
 (0)