forked from COGS121/Assignment2-2015
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.js
More file actions
37 lines (24 loc) · 776 Bytes
/
Copy pathmodels.js
File metadata and controls
37 lines (24 loc) · 776 Bytes
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
var mongoose = require('mongoose');
var findOrCreate = require('mongoose-findorcreate');
var userSchema = mongoose.Schema({
// IG
"ig_name" : { type: String },
"ig_id" : { type: String},
"ig_access_token" : { type: String },
//Linkedin
"linkedin_name" : { type: String},
"linkedin_id" : { type: String},
"linkedin_access_token" : { type: String },
//youtube
"youtube_name" : { type: String},
"youtube_id" : { type: String},
"youtube_access_token" : { type: String },
//twitter
"twitter_name" : { type: String},
"twitter_id" : { type: String},
"twitter_access_token" : { type: String },
"twitter_pic" : { type: String },
"twitter_location" : { type: String },
"provider" : { type: String }
});
exports.User = mongoose.model('User', userSchema);