Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이세진
/
dev-profile
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
10
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Lee SeJin
2021-06-16 22:18:18 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f3d7d3ac73df6a35eb96729ebfae7b250cd8dd2a
f3d7d3ac
1 parent
c6faddb5
Update User model index
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/models/User.js
src/models/User.js
View file @
f3d7d3a
...
...
@@ -4,13 +4,15 @@ const UserSchema = new mongoose.Schema({
name
:
{
type
:
String
,
trim
:
true
,
sparse
:
true
sparse
:
true
,
index
:
true
},
email
:
{
type
:
String
,
trim
:
true
,
unique
:
true
,
sparse
:
true
sparse
:
true
,
index
:
true
},
avatarUrl
:
String
,
githubId
:
{
...
...
Please
register
or
login
to post a comment