forked from tnoll12/fishreel-h4d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.js
38 lines (34 loc) · 817 Bytes
/
schema.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
var userProfileSchema = new mongoose.Schema(
{
twitterHandle: String,
userID: mongoose.Schema.Types.ObjectId,
name: String,
description: String,
location: String,
timezone: String,
website: String,
creationDate: Date,
profileImage: String,
language: String,
defaultProfileBool: boolean,
defaultAvatarBool: boolean,
analysisFields: [analysisFieldsSchema],
tweetsOverTime: [double],
mentionedUsers: [mentionedUserSchema]
}
);
var analysisFieldsSchema = new mongoose.Schema(
{
label: String,
description: String, // this is supposed to be for units?
rawValue: double,
// reconsider valueAsPercentile, slightly larger impl lift than I expected
valueAsPercentile: double
}
);
var mentionedUserSchema = new mongoose.Schema(
{
twitterHandle: String,
frequency: int
}
);