Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-155
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-155
2021-155
Commits
06a072a7
Commit
06a072a7
authored
Oct 16, 2021
by
Kamal Thennakoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update user model
parent
19890737
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
portfolio-backend/models/user.js
portfolio-backend/models/user.js
+16
-0
No files found.
portfolio-backend/models/user.js
View file @
06a072a7
...
...
@@ -22,6 +22,22 @@ const userSchema = new Schema({
total_issues
:
{
type
:
Number
},
total_stars
:
{
type
:
Number
},
contributed_to
:
{
type
:
Number
},
total_repos
:
{
type
:
Number
},
total_followers
:
{
type
:
Number
},
is_hireable
:
{
type
:
Boolean
},
contribute_high_repos
:
[],
contribute_mid_repos
:
[],
contribute_low_repos
:
[],
individual_high_repos
:
[],
individual_mid_repos
:
[],
individual_low_repos
:
[],
profile_age
:
{
type
:
Number
},
total_discussions
:
{
type
:
Number
},
answered_discussions
:
{
type
:
Number
},
stof_tags
:[],
stof_top_posts
:[{
name
:{
type
:
String
}},{
upvotes
:{
type
:
Number
}},{
date
:{
type
:
String
}}],
stof_rank
:{
score
:{
type
:
Number
},
class
:{
type
:
String
}},
stof_git_fav_language
:{
type
:
String
},
latest_update
:
{
type
:
Date
},
});
userSchema
.
plugin
(
uniqueValidator
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment